cmcts-c-agent-embedding 1.0.2 → 1.0.3-cmcuni

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 (94) hide show
  1. package/.env +2 -36
  2. package/.env.example +34 -34
  3. package/.eslintrc.cjs +14 -14
  4. package/.prettierignore +3 -3
  5. package/.prettierrc +8 -8
  6. package/README.md +349 -349
  7. package/base.json +21 -21
  8. package/dist/components/Bot.d.ts +10 -0
  9. package/dist/components/Bot.d.ts.map +1 -1
  10. package/dist/components/FeedbackContentDialog.d.ts +3 -0
  11. package/dist/components/FeedbackContentDialog.d.ts.map +1 -1
  12. package/dist/components/Toast.d.ts +10 -0
  13. package/dist/components/Toast.d.ts.map +1 -0
  14. package/dist/components/bubbles/BotBubble.d.ts +6 -0
  15. package/dist/components/bubbles/BotBubble.d.ts.map +1 -1
  16. package/dist/components/bubbles/GuestBubble.d.ts.map +1 -1
  17. package/dist/components/bubbles/LoadingBubble.d.ts +7 -1
  18. package/dist/components/bubbles/LoadingBubble.d.ts.map +1 -1
  19. package/dist/components/bubbles/SourceBubble.d.ts +1 -0
  20. package/dist/components/bubbles/SourceBubble.d.ts.map +1 -1
  21. package/dist/components/bubbles/StarterPromptBubble.d.ts.map +1 -1
  22. package/dist/components/buttons/FeedbackButtons.d.ts +1 -0
  23. package/dist/components/buttons/FeedbackButtons.d.ts.map +1 -1
  24. package/dist/components/buttons/SendButton.d.ts +1 -0
  25. package/dist/components/buttons/SendButton.d.ts.map +1 -1
  26. package/dist/components/icons/AddImageIcon.d.ts.map +1 -1
  27. package/dist/components/icons/CmcIcon.d.ts +3 -0
  28. package/dist/components/icons/CmcIcon.d.ts.map +1 -0
  29. package/dist/components/icons/FullScreenIcon.d.ts +3 -0
  30. package/dist/components/icons/FullScreenIcon.d.ts.map +1 -0
  31. package/dist/components/icons/ResetBtn.d.ts +3 -0
  32. package/dist/components/icons/ResetBtn.d.ts.map +1 -0
  33. package/dist/components/icons/SendIconOff.d.ts +3 -0
  34. package/dist/components/icons/SendIconOff.d.ts.map +1 -0
  35. package/dist/components/icons/SendIconOn.d.ts +3 -0
  36. package/dist/components/icons/SendIconOn.d.ts.map +1 -0
  37. package/dist/components/icons/ThumbsDownIcon.d.ts +3 -1
  38. package/dist/components/icons/ThumbsDownIcon.d.ts.map +1 -1
  39. package/dist/components/icons/ThumbsUpIcon.d.ts +3 -1
  40. package/dist/components/icons/ThumbsUpIcon.d.ts.map +1 -1
  41. package/dist/components/icons/index.d.ts +1 -0
  42. package/dist/components/icons/index.d.ts.map +1 -1
  43. package/dist/components/image/PreviewImage.d.ts +5 -0
  44. package/dist/components/image/PreviewImage.d.ts.map +1 -0
  45. package/dist/components/inputs/textInput/components/ShortTextInput.d.ts +3 -0
  46. package/dist/components/inputs/textInput/components/ShortTextInput.d.ts.map +1 -1
  47. package/dist/components/inputs/textInput/components/TextInput.d.ts +19 -3
  48. package/dist/components/inputs/textInput/components/TextInput.d.ts.map +1 -1
  49. package/dist/components/mobile/MobileWelcomeScreen.d.ts +13 -0
  50. package/dist/components/mobile/MobileWelcomeScreen.d.ts.map +1 -0
  51. package/dist/constants.d.ts.map +1 -1
  52. package/dist/features/bubble/components/Bubble.d.ts.map +1 -1
  53. package/dist/features/bubble/types.d.ts +1 -0
  54. package/dist/features/bubble/types.d.ts.map +1 -1
  55. package/dist/features/full/components/Full.d.ts.map +1 -1
  56. package/dist/features/popup/components/Popup.d.ts.map +1 -1
  57. package/dist/hooks/useMobileDetection.d.ts +52 -0
  58. package/dist/hooks/useMobileDetection.d.ts.map +1 -0
  59. package/dist/index.js +1 -1
  60. package/dist/queries/sendMessageQuery.d.ts +37 -1
  61. package/dist/queries/sendMessageQuery.d.ts.map +1 -1
  62. package/dist/test-markdown-component.d.ts +2 -0
  63. package/dist/test-markdown-component.d.ts.map +1 -0
  64. package/dist/utils/index.d.ts +4 -0
  65. package/dist/utils/index.d.ts.map +1 -1
  66. package/dist/utils/mobileUtils.d.ts +32 -0
  67. package/dist/utils/mobileUtils.d.ts.map +1 -0
  68. package/dist/utils/ultimateJsonParser.d.ts +2 -0
  69. package/dist/utils/ultimateJsonParser.d.ts.map +1 -0
  70. package/dist/web.d.ts +4 -0
  71. package/dist/web.d.ts.map +1 -1
  72. package/dist/web.js +1 -1
  73. package/dist/window.d.ts +2 -0
  74. package/dist/window.d.ts.map +1 -1
  75. package/package.json +81 -77
  76. package/public/index.html +58 -146
  77. package/server.js +401 -401
  78. package/.husky/pre-commit +0 -18
  79. package/.idea/Flowise-share-chatbox.iml +0 -12
  80. package/.idea/codeStyles/Project.xml +0 -60
  81. package/.idea/codeStyles/codeStyleConfig.xml +0 -5
  82. package/.idea/inspectionProfiles/Project_Default.xml +0 -16
  83. package/.idea/modules.xml +0 -8
  84. package/.idea/prettier.xml +0 -6
  85. package/.idea/vcs.xml +0 -6
  86. package/a.json +0 -57
  87. package/bun.lockb +0 -0
  88. package/dist/components/ImageUploadButton.d.ts +0 -11
  89. package/dist/components/ImageUploadButton.d.ts.map +0 -1
  90. package/dist/components/RecordAudioButton.d.ts +0 -11
  91. package/dist/components/RecordAudioButton.d.ts.map +0 -1
  92. package/dist/components/SendButton.d.ts +0 -12
  93. package/dist/components/SendButton.d.ts.map +0 -1
  94. package/test.html +0 -17
