@ibti-tech/chatbot 0.8.0 → 0.8.5

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 CHANGED
@@ -21,7 +21,7 @@ npm install @ibti-tech/chatbot
21
21
  ## Usage (React)
22
22
 
23
23
  ```jsx
24
- import { ChatbotProvider, ChatbotBar } from '@ibti-tech/chatbot'
24
+ import { ChatbotProvider, ChatbotBar, useChatbot } from '@ibti-tech/chatbot'
25
25
 
26
26
  function App() {
27
27
  return (
@@ -37,6 +37,8 @@ function App() {
37
37
  }
38
38
  ```
39
39
 
40
+ All public types (e.g. `ChatbotTypes`, `ChatbotBarProps`) and parameters are documented with JSDoc in English in the source—your IDE will show parameter names, types, and descriptions on hover.
41
+
40
42
  ### Main props
41
43
 
42
44
  **ChatbotProvider**
@@ -58,9 +60,33 @@ function App() {
58
60
  | `horizontalPosition` | `'left' \| 'right'` | `'right'` | Bar alignment |
59
61
  | `deviceHorizontalPosition`| `'left' \| 'right' \| 'center' \| string` | — | Device position on desktop (or e.g. `'20px'`, `'calc(100% - 200px)'`) |
60
62
  | `pushContentDown` | `boolean` | `false` | If `true` and `verticalPosition="top"`, widget pushes content down instead of overlaying |
63
+ | `pushContentDownBarHeight`| `number` | `32` | Height in px of the bar when pushContentDown (24–120). |
61
64
  | `zIndex`, `topOffset`, `aboveHeader` | — | — | Optional layout/stacking |
62
65
 
63
- When using `pushContentDown={true}` with `verticalPosition="top"`, render `ChatbotBar` **before** your header/main content so it appears at the top.
66
+ When using `pushContentDown={true}` with `verticalPosition="top"`, the bar is fixed at the top and the widget adds the class `ibti-chatbot-push-down` and CSS variable `--ibti-chatbot-bar-height` (default 32px) to `body`. To avoid extra vertical scroll and keep your content below the bar, reserve the top space in your layout, for example:
67
+
68
+ ```css
69
+ body.ibti-chatbot-push-down .your-main-content {
70
+ padding-top: var(--ibti-chatbot-bar-height, 32px);
71
+ min-height: calc(100vh - var(--ibti-chatbot-bar-height, 32px));
72
+ }
73
+ ```
74
+
75
+ ### Types (`ChatbotTypes`)
76
+
77
+ Import: `import type { ChatbotTypes } from '@ibti-tech/chatbot'`
78
+
79
+ | Type | Description |
80
+ |------|-------------|
81
+ | `Theme` | `'light' \| 'dark'` |
82
+ | `Locale` | `'pt-BR' \| 'en'` |
83
+ | `CustomColors` | `{ primaryColor?, headerBackground?, userBalloonColor? }` (hex or rgb) |
84
+ | `ChatMessage` | `{ id, timestamp, role, content, error? }` — one message in the thread |
85
+ | `ChatContextItem` | `{ role, content }` — minimal shape for API context |
86
+ | `Status` | `'writing' \| 'loading' \| 'online' \| 'unavailable'` |
87
+ | `InitializationStatus` | `'loading' \| 'domain_not_allowed' \| 'error' \| 'ready'` |
88
+ | `ChatbotPublicResponse` | Response of GET `/chatbots/public/:hash` (id, name, domain, etc.) |
89
+ | `CustomTexts` / `Texts` | Override UI strings per locale (see JSDoc in `types/index.ts`) |
64
90
 
65
91
  ## Embed (no React)
66
92
 
package/dist/index.d.ts CHANGED
@@ -55,56 +55,46 @@ declare module '@ibti-tech/chatbot/components/ChatUserFeedbackRating/styles.d.ts
55
55
  }
56
56
  declare module '@ibti-tech/chatbot/components/ChatbotBar/index' {
57
57
  import React from 'react';
58
+ /**
59
+ * Props for the ChatbotBar component (toggle button + floating chat panel).
60
+ * Use with ChatbotProvider; positioning is relative to viewport unless pushContentDown is used.
61
+ */
58
62
  export type ChatbotBarProps = {
63
+ /** Vertical anchor: 'top' | 'bottom'. Default: 'bottom'. */
59
64
  verticalPosition?: 'top' | 'bottom';
65
+ /** Horizontal anchor of the bar: 'left' | 'right'. Default: 'right'. */
60
66
  horizontalPosition?: 'left' | 'right';
61
67
  /**
62
- * Horizontal position of the ChatbotDevice on desktop.
63
- * Can be a predefined value ('left', 'right', 'center') or a custom value with any unit (e.g., '20px', '10%', '2rem', 'calc(100% - 200px)').
64
- * When using a custom value, it will be applied as the 'left' property.
65
- * If not provided, the device will use the parent container's positioning.
68
+ * Horizontal position of the chat panel on desktop.
69
+ * Predefined: 'left' | 'right' | 'center', or any CSS length (e.g. '20px', '10%', 'calc(100% - 200px)').
70
+ * Custom values are applied as the 'left' CSS property. Omit to use parent positioning.
66
71
  */
67
72
  deviceHorizontalPosition?: 'left' | 'right' | 'center' | string;
68
- /**
69
- * Custom z-index value. If not provided, uses theme.zIndex.modals
70
- * Useful when you need the chatbot to appear above specific elements like headers
71
- */
73
+ /** Custom z-index for the bar/panel. If omitted, uses theme.zIndex.modals. Use to appear above headers. */
72
74
  zIndex?: number;
73
- /**
74
- * Offset from the top when verticalPosition is 'top'
75
- * Can be a number (in pixels) or a string (e.g., '100px', '10rem')
76
- * Useful to position the chatbot below a fixed header
77
- */
75
+ /** Offset from top when verticalPosition is 'top'. Number (px) or string (e.g. '100px', '10rem'). Use to sit below a fixed header. */
78
76
  topOffset?: string | number;
79
- /**
80
- * Convenient prop to position the chatbot above header elements
81
- * When true, sets z-index to 9999 and allows topOffset configuration
82
- */
77
+ /** When true, sets z-index to 9999 so the chatbot appears above header elements; use with topOffset. */
83
78
  aboveHeader?: boolean;
84
79
  /**
85
- * When true and verticalPosition is 'top', the chatbot will push content down
86
- * instead of overlaying it. The chatbot will occupy space in the document flow.
87
- * When false, the chatbot will be fixed and overlay the content.
80
+ * When true and verticalPosition is 'top', the bar takes space in the document flow (pushes content down)
81
+ * instead of overlaying. When false, the bar is fixed and overlays content.
88
82
  */
89
83
  pushContentDown?: boolean;
90
- /**
91
- * Background color of the push-content-down row (full-width bar) for light theme.
92
- * Does not affect the chatbot button. Accepts rgb(), hex (e.g. #e6e6e6), etc.
93
- * Default: rgb(230, 230, 230)
94
- */
84
+ /** Background of the push-content-down full-width row (light theme). Hex or rgb(). Default: rgb(230, 230, 230). */
95
85
  pushContentDownRowBackgroundLight?: string;
96
- /**
97
- * Background color of the push-content-down row (full-width bar) for dark theme.
98
- * Does not affect the chatbot button. Accepts rgb(), hex (e.g. #000000), etc.
99
- * Default: rgb(0, 0, 0)
100
- */
86
+ /** Background of the push-content-down full-width row (dark theme). Hex or rgb(). Default: rgb(0, 0, 0). */
101
87
  pushContentDownRowBackgroundDark?: string;
88
+ /** Height in px of the bar when pushContentDown is true (closed state). Default: 32. */
89
+ pushContentDownBarHeight?: number;
102
90
  };
103
- export const ChatbotBar: ({ verticalPosition, horizontalPosition, deviceHorizontalPosition, zIndex, topOffset, aboveHeader, pushContentDown, pushContentDownRowBackgroundLight, pushContentDownRowBackgroundDark, }: ChatbotBarProps) => React.JSX.Element;
91
+ /** Bar height in px when pushContentDown (closed state). Used for body class and CSS variable. */
92
+ export const PUSH_DOWN_BAR_HEIGHT_PX = 32;
93
+ export const ChatbotBar: ({ verticalPosition, horizontalPosition, deviceHorizontalPosition, zIndex, topOffset, aboveHeader, pushContentDown, pushContentDownRowBackgroundLight, pushContentDownRowBackgroundDark, pushContentDownBarHeight, }: ChatbotBarProps) => React.JSX.Element;
104
94
  //# sourceMappingURL=index.d.ts.map
105
95
  }
106
96
  declare module '@ibti-tech/chatbot/components/ChatbotBar/index.d.ts' {
107
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../home/runner/work/ibti-chatbot/ibti-chatbot/src/components/ChatbotBar/index.tsx"],"names":[],"mappings":"AAEA,OAAO,KAA8B,MAAM,OAAO,CAAA;AAIlD,MAAM,MAAM,eAAe,GAAG;IAC5B,gBAAgB,CAAC,EAAE,KAAK,GAAG,QAAQ,CAAA;IACnC,kBAAkB,CAAC,EAAE,MAAM,GAAG,OAAO,CAAA;IACrC;;;;;OAKG;IACH,wBAAwB,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,QAAQ,GAAG,MAAM,CAAA;IAC/D;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,CAAA;IACf;;;;OAIG;IACH,SAAS,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;IAC3B;;;OAGG;IACH,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB;;;;OAIG;IACH,eAAe,CAAC,EAAE,OAAO,CAAA;IACzB;;;;OAIG;IACH,iCAAiC,CAAC,EAAE,MAAM,CAAA;IAC1C;;;;OAIG;IACH,gCAAgC,CAAC,EAAE,MAAM,CAAA;CAC1C,CAAA;AAKD,eAAO,MAAM,UAAU,GAAI,2LAUxB,eAAe,sBAuFjB,CAAA"}
97
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../home/runner/work/ibti-chatbot/ibti-chatbot/src/components/ChatbotBar/index.tsx"],"names":[],"mappings":"AAEA,OAAO,KAA8B,MAAM,OAAO,CAAA;AAIlD;;;GAGG;AACH,MAAM,MAAM,eAAe,GAAG;IAC5B,4DAA4D;IAC5D,gBAAgB,CAAC,EAAE,KAAK,GAAG,QAAQ,CAAA;IACnC,wEAAwE;IACxE,kBAAkB,CAAC,EAAE,MAAM,GAAG,OAAO,CAAA;IACrC;;;;OAIG;IACH,wBAAwB,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,QAAQ,GAAG,MAAM,CAAA;IAC/D,2GAA2G;IAC3G,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,sIAAsI;IACtI,SAAS,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;IAC3B,wGAAwG;IACxG,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB;;;OAGG;IACH,eAAe,CAAC,EAAE,OAAO,CAAA;IACzB,mHAAmH;IACnH,iCAAiC,CAAC,EAAE,MAAM,CAAA;IAC1C,4GAA4G;IAC5G,gCAAgC,CAAC,EAAE,MAAM,CAAA;IACzC,wFAAwF;IACxF,wBAAwB,CAAC,EAAE,MAAM,CAAA;CAClC,CAAA;AAKD,kGAAkG;AAClG,eAAO,MAAM,uBAAuB,KAAK,CAAA;AAKzC,eAAO,MAAM,UAAU,GAAI,qNAWxB,eAAe,sBAgGjB,CAAA"}
108
98
  }
