@cleartrip/talos-chat-ui 1.5.0 → 1.6.0-beta-260708-2.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.
Files changed (70) hide show
  1. package/dist/ChatHeader/HeaderAction.d.ts.map +1 -1
  2. package/dist/ChatHeader/index.d.ts +1 -0
  3. package/dist/ChatHeader/index.d.ts.map +1 -1
  4. package/dist/ChatHeader/style.d.ts +1 -0
  5. package/dist/ChatHeader/style.d.ts.map +1 -1
  6. package/dist/ChatHeader/type.d.ts +6 -1
  7. package/dist/ChatHeader/type.d.ts.map +1 -1
  8. package/dist/ChatSurface/ChatSurfaceBridge.d.ts +18 -0
  9. package/dist/ChatSurface/ChatSurfaceBridge.d.ts.map +1 -0
  10. package/dist/ChatSurface/context.d.ts +12 -0
  11. package/dist/ChatSurface/context.d.ts.map +1 -0
  12. package/dist/ChatSurface/index.d.ts +5 -0
  13. package/dist/ChatSurface/index.d.ts.map +1 -0
  14. package/dist/ChatSurface/type.d.ts +11 -0
  15. package/dist/ChatSurface/type.d.ts.map +1 -0
  16. package/dist/ChatSurface/useHideOnBackgroundInteraction.d.ts +4 -0
  17. package/dist/ChatSurface/useHideOnBackgroundInteraction.d.ts.map +1 -0
  18. package/dist/ChatUI.d.ts.map +1 -1
  19. package/dist/ChatWelcome/ChatWelcome.d.ts +5 -0
  20. package/dist/ChatWelcome/ChatWelcome.d.ts.map +1 -0
  21. package/dist/ChatWelcome/constants.d.ts +20 -0
  22. package/dist/ChatWelcome/constants.d.ts.map +1 -0
  23. package/dist/ChatWelcome/helper.d.ts +18 -0
  24. package/dist/ChatWelcome/helper.d.ts.map +1 -0
  25. package/dist/ChatWelcome/index.d.ts +5 -0
  26. package/dist/ChatWelcome/index.d.ts.map +1 -0
  27. package/dist/ChatWelcome/style.d.ts +19 -0
  28. package/dist/ChatWelcome/style.d.ts.map +1 -0
  29. package/dist/ChatWelcome/type.d.ts +7 -0
  30. package/dist/ChatWelcome/type.d.ts.map +1 -0
  31. package/dist/ChatWindow/ChatWindow.d.ts.map +1 -1
  32. package/dist/ChatWindow/type.d.ts +4 -2
  33. package/dist/ChatWindow/type.d.ts.map +1 -1
  34. package/dist/ContextSummary/ContextSummary.d.ts +5 -0
  35. package/dist/ContextSummary/ContextSummary.d.ts.map +1 -0
  36. package/dist/ContextSummary/index.d.ts +2 -0
  37. package/dist/ContextSummary/index.d.ts.map +1 -0
  38. package/dist/ContextSummary/style.d.ts +19 -0
  39. package/dist/ContextSummary/style.d.ts.map +1 -0
  40. package/dist/HybridChat/HybridChat.d.ts +5 -0
  41. package/dist/HybridChat/HybridChat.d.ts.map +1 -0
  42. package/dist/HybridChat/index.d.ts +3 -0
  43. package/dist/HybridChat/index.d.ts.map +1 -0
  44. package/dist/HybridChat/style.d.ts +34 -0
  45. package/dist/HybridChat/style.d.ts.map +1 -0
  46. package/dist/HybridChat/type.d.ts +7 -0
  47. package/dist/HybridChat/type.d.ts.map +1 -0
  48. package/dist/HybridChatWindow/HybridChatWindow.d.ts +5 -0
  49. package/dist/HybridChatWindow/HybridChatWindow.d.ts.map +1 -0
  50. package/dist/HybridChatWindow/index.d.ts +3 -0
  51. package/dist/HybridChatWindow/index.d.ts.map +1 -0
  52. package/dist/HybridChatWindow/type.d.ts +8 -0
  53. package/dist/HybridChatWindow/type.d.ts.map +1 -0
  54. package/dist/assets/Expand.d.ts +4 -0
  55. package/dist/assets/Expand.d.ts.map +1 -0
  56. package/dist/index.d.ts +3 -0
  57. package/dist/index.d.ts.map +1 -1
  58. package/dist/talos-chat-ui.browser.cjs.js +1 -1
  59. package/dist/talos-chat-ui.browser.cjs.js.map +1 -1
  60. package/dist/talos-chat-ui.browser.esm.js +1 -1
  61. package/dist/talos-chat-ui.browser.esm.js.map +1 -1
  62. package/dist/talos-chat-ui.cjs.js +407 -38
  63. package/dist/talos-chat-ui.cjs.js.map +1 -1
  64. package/dist/talos-chat-ui.esm.js +405 -44
  65. package/dist/talos-chat-ui.esm.js.map +1 -1
  66. package/dist/talos-chat-ui.umd.js +407 -41
  67. package/dist/talos-chat-ui.umd.js.map +1 -1
  68. package/dist/type.d.ts +10 -2
  69. package/dist/type.d.ts.map +1 -1
  70. package/package.json +11 -9
