@ibti-tech/chatbot 0.1.3 → 0.5.6

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
@@ -4,30 +4,32 @@ declare module '@ibti-tech/chatbot/components/BotIcon/index' {
4
4
  //# sourceMappingURL=index.d.ts.map
5
5
  }
6
6
  declare module '@ibti-tech/chatbot/components/BotIcon/index.d.ts' {
7
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../home/juan/projetos/ibti/chatbot/ibti-chatbot/src/components/BotIcon/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,eAAO,MAAM,OAAO,yBASnB,CAAA"}
7
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../home/runner/work/ibti-chatbot/ibti-chatbot/src/components/BotIcon/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,eAAO,MAAM,OAAO,yBASnB,CAAA"}
8
8
  }
9
9
  declare module '@ibti-tech/chatbot/components/ChatUserFeedbackRating/index' {
10
10
  import React from 'react';
11
- export type ChatUserFeedbackRatingProps = {};
12
- export const ChatUserFeedbackRating: ({}: ChatUserFeedbackRatingProps) => React.JSX.Element;
11
+ import { useChatFeedbackBox } from 'contexts/Chatbot/useChatFeedbackBox';
12
+ export type ChatUserFeedbackRatingProps = {
13
+ chatFeedbackBox: ReturnType<typeof useChatFeedbackBox>;
14
+ };
15
+ export const ChatUserFeedbackRating: ({ chatFeedbackBox, }: ChatUserFeedbackRatingProps) => React.JSX.Element;
13
16
  //# sourceMappingURL=index.d.ts.map
14
17
  }
15
18
  declare module '@ibti-tech/chatbot/components/ChatUserFeedbackRating/index.d.ts' {
16
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../home/juan/projetos/ibti/chatbot/ibti-chatbot/src/components/ChatUserFeedbackRating/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqC,MAAM,OAAO,CAAA;AAMzD,MAAM,MAAM,2BAA2B,GAAG,EAAE,CAAA;AAE5C,eAAO,MAAM,sBAAsB,OAAQ,2BAA2B,sBAmDrE,CAAA"}
19
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../home/runner/work/ibti-chatbot/ibti-chatbot/src/components/ChatUserFeedbackRating/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqC,MAAM,OAAO,CAAA;AAIzD,OAAO,EAAE,kBAAkB,EAAE,MAAM,qCAAqC,CAAA;AAGxE,MAAM,MAAM,2BAA2B,GAAG;IACxC,eAAe,EAAE,UAAU,CAAC,OAAO,kBAAkB,CAAC,CAAA;CACvD,CAAA;AAED,eAAO,MAAM,sBAAsB,GAAI,sBAEpC,2BAA2B,sBAoD7B,CAAA"}
17
20
  }