109
99
  declare module '@ibti-tech/chatbot/components/ChatbotBar/styles' {
110
100
  import { breakpoints } from '@ibti-tech/ui';
@@ -121,6 +111,7 @@ declare module '@ibti-tech/chatbot/components/ChatbotBar/styles' {
121
111
  /** Full-width row strip (pushContentDown + top). Background only; device sits on top with theme styles. */
122
112
  export const PushDownRow: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
123
113
  $background: string;
114
+ $barHeight: number;
124
115
  }>> & string;
125
116
  export const Wrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
126
117
  $verticalPosition: "top" | "bottom";
@@ -130,11 +121,12 @@ declare module '@ibti-tech/chatbot/components/ChatbotBar/styles' {
130
121
  $topOffset?: string | number;
131
122
  $aboveHeader?: boolean;
132
123
  $pushContentDown?: boolean;
124
+ $pushContentDownBarHeight?: number;
133
125
  }>> & string;
134
126
  //# sourceMappingURL=styles.d.ts.map
135
127
  }
136
128
  declare module '@ibti-tech/chatbot/components/ChatbotBar/styles.d.ts' {
137
- {"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;;oBAEgB,kBAAmB;;yBADrC,MAAM,GAAG,OAAO;gCACT,MAAM,GAAG,OAAO,GAAG,QAAQ,GAAG,MAAM;aACvD,OAAO;uBACG,KAAK,GAAG,QAAQ;uBAChB,OAAO;iMA4E3B,CAAA;AAED,2GAA2G;AAC3G,eAAO,MAAM,WAAW;iBAA6B,MAAM;YAS1D,CAAA;AAED,eAAO,MAAM,OAAO;uBACC,KAAK,GAAG,QAAQ;yBACd,MAAM,GAAG,OAAO;aAC5B,OAAO;cACN,MAAM;iBACH,MAAM,GAAG,MAAM;mBACb,OAAO;uBACH,OAAO;YA2H3B,CAAA"}
129
+ {"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;;oBAEgB,kBAAmB;;yBADrC,MAAM,GAAG,OAAO;gCACT,MAAM,GAAG,OAAO,GAAG,QAAQ,GAAG,MAAM;aACvD,OAAO;uBACG,KAAK,GAAG,QAAQ;uBAChB,OAAO;iMA4E3B,CAAA;AAED,2GAA2G;AAC3G,eAAO,MAAM,WAAW;iBAA6B,MAAM;gBAAc,MAAM;YAS9E,CAAA;AAED,eAAO,MAAM,OAAO;uBACC,KAAK,GAAG,QAAQ;yBACd,MAAM,GAAG,OAAO;aAC5B,OAAO;cACN,MAAM;iBACH,MAAM,GAAG,MAAM;mBACb,OAAO;uBACH,OAAO;gCACE,MAAM;YAgInC,CAAA"}
138
130
  }
139
131
  declare module '@ibti-tech/chatbot/components/ChatbotBody/index' {
140
132
  import React from 'react';
@@ -167,13 +159,15 @@ declare module '@ibti-tech/chatbot/components/ChatbotDevice/index' {
167
159
  * Default: undefined (uses parent container positioning)
168
160
  */
169
161
  horizontalPosition?: 'left' | 'right' | 'center' | string;
162
+ /** Height in px of the bar when pushContentDown (closed state). Default: 32. */
163
+ pushContentDownBarHeight?: number;
170
164
  };
171
- export const ChatbotDevice: ({ verticalPosition, pushContentDown, horizontalPosition, }: ChatbotDeviceProps) => React.JSX.Element;
165
+ export const ChatbotDevice: ({ verticalPosition, pushContentDown, horizontalPosition, pushContentDownBarHeight, }: ChatbotDeviceProps) => React.JSX.Element;
172
166
  export default ChatbotDevice;
173
167
  //# sourceMappingURL=index.d.ts.map
174
168
  }
175
169
  declare module '@ibti-tech/chatbot/components/ChatbotDevice/index.d.ts' {
176
- {"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;IACnC,eAAe,CAAC,EAAE,OAAO,CAAA;IACzB;;;;;OAKG;IACH,kBAAkB,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,QAAQ,GAAG,MAAM,CAAA;CAC1D,CAAA;AAED,eAAO,MAAM,aAAa,GAAI,4DAI3B,kBAAkB,sBAsBpB,CAAA;AAED,eAAe,aAAa,CAAA"}
170
+ {"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;IACnC,eAAe,CAAC,EAAE,OAAO,CAAA;IACzB;;;;;OAKG;IACH,kBAAkB,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,QAAQ,GAAG,MAAM,CAAA;IACzD,gFAAgF;IAChF,wBAAwB,CAAC,EAAE,MAAM,CAAA;CAClC,CAAA;AAID,eAAO,MAAM,aAAa,GAAI,sFAK3B,kBAAkB,sBAyBpB,CAAA;AAED,eAAe,aAAa,CAAA"}
177
171
  }
178
172
  declare module '@ibti-tech/chatbot/components/ChatbotDevice/styles' {
179
173
  export const Wrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
@@ -181,11 +175,12 @@ declare module '@ibti-tech/chatbot/components/ChatbotDevice/styles' {
181
175
  $verticalPosition: "top" | "bottom";
182
176
  $pushContentDown?: boolean;
183
177
  $horizontalPosition?: "left" | "right" | "center" | string;
178
+ $pushContentDownBarHeight?: number;
184
179
  }>> & string;
185
180
  //# sourceMappingURL=styles.d.ts.map
186
181
  }
187
182
  declare module '@ibti-tech/chatbot/components/ChatbotDevice/styles.d.ts' {
188
- {"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;uBAChB,OAAO;0BACJ,MAAM,GAAG,OAAO,GAAG,QAAQ,GAAG,MAAM;YAqO3D,CAAA"}
183
+ {"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;uBAChB,OAAO;0BACJ,MAAM,GAAG,OAAO,GAAG,QAAQ,GAAG,MAAM;gCAC9B,MAAM;YAyOnC,CAAA"}
189
184
  }
190
185
  declare module '@ibti-tech/chatbot/components/ChatbotFooter/index' {
191
186
  import React from 'react';
@@ -254,13 +249,15 @@ declare module '@ibti-tech/chatbot/components/ChatbotToggle/index' {
254
249
  verticalPosition?: 'top' | 'bottom';
255
250
  opened?: boolean;
256
251
  pushContentDown?: boolean;
252
+ /** Height in px of the bar when closed (pushContentDown or bottom). Default: 32. */
253
+ pushContentDownBarHeight?: number;
257
254
  };
258
- export const ChatbotToggle: ({ verticalPosition, opened: openedProp, pushContentDown, }: ChatbotToggleProps) => React.JSX.Element;
255
+ export const ChatbotToggle: ({ verticalPosition, opened: openedProp, pushContentDown, pushContentDownBarHeight, }: ChatbotToggleProps) => React.JSX.Element;
259
256
  export default ChatbotToggle;
260
257
  //# sourceMappingURL=index.d.ts.map
261
258
  }
262
259
  declare module '@ibti-tech/chatbot/components/ChatbotToggle/index.d.ts' {
263
- {"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;IAChB,eAAe,CAAC,EAAE,OAAO,CAAA;CAC1B,CAAA;AAED,eAAO,MAAM,aAAa,GAAI,4DAI3B,kBAAkB,sBAkCpB,CAAA;AAED,eAAe,aAAa,CAAA"}
260
+ {"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;IAChB,eAAe,CAAC,EAAE,OAAO,CAAA;IACzB,oFAAoF;IACpF,wBAAwB,CAAC,EAAE,MAAM,CAAA;CAClC,CAAA;AAID,eAAO,MAAM,aAAa,GAAI,sFAK3B,kBAAkB,sBAmCpB,CAAA;AAED,eAAe,aAAa,CAAA"}
264
261
  }