@@ -10,6 +10,8 @@ export type IncomingInput = {
10
10
  action?: IAction;
11
11
  stored?: Record<string, any>;
12
12
  fetch?: boolean;
13
+ faqId?: string;
14
+ useId?: string;
13
15
  };
14
16
  type BaseRequest = {
15
17
  apiHost?: string;
@@ -23,7 +25,7 @@ export type FeedbackRatingType = 'THUMBS_UP' | 'THUMBS_DOWN';
23
25
  export type FeedbackInput = {
24
26
  chatId: string;
25
27
  messageId: string;
26
- rating: FeedbackRatingType;
28
+ rating: any;
27
29
  content?: string;
28
30
  };
29
31
  export type CreateFeedbackRequest = BaseRequest & {
@@ -46,13 +48,21 @@ export type LeadCaptureInput = {
46
48
  email?: string;
47
49
  phone?: string;
48
50
  };
51
+ export type GetFeedbackByMessageIdRequest = BaseRequest & {
52
+ messageId: string;
53
+ };
49
54
  export type LeadCaptureRequest = BaseRequest & {
50
55
  body: Partial<LeadCaptureInput>;
51
56
  };
57
+ export declare const getUserFromLocalStorage: () => any | null;
52
58
  export declare const sendFeedbackQuery: ({ chatflowid, apiHost, body, onRequest }: CreateFeedbackRequest) => Promise<{
53
59
  data?: unknown;
54
60
  error?: Error | undefined;
55
61
  }>;
62
+ export declare const getFeedbackByMessageId: ({ messageId, apiHost, onRequest }: GetFeedbackByMessageIdRequest) => Promise<{
63
+ data?: unknown;
64
+ error?: Error | undefined;
65
+ }>;
56
66
  export declare const updateFeedbackQuery: ({ id, apiHost, body, onRequest }: UpdateFeedbackRequest) => Promise<{
57
67
  data?: unknown;
58
68
  error?: Error | undefined;
@@ -85,5 +95,31 @@ export declare const addLeadQuery: ({ apiHost, body, onRequest }: LeadCaptureReq
85
95
  data?: any;
86
96
  error?: Error | undefined;
87
97
  }>;
98
+ export declare const searchFaqsQuery: ({ chatflowid, apiHost, query, onRequest, }: {
99
+ chatflowid?: string | undefined;
100
+ apiHost?: string | undefined;
101
+ query: string;
102
+ onRequest?: ((request: RequestInit) => Promise<void>) | undefined;
103
+ }) => Promise<{
104
+ data?: any;
105
+ error?: Error | undefined;
106
+ }>;
107
+ export declare const vectorSearchFaqsQuery: ({ chatflowid, apiHost, query, onRequest, }: {
108
+ chatflowid: string;
109
+ apiHost?: string | undefined;
110
+ query: string;
111
+ onRequest?: ((request: RequestInit) => Promise<void>) | undefined;
112
+ }) => Promise<{
113
+ data?: any;
114
+ error?: Error | undefined;
115
+ }>;
116
+ export declare const getFileContent: ({ apiHost, path, onRequest, }: {
117
+ apiHost?: string | undefined;
118
+ path: string;
119
+ onRequest?: ((request: RequestInit) => Promise<void>) | undefined;
120
+ }) => Promise<{
121
+ data?: any;
122
+ error?: Error | undefined;
123
+ }>;
88
124
  export {};
89
125
  //# sourceMappingURL=sendMessageQuery.d.ts.map
@@ -1 +1 @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Q/G,CAAC;AAEL,eAAO,MAAM,qBAAqB,iCAA4D,cAAc;;;EAUxG,CAAC;AAEL,eAAO,MAAM,YAAY,iCAA4D,kBAAkB;;;EASnG,CAAC;AAEL,eAAO,MAAM,eAAe;;;WAQnB,MAAM;2BACS,WAAW,KAAK,QAAQ,IAAI,CAAC;;;;EAUpD,CAAC;AAEF,eAAO,MAAM,qBAAqB;gBAMpB,MAAM;;WAEX,MAAM;2BACS,WAAW,KAAK,QAAQ,IAAI,CAAC;;;;EAUpD,CAAC;AAEF,eAAO,MAAM,cAAc;;UAMnB,MAAM;2BACU,WAAW,KAAK,QAAQ,IAAI,CAAC;;;;EAUpD,CAAC"}
@@ -0,0 +1,2 @@
1
+ export declare const MarkdownTest: () => import("solid-js").JSX.Element;
2
+ //# sourceMappingURL=test-markdown-component.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"test-markdown-component.d.ts","sourceRoot":"","sources":["../src/test-markdown-component.tsx"],"names":[],"mappings":"AAkCA,eAAO,MAAM,YAAY,sCA6DxB,CAAC"}
@@ -2,6 +2,10 @@ export declare const isNotDefined: <T>(value: T | null | undefined) => value is
2
2
  export declare const isDefined: <T>(value: T | null | undefined) => value is NonNullable<T>;
3
3
  export declare const isEmpty: (value: string | undefined | null) => value is undefined;
4
4
  export declare const isNotEmpty: (value: string | undefined | null) => value is string;
5
+ /**
6
+ * Clears authentication data from localStorage
7
+ * Used when 401 errors are detected or user logs out
8
+ */
5
9
  export declare const sendRequest: <ResponseData>(params: string | {
6
10
  url: string;
7
11
  method: string;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/utils/index.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,YAAY,+DAAuG,CAAC;AAEjI,eAAO,MAAM,SAAS,6DAAqG,CAAC;AAE5H,eAAO,MAAM,OAAO,UAAW,MAAM,GAAG,SAAS,GAAG,IAAI,uBAA8E,CAAC;AAEvI,eAAO,MAAM,UAAU,UAAW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EF,eAAO,MAAM,mBAAmB,SAAU,OAAO,GAAG,QAAQ,GAAG,OAAO,GAAG,MAAM,GAAG,SAAS,WAO1F,CAAC;AAEF,eAAO,MAAM,SAAS,UAAW,MAAM,UAAU,MAAM,UAAU,MAAM,SAKtE,CAAC;AAEF,eAAO,MAAM,SAAS,UAAW,MAAM,KAAG,MAczC,CAAC"}
@@ -0,0 +1,32 @@
1
+ /**
2
+ * Utility function to conditionally apply mobile-specific classes
3
+ * @param mobileClasses - Classes to apply on mobile
4
+ * @param desktopClasses - Classes to apply on desktop (optional)
5
+ * @returns Combined class string based on current device type
6
+ */
7
+ export declare const mobileClass: (mobileClasses: string, desktopClasses?: string) => string;
8
+ /**
9
+ * Utility function to combine base classes with mobile-specific classes
10
+ * @param baseClasses - Classes that apply to both mobile and desktop
11
+ * @param mobileClasses - Additional classes for mobile
12
+ * @param desktopClasses - Additional classes for desktop (optional)
13
+ * @returns Combined class string
14
+ */
15
+ export declare const responsiveClass: (baseClasses: string, mobileClasses?: string, desktopClasses?: string) => string;
16
+ /**
17
+ * Mobile-specific background container class
18
+ */
19
+ export declare const getMobileBackgroundClass: () => "" | "mobile-bg-container";
20
+ /**
21
+ * Mobile-specific header class
22
+ */
23
+ export declare const getMobileHeaderClass: () => "" | "mobile-header";
24
+ /**
25
+ * Mobile-specific input container class
26
+ */
27
+ export declare const getMobileInputClass: () => "" | "mobile-input-container";
28
+ /**
29
+ * Mobile-specific welcome screen class
30
+ */
31
+ export declare const getMobileWelcomeClass: () => "" | "welcome-screen-mobile";
32
+ //# sourceMappingURL=mobileUtils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mobileUtils.d.ts","sourceRoot":"","sources":["../../src/utils/mobileUtils.ts"],"names":[],"mappings":"AAEA;;;;;GAKG;AACH,eAAO,MAAM,WAAW,kBAAmB,MAAM,mBAAkB,MAAM,WAExE,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,eAAe,gBACb,MAAM,kBACJ,MAAM,mBACL,MAAM,WAIvB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,wBAAwB,kCAIpC,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,oBAAoB,4BAIhC,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,mBAAmB,qCAI/B,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,qBAAqB,oCAIjC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export declare function parseJsonMarkdown(jsonString: string): any;
2
+ //# sourceMappingURL=ultimateJsonParser.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ultimateJsonParser.d.ts","sourceRoot":"","sources":["../../src/utils/ultimateJsonParser.ts"],"names":[],"mappings":"AAsBA,wBAAgB,iBAAiB,CAAC,UAAU,EAAE,MAAM,GAAG,GAAG,CAgDzD"}
package/dist/web.d.ts CHANGED
@@ -7,6 +7,8 @@ declare const chatbot: {
7
7
  observersConfig?: import("./components/Bot").observersConfigType | undefined;
8
8
  theme?: import("./features/bubble/types").BubbleTheme | undefined;
9
9
  chatwootUrl?: string | undefined;
10
+ roomIds?: Record<string, string> | undefined;
11
+ isUseFAQ?: boolean | undefined;
10
12
  } & {
11
13
  id?: string | undefined;
12
14
  }) => void;
@@ -18,6 +20,8 @@ declare const chatbot: {
18
20
  observersConfig?: import("./components/Bot").observersConfigType | undefined;
19
21
  theme?: import("./features/bubble/types").BubbleTheme | undefined;
20
22
  chatwootUrl?: string | undefined;
23
+ roomIds?: Record<string, string> | undefined;
24
+ isUseFAQ?: boolean | undefined;
21
25
  }) => void;
22
26
  destroy: () => void;
23
27
  };
package/dist/web.d.ts.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"web.d.ts","sourceRoot":"","sources":["../src/web.ts"],"names":[],"mappings":"AAKA,QAAA,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;CAAiB,CAAC;AAI/B,eAAe,OAAO,CAAC"}
1
+ {"version":3,"file":"web.d.ts","sourceRoot":"","sources":["../src/web.ts"],"names":[],"mappings":"AAKA,QAAA,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;CAAiB,CAAC;AAI/B,eAAe,OAAO,CAAC"}