18
21
  declare module '@ibti-tech/chatbot/components/ChatUserFeedbackRating/styles' {
19
- /// <reference types="react" />
20
22
  export const ActionButtons: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
21
23
  export const Form: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").FormHTMLAttributes<HTMLFormElement>, HTMLFormElement>, never>> & string;
22
24
  export const Description: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
23
25
  export const Title: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, never>> & string;
24
26
  export const Box: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<{
25
- layer?: import("@ibti-tech/ui").ThemeLayerIndex | undefined;
26
- hoverable?: boolean | undefined;
27
+ layer?: import("@ibti-tech/ui").ThemeLayerIndex;
28
+ hoverable?: boolean;
27
29
  children?: import("react").ReactNode;
28
- roundedCorners?: "none" | "small" | "medium" | "large" | undefined;
29
- tag?: keyof HTMLElementTagNameMap | undefined;
30
- boxShadow?: boolean | undefined;
30
+ roundedCorners?: "small" | "medium" | "large" | "none";
31
+ tag?: keyof HTMLElementTagNameMap;
32
+ boxShadow?: boolean;
31
33
  } & import("react").HTMLAttributes<HTMLDivElement>, never>> & string & Omit<({ layer, hoverable, children, roundedCorners, tag, boxShadow, ...props }: import("@ibti-tech/ui").CardBaseProps) => import("react/jsx-runtime").JSX.Element, keyof import("react").Component<any, {}, any>>;
32
34
  export const Wrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
33
35
  $opened: boolean;
@@ -35,27 +37,39 @@ declare module '@ibti-tech/chatbot/components/ChatUserFeedbackRating/styles' {
35
37
  //# sourceMappingURL=styles.d.ts.map
36
38
  }
37
39
  declare module '@ibti-tech/chatbot/components/ChatUserFeedbackRating/styles.d.ts' {
38
- {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../../home/juan/projetos/ibti/chatbot/ibti-chatbot/src/components/ChatUserFeedbackRating/styles.ts"],"names":[],"mappings":";AAGA,eAAO,MAAM,aAAa,6NAIzB,CAAA;AAED,eAAO,MAAM,IAAI,mOAIhB,CAAA;AAED,eAAO,MAAM,WAAW,6NAGvB,CAAA;AAED,eAAO,MAAM,KAAK,+NAIjB,CAAA;AAED,eAAO,MAAM,GAAG;;;;;;;wRAKf,CAAA;AAED,eAAO,MAAM,OAAO;aAAyB,OAAO;YA4BnD,CAAA"}
40
+ {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../../home/runner/work/ibti-chatbot/ibti-chatbot/src/components/ChatUserFeedbackRating/styles.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,aAAa,6NAWzB,CAAA;AAED,eAAO,MAAM,IAAI,mOA+ChB,CAAA;AAED,eAAO,MAAM,WAAW,6NAIvB,CAAA;AAED,eAAO,MAAM,KAAK,+NAKjB,CAAA;AAED,eAAO,MAAM,GAAG;;;;;;;wRAKf,CAAA;AAED,eAAO,MAAM,OAAO;aAAyB,OAAO;YA4BnD,CAAA"}
39
41
  }
40
42
  declare module '@ibti-tech/chatbot/components/ChatbotBar/index' {
41
43
  import React from 'react';
42
- export const ChatbotBar: () => React.JSX.Element;
44
+ export type ChatbotBarProps = {
45
+ verticalPosition?: 'top' | 'bottom';
46
+ horizontalPosition?: 'left' | 'right';
47
+ };
48
+ export const ChatbotBar: ({ verticalPosition, horizontalPosition, }: ChatbotBarProps) => React.JSX.Element;
43
49
  //# sourceMappingURL=index.d.ts.map
44
50
  }
45
51
  declare module '@ibti-tech/chatbot/components/ChatbotBar/index.d.ts' {
46
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../home/juan/projetos/ibti/chatbot/ibti-chatbot/src/components/ChatbotBar/index.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,eAAO,MAAM,UAAU,yBAQtB,CAAA"}
52
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../home/runner/work/ibti-chatbot/ibti-chatbot/src/components/ChatbotBar/index.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAA;AAGzB,MAAM,MAAM,eAAe,GAAG;IAC5B,gBAAgB,CAAC,EAAE,KAAK,GAAG,QAAQ,CAAA;IACnC,kBAAkB,CAAC,EAAE,MAAM,GAAG,OAAO,CAAA;CACtC,CAAA;AAED,eAAO,MAAM,UAAU,GAAI,2CAGxB,eAAe,sBAkBjB,CAAA"}
47
53
  }
48
54
  declare module '@ibti-tech/chatbot/components/ChatbotBar/styles' {
49
- /// <reference types="react" />
50
- export const BarContainer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<{
55
+ import { breakpoints } from '@ibti-tech/ui';
56
+ export const BarContainer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<{
51
57
  children?: import("react").ReactNode;
52
- variant?: "mobileS" | "mobileM" | "mobileL" | "tabletS" | "tablet" | "laptop" | "desktop" | "desktopL" | undefined;
53
- } & import("@ibti-tech/ui").HTMLStyleAttributes, never>> & string & Omit<({ children, className, style, variant, }: import("@ibti-tech/ui").ContainerProps) => import("react/jsx-runtime").JSX.Element, keyof import("react").Component<any, {}, any>>;
54
- export const Wrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
58
+ variant?: keyof typeof breakpoints;
59
+ } & import("@ibti-tech/ui").HTMLStyleAttributes, {
60
+ $horizontalPosition: "left" | "right";
61
+ $opened: boolean;
62
+ $verticalPosition: "top" | "bottom";
63
+ }>> & string & Omit<({ children, className, style, variant, }: import("@ibti-tech/ui").ContainerProps) => import("react/jsx-runtime").JSX.Element, keyof import("react").Component<any, {}, any>>;
64
+ export const Wrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
65
+ $verticalPosition: "top" | "bottom";
66
+ $horizontalPosition: "left" | "right";
67
+ $opened: boolean;
68
+ }>> & string;
55
69
  //# sourceMappingURL=styles.d.ts.map
56
70
  }
57
71
  declare module '@ibti-tech/chatbot/components/ChatbotBar/styles.d.ts' {
58
- {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../../home/juan/projetos/ibti/chatbot/ibti-chatbot/src/components/ChatbotBar/styles.ts"],"names":[],"mappings":";AAIA,eAAO,MAAM,YAAY;;;sPASxB,CAAA;AAED,eAAO,MAAM,OAAO,6NASnB,CAAA"}
72
+ {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../../home/runner/work/ibti-chatbot/ibti-chatbot/src/components/ChatbotBar/styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAW,MAAM,eAAe,CAAA;AAIpD,eAAO,MAAM,YAAY;;oBAGH,kBACnB;;yBAHoB,MAAM,GAAG,OAAO;aAC5B,OAAO;uBACG,KAAK,GAAG,QAAQ;iMAqBpC,CAAA;AAED,eAAO,MAAM,OAAO;uBACC,KAAK,GAAG,QAAQ;yBACd,MAAM,GAAG,OAAO;aAC5B,OAAO;YAwCjB,CAAA"}
59
73
  }
60
74
  declare module '@ibti-tech/chatbot/components/ChatbotBody/index' {
61
75
  import React from 'react';
@@ -65,44 +79,38 @@ declare module '@ibti-tech/chatbot/components/ChatbotBody/index' {
65
79
  //# sourceMappingURL=index.d.ts.map
66
80
  }
67
81
  declare module '@ibti-tech/chatbot/components/ChatbotBody/index.d.ts' {
68
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../home/juan/projetos/ibti/chatbot/ibti-chatbot/src/components/ChatbotBody/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4B,MAAM,OAAO,CAAA;AAShD,MAAM,MAAM,gBAAgB,GAAG,EAAE,CAAA;AAEjC,eAAO,MAAM,WAAW,+BAoCvB,CAAA;AAED,eAAe,WAAW,CAAA"}
69
- }
70
- declare module '@ibti-tech/chatbot/components/ChatbotBody/index.spec' {
71
- export {};
72
- //# sourceMappingURL=index.spec.d.ts.map
73
- }
74
- declare module '@ibti-tech/chatbot/components/ChatbotBody/index.spec.d.ts' {
75
- {"version":3,"file":"index.spec.d.ts","sourceRoot":"","sources":["../../../../../home/juan/projetos/ibti/chatbot/ibti-chatbot/src/components/ChatbotBody/index.spec.tsx"],"names":[],"mappings":""}
82
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../home/runner/work/ibti-chatbot/ibti-chatbot/src/components/ChatbotBody/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4B,MAAM,OAAO,CAAA;AAUhD,MAAM,MAAM,gBAAgB,GAAG,EAAE,CAAA;AAEjC,eAAO,MAAM,WAAW,GAAI,MAAE,sBA2C7B,CAAA;AAED,eAAe,WAAW,CAAA"}
76
83
  }
77
84
  declare module '@ibti-tech/chatbot/components/ChatbotBody/styles' {
78
- /// <reference types="react" />
79
85
  export const ChatbotInput: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
80
86
  export const MessagesList: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLUListElement>, HTMLUListElement>, never>> & string;
81
87
  export const Wrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
82
88
  //# sourceMappingURL=styles.d.ts.map
83
89
  }
84
90
  declare module '@ibti-tech/chatbot/components/ChatbotBody/styles.d.ts' {
85
- {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../../home/juan/projetos/ibti/chatbot/ibti-chatbot/src/components/ChatbotBody/styles.ts"],"names":[],"mappings":";AAEA,eAAO,MAAM,YAAY,6NAAe,CAAA;AAExC,eAAO,MAAM,YAAY,iOAKxB,CAAA;AAED,eAAO,MAAM,OAAO,6NAKnB,CAAA"}
91
+ {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../../home/runner/work/ibti-chatbot/ibti-chatbot/src/components/ChatbotBody/styles.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,YAAY,6NAAe,CAAA;AAExC,eAAO,MAAM,YAAY,iOAQxB,CAAA;AAED,eAAO,MAAM,OAAO,6NA4BnB,CAAA"}
86
92
  }
87
93
  declare module '@ibti-tech/chatbot/components/ChatbotDevice/index' {
88
94
  import React from 'react';
89
- export type ChatbotDeviceProps = {};
90
- export const ChatbotDevice: ({}: ChatbotDeviceProps) => React.JSX.Element;
95
+ export type ChatbotDeviceProps = {
96
+ verticalPosition?: 'top' | 'bottom';
97
+ };
98
+ export const ChatbotDevice: ({ verticalPosition, }: ChatbotDeviceProps) => React.JSX.Element;
91
99
  export default ChatbotDevice;
92
100
  //# sourceMappingURL=index.d.ts.map
93
101
  }
94
102
  declare module '@ibti-tech/chatbot/components/ChatbotDevice/index.d.ts' {
95
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../home/juan/projetos/ibti/chatbot/ibti-chatbot/src/components/ChatbotDevice/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AASzB,MAAM,MAAM,kBAAkB,GAAG,EAAE,CAAA;AAEnC,eAAO,MAAM,aAAa,OAAQ,kBAAkB,sBAYnD,CAAA;AAED,eAAe,aAAa,CAAA"}
103
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../home/runner/work/ibti-chatbot/ibti-chatbot/src/components/ChatbotDevice/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAUzB,MAAM,MAAM,kBAAkB,GAAG;IAC/B,gBAAgB,CAAC,EAAE,KAAK,GAAG,QAAQ,CAAA;CACpC,CAAA;AAED,eAAO,MAAM,aAAa,GAAI,uBAE3B,kBAAkB,sBAapB,CAAA;AAED,eAAe,aAAa,CAAA"}
96
104
  }
97
105
  declare module '@ibti-tech/chatbot/components/ChatbotDevice/styles' {
98
- /// <reference types="react" />
99
106
  export const Wrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
100
107
  $opened: boolean;
108
+ $verticalPosition: "top" | "bottom";
101
109
  }>> & string;
102
110
  //# sourceMappingURL=styles.d.ts.map
103
111
  }
104
112
  declare module '@ibti-tech/chatbot/components/ChatbotDevice/styles.d.ts' {
105
- {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../../home/juan/projetos/ibti/chatbot/ibti-chatbot/src/components/ChatbotDevice/styles.ts"],"names":[],"mappings":";AAIA,eAAO,MAAM,OAAO;aAAyB,OAAO;YAyBnD,CAAA"}
113
+ {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../../home/runner/work/ibti-chatbot/ibti-chatbot/src/components/ChatbotDevice/styles.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,OAAO;aACT,OAAO;uBACG,KAAK,GAAG,QAAQ;YAgEpC,CAAA"}
106
114
  }
107
115
  declare module '@ibti-tech/chatbot/components/ChatbotFooter/index' {
108
116
  import React from 'react';
@@ -112,44 +120,31 @@ declare module '@ibti-tech/chatbot/components/ChatbotFooter/index' {
112
120
  //# sourceMappingURL=index.d.ts.map
113
121
  }
114
122
  declare module '@ibti-tech/chatbot/components/ChatbotFooter/index.d.ts' {
115
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../home/juan/projetos/ibti/chatbot/ibti-chatbot/src/components/ChatbotFooter/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAA;AAMvC,MAAM,MAAM,kBAAkB,GAAG,EAAE,CAAA;AAEnC,eAAO,MAAM,aAAa,OAAQ,kBAAkB,sBAsCnD,CAAA;AAED,eAAe,aAAa,CAAA"}
116
- }
117
- declare module '@ibti-tech/chatbot/components/ChatbotFooter/index.spec' {
118
- export {};
119
- //# sourceMappingURL=index.spec.d.ts.map
120
- }
121
- declare module '@ibti-tech/chatbot/components/ChatbotFooter/index.spec.d.ts' {
122
- {"version":3,"file":"index.spec.d.ts","sourceRoot":"","sources":["../../../../../home/juan/projetos/ibti/chatbot/ibti-chatbot/src/components/ChatbotFooter/index.spec.tsx"],"names":[],"mappings":""}
123
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../home/runner/work/ibti-chatbot/ibti-chatbot/src/components/ChatbotFooter/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAsC,MAAM,OAAO,CAAA;AAc1D,MAAM,MAAM,kBAAkB,GAAG,EAAE,CAAA;AAEnC,eAAO,MAAM,aAAa,GAAI,IAAK,kBAAkB,sBA6EpD,CAAA;AAED,eAAe,aAAa,CAAA"}
123
124
  }
124
125
  declare module '@ibti-tech/chatbot/components/ChatbotFooter/styles' {
125
- /// <reference types="react" />
126
126
  export const LoadingSuggestedQuestions: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, never>> & string;
127
127
  export const Form: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").FormHTMLAttributes<HTMLFormElement>, HTMLFormElement>, never>> & string;
128
128
  export const Wrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
129
129
  //# sourceMappingURL=styles.d.ts.map
130
130
  }
131
131
  declare module '@ibti-tech/chatbot/components/ChatbotFooter/styles.d.ts' {
132
- {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../../home/juan/projetos/ibti/chatbot/ibti-chatbot/src/components/ChatbotFooter/styles.ts"],"names":[],"mappings":";AAEA,eAAO,MAAM,yBAAyB,+NAOrC,CAAA;AAED,eAAO,MAAM,IAAI,mOAGhB,CAAA;AAED,eAAO,MAAM,OAAO,6NAEnB,CAAA"}
132
+ {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../../home/runner/work/ibti-chatbot/ibti-chatbot/src/components/ChatbotFooter/styles.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,yBAAyB,+NAOrC,CAAA;AAED,eAAO,MAAM,IAAI,mOA4EhB,CAAA;AAED,eAAO,MAAM,OAAO,6NAEnB,CAAA"}
133
133
  }
134
134
  declare module '@ibti-tech/chatbot/components/ChatbotHeader/index' {
135
135
  import React from 'react';
136
- export type ChatbotHeaderProps = {};
137
- export const ChatbotHeader: ({}: ChatbotHeaderProps) => React.JSX.Element;
136
+ import { useChatFeedbackBox } from 'contexts/Chatbot/useChatFeedbackBox';
137
+ export type ChatbotHeaderProps = {
138
+ chatFeedbackBox: ReturnType<typeof useChatFeedbackBox>;
139
+ };
140
+ export const ChatbotHeader: ({ chatFeedbackBox }: ChatbotHeaderProps) => React.JSX.Element;
138
141
  export default ChatbotHeader;
139
142
  //# sourceMappingURL=index.d.ts.map
140
143
  }
141
144
  declare module '@ibti-tech/chatbot/components/ChatbotHeader/index.d.ts' {
142
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../home/juan/projetos/ibti/chatbot/ibti-chatbot/src/components/ChatbotHeader/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAMzB,MAAM,MAAM,kBAAkB,GAAG,EAAE,CAAA;AAEnC,eAAO,MAAM,aAAa,OAAQ,kBAAkB,sBAcnD,CAAA;AAED,eAAe,aAAa,CAAA"}
143
- }
144
- declare module '@ibti-tech/chatbot/components/ChatbotHeader/index.spec' {
145
- export {};
146
- //# sourceMappingURL=index.spec.d.ts.map
147
- }
148
- declare module '@ibti-tech/chatbot/components/ChatbotHeader/index.spec.d.ts' {
149
- {"version":3,"file":"index.spec.d.ts","sourceRoot":"","sources":["../../../../../home/juan/projetos/ibti/chatbot/ibti-chatbot/src/components/ChatbotHeader/index.spec.tsx"],"names":[],"mappings":""}
145
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../home/runner/work/ibti-chatbot/ibti-chatbot/src/components/ChatbotHeader/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAMzB,OAAO,EAAE,kBAAkB,EAAE,MAAM,qCAAqC,CAAA;AAExE,MAAM,MAAM,kBAAkB,GAAG;IAC/B,eAAe,EAAE,UAAU,CAAC,OAAO,kBAAkB,CAAC,CAAA;CACvD,CAAA;AAED,eAAO,MAAM,aAAa,GAAI,qBAAqB,kBAAkB,sBAqBpE,CAAA;AAED,eAAe,aAAa,CAAA"}
150
146
  }
151
147
  declare module '@ibti-tech/chatbot/components/ChatbotHeader/styles' {
152
- /// <reference types="react" />
153
148
  export const Name: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, never>> & string;
154
149
  export const ProfileInfo: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
155
150
  export const ProfileImage: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, never>> & string;
@@ -157,7 +152,7 @@ declare module '@ibti-tech/chatbot/components/ChatbotHeader/styles' {
157
152
  //# sourceMappingURL=styles.d.ts.map
158
153
  }
159
154
  declare module '@ibti-tech/chatbot/components/ChatbotHeader/styles.d.ts' {
160
- {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../../home/juan/projetos/ibti/chatbot/ibti-chatbot/src/components/ChatbotHeader/styles.ts"],"names":[],"mappings":";AAEA,eAAO,MAAM,IAAI,+NAGhB,CAAA;AAED,eAAO,MAAM,WAAW,6NAGvB,CAAA;AAED,eAAO,MAAM,YAAY,+NAaxB,CAAA;AAED,eAAO,MAAM,OAAO,6NAMnB,CAAA"}
155
+ {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../../home/runner/work/ibti-chatbot/ibti-chatbot/src/components/ChatbotHeader/styles.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,IAAI,+NAGhB,CAAA;AAED,eAAO,MAAM,WAAW,6NAIvB,CAAA;AAED,eAAO,MAAM,YAAY,+NAaxB,CAAA;AAED,eAAO,MAAM,OAAO,6NAMnB,CAAA"}
161
156
  }
162
157
  declare module '@ibti-tech/chatbot/components/ChatbotStatusLabel/index' {
163
158
  import React from 'react';
@@ -167,35 +162,39 @@ declare module '@ibti-tech/chatbot/components/ChatbotStatusLabel/index' {
167
162
  //# sourceMappingURL=index.d.ts.map
168
163
  }
169
164
  declare module '@ibti-tech/chatbot/components/ChatbotStatusLabel/index.d.ts' {
170
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../home/juan/projetos/ibti/chatbot/ibti-chatbot/src/components/ChatbotStatusLabel/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAMzB,MAAM,MAAM,uBAAuB,GAAG,EAAE,CAAA;AAExC,eAAO,MAAM,kBAAkB,OAAQ,uBAAuB,sBAwB7D,CAAA;AAED,eAAe,kBAAkB,CAAA"}
165
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../home/runner/work/ibti-chatbot/ibti-chatbot/src/components/ChatbotStatusLabel/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAMzB,MAAM,MAAM,uBAAuB,GAAG,EAAE,CAAA;AAExC,eAAO,MAAM,kBAAkB,GAAI,IAAK,uBAAuB,sBA0B9D,CAAA;AAED,eAAe,kBAAkB,CAAA"}
171
166
  }
172
167
  declare module '@ibti-tech/chatbot/components/ChatbotStatusLabel/styles' {
173
- /// <reference types="react" />
174
168
  export const Wrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {
175
169
  $signalColor: string;
176
170
  }>> & string;
177
171
  //# sourceMappingURL=styles.d.ts.map
178
172
  }
179
173
  declare module '@ibti-tech/chatbot/components/ChatbotStatusLabel/styles.d.ts' {
180
- {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../../home/juan/projetos/ibti/chatbot/ibti-chatbot/src/components/ChatbotStatusLabel/styles.ts"],"names":[],"mappings":";AAEA,eAAO,MAAM,OAAO;kBAA+B,MAAM;YAaxD,CAAA"}
174
+ {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../../home/runner/work/ibti-chatbot/ibti-chatbot/src/components/ChatbotStatusLabel/styles.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,OAAO;kBAA+B,MAAM;YAaxD,CAAA"}
181
175
  }
182
176
  declare module '@ibti-tech/chatbot/components/ChatbotToggle/index' {
183
177
  import React from 'react';
184
- export type ChatbotToggleProps = {};
185
- export const ChatbotToggle: () => React.JSX.Element;
178
+ export type ChatbotToggleProps = {
179
+ verticalPosition?: 'top' | 'bottom';
180
+ opened?: boolean;
181
+ };
182
+ export const ChatbotToggle: ({ verticalPosition, opened: openedProp, }: ChatbotToggleProps) => React.JSX.Element;
186
183
  export default ChatbotToggle;
187
184
  //# sourceMappingURL=index.d.ts.map
188
185
  }
189
186
  declare module '@ibti-tech/chatbot/components/ChatbotToggle/index.d.ts' {
190
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../home/juan/projetos/ibti/chatbot/ibti-chatbot/src/components/ChatbotToggle/index.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,OAAO,CAAA;AAIzB,MAAM,MAAM,kBAAkB,GAAG,EAAE,CAAA;AAEnC,eAAO,MAAM,aAAa,yBAiBzB,CAAA;AAED,eAAe,aAAa,CAAA"}
187
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../home/runner/work/ibti-chatbot/ibti-chatbot/src/components/ChatbotToggle/index.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,OAAO,CAAA;AAIzB,MAAM,MAAM,kBAAkB,GAAG;IAC/B,gBAAgB,CAAC,EAAE,KAAK,GAAG,QAAQ,CAAA;IACnC,MAAM,CAAC,EAAE,OAAO,CAAA;CACjB,CAAA;AAED,eAAO,MAAM,aAAa,GAAI,2CAG3B,kBAAkB,sBAgCpB,CAAA;AAED,eAAe,aAAa,CAAA"}
191
188
  }
192
189
  declare module '@ibti-tech/chatbot/components/ChatbotToggle/styles' {
193
- /// <reference types="react" />
194
- export const ButtonWrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, never>> & string;
190
+ export const ButtonWrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, {
191
+ $opened: boolean;
192
+ $verticalPosition: "top" | "bottom";
193
+ }>> & string;
195
194
  //# sourceMappingURL=styles.d.ts.map
196
195
  }
197
196
  declare module '@ibti-tech/chatbot/components/ChatbotToggle/styles.d.ts' {
198
- {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../../home/juan/projetos/ibti/chatbot/ibti-chatbot/src/components/ChatbotToggle/styles.ts"],"names":[],"mappings":";AAGA,eAAO,MAAM,aAAa,yOAyBzB,CAAA"}
197
+ {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../../home/runner/work/ibti-chatbot/ibti-chatbot/src/components/ChatbotToggle/styles.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,aAAa;aACf,OAAO;uBACG,KAAK,GAAG,QAAQ;YA0CpC,CAAA"}
199
198
  }
200
199
  declare module '@ibti-tech/chatbot/components/MessageBalloon/index' {
201
200
  import React from 'react';
@@ -209,29 +208,43 @@ declare module '@ibti-tech/chatbot/components/MessageBalloon/index' {
209
208
  //# sourceMappingURL=index.d.ts.map
210
209
  }
211
210
  declare module '@ibti-tech/chatbot/components/MessageBalloon/index.d.ts' {
212
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../home/juan/projetos/ibti/chatbot/ibti-chatbot/src/components/MessageBalloon/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,OAAO,EAAE,YAAY,EAAE,MAAM,OAAO,CAAA;AAMpC,MAAM,MAAM,mBAAmB,GAAG;IAChC,IAAI,EAAE,YAAY,CAAC,WAAW,CAAA;IAC9B,cAAc,EAAE,MAAM,CAAA;CACvB,CAAA;AAOD,eAAO,MAAM,cAAc,8BAGxB,mBAAmB,sBAgBrB,CAAA;AAED,eAAe,cAAc,CAAA"}
213
- }
214
- declare module '@ibti-tech/chatbot/components/MessageBalloon/index.spec' {
215
- export {};
216
- //# sourceMappingURL=index.spec.d.ts.map
217
- }
218
- declare module '@ibti-tech/chatbot/components/MessageBalloon/index.spec.d.ts' {
219
- {"version":3,"file":"index.spec.d.ts","sourceRoot":"","sources":["../../../../../home/juan/projetos/ibti/chatbot/ibti-chatbot/src/components/MessageBalloon/index.spec.tsx"],"names":[],"mappings":""}
211
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../home/runner/work/ibti-chatbot/ibti-chatbot/src/components/MessageBalloon/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAsC,MAAM,OAAO,CAAA;AAE1D,OAAO,EAAE,YAAY,EAAE,MAAM,OAAO,CAAA;AAQpC,MAAM,MAAM,mBAAmB,GAAG;IAChC,IAAI,EAAE,YAAY,CAAC,WAAW,CAAA;IAC9B,cAAc,EAAE,MAAM,CAAA;CACvB,CAAA;AAOD,eAAO,MAAM,cAAc,GAAI,2BAG5B,mBAAmB,sBAiJrB,CAAA;AAED,eAAe,cAAc,CAAA"}
220
212
  }
221
213
  declare module '@ibti-tech/chatbot/components/MessageBalloon/styles' {
222
- /// <reference types="react" />
223
- export const Time: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, never>> & string;
214
+ export const Time: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {
215
+ $type: "received" | "sent";
216
+ }>> & string;
224
217
  export const Balloon: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
225
- $type: 'received' | 'sent';
218
+ $type: "received" | "sent";
219
+ $error?: boolean;
226
220
  }>> & string;
227
221
  export const Label: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, never>> & string;
222
+ export const BalloonAndActionsWrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
223
+ $type: "received" | "sent";
224
+ }>> & string;
225
+ export const BalloonContainer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
226
+ $type: "received" | "sent";
227
+ }>> & string;
228
+ export const TimestampAndActionsRow: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
229
+ $type: "received" | "sent";
230
+ }>> & string;
231
+ export const ActionsContainer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
232
+ $type: "received" | "sent";
233
+ $isVisible: boolean;
234
+ }>> & string;
235
+ export const ActionButton: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, {
236
+ $messageType: "received" | "sent";
237
+ }>> & string;
238
+ export const Tooltip: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {
239
+ $messageType: "received" | "sent";
240
+ }>> & string;
228
241
  export const Wrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
229
- $type: 'received' | 'sent';
242
+ $type: "received" | "sent";
230
243
  }>> & string;
231
244
  //# sourceMappingURL=styles.d.ts.map
232
245
  }
233
246
  declare module '@ibti-tech/chatbot/components/MessageBalloon/styles.d.ts' {
234
- {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../../home/juan/projetos/ibti/chatbot/ibti-chatbot/src/components/MessageBalloon/styles.ts"],"names":[],"mappings":";AAGA,eAAO,MAAM,IAAI,+NAEhB,CAAA;AAED,eAAO,MAAM,OAAO;WAAuB,UAAU,GAAG,MAAM;YAkE7D,CAAA;AAED,eAAO,MAAM,KAAK,+NAEjB,CAAA;AAED,eAAO,MAAM,OAAO;WAAuB,UAAU,GAAG,MAAM;YAiB7D,CAAA"}
247
+ {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../../home/runner/work/ibti-chatbot/ibti-chatbot/src/components/MessageBalloon/styles.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,IAAI;WAAwB,UAAU,GAAG,MAAM;YAkB3D,CAAA;AAED,eAAO,MAAM,OAAO;WACX,UAAU,GAAG,MAAM;aACjB,OAAO;YA2JjB,CAAA;AAED,eAAO,MAAM,KAAK,+NAGjB,CAAA;AAED,eAAO,MAAM,wBAAwB;WAAuB,UAAU,GAAG,MAAM;YAiB9E,CAAA;AAED,eAAO,MAAM,gBAAgB;WAAuB,UAAU,GAAG,MAAM;YAmBtE,CAAA;AAED,eAAO,MAAM,sBAAsB;WAAuB,UAAU,GAAG,MAAM;YAqB5E,CAAA;AAED,eAAO,MAAM,gBAAgB;WAAuB,UAAU,GAAG,MAAM;gBAAc,OAAO;YAoC3F,CAAA;AAED,eAAO,MAAM,YAAY;kBAAiC,UAAU,GAAG,MAAM;YA2B5E,CAAA;AAED,eAAO,MAAM,OAAO;kBAA+B,UAAU,GAAG,MAAM;YAerE,CAAA;AAED,eAAO,MAAM,OAAO;WAAuB,UAAU,GAAG,MAAM;YAiB7D,CAAA"}
235
248
  }
236
249
  declare module '@ibti-tech/chatbot/components/SuggestedQuestions/index' {
237
250
  import React from 'react';
@@ -241,17 +254,9 @@ declare module '@ibti-tech/chatbot/components/SuggestedQuestions/index' {
241
254
  //# sourceMappingURL=index.d.ts.map
242
255
  }
243
256
  declare module '@ibti-tech/chatbot/components/SuggestedQuestions/index.d.ts' {
244
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../home/juan/projetos/ibti/chatbot/ibti-chatbot/src/components/SuggestedQuestions/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAMzB,MAAM,MAAM,uBAAuB,GAAG,EAAE,CAAA;AAExC,eAAO,MAAM,kBAAkB,OAAQ,uBAAuB,kCA4B7D,CAAA;AAED,eAAe,kBAAkB,CAAA"}
245
- }
246
- declare module '@ibti-tech/chatbot/components/SuggestedQuestions/index.spec' {
247
- export {};
248
- //# sourceMappingURL=index.spec.d.ts.map
249
- }
250
- declare module '@ibti-tech/chatbot/components/SuggestedQuestions/index.spec.d.ts' {
251
- {"version":3,"file":"index.spec.d.ts","sourceRoot":"","sources":["../../../../../home/juan/projetos/ibti/chatbot/ibti-chatbot/src/components/SuggestedQuestions/index.spec.tsx"],"names":[],"mappings":""}
257
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../home/runner/work/ibti-chatbot/ibti-chatbot/src/components/SuggestedQuestions/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAMzB,MAAM,MAAM,uBAAuB,GAAG,EAAE,CAAA;AAExC,eAAO,MAAM,kBAAkB,GAAI,IAAK,uBAAuB,kCA4B9D,CAAA;AAED,eAAe,kBAAkB,CAAA"}
252
258
  }
253
259
  declare module '@ibti-tech/chatbot/components/SuggestedQuestions/styles' {
254
- /// <reference types="react" />
255
260
  export const QuestionButton: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("@ibti-tech/ui").ButtonProps & import("styled-components/dist/types").BaseObject, import("styled-components/dist/types").BaseObject>> & string & Omit<({ size, suffix, prefix, fillWidth, ...props }: import("@ibti-tech/ui").ButtonProps) => import("react/jsx-runtime").JSX.Element, keyof import("react").Component<any, {}, any>>;
256
261
  export const QuestionListItem: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, never>> & string;
257
262
  export const QuestionList: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLUListElement>, HTMLUListElement>, never>> & string;
@@ -260,7 +265,30 @@ declare module '@ibti-tech/chatbot/components/SuggestedQuestions/styles' {
260
265
  //# sourceMappingURL=styles.d.ts.map
261
266
  }
262
267
  declare module '@ibti-tech/chatbot/components/SuggestedQuestions/styles.d.ts' {
263
- {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../../home/juan/projetos/ibti/chatbot/ibti-chatbot/src/components/SuggestedQuestions/styles.ts"],"names":[],"mappings":";AAGA,eAAO,MAAM,cAAc,mcAK1B,CAAA;AAED,eAAO,MAAM,gBAAgB,6NAAc,CAAA;AAE3C,eAAO,MAAM,YAAY,iOAIxB,CAAA;AAED,eAAO,MAAM,KAAK,+NAMjB,CAAA;AAED,eAAO,MAAM,OAAO,6NAEnB,CAAA"}
268
+ {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../../home/runner/work/ibti-chatbot/ibti-chatbot/src/components/SuggestedQuestions/styles.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,cAAc,mcAK1B,CAAA;AAED,eAAO,MAAM,gBAAgB,6NAAc,CAAA;AAE3C,eAAO,MAAM,YAAY,iOAIxB,CAAA;AAED,eAAO,MAAM,KAAK,+NAMjB,CAAA;AAED,eAAO,MAAM,OAAO,6NAEnB,CAAA"}
269
+ }
270
+ declare module '@ibti-tech/chatbot/components/WritingIndicator/index' {
271
+ import React from 'react';
272
+ export const WritingIndicator: () => React.JSX.Element;
273
+ export default WritingIndicator;
274
+ //# sourceMappingURL=index.d.ts.map
275
+ }
276
+ declare module '@ibti-tech/chatbot/components/WritingIndicator/index.d.ts' {
277
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../home/runner/work/ibti-chatbot/ibti-chatbot/src/components/WritingIndicator/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAKzB,eAAO,MAAM,gBAAgB,yBAiB5B,CAAA;AAED,eAAe,gBAAgB,CAAA"}
278
+ }
279
+ declare module '@ibti-tech/chatbot/components/WritingIndicator/styles' {
280
+ export const Dots: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, never>> & string;
281
+ export const Dot: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {
282
+ $delay: number;
283
+ }>> & string;
284
+ export const Text: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, never>> & string;
285
+ export const Balloon: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
286
+ export const Label: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, never>> & string;
287
+ export const Wrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
288
+ //# sourceMappingURL=styles.d.ts.map
289
+ }
290
+ declare module '@ibti-tech/chatbot/components/WritingIndicator/styles.d.ts' {
291
+ {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../../home/runner/work/ibti-chatbot/ibti-chatbot/src/components/WritingIndicator/styles.ts"],"names":[],"mappings":"AAiBA,eAAO,MAAM,IAAI,+NAKhB,CAAA;AAED,eAAO,MAAM,GAAG;YAAyB,MAAM;YAO9C,CAAA;AAED,eAAO,MAAM,IAAI,+NAEhB,CAAA;AAED,eAAO,MAAM,OAAO,6NA0BnB,CAAA;AAED,eAAO,MAAM,KAAK,+NAEjB,CAAA;AAED,eAAO,MAAM,OAAO,6NAKnB,CAAA"}
264
292
  }
265
293
  declare module '@ibti-tech/chatbot/contexts/Chatbot/context' {
266
294
  import * as React from 'react';
@@ -276,14 +304,16 @@ declare module '@ibti-tech/chatbot/contexts/Chatbot/context' {
276
304
  opened: boolean;
277
305
  openedToggle: () => void;
278
306
  status: ChatbotTypes.Status;
307
+ apiConnectionError: boolean;
279
308
  suggestedQuestions: ReturnType<typeof useChatbotSuggestedQuestions>;
280
309
  apiURL: string;
310
+ texts?: ChatbotTypes.Texts;
281
311
  };
282
312
  export const ChatbotContext: React.Context<ChatbotContextProps>;
283
313
  //# sourceMappingURL=context.d.ts.map
284
314
  }
285
315
  declare module '@ibti-tech/chatbot/contexts/Chatbot/context.d.ts' {
286
- {"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../../../../../home/juan/projetos/ibti/chatbot/ibti-chatbot/src/contexts/Chatbot/context.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,EAAE,YAAY,EAAE,MAAM,OAAO,CAAA;AACpC,OAAO,EAAE,4BAA4B,EAAE,MAAM,gCAAgC,CAAA;AAE7E,MAAM,MAAM,mBAAmB,GAAG;IAChC,MAAM,EAAE,YAAY,CAAC,MAAM,CAAA;IAC3B,YAAY,EAAE,YAAY,CAAC,WAAW,EAAE,CAAA;IACxC,SAAS,CAAC,EAAE,KAAK,CAAC,gBAAgB,CAAC,WAAW,GAAG,IAAI,CAAC,CAAA;IACtD,YAAY,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAA;IACjD,OAAO,EAAE,OAAO,CAAA;IAChB,OAAO,EAAE,OAAO,CAAA;IAChB,MAAM,EAAE,OAAO,CAAA;IACf,YAAY,EAAE,MAAM,IAAI,CAAA;IACxB,MAAM,EAAE,YAAY,CAAC,MAAM,CAAA;IAC3B,kBAAkB,EAAE,UAAU,CAAC,OAAO,4BAA4B,CAAC,CAAA;IACnE,MAAM,EAAE,MAAM,CAAA;CACf,CAAA;AAED,eAAO,MAAM,cAAc,oCAAiD,CAAA"}
316
+ {"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../../../../../home/runner/work/ibti-chatbot/ibti-chatbot/src/contexts/Chatbot/context.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,EAAE,YAAY,EAAE,MAAM,OAAO,CAAA;AACpC,OAAO,EAAE,4BAA4B,EAAE,MAAM,gCAAgC,CAAA;AAE7E,MAAM,MAAM,mBAAmB,GAAG;IAChC,MAAM,EAAE,YAAY,CAAC,MAAM,CAAA;IAC3B,YAAY,EAAE,YAAY,CAAC,WAAW,EAAE,CAAA;IACxC,SAAS,CAAC,EAAE,KAAK,CAAC,gBAAgB,CAAC,WAAW,GAAG,IAAI,CAAC,CAAA;IACtD,YAAY,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAA;IACjD,OAAO,EAAE,OAAO,CAAA;IAChB,OAAO,EAAE,OAAO,CAAA;IAChB,MAAM,EAAE,OAAO,CAAA;IACf,YAAY,EAAE,MAAM,IAAI,CAAA;IACxB,MAAM,EAAE,YAAY,CAAC,MAAM,CAAA;IAC3B,kBAAkB,EAAE,OAAO,CAAA;IAC3B,kBAAkB,EAAE,UAAU,CAAC,OAAO,4BAA4B,CAAC,CAAA;IACnE,MAAM,EAAE,MAAM,CAAA;IACd,KAAK,CAAC,EAAE,YAAY,CAAC,KAAK,CAAA;CAC3B,CAAA;AAED,eAAO,MAAM,cAAc,oCAAiD,CAAA"}
287
317
  }
288
318
  declare module '@ibti-tech/chatbot/contexts/Chatbot/provider' {
289
319
  import React, { ReactNode } from 'react';
@@ -293,12 +323,14 @@ declare module '@ibti-tech/chatbot/contexts/Chatbot/provider' {
293
323
  apiURL: string;
294
324
  children?: ReactNode;
295
325
  theme: ChatbotTypes.Theme;
326
+ isOpen?: boolean;
327
+ texts?: ChatbotTypes.Texts;
296
328
  };
297
- export const ChatbotProvider: ({ locale, children, apiURL, theme, }: ChatbotProviderProps) => React.JSX.Element;
329
+ export const ChatbotProvider: ({ locale, children, apiURL, theme, isOpen, texts, }: ChatbotProviderProps) => React.JSX.Element;
298
330
  //# sourceMappingURL=provider.d.ts.map
299
331
  }
300
332
  declare module '@ibti-tech/chatbot/contexts/Chatbot/provider.d.ts' {
301
- {"version":3,"file":"provider.d.ts","sourceRoot":"","sources":["../../../../../home/juan/projetos/ibti/chatbot/ibti-chatbot/src/contexts/Chatbot/provider.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAwC,MAAM,OAAO,CAAA;AAC9E,OAAO,EAAE,YAAY,EAAE,MAAM,OAAO,CAAA;AAMpC,MAAM,MAAM,oBAAoB,GAAG;IACjC,MAAM,EAAE,YAAY,CAAC,MAAM,CAAA;IAC3B,MAAM,EAAE,MAAM,CAAA;IACd,QAAQ,CAAC,EAAE,SAAS,CAAA;IACpB,KAAK,EAAE,YAAY,CAAC,KAAK,CAAA;CAC1B,CAAA;AAED,eAAO,MAAM,eAAe,yCAKzB,oBAAoB,sBAgDtB,CAAA"}
333
+ {"version":3,"file":"provider.d.ts","sourceRoot":"","sources":["../../../../../home/runner/work/ibti-chatbot/ibti-chatbot/src/contexts/Chatbot/provider.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAwC,MAAM,OAAO,CAAA;AAC9E,OAAO,EAAE,YAAY,EAAE,MAAM,OAAO,CAAA;AAMpC,MAAM,MAAM,oBAAoB,GAAG;IACjC,MAAM,EAAE,YAAY,CAAC,MAAM,CAAA;IAC3B,MAAM,EAAE,MAAM,CAAA;IACd,QAAQ,CAAC,EAAE,SAAS,CAAA;IACpB,KAAK,EAAE,YAAY,CAAC,KAAK,CAAA;IACzB,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB,KAAK,CAAC,EAAE,YAAY,CAAC,KAAK,CAAA;CAC3B,CAAA;AAED,eAAO,MAAM,eAAe,GAAI,qDAO7B,oBAAoB,sBAuDtB,CAAA"}
302
334
  }
303
335
  declare module '@ibti-tech/chatbot/contexts/Chatbot/useChatFeedbackBox' {
304
336
  type SendUserRatingProps = {
@@ -307,6 +339,7 @@ declare module '@ibti-tech/chatbot/contexts/Chatbot/useChatFeedbackBox' {
307
339
  };
308
340
  export const useChatFeedbackBox: () => {
309
341
  opened: boolean;
342
+ open: () => void;
310
343
  close: () => void;
311
344
  sendUserRating: ({ ratingScore, description, }: SendUserRatingProps) => Promise<void>;
312
345
  loading: boolean;
@@ -315,7 +348,7 @@ declare module '@ibti-tech/chatbot/contexts/Chatbot/useChatFeedbackBox' {
315
348
  //# sourceMappingURL=useChatFeedbackBox.d.ts.map
316
349
  }
317
350
  declare module '@ibti-tech/chatbot/contexts/Chatbot/useChatFeedbackBox.d.ts' {
318
- {"version":3,"file":"useChatFeedbackBox.d.ts","sourceRoot":"","sources":["../../../../../home/juan/projetos/ibti/chatbot/ibti-chatbot/src/contexts/Chatbot/useChatFeedbackBox.ts"],"names":[],"mappings":"AAIA,KAAK,mBAAmB,GAAG;IACzB,WAAW,EAAE,MAAM,CAAA;IACnB,WAAW,EAAE,MAAM,CAAA;CACpB,CAAA;AAED,eAAO,MAAM,kBAAkB;;;oDAkB1B,mBAAmB;;CA0BvB,CAAA"}
351
+ {"version":3,"file":"useChatFeedbackBox.d.ts","sourceRoot":"","sources":["../../../../../home/runner/work/ibti-chatbot/ibti-chatbot/src/contexts/Chatbot/useChatFeedbackBox.ts"],"names":[],"mappings":"AAIA,KAAK,mBAAmB,GAAG;IACzB,WAAW,EAAE,MAAM,CAAA;IACnB,WAAW,EAAE,MAAM,CAAA;CACpB,CAAA;AAED,eAAO,MAAM,kBAAkB;;;;oDAkB1B,mBAAmB;;CA2BvB,CAAA"}
319
352
  }
320
353
  declare module '@ibti-tech/chatbot/contexts/Chatbot/useChatbot' {
321
354
  export const useChatbot: () => import("@ibti-tech/chatbot/contexts/Chatbot/context").ChatbotContextProps;
@@ -323,7 +356,7 @@ declare module '@ibti-tech/chatbot/contexts/Chatbot/useChatbot' {
323
356
  //# sourceMappingURL=useChatbot.d.ts.map
324
357
  }
325
358
  declare module '@ibti-tech/chatbot/contexts/Chatbot/useChatbot.d.ts' {
326
- {"version":3,"file":"useChatbot.d.ts","sourceRoot":"","sources":["../../../../../home/juan/projetos/ibti/chatbot/ibti-chatbot/src/contexts/Chatbot/useChatbot.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,UAAU,+CAMtB,CAAA;AAED,eAAe,UAAU,CAAA"}
359
+ {"version":3,"file":"useChatbot.d.ts","sourceRoot":"","sources":["../../../../../home/runner/work/ibti-chatbot/ibti-chatbot/src/contexts/Chatbot/useChatbot.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,UAAU,+CAMtB,CAAA;AAED,eAAe,UAAU,CAAA"}
327
360
  }
328
361
  declare module '@ibti-tech/chatbot/contexts/Chatbot/useChatbotMessages' {
329
362
  import { ChatbotTypes } from 'types';
@@ -337,6 +370,7 @@ declare module '@ibti-tech/chatbot/contexts/Chatbot/useChatbotMessages' {
337
370
  loading: boolean;
338
371
  writing: boolean;
339
372
  error: unknown;
373
+ apiConnectionError: boolean;
340
374
  suggestedQuestions: {
341
375
  loading: boolean;
342
376
  data: string[];
@@ -348,7 +382,7 @@ declare module '@ibti-tech/chatbot/contexts/Chatbot/useChatbotMessages' {
348
382
  //# sourceMappingURL=useChatbotMessages.d.ts.map
349
383
  }
350
384
  declare module '@ibti-tech/chatbot/contexts/Chatbot/useChatbotMessages.d.ts' {
351
- {"version":3,"file":"useChatbotMessages.d.ts","sourceRoot":"","sources":["../../../../../home/juan/projetos/ibti/chatbot/ibti-chatbot/src/contexts/Chatbot/useChatbotMessages.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,OAAO,CAAA;AAMpC,MAAM,MAAM,yBAAyB,GAAG;IACtC,MAAM,EAAE,MAAM,CAAA;IACd,MAAM,EAAE,YAAY,CAAC,MAAM,CAAA;CAC5B,CAAA;AAED,eAAO,MAAM,kBAAkB,wBAG5B,yBAAyB;;iCAuEgB,MAAM;;;;;;;;;;CA6DjD,CAAA;AAED,eAAe,kBAAkB,CAAA"}
385
+ {"version":3,"file":"useChatbotMessages.d.ts","sourceRoot":"","sources":["../../../../../home/runner/work/ibti-chatbot/ibti-chatbot/src/contexts/Chatbot/useChatbotMessages.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,OAAO,CAAA;AAYpC,MAAM,MAAM,yBAAyB,GAAG;IACtC,MAAM,EAAE,MAAM,CAAA;IACd,MAAM,EAAE,YAAY,CAAC,MAAM,CAAA;CAC5B,CAAA;AAED,eAAO,MAAM,kBAAkB,GAAI,qBAGhC,yBAAyB;;iCAuJgB,MAAM;;;;;;;;;;;CA0MjD,CAAA;AAED,eAAe,kBAAkB,CAAA"}
352
386
  }
353
387
  declare module '@ibti-tech/chatbot/contexts/Chatbot/useChatbotSuggestedQuestions' {
354
388
  import { ChatbotTypes } from 'types';
@@ -366,14 +400,60 @@ declare module '@ibti-tech/chatbot/contexts/Chatbot/useChatbotSuggestedQuestions
366
400
  //# sourceMappingURL=useChatbotSuggestedQuestions.d.ts.map
367
401
  }
368
402
  declare module '@ibti-tech/chatbot/contexts/Chatbot/useChatbotSuggestedQuestions.d.ts' {
369
- {"version":3,"file":"useChatbotSuggestedQuestions.d.ts","sourceRoot":"","sources":["../../../../../home/juan/projetos/ibti/chatbot/ibti-chatbot/src/contexts/Chatbot/useChatbotSuggestedQuestions.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,MAAM,OAAO,CAAA;AAEpC,MAAM,MAAM,mCAAmC,GAAG;IAChD,WAAW,EAAE,YAAY,CAAC,eAAe,EAAE,CAAA;IAC3C,MAAM,EAAE,MAAM,CAAA;IACd,MAAM,EAAE,YAAY,CAAC,MAAM,CAAA;CAC5B,CAAA;AAED,eAAO,MAAM,4BAA4B,qCAItC,mCAAmC;;;;;CA2BrC,CAAA"}
403
+ {"version":3,"file":"useChatbotSuggestedQuestions.d.ts","sourceRoot":"","sources":["../../../../../home/runner/work/ibti-chatbot/ibti-chatbot/src/contexts/Chatbot/useChatbotSuggestedQuestions.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,MAAM,OAAO,CAAA;AAEpC,MAAM,MAAM,mCAAmC,GAAG;IAChD,WAAW,EAAE,YAAY,CAAC,eAAe,EAAE,CAAA;IAC3C,MAAM,EAAE,MAAM,CAAA;IACd,MAAM,EAAE,YAAY,CAAC,MAAM,CAAA;CAC5B,CAAA;AAED,eAAO,MAAM,4BAA4B,GAAI,kCAI1C,mCAAmC;;;;;CA2BrC,CAAA"}
404
+ }
405
+ declare module '@ibti-tech/chatbot/cookies/chat' {
406
+ import { ChatbotTypes } from 'types';
407
+ /**
408
+ * Manages chat conversation persistence in localStorage (client-side) or cookies (server-side).
409
+ * Automatically cleans up conversations older than 24 hours.
410
+ * Migrates data from cookies to localStorage automatically.
411
+ */
412
+ export class ChatCookieManager {
413
+ storageKey: string;
414
+ cookieKey: string;
415
+ maxAgeInHours: number;
416
+ /**
417
+ * Validates that the data can be safely serialized to JSON
418
+ * @param data - Data to validate
419
+ * @throws Error if data cannot be serialized
420
+ */
421
+ checkValidJSONData(data: any): void;
422
+ /**
423
+ * Checks if the stored data has expired based on creation timestamp
424
+ * @param createdAt - ISO timestamp string when data was created
425
+ * @returns true if data is older than maxAgeInHours
426
+ */
427
+ isDataExpired(createdAt: string): boolean;
428
+ /**
429
+ * Migrates data from cookies to localStorage if cookies exist and localStorage doesn't
430
+ * @returns true if migration was performed
431
+ */
432
+ migrateFromCookies(): boolean;
433
+ /**
434
+ * Retrieves chat messages from localStorage (client-side) or cookies (server-side).
435
+ * Automatically migrates from cookies to localStorage and cleans expired data.
436
+ * @returns Array of chat messages, empty array if none found or expired
437
+ */
438
+ getData(): ChatbotTypes.ChatMessage[];
439
+ /**
440
+ * Saves chat messages to localStorage (client-side) or cookies (server-side).
441
+ * Data expires after 24 hours (checked on read, not enforced by storage).
442
+ * @param data - Array of chat messages to persist
443
+ */
444
+ saveData(data: ChatbotTypes.ChatMessage[]): void;
445
+ }
446
+ //# sourceMappingURL=chat.d.ts.map
447
+ }
448
+ declare module '@ibti-tech/chatbot/cookies/chat.d.ts' {
449
+ {"version":3,"file":"chat.d.ts","sourceRoot":"","sources":["../../../../home/runner/work/ibti-chatbot/ibti-chatbot/src/cookies/chat.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,OAAO,CAAA;AAWpC;;;;GAIG;AACH,qBAAa,iBAAiB;IAC5B,UAAU,SAAqB;IAC/B,SAAS,SAAqB;IAC9B,aAAa,SAAK;IAElB;;;;OAIG;IACH,kBAAkB,CAAC,IAAI,EAAE,GAAG;IAQ5B;;;;OAIG;IACH,aAAa,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO;IAOzC;;;OAGG;IACH,kBAAkB,IAAI,OAAO;IA6C7B;;;;OAIG;IACH,OAAO,IAAI,YAAY,CAAC,WAAW,EAAE;IAoErC;;;;OAIG;IACH,QAAQ,CAAC,IAAI,EAAE,YAAY,CAAC,WAAW,EAAE;CAiD1C"}
370
450
  }
371
451
  declare module '@ibti-tech/chatbot/events/assistant-answer' {
372
452
  export const dispatchAssitantAnswer: () => void;
373
453
  //# sourceMappingURL=assistant-answer.d.ts.map
374
454
  }
375
455
  declare module '@ibti-tech/chatbot/events/assistant-answer.d.ts' {
376
- {"version":3,"file":"assistant-answer.d.ts","sourceRoot":"","sources":["../../../../home/juan/projetos/ibti/chatbot/ibti-chatbot/src/events/assistant-answer.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,sBAAsB,YAGlC,CAAA"}
456
+ {"version":3,"file":"assistant-answer.d.ts","sourceRoot":"","sources":["../../../../home/runner/work/ibti-chatbot/ibti-chatbot/src/events/assistant-answer.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,sBAAsB,YAGlC,CAAA"}
377
457
  }
378
458
  declare module '@ibti-tech/chatbot/events/eventNames' {
379
459
  export const CUSTOM_EVENT_NAMES: {
@@ -382,7 +462,18 @@ declare module '@ibti-tech/chatbot/events/eventNames' {
382
462
  //# sourceMappingURL=eventNames.d.ts.map
383
463
  }
384
464
  declare module '@ibti-tech/chatbot/events/eventNames.d.ts' {
385
- {"version":3,"file":"eventNames.d.ts","sourceRoot":"","sources":["../../../../home/juan/projetos/ibti/chatbot/ibti-chatbot/src/events/eventNames.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,kBAAkB;;CAE9B,CAAA"}
465
+ {"version":3,"file":"eventNames.d.ts","sourceRoot":"","sources":["../../../../home/runner/work/ibti-chatbot/ibti-chatbot/src/events/eventNames.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,kBAAkB;;CAE9B,CAAA"}
466
+ }
467
+ declare module '@ibti-tech/chatbot/hooks/useChatbotTexts' {
468
+ import { LocaleTerms } from 'i18n/LocaleTerms';
469
+ /**
470
+ * Hook to get chatbot texts, using custom texts if provided, otherwise using default i18n texts
471
+ */
472
+ export const useChatbotTexts: () => LocaleTerms;
473
+ //# sourceMappingURL=useChatbotTexts.d.ts.map
474
+ }
475
+ declare module '@ibti-tech/chatbot/hooks/useChatbotTexts.d.ts' {
476
+ {"version":3,"file":"useChatbotTexts.d.ts","sourceRoot":"","sources":["../../../../home/runner/work/ibti-chatbot/ibti-chatbot/src/hooks/useChatbotTexts.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAA;AAG9C;;GAEG;AACH,eAAO,MAAM,eAAe,QAAO,WAuHlC,CAAA"}
386
477
  }
387
478
  declare module '@ibti-tech/chatbot/hooks/useElementScroll' {
388
479
  import { RefObject } from 'react';
@@ -395,14 +486,14 @@ declare module '@ibti-tech/chatbot/hooks/useElementScroll' {
395
486
  //# sourceMappingURL=useElementScroll.d.ts.map
396
487
  }
397
488
  declare module '@ibti-tech/chatbot/hooks/useElementScroll.d.ts' {
398
- {"version":3,"file":"useElementScroll.d.ts","sourceRoot":"","sources":["../../../../home/juan/projetos/ibti/chatbot/ibti-chatbot/src/hooks/useElementScroll.ts"],"names":[],"mappings":"AAAA,OAAO,EAA+B,SAAS,EAAE,MAAM,OAAO,CAAA;AAE9D,eAAO,MAAM,gBAAgB,eAAgB,UAAU,cAAc,CAAC;;;;CA+DrE,CAAA;AAED,eAAe,gBAAgB,CAAA"}
489
+ {"version":3,"file":"useElementScroll.d.ts","sourceRoot":"","sources":["../../../../home/runner/work/ibti-chatbot/ibti-chatbot/src/hooks/useElementScroll.ts"],"names":[],"mappings":"AAAA,OAAO,EAA+B,SAAS,EAAE,MAAM,OAAO,CAAA;AAE9D,eAAO,MAAM,gBAAgB,GAAI,YAAY,SAAS,CAAC,cAAc,CAAC;;;;CA+DrE,CAAA;AAED,eAAe,gBAAgB,CAAA"}
399
490
  }
400
491
  declare module '@ibti-tech/chatbot/hooks/useI18n' {
401
492
  export const useI18n: () => import("@ibti-tech/chatbot/i18n/LocaleTerms").LocaleTerms;
402
493
  //# sourceMappingURL=useI18n.d.ts.map
403
494
  }
404
495
  declare module '@ibti-tech/chatbot/hooks/useI18n.d.ts' {
405
- {"version":3,"file":"useI18n.d.ts","sourceRoot":"","sources":["../../../../home/juan/projetos/ibti/chatbot/ibti-chatbot/src/hooks/useI18n.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,OAAO,iDAInB,CAAA"}
496
+ {"version":3,"file":"useI18n.d.ts","sourceRoot":"","sources":["../../../../home/runner/work/ibti-chatbot/ibti-chatbot/src/hooks/useI18n.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,OAAO,iDAInB,CAAA"}
406
497
  }
407
498
  declare module '@ibti-tech/chatbot/hooks/useUpdatedTime' {
408
499
  export type UseUpdatedTimeOptions = {
@@ -414,7 +505,7 @@ declare module '@ibti-tech/chatbot/hooks/useUpdatedTime' {
414
505
  //# sourceMappingURL=useUpdatedTime.d.ts.map
415
506
  }
416
507
  declare module '@ibti-tech/chatbot/hooks/useUpdatedTime.d.ts' {
417
- {"version":3,"file":"useUpdatedTime.d.ts","sourceRoot":"","sources":["../../../../home/juan/projetos/ibti/chatbot/ibti-chatbot/src/hooks/useUpdatedTime.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,qBAAqB,GAAG;IAClC,iBAAiB,EAAE,MAAM,CAAA;CAC1B,CAAA;AAED,eAAO,MAAM,cAAc,2BAExB,qBAAqB;;CAiBvB,CAAA"}
508
+ {"version":3,"file":"useUpdatedTime.d.ts","sourceRoot":"","sources":["../../../../home/runner/work/ibti-chatbot/ibti-chatbot/src/hooks/useUpdatedTime.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,qBAAqB,GAAG;IAClC,iBAAiB,EAAE,MAAM,CAAA;CAC1B,CAAA;AAED,eAAO,MAAM,cAAc,GAAI,wBAE5B,qBAAqB;;CAiBvB,CAAA"}
418
509
  }
419
510
  declare module '@ibti-tech/chatbot/i18n/LocaleTerms' {
420
511
  export interface LocaleTerms {
@@ -428,6 +519,7 @@ declare module '@ibti-tech/chatbot/i18n/LocaleTerms' {
428
519
  LOADING: string;
429
520
  WRITING: string;
430
521
  UNAVAILABLE: string;
522
+ INACTIVE: string;
431
523
  };
432
524
  CHATBOT_BAR: {
433
525
  OPEN: string;
@@ -443,12 +535,20 @@ declare module '@ibti-tech/chatbot/i18n/LocaleTerms' {
443
535
  MESSAGE_FIELD: string;
444
536
  SUBMIT_BUTTON: string;
445
537
  CLOSE_BUTTON: string;
538
+ RATE: string;
539
+ };
540
+ MESSAGE_ACTIONS: {
541
+ COPY: string;
542
+ SHARE: string;
543
+ RESEND: string;
446
544
  };
545
+ USER_LABEL: string;
546
+ WRITING_MESSAGE: string;
447
547
  }
448
548
  //# sourceMappingURL=LocaleTerms.d.ts.map
449
549
  }
450
550
  declare module '@ibti-tech/chatbot/i18n/LocaleTerms.d.ts' {
451
- {"version":3,"file":"LocaleTerms.d.ts","sourceRoot":"","sources":["../../../../home/juan/projetos/ibti/chatbot/ibti-chatbot/src/i18n/LocaleTerms.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,WAAW;IAC1B,YAAY,EAAE,MAAM,CAAA;IACpB,iBAAiB,EAAE,MAAM,CAAA;IACzB,MAAM,EAAE;QACN,OAAO,EAAE,MAAM,CAAA;KAChB,CAAA;IACD,MAAM,EAAE;QACN,MAAM,EAAE,MAAM,CAAA;QACd,OAAO,EAAE,MAAM,CAAA;QACf,OAAO,EAAE,MAAM,CAAA;QACf,WAAW,EAAE,MAAM,CAAA;KACpB,CAAA;IACD,WAAW,EAAE;QACX,IAAI,EAAE,MAAM,CAAA;QACZ,KAAK,EAAE,MAAM,CAAA;KACd,CAAA;IACD,mBAAmB,EAAE;QACnB,KAAK,EAAE,MAAM,CAAA;QACb,OAAO,EAAE,MAAM,CAAA;KAChB,CAAA;IACD,aAAa,EAAE;QACb,KAAK,EAAE,MAAM,CAAA;QACb,WAAW,EAAE,MAAM,CAAA;QACnB,aAAa,EAAE,MAAM,CAAA;QACrB,aAAa,EAAE,MAAM,CAAA;QACrB,YAAY,EAAE,MAAM,CAAA;KACrB,CAAA;CACF"}
551
+ {"version":3,"file":"LocaleTerms.d.ts","sourceRoot":"","sources":["../../../../home/runner/work/ibti-chatbot/ibti-chatbot/src/i18n/LocaleTerms.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,WAAW;IAC1B,YAAY,EAAE,MAAM,CAAA;IACpB,iBAAiB,EAAE,MAAM,CAAA;IACzB,MAAM,EAAE;QACN,OAAO,EAAE,MAAM,CAAA;KAChB,CAAA;IACD,MAAM,EAAE;QACN,MAAM,EAAE,MAAM,CAAA;QACd,OAAO,EAAE,MAAM,CAAA;QACf,OAAO,EAAE,MAAM,CAAA;QACf,WAAW,EAAE,MAAM,CAAA;QACnB,QAAQ,EAAE,MAAM,CAAA;KACjB,CAAA;IACD,WAAW,EAAE;QACX,IAAI,EAAE,MAAM,CAAA;QACZ,KAAK,EAAE,MAAM,CAAA;KACd,CAAA;IACD,mBAAmB,EAAE;QACnB,KAAK,EAAE,MAAM,CAAA;QACb,OAAO,EAAE,MAAM,CAAA;KAChB,CAAA;IACD,aAAa,EAAE;QACb,KAAK,EAAE,MAAM,CAAA;QACb,WAAW,EAAE,MAAM,CAAA;QACnB,aAAa,EAAE,MAAM,CAAA;QACrB,aAAa,EAAE,MAAM,CAAA;QACrB,YAAY,EAAE,MAAM,CAAA;QACpB,IAAI,EAAE,MAAM,CAAA;KACb,CAAA;IACD,eAAe,EAAE;QACf,IAAI,EAAE,MAAM,CAAA;QACZ,KAAK,EAAE,MAAM,CAAA;QACb,MAAM,EAAE,MAAM,CAAA;KACf,CAAA;IACD,UAAU,EAAE,MAAM,CAAA;IAClB,eAAe,EAAE,MAAM,CAAA;CACxB"}
452
552
  }
453
553
  declare module '@ibti-tech/chatbot/i18n/index' {
454
554
  import { ChatbotTypes } from 'types';
@@ -459,25 +559,19 @@ declare module '@ibti-tech/chatbot/i18n/index' {
459
559
  //# sourceMappingURL=index.d.ts.map
460
560
  }
461
561
  declare module '@ibti-tech/chatbot/i18n/index.d.ts' {
462
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../home/juan/projetos/ibti/chatbot/ibti-chatbot/src/i18n/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,OAAO,CAAA;AACpC,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;AAI3C,eAAO,MAAM,OAAO,0BAA2B,CAAA;AAE/C,eAAO,MAAM,IAAI,EAAE,MAAM,CAAC,YAAY,CAAC,MAAM,EAAE,WAAW,CAGzD,CAAA;AAED,eAAO,MAAM,eAAe,SAAU,aAAa,MAAM,gBAAe,CAAA"}
562
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../home/runner/work/ibti-chatbot/ibti-chatbot/src/i18n/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,OAAO,CAAA;AACpC,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;AAI3C,eAAO,MAAM,OAAO,0BAA2B,CAAA;AAE/C,eAAO,MAAM,IAAI,EAAE,MAAM,CAAC,YAAY,CAAC,MAAM,EAAE,WAAW,CAGzD,CAAA;AAED,eAAO,MAAM,eAAe,GAAI,MAAM,YAAY,CAAC,MAAM,gBAAe,CAAA"}
463
563
  }
464
564
  declare module '@ibti-tech/chatbot/index' {
465
565
  export { useChatbot } from 'contexts/Chatbot/useChatbot';
466
566
  export { ChatbotContext } from 'contexts/Chatbot/context';
467
567
  export { ChatbotProvider } from 'contexts/Chatbot/provider';
468
- export { ChatbotBar } from 'components/ChatbotBar';
568
+ export { ChatbotBar, type ChatbotBarProps } from 'components/ChatbotBar';
469
569
  export { ChatbotDevice } from 'components/ChatbotDevice';
570
+ export type { ChatbotTypes } from 'types';
470
571
  //# sourceMappingURL=index.d.ts.map
471
572
  }
472
573
  declare module '@ibti-tech/chatbot/index.d.ts' {
473
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../home/juan/projetos/ibti/chatbot/ibti-chatbot/src/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,6BAA6B,CAAA;AACxD,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAA;AACzD,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAA;AAC3D,OAAO,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAA;AAClD,OAAO,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAA"}
474
- }
475
- declare module '@ibti-tech/chatbot/index.spec' {
476
- export {};
477
- //# sourceMappingURL=index.spec.d.ts.map
478
- }
479
- declare module '@ibti-tech/chatbot/index.spec.d.ts' {
480
- {"version":3,"file":"index.spec.d.ts","sourceRoot":"","sources":["../../../home/juan/projetos/ibti/chatbot/ibti-chatbot/src/index.spec.tsx"],"names":[],"mappings":""}
574
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../home/runner/work/ibti-chatbot/ibti-chatbot/src/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,6BAA6B,CAAA;AACxD,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAA;AACzD,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAA;AAC3D,OAAO,EAAE,UAAU,EAAE,KAAK,eAAe,EAAE,MAAM,uBAAuB,CAAA;AACxE,OAAO,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAA;AACxD,YAAY,EAAE,YAAY,EAAE,MAAM,OAAO,CAAA"}
481
575
  }
482
576
  declare module '@ibti-tech/chatbot/mocks/chatHistory' {
483
577
  export const chatHistoryMocked: readonly [{
@@ -541,7 +635,7 @@ declare module '@ibti-tech/chatbot/mocks/chatHistory' {
541
635
  //# sourceMappingURL=chatHistory.d.ts.map
542
636
  }
543
637
  declare module '@ibti-tech/chatbot/mocks/chatHistory.d.ts' {
544
- {"version":3,"file":"chatHistory.d.ts","sourceRoot":"","sources":["../../../../home/juan/projetos/ibti/chatbot/ibti-chatbot/src/mocks/chatHistory.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA4EpB,CAAA;AAEV,eAAe,iBAAiB,CAAA"}
638
+ {"version":3,"file":"chatHistory.d.ts","sourceRoot":"","sources":["../../../../home/runner/work/ibti-chatbot/ibti-chatbot/src/mocks/chatHistory.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA4EpB,CAAA;AAEV,eAAe,iBAAiB,CAAA"}
545
639
  }
546
640
  declare module '@ibti-tech/chatbot/services/chatbot-api' {
547
641
  import { ChatbotTypes } from 'types';
@@ -551,7 +645,6 @@ declare module '@ibti-tech/chatbot/services/chatbot-api' {
551
645
  apiURL: string;
552
646
  onReceiving: (receivedMessage: string, receivedPart: string) => void;
553
647
  onDone: () => void;
554
- onError: (err: unknown) => void;
555
648
  };
556
649
  export type GetSuggestedQuestions = {
557
650
  chatContext: Pick<ChatbotTypes.ChatMessage, 'content' | 'role'>[];
@@ -566,12 +659,20 @@ declare module '@ibti-tech/chatbot/services/chatbot-api' {
566
659
  ratingScore: number;
567
660
  description?: string;
568
661
  };
569
- export const sendChatContext: ({ chatContext, locale, onReceiving, onDone, apiURL, onError, }: SendNewQuestionOptions) => Promise<void>;
662
+ export const sendChatContext: ({ chatContext, locale, onReceiving, onDone, apiURL, }: SendNewQuestionOptions) => Promise<void>;
570
663
  export const sendUserChatFeedback: ({ apiURL, chatContext, locale, ratingScore, description, }: SendUserChatFeedbackParams) => Promise<Response>;
664
+ /**
665
+ * Checks if the API is available by making a lightweight request
666
+ * @param apiUrl - The API base URL
667
+ * @param locale - The locale for the request
668
+ * @returns Promise that resolves if API is available, rejects if not
669
+ */
670
+ export const checkApiHealth: (apiUrl: string, locale?: ChatbotTypes.Locale) => Promise<boolean>;
671
+ export const getWelcomeMessage: (apiUrl: string, locale?: ChatbotTypes.Locale) => Promise<string>;
571
672
  //# sourceMappingURL=chatbot-api.d.ts.map
572
673
  }
573
674
  declare module '@ibti-tech/chatbot/services/chatbot-api.d.ts' {
574
- {"version":3,"file":"chatbot-api.d.ts","sourceRoot":"","sources":["../../../../home/juan/projetos/ibti/chatbot/ibti-chatbot/src/services/chatbot-api.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,OAAO,CAAA;AAEpC,MAAM,MAAM,sBAAsB,GAAG;IACnC,WAAW,EAAE,IAAI,CAAC,YAAY,CAAC,WAAW,EAAE,SAAS,GAAG,MAAM,CAAC,EAAE,CAAA;IACjE,MAAM,EAAE,YAAY,CAAC,MAAM,CAAA;IAC3B,MAAM,EAAE,MAAM,CAAA;IACd,WAAW,EAAE,CAAC,eAAe,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,KAAK,IAAI,CAAA;IACpE,MAAM,EAAE,MAAM,IAAI,CAAA;IAClB,OAAO,EAAE,CAAC,GAAG,EAAE,OAAO,KAAK,IAAI,CAAA;CAChC,CAAA;AAED,MAAM,MAAM,qBAAqB,GAAG;IAClC,WAAW,EAAE,IAAI,CAAC,YAAY,CAAC,WAAW,EAAE,SAAS,GAAG,MAAM,CAAC,EAAE,CAAA;IACjE,MAAM,EAAE,YAAY,CAAC,MAAM,CAAA;IAC3B,MAAM,EAAE,MAAM,CAAA;CACf,CAAA;AAED,MAAM,MAAM,oBAAoB,GAAG,MAAM,CAAA;AAEzC,MAAM,MAAM,0BAA0B,GAAG;IACvC,MAAM,EAAE,YAAY,CAAC,MAAM,CAAA;IAC3B,MAAM,EAAE,MAAM,CAAA;IACd,WAAW,EAAE,IAAI,CAAC,YAAY,CAAC,WAAW,EAAE,SAAS,GAAG,MAAM,CAAC,EAAE,CAAA;IACjE,WAAW,EAAE,MAAM,CAAA;IACnB,WAAW,CAAC,EAAE,MAAM,CAAA;CACrB,CAAA;AAED,eAAO,MAAM,eAAe,mEAOzB,sBAAsB,kBAsCnB,CAAA;AAyBN,eAAO,MAAM,oBAAoB,+DAM9B,0BAA0B,sBAYzB,CAAA"}
675
+ {"version":3,"file":"chatbot-api.d.ts","sourceRoot":"","sources":["../../../../home/runner/work/ibti-chatbot/ibti-chatbot/src/services/chatbot-api.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,OAAO,CAAA;AAEpC,MAAM,MAAM,sBAAsB,GAAG;IACnC,WAAW,EAAE,IAAI,CAAC,YAAY,CAAC,WAAW,EAAE,SAAS,GAAG,MAAM,CAAC,EAAE,CAAA;IACjE,MAAM,EAAE,YAAY,CAAC,MAAM,CAAA;IAC3B,MAAM,EAAE,MAAM,CAAA;IACd,WAAW,EAAE,CAAC,eAAe,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,KAAK,IAAI,CAAA;IACpE,MAAM,EAAE,MAAM,IAAI,CAAA;CACnB,CAAA;AAED,MAAM,MAAM,qBAAqB,GAAG;IAClC,WAAW,EAAE,IAAI,CAAC,YAAY,CAAC,WAAW,EAAE,SAAS,GAAG,MAAM,CAAC,EAAE,CAAA;IACjE,MAAM,EAAE,YAAY,CAAC,MAAM,CAAA;IAC3B,MAAM,EAAE,MAAM,CAAA;CACf,CAAA;AAED,MAAM,MAAM,oBAAoB,GAAG,MAAM,CAAA;AAEzC,MAAM,MAAM,0BAA0B,GAAG;IACvC,MAAM,EAAE,YAAY,CAAC,MAAM,CAAA;IAC3B,MAAM,EAAE,MAAM,CAAA;IACd,WAAW,EAAE,IAAI,CAAC,YAAY,CAAC,WAAW,EAAE,SAAS,GAAG,MAAM,CAAC,EAAE,CAAA;IACjE,WAAW,EAAE,MAAM,CAAA;IACnB,WAAW,CAAC,EAAE,MAAM,CAAA;CACrB,CAAA;AAED,eAAO,MAAM,eAAe,GAAU,uDAMnC,sBAAsB,kBAuCrB,CAAA;AAyBJ,eAAO,MAAM,oBAAoB,GAAU,4DAMxC,0BAA0B,sBAYzB,CAAA;AAEJ;;;;;GAKG;AACH,eAAO,MAAM,cAAc,GACzB,QAAQ,MAAM,EACd,SAAQ,YAAY,CAAC,MAAa,KACjC,OAAO,CAAC,OAAO,CAkCjB,CAAA;AAED,eAAO,MAAM,iBAAiB,GAC5B,QAAQ,MAAM,EACd,SAAQ,YAAY,CAAC,MAAa,oBAenC,CAAA"}
575
676
  }
576
677
  declare module '@ibti-tech/chatbot/themes/index' {
577
678
  export const themes: {
@@ -661,7 +762,7 @@ declare module '@ibti-tech/chatbot/themes/index' {
661
762
  //# sourceMappingURL=index.d.ts.map
662
763
  }
663
764
  declare module '@ibti-tech/chatbot/themes/index.d.ts' {
664
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../home/juan/projetos/ibti/chatbot/ibti-chatbot/src/themes/index.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAGlB,CAAA"}
765
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../home/runner/work/ibti-chatbot/ibti-chatbot/src/themes/index.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAGlB,CAAA"}
665
766
  }
666
767
  declare module '@ibti-tech/chatbot/types/index' {
667
768
  export namespace ChatbotTypes {
@@ -672,6 +773,7 @@ declare module '@ibti-tech/chatbot/types/index' {
672
773
  timestamp: string;
673
774
  role: 'user' | 'assistant';
674
775
  content: string;
776
+ error?: boolean;
675
777
  };
676
778
  type ChatContextItem = {
677
779
  role: 'user' | 'assistant';
@@ -682,11 +784,51 @@ declare module '@ibti-tech/chatbot/types/index' {
682
784
  apiURL?: string;
683
785
  additionalInstructions?: string;
684
786
  }
787
+ interface CustomTexts {
788
+ CHATBOT_NAME?: string;
789
+ INPUT_PLACEHOLDER?: string;
790
+ CHATBOT_BAR?: {
791
+ OPEN?: string;
792
+ CLOSE?: string;
793
+ };
794
+ CHAT_FEEDBACK?: {
795
+ TITLE?: string;
796
+ DESCRIPTION?: string;
797
+ MESSAGE_FIELD?: string;
798
+ SUBMIT_BUTTON?: string;
799
+ CLOSE_BUTTON?: string;
800
+ RATE?: string;
801
+ };
802
+ SUGGESTED_QUESTIONS?: {
803
+ TITLE?: string;
804
+ LOADING?: string;
805
+ };
806
+ STATUS?: {
807
+ ONLINE?: string;
808
+ LOADING?: string;
809
+ WRITING?: string;
810
+ UNAVAILABLE?: string;
811
+ INACTIVE?: string;
812
+ };
813
+ ERRORS?: {
814
+ UNKNOWN?: string;
815
+ };
816
+ MESSAGE_ACTIONS?: {
817
+ COPY?: string;
818
+ SHARE?: string;
819
+ RESEND?: string;
820
+ };
821
+ USER_LABEL?: string;
822
+ WRITING_MESSAGE?: string;
823
+ }
824
+ interface Texts {
825
+ [locale: string]: CustomTexts;
826
+ }
685
827
  }
686
828
  //# sourceMappingURL=index.d.ts.map
687
829
  }
688
830
  declare module '@ibti-tech/chatbot/types/index.d.ts' {
689
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../home/juan/projetos/ibti/chatbot/ibti-chatbot/src/types/index.ts"],"names":[],"mappings":"AAAA,yBAAiB,YAAY,CAAC;IAC5B,KAAY,KAAK,GAAG,OAAO,GAAG,MAAM,CAAA;IAEpC,KAAY,MAAM,GAAG,OAAO,GAAG,IAAI,CAAA;IAEnC,KAAY,WAAW,GAAG;QACxB,EAAE,EAAE,MAAM,CAAA;QACV,SAAS,EAAE,MAAM,CAAA;QACjB,IAAI,EAAE,MAAM,GAAG,WAAW,CAAA;QAC1B,OAAO,EAAE,MAAM,CAAA;KAChB,CAAA;IAED,KAAY,eAAe,GAAG;QAC5B,IAAI,EAAE,MAAM,GAAG,WAAW,CAAA;QAC1B,OAAO,EAAE,MAAM,CAAA;KAChB,CAAA;IAED,KAAY,MAAM,GAAG,SAAS,GAAG,SAAS,GAAG,QAAQ,GAAG,aAAa,CAAA;IAErE,UAAiB,MAAM;QACrB,MAAM,CAAC,EAAE,MAAM,CAAA;QACf,sBAAsB,CAAC,EAAE,MAAM,CAAA;KAChC;CACF"}
831
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../home/runner/work/ibti-chatbot/ibti-chatbot/src/types/index.ts"],"names":[],"mappings":"AAAA,yBAAiB,YAAY,CAAC;IAC5B,KAAY,KAAK,GAAG,OAAO,GAAG,MAAM,CAAA;IAEpC,KAAY,MAAM,GAAG,OAAO,GAAG,IAAI,CAAA;IAEnC,KAAY,WAAW,GAAG;QACxB,EAAE,EAAE,MAAM,CAAA;QACV,SAAS,EAAE,MAAM,CAAA;QACjB,IAAI,EAAE,MAAM,GAAG,WAAW,CAAA;QAC1B,OAAO,EAAE,MAAM,CAAA;QACf,KAAK,CAAC,EAAE,OAAO,CAAA;KAChB,CAAA;IAED,KAAY,eAAe,GAAG;QAC5B,IAAI,EAAE,MAAM,GAAG,WAAW,CAAA;QAC1B,OAAO,EAAE,MAAM,CAAA;KAChB,CAAA;IAED,KAAY,MAAM,GAAG,SAAS,GAAG,SAAS,GAAG,QAAQ,GAAG,aAAa,CAAA;IAErE,UAAiB,MAAM;QACrB,MAAM,CAAC,EAAE,MAAM,CAAA;QACf,sBAAsB,CAAC,EAAE,MAAM,CAAA;KAChC;IAED,UAAiB,WAAW;QAC1B,YAAY,CAAC,EAAE,MAAM,CAAA;QACrB,iBAAiB,CAAC,EAAE,MAAM,CAAA;QAC1B,WAAW,CAAC,EAAE;YACZ,IAAI,CAAC,EAAE,MAAM,CAAA;YACb,KAAK,CAAC,EAAE,MAAM,CAAA;SACf,CAAA;QACD,aAAa,CAAC,EAAE;YACd,KAAK,CAAC,EAAE,MAAM,CAAA;YACd,WAAW,CAAC,EAAE,MAAM,CAAA;YACpB,aAAa,CAAC,EAAE,MAAM,CAAA;YACtB,aAAa,CAAC,EAAE,MAAM,CAAA;YACtB,YAAY,CAAC,EAAE,MAAM,CAAA;YACrB,IAAI,CAAC,EAAE,MAAM,CAAA;SACd,CAAA;QACD,mBAAmB,CAAC,EAAE;YACpB,KAAK,CAAC,EAAE,MAAM,CAAA;YACd,OAAO,CAAC,EAAE,MAAM,CAAA;SACjB,CAAA;QACD,MAAM,CAAC,EAAE;YACP,MAAM,CAAC,EAAE,MAAM,CAAA;YACf,OAAO,CAAC,EAAE,MAAM,CAAA;YAChB,OAAO,CAAC,EAAE,MAAM,CAAA;YAChB,WAAW,CAAC,EAAE,MAAM,CAAA;YACpB,QAAQ,CAAC,EAAE,MAAM,CAAA;SAClB,CAAA;QACD,MAAM,CAAC,EAAE;YACP,OAAO,CAAC,EAAE,MAAM,CAAA;SACjB,CAAA;QACD,eAAe,CAAC,EAAE;YAChB,IAAI,CAAC,EAAE,MAAM,CAAA;YACb,KAAK,CAAC,EAAE,MAAM,CAAA;YACd,MAAM,CAAC,EAAE,MAAM,CAAA;SAChB,CAAA;QACD,UAAU,CAAC,EAAE,MAAM,CAAA;QACnB,eAAe,CAAC,EAAE,MAAM,CAAA;KACzB;IAED,UAAiB,KAAK;QACpB,CAAC,MAAM,EAAE,MAAM,GAAG,WAAW,CAAA;KAC9B;CACF"}
690
832
  }
691
833
  declare module '@ibti-tech/chatbot/utils/formatMessageTime' {
692
834
  import { ChatbotTypes } from 'types';
@@ -694,7 +836,7 @@ declare module '@ibti-tech/chatbot/utils/formatMessageTime' {
694
836
  //# sourceMappingURL=formatMessageTime.d.ts.map
695
837
  }
696
838
  declare module '@ibti-tech/chatbot/utils/formatMessageTime.d.ts' {
697
- {"version":3,"file":"formatMessageTime.d.ts","sourceRoot":"","sources":["../../../../home/juan/projetos/ibti/chatbot/ibti-chatbot/src/utils/formatMessageTime.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,OAAO,CAAA;AAEpC,eAAO,MAAM,iBAAiB,YACnB,MAAM,kBACC,MAAM,UACd,aAAa,MAAM,WAG5B,CAAA"}
839
+ {"version":3,"file":"formatMessageTime.d.ts","sourceRoot":"","sources":["../../../../home/runner/work/ibti-chatbot/ibti-chatbot/src/utils/formatMessageTime.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,OAAO,CAAA;AAEpC,eAAO,MAAM,iBAAiB,GAC5B,SAAS,MAAM,EACf,gBAAgB,MAAM,EACtB,QAAQ,YAAY,CAAC,MAAM,WAG5B,CAAA"}
698
840
  }
699
841
  declare module '@ibti-tech/chatbot' {
700
842
  import main = require('@ibti-tech/chatbot/src/index');