265
262
  declare module '@ibti-tech/chatbot/components/ChatbotToggle/styles' {
266
263
  export const ButtonWrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, {
@@ -268,11 +265,12 @@ declare module '@ibti-tech/chatbot/components/ChatbotToggle/styles' {
268
265
  $verticalPosition: "top" | "bottom";
269
266
  $pushContentDown?: boolean;
270
267
  $themeMode?: "light" | "dark";
268
+ $barHeight?: number;
271
269
  }>> & string;
272
270
  //# sourceMappingURL=styles.d.ts.map
273
271
  }
274
272
  declare module '@ibti-tech/chatbot/components/ChatbotToggle/styles.d.ts' {
275
- {"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;uBAChB,OAAO;iBACb,OAAO,GAAG,MAAM;YAwE9B,CAAA"}
273
+ {"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;uBAChB,OAAO;iBACb,OAAO,GAAG,MAAM;iBAChB,MAAM;YAwEpB,CAAA"}
276
274
  }
277
275
  declare module '@ibti-tech/chatbot/components/MessageBalloon/index' {
278
276
  import React from 'react';
@@ -372,57 +370,84 @@ declare module '@ibti-tech/chatbot/contexts/Chatbot/context' {
372
370
  import * as React from 'react';
373
371
  import { ChatbotTypes } from 'types';
374
372
  import { useChatbotSuggestedQuestions } from '@ibti-tech/chatbot/contexts/Chatbot/useChatbotSuggestedQuestions';
373
+ /**
374
+ * Shape of the chatbot context provided by ChatbotProvider.
375
+ * Consume via useChatbot() inside the provider tree.
376
+ */
375
377
  export type ChatbotContextProps = {
378
+ /** Current locale: 'pt-BR' | 'en'. */
376
379
  locale: ChatbotTypes.Locale;
380
+ /** Ordered list of chat messages (user + assistant). */
377
381
  chatMessages: ChatbotTypes.ChatMessage[];
382
+ /** Optional ref for the scrollable messages container. */
378
383
  scrollRef?: React.MutableRefObject<HTMLElement | null>;
384
+ /** Sends a user message and streams the assistant reply. Resolves when stream ends. */
379
385
  makeQuestion: (question: string) => Promise<void>;
386
+ /** True while the assistant is streaming a response. */
380
387
  writing: boolean;
388
+ /** True while the request is in flight (before first chunk). */
381
389
  loading: boolean;
390
+ /** Whether the chat panel is open. */
382
391
  opened: boolean;
392
+ /** Toggles opened state. */
383
393
  openedToggle: () => void;
394
+ /** Derived status: 'writing' | 'loading' | 'online' | 'unavailable'. */
384
395
  status: ChatbotTypes.Status;
396
+ /** True when API health check or request failed (e.g. network/CORS). */
385
397
  apiConnectionError: boolean;
398
+ /** Suggested questions hook result: { loading, data, fetchData, resetData }. */
386
399
  suggestedQuestions: ReturnType<typeof useChatbotSuggestedQuestions>;
400
+ /** Base URL of the chatbot API. */
387
401
  apiURL: string;
402
+ /** Optional custom texts per locale (overrides defaults). */
388
403
  texts?: ChatbotTypes.Texts;
404
+ /** Current theme: 'light' | 'dark'. */
389
405
  theme: ChatbotTypes.Theme;
390
- /** Lucide icon name for the chatbot (button/header). */
406
+ /** Optional Lucide icon name for the chatbot button/header (e.g. 'Bot', 'MessageCircle'). */
391
407
  icon?: string;
392
- /** Public hash of the chatbot (when using new API) */
408
+ /** Public hash of the chatbot when using the public API. */
393
409
  publicHash?: string;
394
- /** Stable visitor ID for this chatbot session */
410
+ /** Stable visitor id for this session (when using publicHash). */
395
411
  visitorId?: string;
396
- /** Whether the current domain is allowed for this chatbot */
412
+ /** True when current origin is in the chatbot's allowed domains. */
397
413
  domainAllowed: boolean;
398
- /** Initialization state of the widget */
414
+ /** Widget init state: 'loading' | 'domain_not_allowed' | 'error' | 'ready'. */
399
415
  initializationStatus: ChatbotTypes.InitializationStatus;
400
- /** Chatbot data from GET /chatbots/public/:hash (when ready) */
416
+ /** Chatbot config from GET /chatbots/public/:hash when initializationStatus is 'ready'. */
401
417
  chatbot?: ChatbotTypes.ChatbotPublicResponse;
402
418
  };
419
+ /** React context for chatbot state. Use useChatbot() to consume. */
403
420
  export const ChatbotContext: React.Context<ChatbotContextProps>;
404
421
  //# sourceMappingURL=context.d.ts.map
405
422
  }
406
423
  declare module '@ibti-tech/chatbot/contexts/Chatbot/context.d.ts' {
407
- {"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;IAC1B,KAAK,EAAE,YAAY,CAAC,KAAK,CAAA;IACzB,wDAAwD;IACxD,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,sDAAsD;IACtD,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,iDAAiD;IACjD,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,6DAA6D;IAC7D,aAAa,EAAE,OAAO,CAAA;IACtB,yCAAyC;IACzC,oBAAoB,EAAE,YAAY,CAAC,oBAAoB,CAAA;IACvD,gEAAgE;IAChE,OAAO,CAAC,EAAE,YAAY,CAAC,qBAAqB,CAAA;CAC7C,CAAA;AAED,eAAO,MAAM,cAAc,oCAAiD,CAAA"}
424
+ {"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;;;GAGG;AACH,MAAM,MAAM,mBAAmB,GAAG;IAChC,sCAAsC;IACtC,MAAM,EAAE,YAAY,CAAC,MAAM,CAAA;IAC3B,wDAAwD;IACxD,YAAY,EAAE,YAAY,CAAC,WAAW,EAAE,CAAA;IACxC,0DAA0D;IAC1D,SAAS,CAAC,EAAE,KAAK,CAAC,gBAAgB,CAAC,WAAW,GAAG,IAAI,CAAC,CAAA;IACtD,uFAAuF;IACvF,YAAY,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAA;IACjD,wDAAwD;IACxD,OAAO,EAAE,OAAO,CAAA;IAChB,gEAAgE;IAChE,OAAO,EAAE,OAAO,CAAA;IAChB,sCAAsC;IACtC,MAAM,EAAE,OAAO,CAAA;IACf,4BAA4B;IAC5B,YAAY,EAAE,MAAM,IAAI,CAAA;IACxB,wEAAwE;IACxE,MAAM,EAAE,YAAY,CAAC,MAAM,CAAA;IAC3B,wEAAwE;IACxE,kBAAkB,EAAE,OAAO,CAAA;IAC3B,gFAAgF;IAChF,kBAAkB,EAAE,UAAU,CAAC,OAAO,4BAA4B,CAAC,CAAA;IACnE,mCAAmC;IACnC,MAAM,EAAE,MAAM,CAAA;IACd,6DAA6D;IAC7D,KAAK,CAAC,EAAE,YAAY,CAAC,KAAK,CAAA;IAC1B,uCAAuC;IACvC,KAAK,EAAE,YAAY,CAAC,KAAK,CAAA;IACzB,6FAA6F;IAC7F,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,4DAA4D;IAC5D,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,kEAAkE;IAClE,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,oEAAoE;IACpE,aAAa,EAAE,OAAO,CAAA;IACtB,+EAA+E;IAC/E,oBAAoB,EAAE,YAAY,CAAC,oBAAoB,CAAA;IACvD,2FAA2F;IAC3F,OAAO,CAAC,EAAE,YAAY,CAAC,qBAAqB,CAAA;CAC7C,CAAA;AAED,oEAAoE;AACpE,eAAO,MAAM,cAAc,oCAAiD,CAAA"}
408
425
  }
409
426
  declare module '@ibti-tech/chatbot/contexts/Chatbot/provider' {
410
427
  import React, { ReactNode } from 'react';
411
428
  import { ChatbotTypes } from 'types';
429
+ /**
430
+ * Props for ChatbotProvider. Wrap your app (or chatbot subtree) with this to enable useChatbot().
431
+ */
412
432
  export type ChatbotProviderProps = {
433
+ /** Locale: 'pt-BR' | 'en'. */
413
434
  locale: ChatbotTypes.Locale;
435
+ /** Base URL of the chatbot API (e.g. https://api.example.com). */
414
436
  apiURL: string;
415
- /** Public hash of the chatbot (required for new API; omit for legacy mode) */
437
+ /** Public hash of the chatbot (required for domain-validated API; omit for legacy). */
416
438
  publicHash?: string;
417
439
  children?: ReactNode;
440
+ /** UI theme: 'light' | 'dark'. */
418
441
  theme: ChatbotTypes.Theme;
442
+ /** Initial open state of the chat panel. Default: false. */
419
443
  isOpen?: boolean;
444
+ /** Optional custom texts per locale (key: 'pt-BR' | 'en', value: CustomTexts). */
420
445
  texts?: ChatbotTypes.Texts;
421
- /** Override list of origins that skip domain check */
446
+ /** Origins that skip domain validation (e.g. for staging). */
422
447
  allowedOriginsWithoutCheck?: string[];
423
- /** When true (e.g. admin preview iframe), skip domain validation entirely */
448
+ /** When true, skip domain check (e.g. admin preview iframe). Do not use in production embed. */
424
449
  skipDomainCheck?: boolean;
425
- /** Custom colors for branding (primary, header, user balloons) */
450
+ /** Custom colors: primaryColor, headerBackground, userBalloonColor (hex or rgb). */
426
451
  colors?: ChatbotTypes.CustomColors;
427
452
  /** Lucide icon name for the chatbot button/header (e.g. 'Bot', 'MessageCircle'). */
428
453
  icon?: string;
@@ -431,13 +456,22 @@ declare module '@ibti-tech/chatbot/contexts/Chatbot/provider' {
431
456
  //# sourceMappingURL=provider.d.ts.map
432
457
  }
433
458
  declare module '@ibti-tech/chatbot/contexts/Chatbot/provider.d.ts' {
434
- {"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;AASpC,MAAM,MAAM,oBAAoB,GAAG;IACjC,MAAM,EAAE,YAAY,CAAC,MAAM,CAAA;IAC3B,MAAM,EAAE,MAAM,CAAA;IACd,8EAA8E;IAC9E,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,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;IAC1B,sDAAsD;IACtD,0BAA0B,CAAC,EAAE,MAAM,EAAE,CAAA;IACrC,6EAA6E;IAC7E,eAAe,CAAC,EAAE,OAAO,CAAA;IACzB,kEAAkE;IAClE,MAAM,CAAC,EAAE,YAAY,CAAC,YAAY,CAAA;IAClC,oFAAoF;IACpF,IAAI,CAAC,EAAE,MAAM,CAAA;CACd,CAAA;AAED,eAAO,MAAM,eAAe,GAAI,sJAY7B,oBAAoB,sBAgLtB,CAAA"}
459
+ {"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;AASpC;;GAEG;AACH,MAAM,MAAM,oBAAoB,GAAG;IACjC,8BAA8B;IAC9B,MAAM,EAAE,YAAY,CAAC,MAAM,CAAA;IAC3B,kEAAkE;IAClE,MAAM,EAAE,MAAM,CAAA;IACd,uFAAuF;IACvF,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,QAAQ,CAAC,EAAE,SAAS,CAAA;IACpB,kCAAkC;IAClC,KAAK,EAAE,YAAY,CAAC,KAAK,CAAA;IACzB,4DAA4D;IAC5D,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB,kFAAkF;IAClF,KAAK,CAAC,EAAE,YAAY,CAAC,KAAK,CAAA;IAC1B,8DAA8D;IAC9D,0BAA0B,CAAC,EAAE,MAAM,EAAE,CAAA;IACrC,gGAAgG;IAChG,eAAe,CAAC,EAAE,OAAO,CAAA;IACzB,oFAAoF;IACpF,MAAM,CAAC,EAAE,YAAY,CAAC,YAAY,CAAA;IAClC,oFAAoF;IACpF,IAAI,CAAC,EAAE,MAAM,CAAA;CACd,CAAA;AAED,eAAO,MAAM,eAAe,GAAI,sJAY7B,oBAAoB,sBAgLtB,CAAA"}
435
460
  }
436
461
  declare module '@ibti-tech/chatbot/contexts/Chatbot/useChatFeedbackBox' {
462
+ /** Parameters for sendUserRating from useChatFeedbackBox. */
437
463
  type SendUserRatingProps = {
464
+ /** Rating value (e.g. 1–5). */
438
465
  ratingScore: number;
466
+ /** Optional free-text feedback. */
439
467
  description: string;
440
468
  };
469
+ /**
470
+ * Hook for the feedback modal: open/close and send rating.
471
+ * Uses useChatbot() for apiURL, locale, chatMessages, publicHash, visitorId.
472
+ *
473
+ * @returns { opened, open, close, sendUserRating, loading } — loading true while submit in progress
474
+ */
441
475
  export const useChatFeedbackBox: () => {
442
476
  opened: boolean;
443
477
  open: () => void;
@@ -449,22 +483,35 @@ declare module '@ibti-tech/chatbot/contexts/Chatbot/useChatFeedbackBox' {
449
483
  //# sourceMappingURL=useChatFeedbackBox.d.ts.map
450
484
  }
451
485
  declare module '@ibti-tech/chatbot/contexts/Chatbot/useChatFeedbackBox.d.ts' {
452
- {"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;;CA6BvB,CAAA"}
486
+ {"version":3,"file":"useChatFeedbackBox.d.ts","sourceRoot":"","sources":["../../../../../home/runner/work/ibti-chatbot/ibti-chatbot/src/contexts/Chatbot/useChatFeedbackBox.ts"],"names":[],"mappings":"AAIA,6DAA6D;AAC7D,KAAK,mBAAmB,GAAG;IACzB,+BAA+B;IAC/B,WAAW,EAAE,MAAM,CAAA;IACnB,mCAAmC;IACnC,WAAW,EAAE,MAAM,CAAA;CACpB,CAAA;AAED;;;;;GAKG;AACH,eAAO,MAAM,kBAAkB;;;;oDAkB1B,mBAAmB;;CA6BvB,CAAA"}
453
487
  }
454
488
  declare module '@ibti-tech/chatbot/contexts/Chatbot/useChatbot' {
489
+ /**
490
+ * Returns the chatbot context (state and actions).
491
+ * Must be used within a ChatbotProvider; throws otherwise.
492
+ *
493
+ * @returns ChatbotContextProps (locale, chatMessages, makeQuestion, opened, openedToggle, status, etc.)
494
+ */
455
495
  export const useChatbot: () => import("@ibti-tech/chatbot/contexts/Chatbot/context").ChatbotContextProps;
456
496
  export default useChatbot;
457
497
  //# sourceMappingURL=useChatbot.d.ts.map
458
498
  }
459
499
  declare module '@ibti-tech/chatbot/contexts/Chatbot/useChatbot.d.ts' {
460
- {"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"}
500
+ {"version":3,"file":"useChatbot.d.ts","sourceRoot":"","sources":["../../../../../home/runner/work/ibti-chatbot/ibti-chatbot/src/contexts/Chatbot/useChatbot.ts"],"names":[],"mappings":"AAGA;;;;;GAKG;AACH,eAAO,MAAM,UAAU,+CAMtB,CAAA;AAED,eAAe,UAAU,CAAA"}
461
501
  }
462
502
  declare module '@ibti-tech/chatbot/contexts/Chatbot/useChatbotMessages' {
463
503
  import { ChatbotTypes } from 'types';
504
+ /**
505
+ * Options for useChatbotMessages (used internally by ChatbotProvider).
506
+ */
464
507
  export type UseChatbotMessagesOptions = {
508
+ /** Base URL of the chatbot API. */
465
509
  apiURL: string;
510
+ /** Locale: 'pt-BR' | 'en'. */
466
511
  locale: ChatbotTypes.Locale;
512
+ /** Optional. Public hash when using the public API. */
467
513
  publicHash?: string;
514
+ /** Optional. Visitor id for conversation continuity. */
468
515
  visitorId?: string;
469
516
  };
470
517
  export const useChatbotMessages: ({ apiURL, locale, publicHash, visitorId, }: UseChatbotMessagesOptions) => {
@@ -485,15 +532,25 @@ declare module '@ibti-tech/chatbot/contexts/Chatbot/useChatbotMessages' {
485
532
  //# sourceMappingURL=useChatbotMessages.d.ts.map
486
533
  }
487
534
  declare module '@ibti-tech/chatbot/contexts/Chatbot/useChatbotMessages.d.ts' {
488
- {"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;IAC3B,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB,CAAA;AAED,eAAO,MAAM,kBAAkB,GAAI,4CAKhC,yBAAyB;;iCA2JgB,MAAM;;;;;;;;;;;CAqNjD,CAAA;AAED,eAAe,kBAAkB,CAAA"}
535
+ {"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;;GAEG;AACH,MAAM,MAAM,yBAAyB,GAAG;IACtC,mCAAmC;IACnC,MAAM,EAAE,MAAM,CAAA;IACd,8BAA8B;IAC9B,MAAM,EAAE,YAAY,CAAC,MAAM,CAAA;IAC3B,uDAAuD;IACvD,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,wDAAwD;IACxD,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB,CAAA;AAED,eAAO,MAAM,kBAAkB,GAAI,4CAKhC,yBAAyB;;iCA2JgB,MAAM;;;;;;;;;;;CAqNjD,CAAA;AAED,eAAe,kBAAkB,CAAA"}
489
536
  }
490
537
  declare module '@ibti-tech/chatbot/contexts/Chatbot/useChatbotSuggestedQuestions' {
491
538
  import { ChatbotTypes } from 'types';
539
+ /**
540
+ * Options for useChatbotSuggestedQuestions (used internally for suggested questions).
541
+ */
492
542
  export type UseChatbotSuggestedQuestionsOptions = {
543
+ /** Current conversation context (role + content). */
493
544
  chatContext: ChatbotTypes.ChatContextItem[];
545
+ /** Base URL of the API. */
494
546
  apiURL: string;
547
+ /** Locale: 'pt-BR' | 'en'. */
495
548
  locale: ChatbotTypes.Locale;
496
549
  };
550
+ /**
551
+ * Hook for suggested questions (used by ChatbotProvider).
552
+ * Returns loading state, list of question strings, fetchData, and resetData.
553
+ */
497
554
  export const useChatbotSuggestedQuestions: ({ chatContext, locale, apiURL, }: UseChatbotSuggestedQuestionsOptions) => {
498
555
  loading: boolean;
499
556
  data: string[];
@@ -503,7 +560,7 @@ declare module '@ibti-tech/chatbot/contexts/Chatbot/useChatbotSuggestedQuestions
503
560
  //# sourceMappingURL=useChatbotSuggestedQuestions.d.ts.map
504
561
  }
505
562
  declare module '@ibti-tech/chatbot/contexts/Chatbot/useChatbotSuggestedQuestions.d.ts' {
506
- {"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"}
563
+ {"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;;GAEG;AACH,MAAM,MAAM,mCAAmC,GAAG;IAChD,qDAAqD;IACrD,WAAW,EAAE,YAAY,CAAC,eAAe,EAAE,CAAA;IAC3C,2BAA2B;IAC3B,MAAM,EAAE,MAAM,CAAA;IACd,8BAA8B;IAC9B,MAAM,EAAE,YAAY,CAAC,MAAM,CAAA;CAC5B,CAAA;AAED;;;GAGG;AACH,eAAO,MAAM,4BAA4B,GAAI,kCAI1C,mCAAmC;;;;;CA2BrC,CAAA"}
507
564
  }
508
565
  declare module '@ibti-tech/chatbot/cookies/chat' {
509
566
  import { ChatbotTypes } from 'types';
@@ -555,30 +612,50 @@ declare module '@ibti-tech/chatbot/cookies/chat.d.ts' {
555
612
  }
556
613
  declare module '@ibti-tech/chatbot/embed' {
557
614
  /**
558
- * Embed entry point for HTML/WordPress/PHP.
559
- * Reads config from window.IBTIChatbotConfig or data-* attributes on the script element.
560
- * Mounts the chatbot widget into a container (auto-created or existing #ibti-chatbot-root).
615
+ * Embed entry point for HTML / WordPress / PHP.
616
+ * Config: window.IBTIChatbotConfig or data-* attributes on the script tag.
617
+ * Mounts the widget into #ibti-chatbot-root (or containerId). Exposes window.IBTIChatbotEmbed.init(config) and destroy().
561
618
  */
562
619
  import type { ChatbotTypes } from '@ibti-tech/chatbot/types/index';
563
- /** Embed configuration (from window.IBTIChatbotConfig or data-* attributes). */
620
+ /**
621
+ * Embed configuration. Pass to IBTIChatbotEmbed.init(config) or set window.IBTIChatbotConfig.
622
+ * data-* attributes: data-api-url, data-public-hash, data-locale, data-theme, data-position, data-colors (JSON), data-icon, data-texts (JSON).
623
+ */
564
624
  export interface IBTIChatbotEmbedConfig {
625
+ /** Base URL of the chatbot API. Required. */
565
626
  apiURL: string;
627
+ /** Public hash of the chatbot. Required. */
566
628
  publicHash: string;
629
+ /** Locale: 'pt-BR' | 'en'. Default: 'pt-BR'. */
567
630
  locale?: ChatbotTypes.Locale;
631
+ /** Theme: 'light' | 'dark'. Default: 'light'. */
568
632
  theme?: ChatbotTypes.Theme;
633
+ /** Bar position. Default: 'bottom-right'. */
569
634
  position?: 'bottom-right' | 'bottom-left' | 'top-right' | 'top-left';
570
- /** Optional: custom container selector. Default creates a div appended to body. */
635
+ /** DOM id for the mount container. Default: 'ibti-chatbot-root'. If missing, a div is created and appended to body. */
571
636
  containerId?: string;
572
- /** When true (e.g. admin embed preview), skip domain validation. Do not use in production embed. */
637
+ /** Skip domain validation (e.g. admin preview). Do not use in production. */
573
638
  skipDomainCheck?: boolean;
574
- /** Custom colors for branding (hex or rgb). */
639
+ /** Custom colors: primaryColor, headerBackground, userBalloonColor (hex or rgb). */
575
640
  colors?: ChatbotTypes.CustomColors;
576
- /** Initial open state of the chatbot. Default: false */
641
+ /** Initial open state of the chat panel. Default: false. */
577
642
  isOpen?: boolean;
578
- /** Lucide icon name for the chatbot button/header (e.g. 'Bot', 'MessageCircle'). */
643
+ /** Lucide icon name for the button/header (e.g. 'Bot', 'MessageCircle'). */
579
644
  icon?: string;
580
- /** Custom texts per locale for the chatbot UI. */
645
+ /** Custom UI texts per locale: { 'pt-BR': CustomTexts, 'en': CustomTexts }. */
581
646
  texts?: ChatbotTypes.Texts;
647
+ /** When true and position is top-*, the bar pushes page content down (no overlay). Avoids extra scroll when combined with body class .ibti-chatbot-push-down. */
648
+ pushContentDown?: boolean;
649
+ /** Offset from top (e.g. '64px', 80). Use to sit below a fixed header. */
650
+ topOffset?: string | number;
651
+ /** When true, sets z-index to 9999 so the chatbot appears above header elements. */
652
+ aboveHeader?: boolean;
653
+ /** Bar background when pushContentDown (light theme). Default rgb(230,230,230). */
654
+ pushContentDownRowBackgroundLight?: string;
655
+ /** Bar background when pushContentDown (dark theme). Default rgb(0,0,0). */
656
+ pushContentDownRowBackgroundDark?: string;
657
+ /** Height in px of the bar when pushContentDown is true. Default: 32. Clamped between 24 and 120. */
658
+ pushContentDownBarHeight?: number;
582
659
  }
583
660
  global {
584
661
  interface Window {
@@ -593,7 +670,7 @@ declare module '@ibti-tech/chatbot/embed' {
593
670
  //# sourceMappingURL=embed.d.ts.map
594
671
  }
595
672
  declare module '@ibti-tech/chatbot/embed.d.ts' {
596
- {"version":3,"file":"embed.d.ts","sourceRoot":"","sources":["../../../home/runner/work/ibti-chatbot/ibti-chatbot/src/embed.tsx"],"names":[],"mappings":"AAAA;;;;GAIG;AAMH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAA;AAE3C,gFAAgF;AAChF,MAAM,WAAW,sBAAsB;IACrC,MAAM,EAAE,MAAM,CAAA;IACd,UAAU,EAAE,MAAM,CAAA;IAClB,MAAM,CAAC,EAAE,YAAY,CAAC,MAAM,CAAA;IAC5B,KAAK,CAAC,EAAE,YAAY,CAAC,KAAK,CAAA;IAC1B,QAAQ,CAAC,EAAE,cAAc,GAAG,aAAa,GAAG,WAAW,GAAG,UAAU,CAAA;IACpE,mFAAmF;IACnF,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,oGAAoG;IACpG,eAAe,CAAC,EAAE,OAAO,CAAA;IACzB,+CAA+C;IAC/C,MAAM,CAAC,EAAE,YAAY,CAAC,YAAY,CAAA;IAClC,wDAAwD;IACxD,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB,oFAAoF;IACpF,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,kDAAkD;IAClD,KAAK,CAAC,EAAE,YAAY,CAAC,KAAK,CAAA;CAC3B;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,MAAM;QACd,iBAAiB,CAAC,EAAE,sBAAsB,CAAA;QAC1C,gBAAgB,CAAC,EAAE;YACjB,IAAI,EAAE,CAAC,MAAM,CAAC,EAAE,sBAAsB,KAAK,IAAI,CAAA;YAC/C,OAAO,EAAE,MAAM,IAAI,CAAA;SACpB,CAAA;KACF;CACF;AAyID,wBAAgB,UAAU,SAEzB"}
673
+ {"version":3,"file":"embed.d.ts","sourceRoot":"","sources":["../../../home/runner/work/ibti-chatbot/ibti-chatbot/src/embed.tsx"],"names":[],"mappings":"AAAA;;;;GAIG;AAMH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAA;AAE3C;;;GAGG;AACH,MAAM,WAAW,sBAAsB;IACrC,6CAA6C;IAC7C,MAAM,EAAE,MAAM,CAAA;IACd,4CAA4C;IAC5C,UAAU,EAAE,MAAM,CAAA;IAClB,gDAAgD;IAChD,MAAM,CAAC,EAAE,YAAY,CAAC,MAAM,CAAA;IAC5B,iDAAiD;IACjD,KAAK,CAAC,EAAE,YAAY,CAAC,KAAK,CAAA;IAC1B,6CAA6C;IAC7C,QAAQ,CAAC,EAAE,cAAc,GAAG,aAAa,GAAG,WAAW,GAAG,UAAU,CAAA;IACpE,uHAAuH;IACvH,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,6EAA6E;IAC7E,eAAe,CAAC,EAAE,OAAO,CAAA;IACzB,oFAAoF;IACpF,MAAM,CAAC,EAAE,YAAY,CAAC,YAAY,CAAA;IAClC,4DAA4D;IAC5D,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB,4EAA4E;IAC5E,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,+EAA+E;IAC/E,KAAK,CAAC,EAAE,YAAY,CAAC,KAAK,CAAA;IAC1B,iKAAiK;IACjK,eAAe,CAAC,EAAE,OAAO,CAAA;IACzB,0EAA0E;IAC1E,SAAS,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;IAC3B,oFAAoF;IACpF,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,mFAAmF;IACnF,iCAAiC,CAAC,EAAE,MAAM,CAAA;IAC1C,4EAA4E;IAC5E,gCAAgC,CAAC,EAAE,MAAM,CAAA;IACzC,qGAAqG;IACrG,wBAAwB,CAAC,EAAE,MAAM,CAAA;CAClC;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,MAAM;QACd,iBAAiB,CAAC,EAAE,sBAAsB,CAAA;QAC1C,gBAAgB,CAAC,EAAE;YACjB,IAAI,EAAE,CAAC,MAAM,CAAC,EAAE,sBAAsB,KAAK,IAAI,CAAA;YAC/C,OAAO,EAAE,MAAM,IAAI,CAAA;SACpB,CAAA;KACF;CACF;AAmJD,wBAAgB,UAAU,SAEzB"}
597
674
  }
598
675
  declare module '@ibti-tech/chatbot/events/assistant-answer' {
599
676
  export const dispatchAssitantAnswer: () => void;
@@ -711,6 +788,18 @@ declare module '@ibti-tech/chatbot/i18n/index.d.ts' {
711
788
  {"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"}
712
789
  }
713
790
  declare module '@ibti-tech/chatbot/index' {
791
+ /**
792
+ * @ibti-tech/chatbot — React package entry.
793
+ *
794
+ * React usage:
795
+ * - ChatbotProvider: wrap your app; props: locale, apiURL, publicHash, theme, isOpen?, texts?, colors?, icon?, skipDomainCheck?, allowedOriginsWithoutCheck?
796
+ * - ChatbotBar: floating bar + panel; props: verticalPosition?, horizontalPosition?, deviceHorizontalPosition?, zIndex?, topOffset?, aboveHeader?, pushContentDown?, pushContentDownRowBackgroundLight?, pushContentDownRowBackgroundDark?
797
+ * - useChatbot(): returns context (chatMessages, makeQuestion, opened, openedToggle, status, etc.)
798
+ * - ChatbotContext: React context (prefer useChatbot())
799
+ * - ChatbotDevice: inner device component (usually used by ChatbotBar)
800
+ *
801
+ * Types: ChatbotTypes (Theme, Locale, CustomColors, ChatMessage, ChatContextItem, Status, InitializationStatus, ChatbotPublicResponse, Config, CustomTexts, Texts)
802
+ */
714
803
  export { useChatbot } from 'contexts/Chatbot/useChatbot';
715
804
  export { ChatbotContext } from 'contexts/Chatbot/context';
716
805
  export { ChatbotProvider } from 'contexts/Chatbot/provider';
@@ -720,7 +809,7 @@ declare module '@ibti-tech/chatbot/index' {
720
809
  //# sourceMappingURL=index.d.ts.map
721
810
  }
722
811
  declare module '@ibti-tech/chatbot/index.d.ts' {
723
- {"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"}
812
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../home/runner/work/ibti-chatbot/ibti-chatbot/src/index.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,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"}
724
813
  }
725
814
  declare module '@ibti-tech/chatbot/mocks/chatHistory' {
726
815
  export const chatHistoryMocked: readonly [{
@@ -788,61 +877,67 @@ declare module '@ibti-tech/chatbot/mocks/chatHistory.d.ts' {
788
877
  }
789
878
  declare module '@ibti-tech/chatbot/services/api/http-client' {
790
879
  /**
791
- * Returns default headers for all API requests.
792
- * Includes Content-Type and User-Agent (from navigator when available).
880
+ * Default headers for all chatbot API requests.
881
+ * - Content-Type: application/json
882
+ * - User-Agent: navigator.userAgent when available, else 'IBTI-Chatbot/1.0'
883
+ *
884
+ * @returns Record of header name to value (suitable for fetch headers)
793
885
  */
794
886
  export const getDefaultHeaders: () => Record<string, string>;
795
887
  //# sourceMappingURL=http-client.d.ts.map
796
888
  }
797
889
  declare module '@ibti-tech/chatbot/services/api/http-client.d.ts' {
798
- {"version":3,"file":"http-client.d.ts","sourceRoot":"","sources":["../../../../../home/runner/work/ibti-chatbot/ibti-chatbot/src/services/api/http-client.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,eAAO,MAAM,iBAAiB,QAAO,MAAM,CAAC,MAAM,EAAE,MAAM,CAIxD,CAAA"}
890
+ {"version":3,"file":"http-client.d.ts","sourceRoot":"","sources":["../../../../../home/runner/work/ibti-chatbot/ibti-chatbot/src/services/api/http-client.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,eAAO,MAAM,iBAAiB,QAAO,MAAM,CAAC,MAAM,EAAE,MAAM,CAIxD,CAAA"}
799
891
  }
800
892
  declare module '@ibti-tech/chatbot/services/chat/chat.api' {
801
893
  import { ChatbotTypes } from 'types';
802
894
  import type { SendNewQuestionOptions } from '@ibti-tech/chatbot/services/types/index';
803
895
  /**
804
896
  * Sends chat context to the completion endpoint and streams the response.
805
- * POST /chat/completion?locale=&hash=&visitorId=
897
+ * Endpoint: POST /chat/completion?locale=&hash=&visitorId=
806
898
  *
807
- * @param options - Chat context, locale, callbacks, and optional hash/visitorId
899
+ * @param options - SendNewQuestionOptions: chatContext, locale, apiURL, optional publicHash/visitorId, onReceiving, onDone
900
+ * @returns Promise that resolves when the stream ends (no value)
901
+ * @throws Error when response is not ok (includes status in message)
808
902
  */
809
903
  export const sendChatContext: ({ chatContext, locale, onReceiving, onDone, apiURL, publicHash, visitorId, }: SendNewQuestionOptions) => Promise<void>;
810
904
  /**
811
- * Checks if the API is available by making a lightweight request.
812
- * Tries HEAD first, falls back to GET if HEAD fails.
905
+ * Checks if the API is available (lightweight health check).
906
+ * Tries HEAD on /chat/welcome first; falls back to GET on failure. Timeout: 5s.
813
907
  *
814
- * @param apiUrl - Base URL of the API
815
- * @param locale - Locale for the request
816
- * @param publicHash - Optional; includes hash in welcome URL when provided
817
- * @returns true if API responds with ok status
908
+ * @param apiUrl - Base URL of the API (e.g. https://api.example.com)
909
+ * @param locale - Locale for query: 'pt-BR' | 'en'
910
+ * @param publicHash - Optional; added as query param when provided
911
+ * @returns true if response is ok, false on error or timeout
818
912
  */
819
913
  export const checkApiHealth: (apiUrl: string, locale?: ChatbotTypes.Locale, publicHash?: string) => Promise<boolean>;
820
914
  /**
821
915
  * Fetches the welcome message for the chatbot.
822
- * GET /chat/welcome?locale=&hash=
916
+ * Endpoint: GET /chat/welcome?locale=&hash=
823
917
  *
824
918
  * @param apiUrl - Base URL of the API
825
- * @param locale - Locale for the welcome message
826
- * @param publicHash - Optional; identifies the chatbot when provided
827
- * @returns The welcome message string
919
+ * @param locale - Locale for the welcome message: 'pt-BR' | 'en'
920
+ * @param publicHash - Optional; chatbot identifier when using public API
921
+ * @returns Promise resolving to the welcome message string
922
+ * @throws Error when response is not ok (uses i18n error message + status)
828
923
  */
829
924
  export const getWelcomeMessage: (apiUrl: string, locale?: ChatbotTypes.Locale, publicHash?: string) => Promise<string>;
830
925
  //# sourceMappingURL=chat.api.d.ts.map
831
926
  }
832
927
  declare module '@ibti-tech/chatbot/services/chat/chat.api.d.ts' {
833
- {"version":3,"file":"chat.api.d.ts","sourceRoot":"","sources":["../../../../../home/runner/work/ibti-chatbot/ibti-chatbot/src/services/chat/chat.api.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,OAAO,CAAA;AAEpC,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,UAAU,CAAA;AAEtD;;;;;GAKG;AACH,eAAO,MAAM,eAAe,GAAU,8EAQnC,sBAAsB,KAAG,OAAO,CAAC,IAAI,CAwCvC,CAAA;AAED;;;;;;;;GAQG;AACH,eAAO,MAAM,cAAc,GACzB,QAAQ,MAAM,EACd,SAAQ,YAAY,CAAC,MAAa,EAClC,aAAa,MAAM,KAClB,OAAO,CAAC,OAAO,CAuCjB,CAAA;AAED;;;;;;;;GAQG;AACH,eAAO,MAAM,iBAAiB,GAC5B,QAAQ,MAAM,EACd,SAAQ,YAAY,CAAC,MAAa,EAClC,aAAa,MAAM,KAClB,OAAO,CAAC,MAAM,CAoBhB,CAAA"}
928
+ {"version":3,"file":"chat.api.d.ts","sourceRoot":"","sources":["../../../../../home/runner/work/ibti-chatbot/ibti-chatbot/src/services/chat/chat.api.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,OAAO,CAAA;AAEpC,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,UAAU,CAAA;AAEtD;;;;;;;GAOG;AACH,eAAO,MAAM,eAAe,GAAU,8EAQnC,sBAAsB,KAAG,OAAO,CAAC,IAAI,CAwCvC,CAAA;AAED;;;;;;;;GAQG;AACH,eAAO,MAAM,cAAc,GACzB,QAAQ,MAAM,EACd,SAAQ,YAAY,CAAC,MAAa,EAClC,aAAa,MAAM,KAClB,OAAO,CAAC,OAAO,CAuCjB,CAAA;AAED;;;;;;;;;GASG;AACH,eAAO,MAAM,iBAAiB,GAC5B,QAAQ,MAAM,EACd,SAAQ,YAAY,CAAC,MAAa,EAClC,aAAa,MAAM,KAClB,OAAO,CAAC,MAAM,CAoBhB,CAAA"}
834
929
  }
835
930
  declare module '@ibti-tech/chatbot/services/chatbot/chatbot.api' {
836
931
  import { ChatbotTypes } from 'types';
837
932
  /**
838
933
  * Fetches a chatbot by its public hash.
839
- * GET /chatbots/public/:hash
840
- * Results are cached in memory for 5 minutes to speed up repeated loads (e.g. preview).
934
+ * Endpoint: GET /chatbots/public/:hash
935
+ * Results are cached in memory for 5 minutes (key: apiURL:publicHash).
841
936
  *
842
- * @param apiURL - Base URL of the API
843
- * @param publicHash - Public hash of the chatbot
844
- * @returns The chatbot with domain, settings, instructions
845
- * @throws Error when chatbot is not found (404 or other error status)
937
+ * @param apiURL - Base URL of the API (no trailing slash)
938
+ * @param publicHash - Public hash of the chatbot (from admin/embed config)
939
+ * @returns Promise resolving to ChatbotPublicResponse (id, name, domain, etc.)
940
+ * @throws Error when chatbot is not found (e.g. 404) or request fails
846
941
  */
847
942
  export const getChatbotByPublicHash: (apiURL: string, publicHash: string) => Promise<ChatbotTypes.ChatbotPublicResponse>;
848
943
  //# sourceMappingURL=chatbot.api.d.ts.map
@@ -853,25 +948,34 @@ declare module '@ibti-tech/chatbot/services/chatbot/chatbot.api.d.ts' {
853
948
  declare module '@ibti-tech/chatbot/services/feedback/feedback.api' {
854
949
  import type { SendUserChatFeedbackParams } from '@ibti-tech/chatbot/services/types/index';
855
950
  /**
856
- * Sends user feedback (rating) for the chat session.
857
- * POST /chat/feedback
951
+ * Sends user feedback (rating) for the current chat session.
952
+ * Endpoint: POST /chat/feedback
953
+ * Body: locale, rating_score, chat_context, message (optional), hash (optional), visitorId (optional).
858
954
  *
859
- * When publicHash and visitorId are provided, the API can associate
860
- * the feedback with the correct conversation.
861
- *
862
- * @param params - Feedback data including rating, context, optional hash/visitorId
863
- * @returns The fetch Response (caller should check response.ok)
955
+ * @param params - SendUserChatFeedbackParams: apiURL, locale, chatContext, ratingScore, optional description, publicHash, visitorId
956
+ * @returns Promise resolving to the fetch Response; check response.ok for success
864
957
  */
865
958
  export const sendUserChatFeedback: ({ apiURL, chatContext, locale, ratingScore, description, publicHash, visitorId, }: SendUserChatFeedbackParams) => Promise<Response>;
866
959
  //# sourceMappingURL=feedback.api.d.ts.map
867
960
  }
868
961
  declare module '@ibti-tech/chatbot/services/feedback/feedback.api.d.ts' {
869
- {"version":3,"file":"feedback.api.d.ts","sourceRoot":"","sources":["../../../../../home/runner/work/ibti-chatbot/ibti-chatbot/src/services/feedback/feedback.api.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,UAAU,CAAA;AAE1D;;;;;;;;;GASG;AACH,eAAO,MAAM,oBAAoB,GAAU,mFAQxC,0BAA0B,KAAG,OAAO,CAAC,QAAQ,CAa/C,CAAA"}
962
+ {"version":3,"file":"feedback.api.d.ts","sourceRoot":"","sources":["../../../../../home/runner/work/ibti-chatbot/ibti-chatbot/src/services/feedback/feedback.api.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,UAAU,CAAA;AAE1D;;;;;;;GAOG;AACH,eAAO,MAAM,oBAAoB,GAAU,mFAQxC,0BAA0B,KAAG,OAAO,CAAC,QAAQ,CAa/C,CAAA"}
870
963
  }
871
964
  declare module '@ibti-tech/chatbot/services/index' {
872
965
  /**
873
- * Services barrel export.
874
- * Provides backward-compatible imports from 'services/chatbot-api' equivalent.
966
+ * Chatbot API services (barrel).
967
+ * Use these when integrating the chatbot or building a custom client.
968
+ *
969
+ * Chatbot config:
970
+ * - getChatbotByPublicHash(apiURL, publicHash) → ChatbotPublicResponse
971
+ *
972
+ * Chat:
973
+ * - sendChatContext(options) → streams completion, calls onReceiving/onDone
974
+ * - checkApiHealth(apiUrl, locale?, publicHash?) → boolean
975
+ * - getWelcomeMessage(apiUrl, locale?, publicHash?) → string
976
+ *
977
+ * Feedback:
978
+ * - sendUserChatFeedback(params) → Response
875
979
  */
876
980
  export { getChatbotByPublicHash } from '@ibti-tech/chatbot/services/chatbot/chatbot.api';
877
981
  export { sendChatContext, checkApiHealth, getWelcomeMessage, } from '@ibti-tech/chatbot/services/chat/chat.api';
@@ -880,24 +984,32 @@ declare module '@ibti-tech/chatbot/services/index' {
880
984
  //# sourceMappingURL=index.d.ts.map
881
985
  }
882
986
  declare module '@ibti-tech/chatbot/services/index.d.ts' {
883
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../home/runner/work/ibti-chatbot/ibti-chatbot/src/services/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,sBAAsB,EAAE,MAAM,uBAAuB,CAAA;AAC9D,OAAO,EACL,eAAe,EACf,cAAc,EACd,iBAAiB,GAClB,MAAM,iBAAiB,CAAA;AACxB,OAAO,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAA;AAE9D,YAAY,EACV,sBAAsB,EACtB,qBAAqB,EACrB,oBAAoB,EACpB,0BAA0B,GAC3B,MAAM,SAAS,CAAA"}
987
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../home/runner/work/ibti-chatbot/ibti-chatbot/src/services/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,sBAAsB,EAAE,MAAM,uBAAuB,CAAA;AAC9D,OAAO,EACL,eAAe,EACf,cAAc,EACd,iBAAiB,GAClB,MAAM,iBAAiB,CAAA;AACxB,OAAO,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAA;AAE9D,YAAY,EACV,sBAAsB,EACtB,qBAAqB,EACrB,oBAAoB,EACpB,0BAA0B,GAC3B,MAAM,SAAS,CAAA"}
884
988
  }
885
989
  declare module '@ibti-tech/chatbot/services/types/chat.types' {
886
990
  import { ChatbotTypes } from 'types';
887
991
  /**
888
- * Options for sending a new question to the chat completion endpoint.
992
+ * Options for sending a new question to the chat completion endpoint (POST /chat/completion).
993
+ * Used by `sendChatContext`.
889
994
  */
890
995
  export type SendNewQuestionOptions = {
996
+ /** Ordered list of messages (role + content) to send as context. */
891
997
  chatContext: Pick<ChatbotTypes.ChatMessage, 'content' | 'role'>[];
998
+ /** Locale for the request: `'pt-BR'` | `'en'`. */
892
999
  locale: ChatbotTypes.Locale;
1000
+ /** Base URL of the chatbot API (no trailing slash). */
893
1001
  apiURL: string;
1002
+ /** Optional. Public hash of the chatbot (required for domain-validated API). */
894
1003
  publicHash?: string;
1004
+ /** Optional. Stable visitor id for conversation continuity. */
895
1005
  visitorId?: string;
1006
+ /** Called for each streamed chunk: full message so far and the new chunk. */
896
1007
  onReceiving: (receivedMessage: string, receivedPart: string) => void;
1008
+ /** Called when the stream finishes. */
897
1009
  onDone: () => void;
898
1010
  };
899
1011
  /**
900
- * Options for fetching suggested questions (currently unused).
1012
+ * Options for fetching suggested questions (currently unused in UI).
901
1013
  */
902
1014
  export type GetSuggestedQuestions = {
903
1015
  chatContext: Pick<ChatbotTypes.ChatMessage, 'content' | 'role'>[];
@@ -905,32 +1017,40 @@ declare module '@ibti-tech/chatbot/services/types/chat.types' {
905
1017
  apiURL: string;
906
1018
  };
907
1019
  /**
908
- * DTO for suggested questions response.
1020
+ * Suggested question DTO (single string per item; API may return an array of these).
909
1021
  */
910
1022
  export type SuggestedQuestionDTO = string;
911
1023
  //# sourceMappingURL=chat.types.d.ts.map
912
1024
  }
913
1025
  declare module '@ibti-tech/chatbot/services/types/chat.types.d.ts' {
914
- {"version":3,"file":"chat.types.d.ts","sourceRoot":"","sources":["../../../../../home/runner/work/ibti-chatbot/ibti-chatbot/src/services/types/chat.types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,OAAO,CAAA;AAEpC;;GAEG;AACH,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,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,WAAW,EAAE,CAAC,eAAe,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,KAAK,IAAI,CAAA;IACpE,MAAM,EAAE,MAAM,IAAI,CAAA;CACnB,CAAA;AAED;;GAEG;AACH,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;;GAEG;AACH,MAAM,MAAM,oBAAoB,GAAG,MAAM,CAAA"}
1026
+ {"version":3,"file":"chat.types.d.ts","sourceRoot":"","sources":["../../../../../home/runner/work/ibti-chatbot/ibti-chatbot/src/services/types/chat.types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,OAAO,CAAA;AAEpC;;;GAGG;AACH,MAAM,MAAM,sBAAsB,GAAG;IACnC,oEAAoE;IACpE,WAAW,EAAE,IAAI,CAAC,YAAY,CAAC,WAAW,EAAE,SAAS,GAAG,MAAM,CAAC,EAAE,CAAA;IACjE,kDAAkD;IAClD,MAAM,EAAE,YAAY,CAAC,MAAM,CAAA;IAC3B,uDAAuD;IACvD,MAAM,EAAE,MAAM,CAAA;IACd,gFAAgF;IAChF,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,+DAA+D;IAC/D,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,6EAA6E;IAC7E,WAAW,EAAE,CAAC,eAAe,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,KAAK,IAAI,CAAA;IACpE,uCAAuC;IACvC,MAAM,EAAE,MAAM,IAAI,CAAA;CACnB,CAAA;AAED;;GAEG;AACH,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;;GAEG;AACH,MAAM,MAAM,oBAAoB,GAAG,MAAM,CAAA"}
915
1027
  }
916
1028
  declare module '@ibti-tech/chatbot/services/types/feedback.types' {
917
1029
  import { ChatbotTypes } from 'types';
918
1030
  /**
919
- * Parameters for sending user chat feedback (rating).
1031
+ * Parameters for sending user chat feedback (POST /chat/feedback).
1032
+ * Used by `sendUserChatFeedback`.
920
1033
  */
921
1034
  export type SendUserChatFeedbackParams = {
1035
+ /** Locale: `'pt-BR'` | `'en'`. */
922
1036
  locale: ChatbotTypes.Locale;
1037
+ /** Base URL of the chatbot API. */
923
1038
  apiURL: string;
1039
+ /** Optional. Public hash of the chatbot. */
924
1040
  publicHash?: string;
1041
+ /** Optional. Visitor id to associate feedback with the conversation. */
925
1042
  visitorId?: string;
1043
+ /** Current conversation context (role + content) for the session being rated. */
926
1044
  chatContext: Pick<ChatbotTypes.ChatMessage, 'content' | 'role'>[];
1045
+ /** Rating score (e.g. 1–5). */
927
1046
  ratingScore: number;
1047
+ /** Optional. Free-text feedback. */
928
1048
  description?: string;
929
1049
  };
930
1050
  //# sourceMappingURL=feedback.types.d.ts.map
931
1051
  }
932
1052
  declare module '@ibti-tech/chatbot/services/types/feedback.types.d.ts' {
933
- {"version":3,"file":"feedback.types.d.ts","sourceRoot":"","sources":["../../../../../home/runner/work/ibti-chatbot/ibti-chatbot/src/services/types/feedback.types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,OAAO,CAAA;AAEpC;;GAEG;AACH,MAAM,MAAM,0BAA0B,GAAG;IACvC,MAAM,EAAE,YAAY,CAAC,MAAM,CAAA;IAC3B,MAAM,EAAE,MAAM,CAAA;IACd,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,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"}
1053
+ {"version":3,"file":"feedback.types.d.ts","sourceRoot":"","sources":["../../../../../home/runner/work/ibti-chatbot/ibti-chatbot/src/services/types/feedback.types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,OAAO,CAAA;AAEpC;;;GAGG;AACH,MAAM,MAAM,0BAA0B,GAAG;IACvC,kCAAkC;IAClC,MAAM,EAAE,YAAY,CAAC,MAAM,CAAA;IAC3B,mCAAmC;IACnC,MAAM,EAAE,MAAM,CAAA;IACd,4CAA4C;IAC5C,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,wEAAwE;IACxE,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,iFAAiF;IACjF,WAAW,EAAE,IAAI,CAAC,YAAY,CAAC,WAAW,EAAE,SAAS,GAAG,MAAM,CAAC,EAAE,CAAA;IACjE,+BAA+B;IAC/B,WAAW,EAAE,MAAM,CAAA;IACnB,oCAAoC;IACpC,WAAW,CAAC,EAAE,MAAM,CAAA;CACrB,CAAA"}
934
1054
  }
935
1055
  declare module '@ibti-tech/chatbot/services/types/index' {
936
1056
  export * from '@ibti-tech/chatbot/services/types/chat.types';
@@ -1072,33 +1192,64 @@ declare module '@ibti-tech/chatbot/themes/index.d.ts' {
1072
1192
  {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../home/runner/work/ibti-chatbot/ibti-chatbot/src/themes/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAoB,iBAAiB,EAAE,MAAM,eAAe,CAAA;AACnE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,OAAO,CAAA;AAEzC,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAGlB,CAAA;AAED,gDAAgD;AAChD,wBAAgB,0BAA0B,CACxC,SAAS,EAAE,OAAO,iBAAiB,EACnC,YAAY,CAAC,EAAE,YAAY,CAAC,YAAY,GACvC,OAAO,iBAAiB,CAqC1B"}
1073
1193
  }
1074
1194
  declare module '@ibti-tech/chatbot/types/index' {
1195
+ /**
1196
+ * Chatbot frontend type definitions.
1197
+ * Use these types when integrating the chatbot as a client (React app or embed).
1198
+ */
1075
1199
  export namespace ChatbotTypes {
1200
+ /** UI theme: `'light'` or `'dark'`. */
1076
1201
  type Theme = 'light' | 'dark';
1202
+ /** Supported locales: `'pt-BR'` | `'en'`. */
1077
1203
  type Locale = 'pt-BR' | 'en';
1078
- /** Custom colors to override chatbot theme elements. Values in hex (#rrggbb) or rgb(r,g,b). */
1204
+ /**
1205
+ * Custom colors to override chatbot theme elements.
1206
+ * Values: hex (e.g. `#rrggbb`) or `rgb(r,g,b)`.
1207
+ */
1079
1208
  interface CustomColors {
1080
- /** Primary accent: header avatar, toggle, buttons, user balloons, links, scrollbars */
1209
+ /** Primary accent: header avatar, toggle button, action buttons, user balloons, links, scrollbars. */
1081
1210
  primaryColor?: string;
1082
- /** Header bar background. Defaults to primaryColor if not set */
1211
+ /** Header bar background. Defaults to `primaryColor` if not set. */
1083
1212
  headerBackground?: string;
1084
- /** User message balloon background. Defaults to primaryColor if not set */
1213
+ /** User message balloon background. Defaults to `primaryColor` if not set. */
1085
1214
  userBalloonColor?: string;
1086
1215
  }
1216
+ /**
1217
+ * A single message in the chat thread (user or assistant).
1218
+ */
1087
1219
  type ChatMessage = {
1220
+ /** Unique message id (e.g. UUID). */
1088
1221
  id: string;
1222
+ /** ISO/UTC timestamp string. */
1089
1223
  timestamp: string;
1224
+ /** Sender: `'user'` or `'assistant'`. */
1090
1225
  role: 'user' | 'assistant';
1226
+ /** Message body (plain text). */
1091
1227
  content: string;
1228
+ /** When true, content is an error message to display. */
1092
1229
  error?: boolean;
1093
1230
  };
1231
+ /**
1232
+ * Minimal message shape for API context (role + content only).
1233
+ * Used when sending chat context to completion or feedback endpoints.
1234
+ */
1094
1235
  type ChatContextItem = {
1095
1236
  role: 'user' | 'assistant';
1096
1237
  content: string;
1097
1238
  };
1239
+ /** Widget status shown in the header: writing indicator, loading, online, or unavailable. */
1098
1240
  type Status = 'writing' | 'loading' | 'online' | 'unavailable';
1099
- /** Status of the widget initialization */
1241
+ /**
1242
+ * Initialization state of the widget (when using `publicHash`).
1243
+ * - `loading`: fetching chatbot config
1244
+ * - `domain_not_allowed`: current origin not in allowed domains
1245
+ * - `error`: network or API error
1246
+ * - `ready`: widget ready to chat
1247
+ */
1100
1248
  type InitializationStatus = 'loading' | 'domain_not_allowed' | 'error' | 'ready';
1101
- /** Response from GET /chatbots/public/:hash */
1249
+ /**
1250
+ * Response from GET `/chatbots/public/:hash`.
1251
+ * Contains chatbot metadata and domain info.
1252
+ */
1102
1253
  interface ChatbotPublicResponse {
1103
1254
  id: number;
1104
1255
  name: string;
@@ -1112,12 +1263,21 @@ declare module '@ibti-tech/chatbot/types/index' {
1112
1263
  chatInstructions?: unknown;
1113
1264
  client?: unknown;
1114
1265
  }
1266
+ /**
1267
+ * Optional config for API and domain behaviour.
1268
+ * Used internally; for embed/client prefer ChatbotProvider props or IBTIChatbotEmbedConfig.
1269
+ */
1115
1270
  interface Config {
1116
1271
  apiURL?: string;
1117
1272
  publicHash?: string;
1118
1273
  additionalInstructions?: string;
1274
+ /** Origins that skip domain validation (e.g. for preview). */
1119
1275
  allowedOriginsWithoutCheck?: string[];
1120
1276
  }
1277
+ /**
1278
+ * Custom UI copy per section (locale key → strings).
1279
+ * Override only the keys you need; rest use defaults.
1280
+ */
1121
1281
  interface CustomTexts {
1122
1282
  CHATBOT_NAME?: string;
1123
1283
  INPUT_PLACEHOLDER?: string;
@@ -1155,6 +1315,7 @@ declare module '@ibti-tech/chatbot/types/index' {
1155
1315
  USER_LABEL?: string;
1156
1316
  WRITING_MESSAGE?: string;
1157
1317
  }
1318
+ /** Map of locale code to CustomTexts. Example: `{ 'pt-BR': { ... }, 'en': { ... } }`. */
1158
1319
  interface Texts {
1159
1320
  [locale: string]: CustomTexts;
1160
1321
  }
@@ -1162,7 +1323,7 @@ declare module '@ibti-tech/chatbot/types/index' {
1162
1323
  //# sourceMappingURL=index.d.ts.map
1163
1324
  }
1164
1325
  declare module '@ibti-tech/chatbot/types/index.d.ts' {
1165
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../home/runner/work/ibti-chatbot/ibti-chatbot/src/types/index.ts"],"names":[],"mappings":"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"}
1326
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../home/runner/work/ibti-chatbot/ibti-chatbot/src/types/index.ts"],"names":[],"mappings":"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"}
1166
1327
  }
1167
1328
  declare module '@ibti-tech/chatbot/utils/domainValidation' {
1168
1329
  /**
package/dist/index.mjs CHANGED
@@ -1019,10 +1019,11 @@ var Wrapper = styled.div`
1019
1019
 
1020
1020
  /* Default height - will be overridden by specific states */
1021
1021
  ${(props) => {
1022
+ const barH = props.$pushContentDownBarHeight ?? 32;
1022
1023
  if (props.$pushContentDown && props.$verticalPosition === "top") {
1023
1024
  if (!props.$opened) {
1024
1025
  return css`
1025
- height: 32px;
1026
+ height: ${barH}px;
1026
1027
  `;
1027
1028
  }
1028
1029
  return css`
@@ -1080,12 +1081,13 @@ var Wrapper = styled.div`
1080
1081
  ${screens.tablet} {
1081
1082
  /* Height when closed with pushContentDown vs opened */
1082
1083
  ${(props) => {
1084
+ const barH = props.$pushContentDownBarHeight ?? 32;
1083
1085
  if (props.$pushContentDown && props.$verticalPosition === "top") {
1084
1086
  if (!props.$opened) {
1085
1087
  return css`
1086
- height: 32px !important;
1087
- max-height: 32px !important;
1088
- min-height: 32px !important;
1088
+ height: ${barH}px !important;
1089
+ max-height: ${barH}px !important;
1090
+ min-height: ${barH}px !important;
1089
1091
  `;
1090
1092
  } else {
1091
1093
  return css`
@@ -1131,18 +1133,20 @@ var Wrapper = styled.div`
1131
1133
  }
1132
1134
 
1133
1135
  /* Closed state styles */
1134
- ${(props) => !props.$opened && (props.$verticalPosition === "top" ? css`
1136
+ ${(props) => {
1137
+ const barH = props.$pushContentDownBarHeight ?? 32;
1138
+ return !props.$opened && (props.$verticalPosition === "top" ? css`
1135
1139
  ${props.$pushContentDown ? css`
1136
1140
  /* Push content down mode: show only toggle button - based on commit 8379cc8 */
1137
- height: 32px !important;
1138
- max-height: 32px !important;
1139
- min-height: 32px !important;
1141
+ height: ${barH}px !important;
1142
+ max-height: ${barH}px !important;
1143
+ min-height: ${barH}px !important;
1140
1144
  transform: none !important;
1141
1145
  overflow: visible !important;
1142
1146
  ${screens.tablet} {
1143
- height: 32px !important;
1144
- max-height: 32px !important;
1145
- min-height: 32px !important;
1147
+ height: ${barH}px !important;
1148
+ max-height: ${barH}px !important;
1149
+ min-height: ${barH}px !important;
1146
1150
  transform: none !important;
1147
1151
  }
1148
1152
  > *:not(:last-child) {
@@ -1150,9 +1154,9 @@ var Wrapper = styled.div`
1150
1154
  }
1151
1155
  > *:last-child {
1152
1156
  flex-shrink: 0 !important;
1153
- min-height: 32px !important;
1154
- height: 32px !important;
1155
- max-height: 32px !important;
1157
+ min-height: ${barH}px !important;
1158
+ height: ${barH}px !important;
1159
+ max-height: ${barH}px !important;
1156
1160
  width: 100% !important;
1157
1161
  min-width: 100% !important;
1158
1162
  max-width: 100% !important;
@@ -1161,11 +1165,11 @@ var Wrapper = styled.div`
1161
1165
  }
1162
1166
  ` : css`
1163
1167
  /* Overlay mode: translate up to show only toggle button - based on commit 8379cc8 */
1164
- transform: translateY(calc(-100% + 32px));
1168
+ transform: translateY(calc(-100% + ${barH}px));
1165
1169
  `}
1166
1170
  ` : css`
1167
1171
  /* Bottom position: translate down to show only toggle button */
1168
- transform: translateY(calc(100% - 32px));
1172
+ transform: translateY(calc(100% - ${barH}px));
1169
1173
  width: 100%;
1170
1174
 
1171
1175
  ${screens.tablet} {
@@ -1180,11 +1184,12 @@ var Wrapper = styled.div`
1180
1184
 
1181
1185
  > *:last-child {
1182
1186
  flex-shrink: 0;
1183
- min-height: 32px;
1184
- height: 32px;
1187
+ min-height: ${barH}px;
1188
+ height: ${barH}px;
1185
1189
  width: 100%;
1186
1190
  }
1187
- `)}
1191
+ `);
1192
+ }}
1188
1193
 
1189
1194
  /* Opened state styles when pushContentDown is true - must come after closed state */
1190
1195
  /* Chat overlays (Bar is fixed); same internal layout as overlay — no display overrides */
@@ -2530,9 +2535,9 @@ var ChatbotFooter_default = ChatbotFooter;
2530
2535
  import { screens as screens2 } from "@ibti-tech/ui";
2531
2536
  import { css as css4, styled as styled9 } from "styled-components";
2532
2537
  var ButtonWrapper = styled9.button`
2533
- height: 32px !important;
2534
- min-height: 32px !important;
2535
- max-height: 32px !important;
2538
+ height: ${(p) => p.$barHeight ?? 32}px !important;
2539
+ min-height: ${(p) => p.$barHeight ?? 32}px !important;
2540
+ max-height: ${(p) => p.$barHeight ?? 32}px !important;
2536
2541
  width: 100% !important;
2537
2542
  min-width: 100% !important;
2538
2543
  max-width: 100% !important;
@@ -2561,8 +2566,8 @@ var ButtonWrapper = styled9.button`
2561
2566
  ${(props) => !props.$opened && props.$verticalPosition === "bottom" && css4`
2562
2567
  background-color: ${props.theme.colors.layers[1].background};
2563
2568
  cursor: pointer;
2564
- min-height: 32px;
2565
- height: 32px;
2569
+ min-height: ${props.$barHeight ?? 32}px;
2570
+ height: ${props.$barHeight ?? 32}px;
2566
2571
  width: 100%;
2567
2572
  flex-shrink: 0;
2568
2573
  box-sizing: border-box;
@@ -2595,10 +2600,12 @@ var ButtonWrapper = styled9.button`
2595
2600
  // src/components/ChatbotToggle/index.tsx
2596
2601
  import React12 from "react";
2597
2602
  import { ChevronDownIcon, ChevronUpIcon } from "@ibti-tech/ui/dist/icons";
2603
+ var DEFAULT_BAR_HEIGHT = 32;
2598
2604
  var ChatbotToggle = /* @__PURE__ */ __name(({
2599
2605
  verticalPosition = "bottom",
2600
2606
  opened: openedProp,
2601
- pushContentDown = false
2607
+ pushContentDown = false,
2608
+ pushContentDownBarHeight = DEFAULT_BAR_HEIGHT
2602
2609
  }) => {
2603
2610
  const { opened: openedContext, openedToggle, theme: themeMode } = useChatbot_default();
2604
2611
  const opened = openedProp ?? openedContext;
@@ -2612,7 +2619,8 @@ var ChatbotToggle = /* @__PURE__ */ __name(({
2612
2619
  $opened: opened,
2613
2620
  $verticalPosition: verticalPosition,
2614
2621
  $pushContentDown: pushContentDown,
2615
- $themeMode: themeMode
2622
+ $themeMode: themeMode,
2623
+ $barHeight: pushContentDownBarHeight
2616
2624
  },
2617
2625
  /* @__PURE__ */ React12.createElement(BotIcon, null),
2618
2626
  /* @__PURE__ */ React12.createElement("span", null, toggleText),
@@ -2852,20 +2860,24 @@ var useChatFeedbackBox = /* @__PURE__ */ __name(() => {
2852
2860
  }, "useChatFeedbackBox");
2853
2861
 
2854
2862
  // src/components/ChatbotDevice/index.tsx
2863
+ var DEFAULT_PUSH_DOWN_BAR_HEIGHT = 32;
2855
2864
  var ChatbotDevice = /* @__PURE__ */ __name(({
2856
2865
  verticalPosition = "bottom",
2857
2866
  pushContentDown = false,
2858
- horizontalPosition
2867
+ horizontalPosition,
2868
+ pushContentDownBarHeight = DEFAULT_PUSH_DOWN_BAR_HEIGHT
2859
2869
  }) => {
2860
2870
  const { opened } = useChatbot_default();
2861
2871
  const chatFeedbackBox = useChatFeedbackBox();
2872
+ const barH = pushContentDownBarHeight;
2862
2873
  return /* @__PURE__ */ React14.createElement(
2863
2874
  Wrapper,
2864
2875
  {
2865
2876
  $opened: opened,
2866
2877
  $verticalPosition: verticalPosition,
2867
2878
  $pushContentDown: pushContentDown,
2868
- $horizontalPosition: horizontalPosition
2879
+ $horizontalPosition: horizontalPosition,
2880
+ $pushContentDownBarHeight: barH
2869
2881
  },
2870
2882
  /* @__PURE__ */ React14.createElement(ChatUserFeedbackRating, { chatFeedbackBox }),
2871
2883
  /* @__PURE__ */ React14.createElement(ChatbotHeader_default, { chatFeedbackBox }),
@@ -2876,7 +2888,8 @@ var ChatbotDevice = /* @__PURE__ */ __name(({
2876
2888
  {
2877
2889
  verticalPosition,
2878
2890
  opened,
2879
- pushContentDown
2891
+ pushContentDown,
2892
+ pushContentDownBarHeight: barH
2880
2893
  }
2881
2894
  )
2882
2895
  );
@@ -2954,20 +2967,22 @@ var PushDownRow = styled11.div`
2954
2967
  position: absolute;
2955
2968
  inset: 0;
2956
2969
  width: 100%;
2957
- height: 32px;
2958
- min-height: 32px;
2970
+ height: ${(p) => p.$barHeight}px;
2971
+ min-height: ${(p) => p.$barHeight}px;
2959
2972
  background-color: ${(p) => p.$background};
2960
2973
  z-index: 0;
2961
2974
  pointer-events: none;
2962
2975
  `;
2963
2976
  var Wrapper10 = styled11.div`
2964
2977
  ${(props) => {
2978
+ const barH = props.$pushContentDownBarHeight ?? 32;
2979
+ const topVal = props.$topOffset !== void 0 ? typeof props.$topOffset === "number" ? `${props.$topOffset}px` : props.$topOffset : "0";
2965
2980
  if (props.$pushContentDown && props.$verticalPosition === "top") {
2966
2981
  if (props.$opened) {
2967
2982
  return css6`
2968
2983
  position: fixed !important;
2969
2984
  width: 100%;
2970
- top: 0 !important;
2985
+ top: ${topVal} !important;
2971
2986
  bottom: auto !important;
2972
2987
  left: 0 !important;
2973
2988
  right: 0 !important;
@@ -2982,13 +2997,13 @@ var Wrapper10 = styled11.div`
2982
2997
  background-color: transparent;
2983
2998
  border: none;
2984
2999
  padding: 0;
2985
- top: ${props.$topOffset !== void 0 ? typeof props.$topOffset === "number" ? `${props.$topOffset}px` : props.$topOffset : "0"} !important;
3000
+ top: ${topVal} !important;
2986
3001
  bottom: auto !important;
2987
3002
  ${props.$horizontalPosition === "right" ? css6`left: auto !important; right: 2.5rem !important;` : css6`left: 2.5rem !important; right: auto !important;`}
2988
3003
  }
2989
3004
  @media screen and (max-width: ${breakpoints3.tablet}px) {
2990
3005
  padding-top: 0 !important;
2991
- top: 0 !important;
3006
+ top: ${topVal} !important;
2992
3007
  height: 100vh;
2993
3008
  }
2994
3009
  `;
@@ -2996,14 +3011,14 @@ var Wrapper10 = styled11.div`
2996
3011
  return css6`
2997
3012
  position: fixed !important;
2998
3013
  width: 100%;
2999
- top: 0 !important;
3014
+ top: ${topVal} !important;
3000
3015
  bottom: auto !important;
3001
3016
  left: 0 !important;
3002
3017
  right: 0 !important;
3003
3018
  z-index: ${props.$zIndex !== void 0 ? props.$zIndex : props.theme.zIndex.modals};
3004
3019
  pointer-events: auto;
3005
- height: 32px !important;
3006
- min-height: 32px !important;
3020
+ height: ${barH}px !important;
3021
+ min-height: ${barH}px !important;
3007
3022
  background-color: transparent;
3008
3023
  ${screens3.tablet} {
3009
3024
  width: 100% !important;
@@ -3011,10 +3026,12 @@ var Wrapper10 = styled11.div`
3011
3026
  border: none;
3012
3027
  padding: 0;
3013
3028
  bottom: auto !important;
3029
+ top: ${topVal} !important;
3014
3030
  }
3015
3031
  @media screen and (max-width: ${breakpoints3.tablet}px) {
3016
- height: 32px !important;
3017
- min-height: 32px !important;
3032
+ height: ${barH}px !important;
3033
+ min-height: ${barH}px !important;
3034
+ top: ${topVal} !important;
3018
3035
  }
3019
3036
  `;
3020
3037
  }
@@ -3063,6 +3080,9 @@ import React15, { useEffect as useEffect8, useState as useState10 } from "react"
3063
3080
  import { createPortal } from "react-dom";
3064
3081
  var PUSH_DOWN_ROW_BG_LIGHT = "rgb(230, 230, 230)";
3065
3082
  var PUSH_DOWN_ROW_BG_DARK = "rgb(0, 0, 0)";
3083
+ var PUSH_DOWN_BAR_HEIGHT_PX = 32;
3084
+ var BODY_CLASS_PUSH_DOWN = "ibti-chatbot-push-down";
3085
+ var BODY_CSS_VAR_BAR_HEIGHT = "--ibti-chatbot-bar-height";
3066
3086
  var ChatbotBar = /* @__PURE__ */ __name(({
3067
3087
  verticalPosition = "bottom",
3068
3088
  horizontalPosition = "right",
@@ -3072,8 +3092,10 @@ var ChatbotBar = /* @__PURE__ */ __name(({
3072
3092
  aboveHeader = false,
3073
3093
  pushContentDown = false,
3074
3094
  pushContentDownRowBackgroundLight = PUSH_DOWN_ROW_BG_LIGHT,
3075
- pushContentDownRowBackgroundDark = PUSH_DOWN_ROW_BG_DARK
3095
+ pushContentDownRowBackgroundDark = PUSH_DOWN_ROW_BG_DARK,
3096
+ pushContentDownBarHeight = PUSH_DOWN_BAR_HEIGHT_PX
3076
3097
  }) => {
3098
+ const barHeightPx = Math.max(24, Math.min(120, pushContentDownBarHeight));
3077
3099
  const { opened, theme } = useChatbot_default();
3078
3100
  const pushDownRowBackground = theme === "dark" ? pushContentDownRowBackgroundDark : pushContentDownRowBackgroundLight;
3079
3101
  const [portalContainer, setPortalContainer] = useState10(null);
@@ -3101,18 +3123,17 @@ var ChatbotBar = /* @__PURE__ */ __name(({
3101
3123
  }
3102
3124
  }, [verticalPosition]);
3103
3125
  const usePushDown = pushContentDown && verticalPosition === "top";
3104
- const content = /* @__PURE__ */ React15.createElement(React15.Fragment, null, usePushDown && /* @__PURE__ */ React15.createElement(
3105
- "div",
3106
- {
3107
- style: {
3108
- height: 33,
3109
- minHeight: 33,
3110
- width: "100%",
3111
- backgroundColor: pushDownRowBackground
3112
- },
3113
- "aria-hidden": true
3114
- }
3115
- ), /* @__PURE__ */ React15.createElement(
3126
+ useEffect8(() => {
3127
+ if (!usePushDown || typeof document === "undefined") return;
3128
+ const body = document.body;
3129
+ body.classList.add(BODY_CLASS_PUSH_DOWN);
3130
+ body.style.setProperty(BODY_CSS_VAR_BAR_HEIGHT, `${barHeightPx}px`);
3131
+ return () => {
3132
+ body.classList.remove(BODY_CLASS_PUSH_DOWN);
3133
+ body.style.removeProperty(BODY_CSS_VAR_BAR_HEIGHT);
3134
+ };
3135
+ }, [usePushDown, barHeightPx]);
3136
+ const content = /* @__PURE__ */ React15.createElement(React15.Fragment, null, /* @__PURE__ */ React15.createElement(
3116
3137
  Wrapper10,
3117
3138
  {
3118
3139
  $verticalPosition: verticalPosition,
@@ -3121,9 +3142,17 @@ var ChatbotBar = /* @__PURE__ */ __name(({
3121
3142
  $zIndex: calculatedZIndex,
3122
3143
  $topOffset: topOffset,
3123
3144
  $aboveHeader: aboveHeader,
3124
- $pushContentDown: pushContentDown
3145
+ $pushContentDown: pushContentDown,
3146
+ $pushContentDownBarHeight: barHeightPx
3125
3147
  },
3126
- usePushDown && !opened && /* @__PURE__ */ React15.createElement(PushDownRow, { $background: pushDownRowBackground, "aria-hidden": true }),
3148
+ usePushDown && !opened && /* @__PURE__ */ React15.createElement(
3149
+ PushDownRow,
3150
+ {
3151
+ $background: pushDownRowBackground,
3152
+ $barHeight: barHeightPx,
3153
+ "aria-hidden": true
3154
+ }
3155
+ ),
3127
3156
  /* @__PURE__ */ React15.createElement(
3128
3157
  BarContainer,
3129
3158
  {
@@ -3138,7 +3167,8 @@ var ChatbotBar = /* @__PURE__ */ __name(({
3138
3167
  {
3139
3168
  verticalPosition,
3140
3169
  pushContentDown: usePushDown,
3141
- horizontalPosition: deviceHorizontalPosition
3170
+ horizontalPosition: deviceHorizontalPosition,
3171
+ pushContentDownBarHeight: barHeightPx
3142
3172
  }
3143
3173
  )
3144
3174
  )
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@ibti-tech/chatbot",
3
- "version": "0.8.0",
4
- "description": "Chatbot developed for IBTI products",
3
+ "version": "0.8.5",
4
+ "description": "Chatbot system developed to be embedded in any website",
5
5
  "packageManager": "yarn@3.6.4",
6
6
  "main": "./dist/index.mjs",
7
7
  "types": "./dist/index.d.ts",