@@ -1 +1 @@
1
- {"version":3,"file":"HeaderAction.d.ts","sourceRoot":"","sources":["../../packages/components/chat-ui/src/ChatHeader/HeaderAction.tsx"],"names":[],"mappings":";AAIA,OAAO,EAAE,KAAK,kBAAkB,EAAE,MAAM,QAAQ,CAAC;AAEjD,QAAA,MAAM,YAAY,UAAW,kBAAkB,gCAY9C,CAAA;AAED,eAAe,YAAY,CAAC"}
1
+ {"version":3,"file":"HeaderAction.d.ts","sourceRoot":"","sources":["../../packages/components/chat-ui/src/ChatHeader/HeaderAction.tsx"],"names":[],"mappings":";AAIA,OAAO,EAAE,KAAK,kBAAkB,EAAE,MAAM,QAAQ,CAAC;AAEjD,QAAA,MAAM,YAAY,UAAW,kBAAkB,gCAc9C,CAAA;AAED,eAAe,YAAY,CAAC"}
@@ -1,3 +1,4 @@
1
1
  export { default as ChatHeader } from "./ChatHeader";
2
+ export { default as HeaderAction } from "./HeaderAction";
2
3
  export * from "./type";
3
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../packages/components/chat-ui/src/ChatHeader/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,cAAc,CAAC;AACrD,cAAc,QAAQ,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../packages/components/chat-ui/src/ChatHeader/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,cAAc,CAAC;AACrD,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,gBAAgB,CAAC;AACzD,cAAc,QAAQ,CAAC"}
@@ -33,6 +33,7 @@ export declare const styles: (theme: Theme, isScrolled?: boolean) => {
33
33
  width: "32px";
34
34
  cursor: string;
35
35
  flexShrink: number;
36
+ background: string;
36
37
  };
37
38
  };
38
39
  //# sourceMappingURL=style.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"style.d.ts","sourceRoot":"","sources":["../../packages/components/chat-ui/src/ChatHeader/style.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,iCAAiC,CAAA;AAEvD,eAAO,MAAM,MAAM,UAAW,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAqClC,CAAA"}
