@ibti-tech/chatbot 0.6.2 → 0.8.0
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 +68 -566
- package/dist/index.d.ts +333 -29
- package/dist/index.mjs +467 -106
- package/package.json +3 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,10 +1,24 @@
|
|
|
1
|
+
declare module '@ibti-tech/chatbot/components/BotIcon/embedIcons' {
|
|
2
|
+
/**
|
|
3
|
+
* Map of embed icon names to Lucide React components.
|
|
4
|
+
* Must match the icons offered in the admin embed page (EmbedIconName).
|
|
5
|
+
* Only use icons that exist in this package version (lucide-react 0.263.x).
|
|
6
|
+
*/
|
|
7
|
+
import { type LucideIcon } from 'lucide-react';
|
|
8
|
+
export const EMBED_ICON_MAP: Record<string, LucideIcon>;
|
|
9
|
+
export function getEmbedIconComponent(name: string | undefined): LucideIcon | null;
|
|
10
|
+
//# sourceMappingURL=embedIcons.d.ts.map
|
|
11
|
+
}
|
|
12
|
+
declare module '@ibti-tech/chatbot/components/BotIcon/embedIcons.d.ts' {
|
|
13
|
+
{"version":3,"file":"embedIcons.d.ts","sourceRoot":"","sources":["../../../../../home/runner/work/ibti-chatbot/ibti-chatbot/src/components/BotIcon/embedIcons.tsx"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EASL,KAAK,UAAU,EAChB,MAAM,cAAc,CAAA;AAErB,eAAO,MAAM,cAAc,EAAE,MAAM,CAAC,MAAM,EAAE,UAAU,CASrD,CAAA;AAED,wBAAgB,qBAAqB,CAAC,IAAI,EAAE,MAAM,GAAG,SAAS,GAAG,UAAU,GAAG,IAAI,CAGjF"}
|
|
14
|
+
}
|
|
1
15
|
declare module '@ibti-tech/chatbot/components/BotIcon/index' {
|
|
2
16
|
import React from 'react';
|
|
3
17
|
export const BotIcon: () => React.JSX.Element;
|
|
4
18
|
//# sourceMappingURL=index.d.ts.map
|
|
5
19
|
}
|
|
6
20
|
declare module '@ibti-tech/chatbot/components/BotIcon/index.d.ts' {
|
|
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;
|
|
21
|
+
{"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;AAazB,eAAO,MAAM,OAAO,yBASnB,CAAA"}
|
|
8
22
|
}
|
|
9
23
|
declare module '@ibti-tech/chatbot/components/ChatUserFeedbackRating/index' {
|
|
10
24
|
import React from 'react';
|
|
@@ -37,7 +51,7 @@ declare module '@ibti-tech/chatbot/components/ChatUserFeedbackRating/styles' {
|
|
|
37
51
|
//# sourceMappingURL=styles.d.ts.map
|
|
38
52
|
}
|
|
39
53
|
declare module '@ibti-tech/chatbot/components/ChatUserFeedbackRating/styles.d.ts' {
|
|
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,mOAkDhB,CAAA;AAED,eAAO,MAAM,WAAW,6NAKvB,CAAA;AAED,eAAO,MAAM,KAAK,+NAKjB,CAAA;AAED,eAAO,MAAM,GAAG;;;;;;;
|
|
54
|
+
{"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,mOAkDhB,CAAA;AAED,eAAO,MAAM,WAAW,6NAKvB,CAAA;AAED,eAAO,MAAM,KAAK,+NAKjB,CAAA;AAED,eAAO,MAAM,GAAG;;;;;;;wRAoBf,CAAA;AAED,eAAO,MAAM,OAAO;aAAyB,OAAO;YA8BnD,CAAA"}
|
|
41
55
|
}
|
|
42
56
|
declare module '@ibti-tech/chatbot/components/ChatbotBar/index' {
|
|
43
57
|
import React from 'react';
|
|
@@ -130,7 +144,7 @@ declare module '@ibti-tech/chatbot/components/ChatbotBody/index' {
|
|
|
130
144
|
//# sourceMappingURL=index.d.ts.map
|
|
131
145
|
}
|
|
132
146
|
declare module '@ibti-tech/chatbot/components/ChatbotBody/index.d.ts' {
|
|
133
|
-
{"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;
|
|
147
|
+
{"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;AAWhD,MAAM,MAAM,gBAAgB,GAAG,EAAE,CAAA;AAEjC,eAAO,MAAM,WAAW,GAAI,MAAE,sBAwF7B,CAAA;AAED,eAAe,WAAW,CAAA"}
|
|
134
148
|
}
|
|
135
149
|
declare module '@ibti-tech/chatbot/components/ChatbotBody/styles' {
|
|
136
150
|
export const ChatbotInput: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
@@ -213,7 +227,7 @@ declare module '@ibti-tech/chatbot/components/ChatbotHeader/styles' {
|
|
|
213
227
|
//# sourceMappingURL=styles.d.ts.map
|
|
214
228
|
}
|
|
215
229
|
declare module '@ibti-tech/chatbot/components/ChatbotHeader/styles.d.ts' {
|
|
216
|
-
{"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,
|
|
230
|
+
{"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,6NAkBnB,CAAA"}
|
|
217
231
|
}
|
|
218
232
|
declare module '@ibti-tech/chatbot/components/ChatbotStatusLabel/index' {
|
|
219
233
|
import React from 'react';
|
|
@@ -308,7 +322,7 @@ declare module '@ibti-tech/chatbot/components/MessageBalloon/styles' {
|
|
|
308
322
|
//# sourceMappingURL=styles.d.ts.map
|
|
309
323
|
}
|
|
310
324
|
declare module '@ibti-tech/chatbot/components/MessageBalloon/styles.d.ts' {
|
|
311
|
-
{"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;YAoB3D,CAAA;AAED,eAAO,MAAM,OAAO;WACX,UAAU,GAAG,MAAM;aACjB,OAAO;
|
|
325
|
+
{"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;YAoB3D,CAAA;AAED,eAAO,MAAM,OAAO;WACX,UAAU,GAAG,MAAM;aACjB,OAAO;YAqLjB,CAAA;AAED,eAAO,MAAM,KAAK,+NAKjB,CAAA;AAED,eAAO,MAAM,wBAAwB;WAAuB,UAAU,GAAG,MAAM;YAmB9E,CAAA;AAED,eAAO,MAAM,gBAAgB;WAAuB,UAAU,GAAG,MAAM;YAoBtE,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;YAgBrE,CAAA;AAED,eAAO,MAAM,OAAO;WAAuB,UAAU,GAAG,MAAM;YAqB7D,CAAA"}
|
|
312
326
|
}
|
|
313
327
|
declare module '@ibti-tech/chatbot/components/SuggestedQuestions/index' {
|
|
314
328
|
import React from 'react';
|
|
@@ -373,12 +387,24 @@ declare module '@ibti-tech/chatbot/contexts/Chatbot/context' {
|
|
|
373
387
|
apiURL: string;
|
|
374
388
|
texts?: ChatbotTypes.Texts;
|
|
375
389
|
theme: ChatbotTypes.Theme;
|
|
390
|
+
/** Lucide icon name for the chatbot (button/header). */
|
|
391
|
+
icon?: string;
|
|
392
|
+
/** Public hash of the chatbot (when using new API) */
|
|
393
|
+
publicHash?: string;
|
|
394
|
+
/** Stable visitor ID for this chatbot session */
|
|
395
|
+
visitorId?: string;
|
|
396
|
+
/** Whether the current domain is allowed for this chatbot */
|
|
397
|
+
domainAllowed: boolean;
|
|
398
|
+
/** Initialization state of the widget */
|
|
399
|
+
initializationStatus: ChatbotTypes.InitializationStatus;
|
|
400
|
+
/** Chatbot data from GET /chatbots/public/:hash (when ready) */
|
|
401
|
+
chatbot?: ChatbotTypes.ChatbotPublicResponse;
|
|
376
402
|
};
|
|
377
403
|
export const ChatbotContext: React.Context<ChatbotContextProps>;
|
|
378
404
|
//# sourceMappingURL=context.d.ts.map
|
|
379
405
|
}
|
|
380
406
|
declare module '@ibti-tech/chatbot/contexts/Chatbot/context.d.ts' {
|
|
381
|
-
{"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;
|
|
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"}
|
|
382
408
|
}
|
|
383
409
|
declare module '@ibti-tech/chatbot/contexts/Chatbot/provider' {
|
|
384
410
|
import React, { ReactNode } from 'react';
|
|
@@ -386,16 +412,26 @@ declare module '@ibti-tech/chatbot/contexts/Chatbot/provider' {
|
|
|
386
412
|
export type ChatbotProviderProps = {
|
|
387
413
|
locale: ChatbotTypes.Locale;
|
|
388
414
|
apiURL: string;
|
|
415
|
+
/** Public hash of the chatbot (required for new API; omit for legacy mode) */
|
|
416
|
+
publicHash?: string;
|
|
389
417
|
children?: ReactNode;
|
|
390
418
|
theme: ChatbotTypes.Theme;
|
|
391
419
|
isOpen?: boolean;
|
|
392
420
|
texts?: ChatbotTypes.Texts;
|
|
421
|
+
/** Override list of origins that skip domain check */
|
|
422
|
+
allowedOriginsWithoutCheck?: string[];
|
|
423
|
+
/** When true (e.g. admin preview iframe), skip domain validation entirely */
|
|
424
|
+
skipDomainCheck?: boolean;
|
|
425
|
+
/** Custom colors for branding (primary, header, user balloons) */
|
|
426
|
+
colors?: ChatbotTypes.CustomColors;
|
|
427
|
+
/** Lucide icon name for the chatbot button/header (e.g. 'Bot', 'MessageCircle'). */
|
|
428
|
+
icon?: string;
|
|
393
429
|
};
|
|
394
|
-
export const ChatbotProvider: ({ locale, children, apiURL, theme, isOpen, texts, }: ChatbotProviderProps) => React.JSX.Element;
|
|
430
|
+
export const ChatbotProvider: ({ locale, children, apiURL, publicHash, theme, isOpen, texts, allowedOriginsWithoutCheck, skipDomainCheck, colors: customColors, icon: customIcon, }: ChatbotProviderProps) => React.JSX.Element;
|
|
395
431
|
//# sourceMappingURL=provider.d.ts.map
|
|
396
432
|
}
|
|
397
433
|
declare module '@ibti-tech/chatbot/contexts/Chatbot/provider.d.ts' {
|
|
398
|
-
{"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;
|
|
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"}
|
|
399
435
|
}
|
|
400
436
|
declare module '@ibti-tech/chatbot/contexts/Chatbot/useChatFeedbackBox' {
|
|
401
437
|
type SendUserRatingProps = {
|
|
@@ -413,7 +449,7 @@ declare module '@ibti-tech/chatbot/contexts/Chatbot/useChatFeedbackBox' {
|
|
|
413
449
|
//# sourceMappingURL=useChatFeedbackBox.d.ts.map
|
|
414
450
|
}
|
|
415
451
|
declare module '@ibti-tech/chatbot/contexts/Chatbot/useChatFeedbackBox.d.ts' {
|
|
416
|
-
{"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;;
|
|
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"}
|
|
417
453
|
}
|
|
418
454
|
declare module '@ibti-tech/chatbot/contexts/Chatbot/useChatbot' {
|
|
419
455
|
export const useChatbot: () => import("@ibti-tech/chatbot/contexts/Chatbot/context").ChatbotContextProps;
|
|
@@ -428,8 +464,10 @@ declare module '@ibti-tech/chatbot/contexts/Chatbot/useChatbotMessages' {
|
|
|
428
464
|
export type UseChatbotMessagesOptions = {
|
|
429
465
|
apiURL: string;
|
|
430
466
|
locale: ChatbotTypes.Locale;
|
|
467
|
+
publicHash?: string;
|
|
468
|
+
visitorId?: string;
|
|
431
469
|
};
|
|
432
|
-
export const useChatbotMessages: ({ apiURL, locale, }: UseChatbotMessagesOptions) => {
|
|
470
|
+
export const useChatbotMessages: ({ apiURL, locale, publicHash, visitorId, }: UseChatbotMessagesOptions) => {
|
|
433
471
|
chatMessages: ChatbotTypes.ChatMessage[];
|
|
434
472
|
makeQuestion: (userQuestion: string) => Promise<void>;
|
|
435
473
|
loading: boolean;
|
|
@@ -447,7 +485,7 @@ declare module '@ibti-tech/chatbot/contexts/Chatbot/useChatbotMessages' {
|
|
|
447
485
|
//# sourceMappingURL=useChatbotMessages.d.ts.map
|
|
448
486
|
}
|
|
449
487
|
declare module '@ibti-tech/chatbot/contexts/Chatbot/useChatbotMessages.d.ts' {
|
|
450
|
-
{"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;
|
|
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"}
|
|
451
489
|
}
|
|
452
490
|
declare module '@ibti-tech/chatbot/contexts/Chatbot/useChatbotSuggestedQuestions' {
|
|
453
491
|
import { ChatbotTypes } from 'types';
|
|
@@ -473,10 +511,12 @@ declare module '@ibti-tech/chatbot/cookies/chat' {
|
|
|
473
511
|
* Manages chat conversation persistence in localStorage (client-side) or cookies (server-side).
|
|
474
512
|
* Automatically cleans up conversations older than 24 hours.
|
|
475
513
|
* Migrates data from cookies to localStorage automatically.
|
|
514
|
+
* When keySuffix is provided (e.g. apiURL:publicHash), each chatbot has its own history.
|
|
476
515
|
*/
|
|
477
516
|
export class ChatCookieManager {
|
|
478
517
|
storageKey: string;
|
|
479
518
|
cookieKey: string;
|
|
519
|
+
constructor(keySuffix?: string);
|
|
480
520
|
maxAgeInHours: number;
|
|
481
521
|
/**
|
|
482
522
|
* Validates that the data can be safely serialized to JSON
|
|
@@ -511,7 +551,49 @@ declare module '@ibti-tech/chatbot/cookies/chat' {
|
|
|
511
551
|
//# sourceMappingURL=chat.d.ts.map
|
|
512
552
|
}
|
|
513
553
|
declare module '@ibti-tech/chatbot/cookies/chat.d.ts' {
|
|
514
|
-
{"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
|
|
554
|
+
{"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;;;;;GAKG;AACH,qBAAa,iBAAiB;IAC5B,UAAU,EAAE,MAAM,CAAA;IAClB,SAAS,EAAE,MAAM,CAAA;gBAEL,SAAS,CAAC,EAAE,MAAM;IAM9B,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"}
|
|
555
|
+
}
|
|
556
|
+
declare module '@ibti-tech/chatbot/embed' {
|
|
557
|
+
/**
|
|
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).
|
|
561
|
+
*/
|
|
562
|
+
import type { ChatbotTypes } from '@ibti-tech/chatbot/types/index';
|
|
563
|
+
/** Embed configuration (from window.IBTIChatbotConfig or data-* attributes). */
|
|
564
|
+
export interface IBTIChatbotEmbedConfig {
|
|
565
|
+
apiURL: string;
|
|
566
|
+
publicHash: string;
|
|
567
|
+
locale?: ChatbotTypes.Locale;
|
|
568
|
+
theme?: ChatbotTypes.Theme;
|
|
569
|
+
position?: 'bottom-right' | 'bottom-left' | 'top-right' | 'top-left';
|
|
570
|
+
/** Optional: custom container selector. Default creates a div appended to body. */
|
|
571
|
+
containerId?: string;
|
|
572
|
+
/** When true (e.g. admin embed preview), skip domain validation. Do not use in production embed. */
|
|
573
|
+
skipDomainCheck?: boolean;
|
|
574
|
+
/** Custom colors for branding (hex or rgb). */
|
|
575
|
+
colors?: ChatbotTypes.CustomColors;
|
|
576
|
+
/** Initial open state of the chatbot. Default: false */
|
|
577
|
+
isOpen?: boolean;
|
|
578
|
+
/** Lucide icon name for the chatbot button/header (e.g. 'Bot', 'MessageCircle'). */
|
|
579
|
+
icon?: string;
|
|
580
|
+
/** Custom texts per locale for the chatbot UI. */
|
|
581
|
+
texts?: ChatbotTypes.Texts;
|
|
582
|
+
}
|
|
583
|
+
global {
|
|
584
|
+
interface Window {
|
|
585
|
+
IBTIChatbotConfig?: IBTIChatbotEmbedConfig;
|
|
586
|
+
IBTIChatbotEmbed?: {
|
|
587
|
+
init: (config?: IBTIChatbotEmbedConfig) => void;
|
|
588
|
+
destroy: () => void;
|
|
589
|
+
};
|
|
590
|
+
}
|
|
591
|
+
}
|
|
592
|
+
export function mountEmbed(): void;
|
|
593
|
+
//# sourceMappingURL=embed.d.ts.map
|
|
594
|
+
}
|
|
595
|
+
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"}
|
|
515
597
|
}
|
|
516
598
|
declare module '@ibti-tech/chatbot/events/assistant-answer' {
|
|
517
599
|
export const dispatchAssitantAnswer: () => void;
|
|
@@ -578,6 +660,8 @@ declare module '@ibti-tech/chatbot/i18n/LocaleTerms' {
|
|
|
578
660
|
INPUT_PLACEHOLDER: string;
|
|
579
661
|
ERRORS: {
|
|
580
662
|
UNKNOWN: string;
|
|
663
|
+
DOMAIN_NOT_ALLOWED?: string;
|
|
664
|
+
CHATBOT_NOT_FOUND?: string;
|
|
581
665
|
};
|
|
582
666
|
STATUS: {
|
|
583
667
|
ONLINE: string;
|
|
@@ -613,7 +697,7 @@ declare module '@ibti-tech/chatbot/i18n/LocaleTerms' {
|
|
|
613
697
|
//# sourceMappingURL=LocaleTerms.d.ts.map
|
|
614
698
|
}
|
|
615
699
|
declare module '@ibti-tech/chatbot/i18n/LocaleTerms.d.ts' {
|
|
616
|
-
{"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;
|
|
700
|
+
{"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;QACf,kBAAkB,CAAC,EAAE,MAAM,CAAA;QAC3B,iBAAiB,CAAC,EAAE,MAAM,CAAA;KAC3B,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"}
|
|
617
701
|
}
|
|
618
702
|
declare module '@ibti-tech/chatbot/i18n/index' {
|
|
619
703
|
import { ChatbotTypes } from 'types';
|
|
@@ -702,44 +786,200 @@ declare module '@ibti-tech/chatbot/mocks/chatHistory' {
|
|
|
702
786
|
declare module '@ibti-tech/chatbot/mocks/chatHistory.d.ts' {
|
|
703
787
|
{"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"}
|
|
704
788
|
}
|
|
705
|
-
declare module '@ibti-tech/chatbot/services/
|
|
789
|
+
declare module '@ibti-tech/chatbot/services/api/http-client' {
|
|
790
|
+
/**
|
|
791
|
+
* Returns default headers for all API requests.
|
|
792
|
+
* Includes Content-Type and User-Agent (from navigator when available).
|
|
793
|
+
*/
|
|
794
|
+
export const getDefaultHeaders: () => Record<string, string>;
|
|
795
|
+
//# sourceMappingURL=http-client.d.ts.map
|
|
796
|
+
}
|
|
797
|
+
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"}
|
|
799
|
+
}
|
|
800
|
+
declare module '@ibti-tech/chatbot/services/chat/chat.api' {
|
|
801
|
+
import { ChatbotTypes } from 'types';
|
|
802
|
+
import type { SendNewQuestionOptions } from '@ibti-tech/chatbot/services/types/index';
|
|
803
|
+
/**
|
|
804
|
+
* Sends chat context to the completion endpoint and streams the response.
|
|
805
|
+
* POST /chat/completion?locale=&hash=&visitorId=
|
|
806
|
+
*
|
|
807
|
+
* @param options - Chat context, locale, callbacks, and optional hash/visitorId
|
|
808
|
+
*/
|
|
809
|
+
export const sendChatContext: ({ chatContext, locale, onReceiving, onDone, apiURL, publicHash, visitorId, }: SendNewQuestionOptions) => Promise<void>;
|
|
810
|
+
/**
|
|
811
|
+
* Checks if the API is available by making a lightweight request.
|
|
812
|
+
* Tries HEAD first, falls back to GET if HEAD fails.
|
|
813
|
+
*
|
|
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
|
|
818
|
+
*/
|
|
819
|
+
export const checkApiHealth: (apiUrl: string, locale?: ChatbotTypes.Locale, publicHash?: string) => Promise<boolean>;
|
|
820
|
+
/**
|
|
821
|
+
* Fetches the welcome message for the chatbot.
|
|
822
|
+
* GET /chat/welcome?locale=&hash=
|
|
823
|
+
*
|
|
824
|
+
* @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
|
|
828
|
+
*/
|
|
829
|
+
export const getWelcomeMessage: (apiUrl: string, locale?: ChatbotTypes.Locale, publicHash?: string) => Promise<string>;
|
|
830
|
+
//# sourceMappingURL=chat.api.d.ts.map
|
|
831
|
+
}
|
|
832
|
+
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"}
|
|
834
|
+
}
|
|
835
|
+
declare module '@ibti-tech/chatbot/services/chatbot/chatbot.api' {
|
|
836
|
+
import { ChatbotTypes } from 'types';
|
|
837
|
+
/**
|
|
838
|
+
* 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).
|
|
841
|
+
*
|
|
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)
|
|
846
|
+
*/
|
|
847
|
+
export const getChatbotByPublicHash: (apiURL: string, publicHash: string) => Promise<ChatbotTypes.ChatbotPublicResponse>;
|
|
848
|
+
//# sourceMappingURL=chatbot.api.d.ts.map
|
|
849
|
+
}
|
|
850
|
+
declare module '@ibti-tech/chatbot/services/chatbot/chatbot.api.d.ts' {
|
|
851
|
+
{"version":3,"file":"chatbot.api.d.ts","sourceRoot":"","sources":["../../../../../home/runner/work/ibti-chatbot/ibti-chatbot/src/services/chatbot/chatbot.api.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,OAAO,CAAA;AAcpC;;;;;;;;;GASG;AACH,eAAO,MAAM,sBAAsB,GACjC,QAAQ,MAAM,EACd,YAAY,MAAM,KACjB,OAAO,CAAC,YAAY,CAAC,qBAAqB,CAmB5C,CAAA"}
|
|
852
|
+
}
|
|
853
|
+
declare module '@ibti-tech/chatbot/services/feedback/feedback.api' {
|
|
854
|
+
import type { SendUserChatFeedbackParams } from '@ibti-tech/chatbot/services/types/index';
|
|
855
|
+
/**
|
|
856
|
+
* Sends user feedback (rating) for the chat session.
|
|
857
|
+
* POST /chat/feedback
|
|
858
|
+
*
|
|
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)
|
|
864
|
+
*/
|
|
865
|
+
export const sendUserChatFeedback: ({ apiURL, chatContext, locale, ratingScore, description, publicHash, visitorId, }: SendUserChatFeedbackParams) => Promise<Response>;
|
|
866
|
+
//# sourceMappingURL=feedback.api.d.ts.map
|
|
867
|
+
}
|
|
868
|
+
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"}
|
|
870
|
+
}
|
|
871
|
+
declare module '@ibti-tech/chatbot/services/index' {
|
|
872
|
+
/**
|
|
873
|
+
* Services barrel export.
|
|
874
|
+
* Provides backward-compatible imports from 'services/chatbot-api' equivalent.
|
|
875
|
+
*/
|
|
876
|
+
export { getChatbotByPublicHash } from '@ibti-tech/chatbot/services/chatbot/chatbot.api';
|
|
877
|
+
export { sendChatContext, checkApiHealth, getWelcomeMessage, } from '@ibti-tech/chatbot/services/chat/chat.api';
|
|
878
|
+
export { sendUserChatFeedback } from '@ibti-tech/chatbot/services/feedback/feedback.api';
|
|
879
|
+
export type { SendNewQuestionOptions, GetSuggestedQuestions, SuggestedQuestionDTO, SendUserChatFeedbackParams, } from '@ibti-tech/chatbot/services/types/index';
|
|
880
|
+
//# sourceMappingURL=index.d.ts.map
|
|
881
|
+
}
|
|
882
|
+
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"}
|
|
884
|
+
}
|
|
885
|
+
declare module '@ibti-tech/chatbot/services/types/chat.types' {
|
|
706
886
|
import { ChatbotTypes } from 'types';
|
|
887
|
+
/**
|
|
888
|
+
* Options for sending a new question to the chat completion endpoint.
|
|
889
|
+
*/
|
|
707
890
|
export type SendNewQuestionOptions = {
|
|
708
891
|
chatContext: Pick<ChatbotTypes.ChatMessage, 'content' | 'role'>[];
|
|
709
892
|
locale: ChatbotTypes.Locale;
|
|
710
893
|
apiURL: string;
|
|
894
|
+
publicHash?: string;
|
|
895
|
+
visitorId?: string;
|
|
711
896
|
onReceiving: (receivedMessage: string, receivedPart: string) => void;
|
|
712
897
|
onDone: () => void;
|
|
713
898
|
};
|
|
899
|
+
/**
|
|
900
|
+
* Options for fetching suggested questions (currently unused).
|
|
901
|
+
*/
|
|
714
902
|
export type GetSuggestedQuestions = {
|
|
715
903
|
chatContext: Pick<ChatbotTypes.ChatMessage, 'content' | 'role'>[];
|
|
716
904
|
locale: ChatbotTypes.Locale;
|
|
717
905
|
apiURL: string;
|
|
718
906
|
};
|
|
907
|
+
/**
|
|
908
|
+
* DTO for suggested questions response.
|
|
909
|
+
*/
|
|
719
910
|
export type SuggestedQuestionDTO = string;
|
|
911
|
+
//# sourceMappingURL=chat.types.d.ts.map
|
|
912
|
+
}
|
|
913
|
+
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"}
|
|
915
|
+
}
|
|
916
|
+
declare module '@ibti-tech/chatbot/services/types/feedback.types' {
|
|
917
|
+
import { ChatbotTypes } from 'types';
|
|
918
|
+
/**
|
|
919
|
+
* Parameters for sending user chat feedback (rating).
|
|
920
|
+
*/
|
|
720
921
|
export type SendUserChatFeedbackParams = {
|
|
721
922
|
locale: ChatbotTypes.Locale;
|
|
722
923
|
apiURL: string;
|
|
924
|
+
publicHash?: string;
|
|
925
|
+
visitorId?: string;
|
|
723
926
|
chatContext: Pick<ChatbotTypes.ChatMessage, 'content' | 'role'>[];
|
|
724
927
|
ratingScore: number;
|
|
725
928
|
description?: string;
|
|
726
929
|
};
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
930
|
+
//# sourceMappingURL=feedback.types.d.ts.map
|
|
931
|
+
}
|
|
932
|
+
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"}
|
|
934
|
+
}
|
|
935
|
+
declare module '@ibti-tech/chatbot/services/types/index' {
|
|
936
|
+
export * from '@ibti-tech/chatbot/services/types/chat.types';
|
|
937
|
+
export * from '@ibti-tech/chatbot/services/types/feedback.types';
|
|
938
|
+
//# sourceMappingURL=index.d.ts.map
|
|
939
|
+
}
|
|
940
|
+
declare module '@ibti-tech/chatbot/services/types/index.d.ts' {
|
|
941
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../home/runner/work/ibti-chatbot/ibti-chatbot/src/services/types/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAA;AAC5B,cAAc,kBAAkB,CAAA"}
|
|
942
|
+
}
|
|
943
|
+
declare module '@ibti-tech/chatbot/stubs/next-link' {
|
|
944
|
+
import React from 'react';
|
|
945
|
+
/** Stub for next/link – plain anchor for embed (no Next.js). */
|
|
946
|
+
export default function Link({ href, children, ...props }: {
|
|
947
|
+
href: string;
|
|
948
|
+
children: React.ReactNode;
|
|
949
|
+
[key: string]: unknown;
|
|
950
|
+
}): React.JSX.Element;
|
|
951
|
+
//# sourceMappingURL=next-link.d.ts.map
|
|
952
|
+
}
|
|
953
|
+
declare module '@ibti-tech/chatbot/stubs/next-link.d.ts' {
|
|
954
|
+
{"version":3,"file":"next-link.d.ts","sourceRoot":"","sources":["../../../../home/runner/work/ibti-chatbot/ibti-chatbot/src/stubs/next-link.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,gEAAgE;AAChE,MAAM,CAAC,OAAO,UAAU,IAAI,CAAC,EAC3B,IAAI,EACJ,QAAQ,EACR,GAAG,KAAK,EACT,EAAE;IACD,IAAI,EAAE,MAAM,CAAA;IACZ,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;IACzB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;CACvB,qBAMA"}
|
|
955
|
+
}
|
|
956
|
+
declare module '@ibti-tech/chatbot/stubs/next-router' {
|
|
957
|
+
/** Stub for next/router – minimal router for embed (no Next.js). */
|
|
958
|
+
export const useRouter: () => {
|
|
959
|
+
push: (url: string) => void;
|
|
960
|
+
replace: (url: string) => void;
|
|
961
|
+
pathname: string;
|
|
962
|
+
query: Record<string, string>;
|
|
963
|
+
asPath: string;
|
|
964
|
+
};
|
|
965
|
+
const _default: {
|
|
966
|
+
useRouter: () => {
|
|
967
|
+
push: (url: string) => void;
|
|
968
|
+
replace: (url: string) => void;
|
|
969
|
+
pathname: string;
|
|
970
|
+
query: Record<string, string>;
|
|
971
|
+
asPath: string;
|
|
972
|
+
};
|
|
973
|
+
};
|
|
974
|
+
export default _default;
|
|
975
|
+
//# sourceMappingURL=next-router.d.ts.map
|
|
738
976
|
}
|
|
739
|
-
declare module '@ibti-tech/chatbot/
|
|
740
|
-
{"version":3,"file":"
|
|
977
|
+
declare module '@ibti-tech/chatbot/stubs/next-router.d.ts' {
|
|
978
|
+
{"version":3,"file":"next-router.d.ts","sourceRoot":"","sources":["../../../../home/runner/work/ibti-chatbot/ibti-chatbot/src/stubs/next-router.ts"],"names":[],"mappings":"AAAA,oEAAoE;AACpE,eAAO,MAAM,SAAS;gBACR,MAAM;mBAGH,MAAM;;WAIR,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC;;CAEnC,CAAA;;;oBATY,MAAM;uBAGH,MAAM;;eAIR,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC;;;;AAIrC,wBAA4B"}
|
|
741
979
|
}
|
|
742
980
|
declare module '@ibti-tech/chatbot/themes/index' {
|
|
981
|
+
import { defaultLightTheme } from '@ibti-tech/ui';
|
|
982
|
+
import type { ChatbotTypes } from 'types';
|
|
743
983
|
export const themes: {
|
|
744
984
|
light: {
|
|
745
985
|
blurRadius: import("@ibti-tech/ui").BlurRadiusToken;
|
|
@@ -824,15 +1064,26 @@ declare module '@ibti-tech/chatbot/themes/index' {
|
|
|
824
1064
|
};
|
|
825
1065
|
};
|
|
826
1066
|
};
|
|
1067
|
+
/** Merges custom colors into the base theme. */
|
|
1068
|
+
export function mergeThemeWithCustomColors(baseTheme: typeof defaultLightTheme, customColors?: ChatbotTypes.CustomColors): typeof defaultLightTheme;
|
|
827
1069
|
//# sourceMappingURL=index.d.ts.map
|
|
828
1070
|
}
|
|
829
1071
|
declare module '@ibti-tech/chatbot/themes/index.d.ts' {
|
|
830
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../home/runner/work/ibti-chatbot/ibti-chatbot/src/themes/index.ts"],"names":[],"mappings":"
|
|
1072
|
+
{"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"}
|
|
831
1073
|
}
|
|
832
1074
|
declare module '@ibti-tech/chatbot/types/index' {
|
|
833
1075
|
export namespace ChatbotTypes {
|
|
834
1076
|
type Theme = 'light' | 'dark';
|
|
835
1077
|
type Locale = 'pt-BR' | 'en';
|
|
1078
|
+
/** Custom colors to override chatbot theme elements. Values in hex (#rrggbb) or rgb(r,g,b). */
|
|
1079
|
+
interface CustomColors {
|
|
1080
|
+
/** Primary accent: header avatar, toggle, buttons, user balloons, links, scrollbars */
|
|
1081
|
+
primaryColor?: string;
|
|
1082
|
+
/** Header bar background. Defaults to primaryColor if not set */
|
|
1083
|
+
headerBackground?: string;
|
|
1084
|
+
/** User message balloon background. Defaults to primaryColor if not set */
|
|
1085
|
+
userBalloonColor?: string;
|
|
1086
|
+
}
|
|
836
1087
|
type ChatMessage = {
|
|
837
1088
|
id: string;
|
|
838
1089
|
timestamp: string;
|
|
@@ -845,9 +1096,27 @@ declare module '@ibti-tech/chatbot/types/index' {
|
|
|
845
1096
|
content: string;
|
|
846
1097
|
};
|
|
847
1098
|
type Status = 'writing' | 'loading' | 'online' | 'unavailable';
|
|
1099
|
+
/** Status of the widget initialization */
|
|
1100
|
+
type InitializationStatus = 'loading' | 'domain_not_allowed' | 'error' | 'ready';
|
|
1101
|
+
/** Response from GET /chatbots/public/:hash */
|
|
1102
|
+
interface ChatbotPublicResponse {
|
|
1103
|
+
id: number;
|
|
1104
|
+
name: string;
|
|
1105
|
+
description?: string | null;
|
|
1106
|
+
publicHash: string;
|
|
1107
|
+
domain: {
|
|
1108
|
+
id: number;
|
|
1109
|
+
name: string;
|
|
1110
|
+
};
|
|
1111
|
+
chatSettings?: unknown;
|
|
1112
|
+
chatInstructions?: unknown;
|
|
1113
|
+
client?: unknown;
|
|
1114
|
+
}
|
|
848
1115
|
interface Config {
|
|
849
1116
|
apiURL?: string;
|
|
1117
|
+
publicHash?: string;
|
|
850
1118
|
additionalInstructions?: string;
|
|
1119
|
+
allowedOriginsWithoutCheck?: string[];
|
|
851
1120
|
}
|
|
852
1121
|
interface CustomTexts {
|
|
853
1122
|
CHATBOT_NAME?: string;
|
|
@@ -893,7 +1162,31 @@ declare module '@ibti-tech/chatbot/types/index' {
|
|
|
893
1162
|
//# sourceMappingURL=index.d.ts.map
|
|
894
1163
|
}
|
|
895
1164
|
declare module '@ibti-tech/chatbot/types/index.d.ts' {
|
|
896
|
-
{"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;
|
|
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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"}
|
|
1166
|
+
}
|
|
1167
|
+
declare module '@ibti-tech/chatbot/utils/domainValidation' {
|
|
1168
|
+
/**
|
|
1169
|
+
* Origins that skip domain validation (always allowed).
|
|
1170
|
+
* Per migration plan: localhost, 127.0.0.1, admin-chatbot.ibti.tech.
|
|
1171
|
+
* "null" = opaque origin (e.g. iframe with srcdoc) so embed preview works.
|
|
1172
|
+
*/
|
|
1173
|
+
export const ALLOWED_ORIGINS_WITHOUT_DOMAIN_CHECK: string[];
|
|
1174
|
+
/**
|
|
1175
|
+
* Checks if the current origin is in the allowed list (no domain check needed).
|
|
1176
|
+
*/
|
|
1177
|
+
export function isOriginAllowedWithoutCheck(originOrHost: string, customAllowedOrigins?: string[]): boolean;
|
|
1178
|
+
/**
|
|
1179
|
+
* Validates if the current page origin/host is allowed for the chatbot's domain.
|
|
1180
|
+
* @param currentOriginOrHost - window.location.origin or window.location.host
|
|
1181
|
+
* @param domainName - domain.name from GET /chatbots/public/:hash
|
|
1182
|
+
* @param customAllowedOrigins - optional override for allowed origins without check
|
|
1183
|
+
* @returns true if domain is allowed
|
|
1184
|
+
*/
|
|
1185
|
+
export function isDomainAllowed(currentOriginOrHost: string, domainName: string, customAllowedOrigins?: string[]): boolean;
|
|
1186
|
+
//# sourceMappingURL=domainValidation.d.ts.map
|
|
1187
|
+
}
|
|
1188
|
+
declare module '@ibti-tech/chatbot/utils/domainValidation.d.ts' {
|
|
1189
|
+
{"version":3,"file":"domainValidation.d.ts","sourceRoot":"","sources":["../../../../home/runner/work/ibti-chatbot/ibti-chatbot/src/utils/domainValidation.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,eAAO,MAAM,oCAAoC,UAQhD,CAAA;AAoCD;;GAEG;AACH,wBAAgB,2BAA2B,CACzC,YAAY,EAAE,MAAM,EACpB,oBAAoB,CAAC,EAAE,MAAM,EAAE,GAC9B,OAAO,CAcT;AAED;;;;;;GAMG;AACH,wBAAgB,eAAe,CAC7B,mBAAmB,EAAE,MAAM,EAC3B,UAAU,EAAE,MAAM,EAClB,oBAAoB,CAAC,EAAE,MAAM,EAAE,GAC9B,OAAO,CAyBT"}
|
|
897
1190
|
}
|
|
898
1191
|
declare module '@ibti-tech/chatbot/utils/formatMessageTime' {
|
|
899
1192
|
import { ChatbotTypes } from 'types';
|
|
@@ -903,6 +1196,17 @@ declare module '@ibti-tech/chatbot/utils/formatMessageTime' {
|
|
|
903
1196
|
declare module '@ibti-tech/chatbot/utils/formatMessageTime.d.ts' {
|
|
904
1197
|
{"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"}
|
|
905
1198
|
}
|
|
1199
|
+
declare module '@ibti-tech/chatbot/utils/visitorId' {
|
|
1200
|
+
/**
|
|
1201
|
+
* Gets or creates a stable visitor ID for the given chatbot (apiURL + publicHash).
|
|
1202
|
+
* Persisted in localStorage so the same visitor is recognized across reloads.
|
|
1203
|
+
*/
|
|
1204
|
+
export function getOrCreateVisitorId(apiURL: string, publicHash: string): string;
|
|
1205
|
+
//# sourceMappingURL=visitorId.d.ts.map
|
|
1206
|
+
}
|
|
1207
|
+
declare module '@ibti-tech/chatbot/utils/visitorId.d.ts' {
|
|
1208
|
+
{"version":3,"file":"visitorId.d.ts","sourceRoot":"","sources":["../../../../home/runner/work/ibti-chatbot/ibti-chatbot/src/utils/visitorId.ts"],"names":[],"mappings":"AASA;;;GAGG;AACH,wBAAgB,oBAAoB,CAAC,MAAM,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,GAAG,MAAM,CAe/E"}
|
|
1209
|
+
}
|
|
906
1210
|
declare module '@ibti-tech/chatbot' {
|
|
907
1211
|
import main = require('@ibti-tech/chatbot/src/index');
|
|
908
1212
|
export = main;
|