1
+ {"version":3,"file":"style.d.ts","sourceRoot":"","sources":["../../packages/components/chat-ui/src/ChatHeader/style.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,iCAAiC,CAAA;AAEvD,eAAO,MAAM,MAAM,UAAW,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsClC,CAAA"}
@@ -1,7 +1,12 @@
1
- /// <reference types="react" />
1
+ import { CSSProperties } from "react";
2
2
  export interface IHeaderActionProps {
3
3
  children: React.ReactNode;
4
4
  onClick?: () => void;
5
+ styleConfig?: {
6
+ root?: {
7
+ css?: CSSProperties;
8
+ };
9
+ };
5
10
  }
6
11
  export interface IChatHeaderProps {
7
12
  showBackButton?: boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../packages/components/chat-ui/src/ChatHeader/type.ts"],"names":[],"mappings":";AAAA,MAAM,WAAW,kBAAkB;IAI/B,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAI1B,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;CACxB;AAED,MAAM,WAAW,gBAAgB;IAI7B,cAAc,CAAC,EAAE,OAAO,CAAC;IAIzB,iBAAiB,CAAC,EAAE,MAAM,IAAI,CAAC;IAI/B,SAAS,CAAC,EAAE,OAAO,CAAC;IAIpB,YAAY,CAAC,EAAE,MAAM,IAAI,CAAC;IAI1B,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAK3B,mBAAmB,CAAC,EAAE,MAAM,IAAI,CAAC;IAIjC,KAAK,CAAC,EAAE,MAAM,CAAC;IAIf,QAAQ,CAAC,EAAE,OAAO,CAAC;IAInB,WAAW,CAAC,EAAE,OAAO,CAAC;IAItB,cAAc,CAAC,EAAE,MAAM,IAAI,CAAC;IAI5B,UAAU,CAAC,EAAE,OAAO,CAAC;CACxB"}
1
+ {"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../packages/components/chat-ui/src/ChatHeader/type.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAEtC,MAAM,WAAW,kBAAkB;IAI/B,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAI1B,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IAIrB,WAAW,CAAC,EAAE;QACV,IAAI,CAAC,EAAE;YACH,GAAG,CAAC,EAAE,aAAa,CAAC;SACvB,CAAC;KACL,CAAA;CACJ;AAED,MAAM,WAAW,gBAAgB;IAI7B,cAAc,CAAC,EAAE,OAAO,CAAC;IAIzB,iBAAiB,CAAC,EAAE,MAAM,IAAI,CAAC;IAI/B,SAAS,CAAC,EAAE,OAAO,CAAC;IAIpB,YAAY,CAAC,EAAE,MAAM,IAAI,CAAC;IAI1B,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAK3B,mBAAmB,CAAC,EAAE,MAAM,IAAI,CAAC;IAIjC,KAAK,CAAC,EAAE,MAAM,CAAC;IAIf,QAAQ,CAAC,EAAE,OAAO,CAAC;IAInB,WAAW,CAAC,EAAE,OAAO,CAAC;IAItB,cAAc,CAAC,EAAE,MAAM,IAAI,CAAC;IAI5B,UAAU,CAAC,EAAE,OAAO,CAAC;CACxB"}
@@ -0,0 +1,18 @@
1
+ import { ChatSurfaceState, type IChatSurfaceSnapshot, type ChatSurfaceListener } from "./type";
2
+ export declare class ChatSurfaceBridge {
3
+ private snapshot;
4
+ private readonly listeners;
5
+ constructor(initialState?: `${ChatSurfaceState}`);
6
+ getSnapshot: () => IChatSurfaceSnapshot;
7
+ subscribe: (listener: ChatSurfaceListener) => (() => void);
8
+ private setSnapshot;
9
+ showFloating: () => void;
10
+ showHybrid: () => void;
11
+ hideHybrid: () => void;
12
+ expand: () => void;
13
+ collapse: () => void;
14
+ setState: (state: `${ChatSurfaceState}`) => void;
15
+ setReplyLoading: (isReplyLoading: boolean) => void;
16
+ }
17
+ export declare const getChatSurfaceBridge: () => ChatSurfaceBridge;
18
+ //# sourceMappingURL=ChatSurfaceBridge.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ChatSurfaceBridge.d.ts","sourceRoot":"","sources":["../../packages/components/chat-ui/src/ChatSurface/ChatSurfaceBridge.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,KAAK,oBAAoB,EAAE,KAAK,mBAAmB,EAAE,MAAM,QAAQ,CAAC;AAU/F,qBAAa,iBAAiB;IAC1B,OAAO,CAAC,QAAQ,CAAuB;IACvC,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAkC;gBAEhD,YAAY,GAAE,GAAG,gBAAgB,EAA8B;IAQ3E,WAAW,QAAO,oBAAoB,CAAkB;IAKxD,SAAS,aAAc,mBAAmB,KAAG,CAAC,MAAM,IAAI,CAAC,CAKvD;IAEF,OAAO,CAAC,WAAW,CAOjB;IAKF,YAAY,aAAgE;IAK5E,UAAU,aAA8D;IAMxE,UAAU,aAAgE;IAK1E,MAAM,aAAgE;IAKtE,QAAQ,aAA8D;IAKtE,QAAQ,UAAW,GAAG,gBAAgB,EAAE,UAAiC;IAKzE,eAAe,mBAAoB,OAAO,UAA0C;CACvF;AAWD,eAAO,MAAM,oBAAoB,QAAO,iBAKvC,CAAC"}
@@ -0,0 +1,12 @@
1
+ import { type ReactNode } from "react";
2
+ import { ChatSurfaceBridge } from "./ChatSurfaceBridge";
3
+ import { type ChatSurfaceState, type IChatSurfaceSnapshot } from "./type";
4
+ export interface IChatSurfaceProviderProps {
5
+ children: ReactNode;
6
+ bridge?: ChatSurfaceBridge;
7
+ initialState?: `${ChatSurfaceState}`;
8
+ }
9
+ export declare const ChatSurfaceProvider: ({ children, bridge, initialState }: IChatSurfaceProviderProps) => import("react").JSX.Element;
10
+ export declare const useChatSurfaceBridge: () => ChatSurfaceBridge;
11
+ export declare const useChatSurface: (bridge?: ChatSurfaceBridge) => IChatSurfaceSnapshot;
12
+ //# sourceMappingURL=context.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../../packages/components/chat-ui/src/ChatSurface/context.tsx"],"names":[],"mappings":"AAAA,OAAO,EAA2D,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAEhG,OAAO,EAAE,iBAAiB,EAAwB,MAAM,qBAAqB,CAAC;AAC9E,OAAO,EAAE,KAAK,gBAAgB,EAAE,KAAK,oBAAoB,EAAE,MAAM,QAAQ,CAAC;AAI1E,MAAM,WAAW,yBAAyB;IACtC,QAAQ,EAAE,SAAS,CAAC;IAKpB,MAAM,CAAC,EAAE,iBAAiB,CAAC;IAI3B,YAAY,CAAC,EAAE,GAAG,gBAAgB,EAAE,CAAC;CACxC;AAOD,eAAO,MAAM,mBAAmB,uCAAwC,yBAAyB,gCAMhG,CAAC;AAOF,eAAO,MAAM,oBAAoB,QAAO,iBAGvC,CAAC;AAMF,eAAO,MAAM,cAAc,YAAa,iBAAiB,KAAG,oBAI3D,CAAC"}
@@ -0,0 +1,5 @@
1
+ export { ChatSurfaceBridge, getChatSurfaceBridge } from "./ChatSurfaceBridge";
2
+ export { ChatSurfaceProvider, useChatSurface, useChatSurfaceBridge } from "./context";
3
+ export { useHideOnBackgroundInteraction } from "./useHideOnBackgroundInteraction";
4
+ export * from "./type";
5
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../packages/components/chat-ui/src/ChatSurface/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,oBAAoB,EAAE,MAAM,qBAAqB,CAAC;AAC9E,OAAO,EAAE,mBAAmB,EAAE,cAAc,EAAE,oBAAoB,EAAE,MAAM,WAAW,CAAC;AACtF,OAAO,EAAE,8BAA8B,EAAE,MAAM,kCAAkC,CAAC;AAClF,cAAc,QAAQ,CAAC"}
@@ -0,0 +1,11 @@
1
+ export declare enum ChatSurfaceState {
2
+ FLOATING = "FLOATING",
3
+ HYBRID = "HYBRID",
4
+ EXPANDED = "EXPANDED"
5
+ }
6
+ export interface IChatSurfaceSnapshot {
7
+ state: `${ChatSurfaceState}`;
8
+ isReplyLoading: boolean;
9
+ }
10
+ export type ChatSurfaceListener = () => void;
11
+ //# sourceMappingURL=type.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../packages/components/chat-ui/src/ChatSurface/type.ts"],"names":[],"mappings":"AAKA,oBAAY,gBAAgB;IAKxB,QAAQ,aAAa;IAIrB,MAAM,WAAW;IAIjB,QAAQ,aAAa;CACxB;AAED,MAAM,WAAW,oBAAoB;IAIjC,KAAK,EAAE,GAAG,gBAAgB,EAAE,CAAC;IAK7B,cAAc,EAAE,OAAO,CAAC;CAC3B;AAED,MAAM,MAAM,mBAAmB,GAAG,MAAM,IAAI,CAAC"}
@@ -0,0 +1,4 @@
1
+ import { type RefObject } from "react";
2
+ import { ChatSurfaceBridge } from "./ChatSurfaceBridge";
3
+ export declare const useHideOnBackgroundInteraction: (bridge: ChatSurfaceBridge, surfaceRef: RefObject<HTMLElement | null>) => void;
4
+ //# sourceMappingURL=useHideOnBackgroundInteraction.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useHideOnBackgroundInteraction.d.ts","sourceRoot":"","sources":["../../packages/components/chat-ui/src/ChatSurface/useHideOnBackgroundInteraction.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAElD,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAexD,eAAO,MAAM,8BAA8B,WAC/B,iBAAiB,cACb,UAAU,WAAW,GAAG,IAAI,CAAC,SA0C5C,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"ChatUI.d.ts","sourceRoot":"","sources":["../packages/components/chat-ui/src/ChatUI.tsx"],"names":[],"mappings":";AAkBA,OAAO,EAAE,KAAK,YAAY,EAAwC,MAAM,QAAQ,CAAC;AAEjF,OAAO,cAAc,CAAC;AAEtB,QAAA,MAAM,MAAM,UAAW,YAAY,gCA2LlC,CAAC;AAEF,eAAe,MAAM,CAAC"}
1
+ {"version":3,"file":"ChatUI.d.ts","sourceRoot":"","sources":["../packages/components/chat-ui/src/ChatUI.tsx"],"names":[],"mappings":";AA4BA,OAAO,EAAE,KAAK,YAAY,EAAwC,MAAM,QAAQ,CAAC;AAEjF,OAAO,cAAc,CAAC;AAEtB,QAAA,MAAM,MAAM,UAAW,YAAY,gCAwRlC,CAAC;AAEF,eAAe,MAAM,CAAC"}
@@ -0,0 +1,5 @@
1
+ import React from "react";
2
+ import { type IChatWelcomeProps } from "./type";
3
+ declare const ChatWelcomeContent: ({ data, inputFocused }: IChatWelcomeProps) => React.JSX.Element;
4
+ export default ChatWelcomeContent;
5
+ //# sourceMappingURL=ChatWelcome.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ChatWelcome.d.ts","sourceRoot":"","sources":["../../packages/components/chat-ui/src/ChatWelcome/ChatWelcome.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkB,MAAM,OAAO,CAAC;AAqBvC,OAAO,EAAE,KAAK,iBAAiB,EAAE,MAAM,QAAQ,CAAC;AAEhD,QAAA,MAAM,kBAAkB,2BAA4B,iBAAiB,sBA0EpE,CAAC;AAEF,eAAe,kBAAkB,CAAC"}
@@ -0,0 +1,20 @@
1
+ export declare const WELCOME_BS_TITLE = "AI Search";
2
+ export declare const CHIP_HEIGHT = 40;
3
+ export declare const CHIP_GAP = 12;
4
+ export declare const VISIBLE_CHIP_COUNT = 3;
5
+ export declare const HEADING_TICKER_HEIGHT = 40;
6
+ export declare const TICKER_ANIMATION_DURATION = 450;
7
+ export declare const HEADING_TICKER_CONFIG: {
8
+ delay: number;
9
+ height: number;
10
+ animateInfinite: boolean;
11
+ duration: number;
12
+ };
13
+ export declare const CHIP_TICKER_CONFIG: {
14
+ delay: number;
15
+ animateInfinite: boolean;
16
+ duration: number;
17
+ visibleCount: number;
18
+ itemGap: number;
19
+ };
20
+ //# sourceMappingURL=constants.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../packages/components/chat-ui/src/ChatWelcome/constants.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,gBAAgB,cAAc,CAAC;AAE5C,eAAO,MAAM,WAAW,KAAK,CAAC;AAC9B,eAAO,MAAM,QAAQ,KAAK,CAAC;AAC3B,eAAO,MAAM,kBAAkB,IAAI,CAAC;AAIpC,eAAO,MAAM,qBAAqB,KAAK,CAAC;AACxC,eAAO,MAAM,yBAAyB,MAAM,CAAC;AAE7C,eAAO,MAAM,qBAAqB;;;;;CAKjC,CAAC;AAEF,eAAO,MAAM,kBAAkB;;;;;;CAM9B,CAAC"}
@@ -0,0 +1,18 @@
1
+ import { ActionType } from "@cleartrip/talos-widget-types";
2
+ import { type IChatWelcomeSuggestion } from "./type";
3
+ export declare const getChipGroupHeight: (chipCount: number) => number;
4
+ export declare const getChipDataAndEvents: (suggestion: IChatWelcomeSuggestion) => {
5
+ data: {
6
+ label: string;
7
+ };
8
+ events: {
9
+ onClick: {
10
+ type: ActionType.SEND_MESSAGE;
11
+ payload: {
12
+ message: string;
13
+ };
14
+ }[];
15
+ };
16
+ };
17
+ export declare const getGreetingContent: () => "Good morning!" | "Good afternoon!" | "Good evening!";
18
+ //# sourceMappingURL=helper.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"helper.d.ts","sourceRoot":"","sources":["../../packages/components/chat-ui/src/ChatWelcome/helper.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAW,MAAM,+BAA+B,CAAC;AAEpE,OAAO,EAAE,KAAK,sBAAsB,EAAE,MAAM,QAAQ,CAAC;AAGrD,eAAO,MAAM,kBAAkB,cAAe,MAAM,WACa,CAAC;AAGlE,eAAO,MAAM,oBAAoB,eAAgB,sBAAsB;;;;;;;;;;;;CAYpE,CAAC;AAEJ,eAAO,MAAM,kBAAkB,6DAO9B,CAAC"}
@@ -0,0 +1,5 @@
1
+ export { default } from "./ChatWelcome";
2
+ export { default as ChatWelcomeContent } from "./ChatWelcome";
3
+ export * from "./type";
4
+ export { getChipGroupHeight, getChipDataAndEvents, getGreetingContent, } from "./helper";
5
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../packages/components/chat-ui/src/ChatWelcome/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AACxC,OAAO,EAAE,OAAO,IAAI,kBAAkB,EAAE,MAAM,eAAe,CAAC;AAC9D,cAAc,QAAQ,CAAC;AACvB,OAAO,EACL,kBAAkB,EAClB,oBAAoB,EACpB,kBAAkB,GACnB,MAAM,UAAU,CAAC"}
@@ -0,0 +1,19 @@
1
+ import { Theme } from "@cleartrip/ct-design-components";
2
+ export declare const chatWelcomeStyle: (theme: Theme) => {
3
+ root: {
4
+ display: string;
5
+ flexDirection: string;
6
+ justifyContent: string;
7
+ flex: number;
8
+ };
9
+ greetingContainer: {
10
+ marginBottom: "40px";
11
+ };
12
+ headingTickerText: {
13
+ background: string;
14
+ backgroundClip: string;
15
+ "-webkit-background-clip": string;
16
+ "-webkit-text-fill-color": string;
17
+ };
18
+ };
19
+ //# sourceMappingURL=style.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"style.d.ts","sourceRoot":"","sources":["../../packages/components/chat-ui/src/ChatWelcome/style.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,iCAAiC,CAAC;AAExD,eAAO,MAAM,gBAAgB,UAAW,KAAK;;;;;;;;;;;;;;;;CAmB5C,CAAC"}
@@ -0,0 +1,7 @@
1
+ import type { IChatLandingContent } from "@cleartrip/talos-use-chat-controller";
2
+ export type { IChatLandingContent, IChatLandingHeading, IChatLandingText, IChatWelcomeSuggestion, } from "@cleartrip/talos-use-chat-controller";
3
+ export interface IChatWelcomeProps {
4
+ data?: IChatLandingContent;
5
+ inputFocused?: boolean;
6
+ }
7
+ //# sourceMappingURL=type.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../packages/components/chat-ui/src/ChatWelcome/type.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,sCAAsC,CAAC;AAEhF,YAAY,EACV,mBAAmB,EACnB,mBAAmB,EACnB,gBAAgB,EAChB,sBAAsB,GACvB,MAAM,sCAAsC,CAAC;AAE9C,MAAM,WAAW,iBAAiB;IAChC,IAAI,CAAC,EAAE,mBAAmB,CAAC;IAC3B,YAAY,CAAC,EAAE,OAAO,CAAC;CACxB"}
@@ -1 +1 @@
1
- {"version":3,"file":"ChatWindow.d.ts","sourceRoot":"","sources":["../../packages/components/chat-ui/src/ChatWindow/ChatWindow.tsx"],"names":[],"mappings":";AA+BA,OAAO,EAAE,KAAK,gBAAgB,EAAE,MAAM,QAAQ,CAAC;;AAoX/C,wBAAgC"}
1
+ {"version":3,"file":"ChatWindow.d.ts","sourceRoot":"","sources":["../../packages/components/chat-ui/src/ChatWindow/ChatWindow.tsx"],"names":[],"mappings":";AAoCA,OAAO,EAAE,KAAK,gBAAgB,EAAE,MAAM,QAAQ,CAAC;;AAoZ/C,wBAAgC"}
@@ -1,6 +1,7 @@
1
- import { ChatPageType, IChatState } from "@cleartrip/talos-use-chat-controller";
1
+ import { ChatCapability, ChatPageType, IChatState } from "@cleartrip/talos-use-chat-controller";
2
2
  import { IUploadPreviewItem } from "@cleartrip/talos-use-native-actions";
3
- export interface IChatWindowProps {
3
+ import { IContextSummaryProps } from "../type";
4
+ export interface IChatWindowProps extends IContextSummaryProps {
4
5
  chatId: string;
5
6
  chatData: IChatState;
6
7
  pageType: `${ChatPageType}`;
@@ -13,5 +14,6 @@ export interface IChatWindowProps {
13
14
  onClose?: () => void;
14
15
  handleMediaPicked: (files: IUploadPreviewItem[]) => void;
15
16
  showNativeActions: boolean;
17
+ capability: `${ChatCapability}`;
16
18
  }
17
19
  //# sourceMappingURL=type.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../packages/components/chat-ui/src/ChatWindow/type.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,sCAAsC,CAAC;AAChF,OAAO,EAAE,kBAAkB,EAAE,MAAM,qCAAqC,CAAC;AAEzE,MAAM,WAAW,gBAAgB;IAI7B,MAAM,EAAE,MAAM,CAAC;IAIf,QAAQ,EAAE,UAAU,CAAC;IAIrB,QAAQ,EAAE,GAAG,YAAY,EAAE,CAAC;IAI5B,WAAW,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC;IAIvC,mBAAmB,EAAE,MAAM,IAAI,CAAC;IAIhC,iBAAiB,EAAE,MAAM,IAAI,CAAC;IAI9B,KAAK,EAAE,OAAO,CAAC;IAIf,gBAAgB,EAAE,OAAO,CAAC;IAI1B,cAAc,EAAE,OAAO,CAAC;IAIxB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IAIrB,iBAAiB,EAAE,CAAC,KAAK,EAAE,kBAAkB,EAAE,KAAK,IAAI,CAAC;IAIzD,iBAAiB,EAAE,OAAO,CAAC;CAC9B"}
1
+ {"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../packages/components/chat-ui/src/ChatWindow/type.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,sCAAsC,CAAC;AAChG,OAAO,EAAE,kBAAkB,EAAE,MAAM,qCAAqC,CAAC;AAEzE,OAAO,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAC;AAE/C,MAAM,WAAW,gBAAiB,SAAQ,oBAAoB;IAI1D,MAAM,EAAE,MAAM,CAAC;IAIf,QAAQ,EAAE,UAAU,CAAC;IAIrB,QAAQ,EAAE,GAAG,YAAY,EAAE,CAAC;IAI5B,WAAW,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC;IAIvC,mBAAmB,EAAE,MAAM,IAAI,CAAC;IAIhC,iBAAiB,EAAE,MAAM,IAAI,CAAC;IAI9B,KAAK,EAAE,OAAO,CAAC;IAIf,gBAAgB,EAAE,OAAO,CAAC;IAI1B,cAAc,EAAE,OAAO,CAAC;IAIxB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IAIrB,iBAAiB,EAAE,CAAC,KAAK,EAAE,kBAAkB,EAAE,KAAK,IAAI,CAAC;IAIzD,iBAAiB,EAAE,OAAO,CAAC;IAI3B,UAAU,EAAE,GAAG,cAAc,EAAE,CAAC;CACnC"}
@@ -0,0 +1,5 @@
1
+ /// <reference types="react" />
2
+ import { IContextSummaryProps } from "../type";
3
+ declare const ContextSummary: (props: IContextSummaryProps) => import("react").JSX.Element | null;
4
+ export default ContextSummary;
5
+ //# sourceMappingURL=ContextSummary.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ContextSummary.d.ts","sourceRoot":"","sources":["../../packages/components/chat-ui/src/ContextSummary/ContextSummary.tsx"],"names":[],"mappings":";AAMA,OAAO,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAC;AAK/C,QAAA,MAAM,cAAc,UAAW,oBAAoB,uCAoClD,CAAA;AAED,eAAe,cAAc,CAAC"}
@@ -0,0 +1,2 @@
1
+ export { default as ContextSummary } from "./ContextSummary";
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../packages/components/chat-ui/src/ContextSummary/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,kBAAkB,CAAC"}
@@ -0,0 +1,19 @@
1
+ import { Theme } from "@cleartrip/ct-design-components";
2
+ export declare const styles: (theme: Theme) => {
3
+ root: {
4
+ padding: "16px";
5
+ };
6
+ fadeIn: {
7
+ padding: "16px";
8
+ animation: string;
9
+ "@keyframes contextSummaryFadeIn": {
10
+ from: {
11
+ opacity: number;
12
+ };
13
+ to: {
14
+ opacity: number;
15
+ };
16
+ };
17
+ };
18
+ };
19
+ //# sourceMappingURL=style.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"style.d.ts","sourceRoot":"","sources":["../../packages/components/chat-ui/src/ContextSummary/style.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,iCAAiC,CAAC;AAExD,eAAO,MAAM,MAAM,UAAW,KAAK;;;;;;;;;;;;;;;;CAclC,CAAA"}
@@ -0,0 +1,5 @@
1
+ /// <reference types="react" />
2
+ import { type IHybridChatProps } from "./type";
3
+ declare const HybridChat: (props: IHybridChatProps) => import("react").JSX.Element;
4
+ export default HybridChat;
5
+ //# sourceMappingURL=HybridChat.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"HybridChat.d.ts","sourceRoot":"","sources":["../../packages/components/chat-ui/src/HybridChat/HybridChat.tsx"],"names":[],"mappings":";AAUA,OAAO,EAAE,KAAK,gBAAgB,EAAE,MAAM,QAAQ,CAAC;AAE/C,QAAA,MAAM,UAAU,UAAW,gBAAgB,gCA4D1C,CAAA;AAED,eAAe,UAAU,CAAC"}
@@ -0,0 +1,3 @@
1
+ export { default as HybridChat } from "./HybridChat";
2
+ export * from "./type";
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../packages/components/chat-ui/src/HybridChat/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,cAAc,CAAC;AACrD,cAAc,QAAQ,CAAC"}
@@ -0,0 +1,34 @@
1
+ import { Theme } from "@cleartrip/ct-design-components";
2
+ export declare const styles: (theme: Theme) => {
3
+ root: {
4
+ display: string;
5
+ flexDirection: string;
6
+ alignItems: string;
7
+ width: string;
8
+ position: string;
9
+ bottom: number;
10
+ left: number;
11
+ right: number;
12
+ zIndex: number;
13
+ paddingLeft: "16px";
14
+ paddingRight: "16px";
15
+ paddingBottom: "16px";
16
+ };
17
+ inputWrapper: {
18
+ flex: number;
19
+ minWidth: number;
20
+ };
21
+ headerAction: {
22
+ height: "40px";
23
+ width: "40px";
24
+ flexShrink: number;
25
+ overflow: string;
26
+ opacity: number;
27
+ transition: string;
28
+ };
29
+ headerActionCollapsed: {
30
+ width: number;
31
+ opacity: number;
32
+ };
33
+ };
34
+ //# sourceMappingURL=style.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"style.d.ts","sourceRoot":"","sources":["../../packages/components/chat-ui/src/HybridChat/style.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,iCAAiC,CAAC;AAExD,eAAO,MAAM,MAAM,UAAW,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiClC,CAAA"}
@@ -0,0 +1,7 @@
1
+ export interface IHybridChatProps {
2
+ onPrefixClick: () => void;
3
+ onSuffixClick: () => void;
4
+ sendMessage?: (message: string, inputPayload?: Record<string, unknown>) => Promise<void> | void;
5
+ isReplyLoading?: boolean;
6
+ }
7
+ //# sourceMappingURL=type.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../packages/components/chat-ui/src/HybridChat/type.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,gBAAgB;IAI7B,aAAa,EAAE,MAAM,IAAI,CAAC;IAI1B,aAAa,EAAE,MAAM,IAAI,CAAC;IAI1B,WAAW,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,YAAY,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,KAAK,OAAO,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC;IAIhG,cAAc,CAAC,EAAE,OAAO,CAAC;CAC5B"}
@@ -0,0 +1,5 @@
1
+ /// <reference types="react" />
2
+ import { type IHybridChatWindowProps } from "./type";
3
+ declare const HybridChatWindow: import("react").ForwardRefExoticComponent<IHybridChatWindowProps & import("react").RefAttributes<HTMLDivElement>>;
4
+ export default HybridChatWindow;
5
+ //# sourceMappingURL=HybridChatWindow.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"HybridChatWindow.d.ts","sourceRoot":"","sources":["../../packages/components/chat-ui/src/HybridChatWindow/HybridChatWindow.tsx"],"names":[],"mappings":";AAKA,OAAO,EAAE,KAAK,sBAAsB,EAAE,MAAM,QAAQ,CAAC;AAErD,QAAA,MAAM,gBAAgB,mHAqBpB,CAAC;AAEH,eAAe,gBAAgB,CAAC"}
@@ -0,0 +1,3 @@
1
+ export { default as HybridChatWindow } from "./HybridChatWindow";
2
+ export * from "./type";
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../packages/components/chat-ui/src/HybridChatWindow/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACjE,cAAc,QAAQ,CAAC"}
@@ -0,0 +1,8 @@
1
+ export interface IHybridChatWindowProps {
2
+ onPrefixClick: () => void;
3
+ onSuffixClick: () => void;
4
+ sendMessage?: (message: string, inputPayload?: Record<string, unknown>) => Promise<void> | void;
5
+ isReplyLoading?: boolean;
6
+ visible?: boolean;
7
+ }
8
+ //# sourceMappingURL=type.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../packages/components/chat-ui/src/HybridChatWindow/type.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,sBAAsB;IAInC,aAAa,EAAE,MAAM,IAAI,CAAC;IAI1B,aAAa,EAAE,MAAM,IAAI,CAAC;IAI1B,WAAW,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,YAAY,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,KAAK,OAAO,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC;IAIhG,cAAc,CAAC,EAAE,OAAO,CAAC;IAKzB,OAAO,CAAC,EAAE,OAAO,CAAC;CACrB"}
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ declare const Expand: () => import("react").JSX.Element;
3
+ export default Expand;
4
+ //# sourceMappingURL=Expand.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Expand.d.ts","sourceRoot":"","sources":["../../packages/components/chat-ui/src/assets/Expand.tsx"],"names":[],"mappings":";AAAA,QAAA,MAAM,MAAM,mCAMX,CAAA;AAED,eAAe,MAAM,CAAC"}
package/dist/index.d.ts CHANGED
@@ -1,3 +1,6 @@
1
1
  export { default as ChatUI } from './ChatUI';
2
+ export { HybridChat } from './HybridChat';
3
+ export { HybridChatWindow } from './HybridChatWindow';
4
+ export * from './ChatSurface';
2
5
  export * from './type';
3
6
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../packages/components/chat-ui/src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,UAAU,CAAC;AAC7C,cAAc,QAAQ,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../packages/components/chat-ui/src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,UAAU,CAAC;AAC7C,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,cAAc,eAAe,CAAC;AAC9B,cAAc,QAAQ,CAAC"}