impact-chatbot 2.0.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 (86) hide show
  1. package/README.md +321 -0
  2. package/dist/components/ChatFooter.d.ts +55 -0
  3. package/dist/components/ChatInput.d.ts +27 -0
  4. package/dist/components/ChatLayout.d.ts +44 -0
  5. package/dist/components/ChatPlaceholder.d.ts +3 -0
  6. package/dist/components/HighlightedRenderer.d.ts +14 -0
  7. package/dist/components/LinkRenderer.d.ts +4 -0
  8. package/dist/components/LoadingOverlay.d.ts +2 -0
  9. package/dist/components/ModuleSelection.d.ts +28 -0
  10. package/dist/components/RedirectLink.d.ts +5 -0
  11. package/dist/components/SavedChat.d.ts +2 -0
  12. package/dist/components/SelectedModule.d.ts +7 -0
  13. package/dist/components/TextRenderer.d.ts +7 -0
  14. package/dist/components/chatbot-input/components/FilterValueInput.d.ts +15 -0
  15. package/dist/components/chatbot-input/hooks/useMentionState.d.ts +33 -0
  16. package/dist/components/chatbot-input/index.d.ts +3 -0
  17. package/dist/components/chatbot-input/index_new.d.ts +3 -0
  18. package/dist/components/chatbot-input/index_old_backup.d.ts +3 -0
  19. package/dist/components/chatbot-input/utils/apiHelpers.d.ts +50 -0
  20. package/dist/components/chatbot-input/utils/domHelpers.d.ts +82 -0
  21. package/dist/components/chatbot-input/utils/mentionHelpers.d.ts +48 -0
  22. package/dist/components/memory-modal/components/Memories.d.ts +2 -0
  23. package/dist/components/memory-modal/index.d.ts +2 -0
  24. package/dist/components/memory-modal/service.d.ts +3 -0
  25. package/dist/components/memory-modal/styling.d.ts +1 -0
  26. package/dist/components/message-template/components/message-actions/LikeDislikeActions.d.ts +7 -0
  27. package/dist/components/message-template/components/message-content/ButtonContent.d.ts +4 -0
  28. package/dist/components/message-template/components/message-content/CheckboxContent.d.ts +4 -0
  29. package/dist/components/message-template/components/message-content/ChipsContent.d.ts +5 -0
  30. package/dist/components/message-template/components/message-content/CombinedContent.d.ts +5 -0
  31. package/dist/components/message-template/components/message-content/DatePickerContent.d.ts +4 -0
  32. package/dist/components/message-template/components/message-content/GraphContent.d.ts +4 -0
  33. package/dist/components/message-template/components/message-content/InputContent.d.ts +4 -0
  34. package/dist/components/message-template/components/message-content/QuestionsContent.d.ts +5 -0
  35. package/dist/components/message-template/components/message-content/RadioContent.d.ts +4 -0
  36. package/dist/components/message-template/components/message-content/SelectContent.d.ts +4 -0
  37. package/dist/components/message-template/components/message-content/SelectableChips.d.ts +7 -0
  38. package/dist/components/message-template/components/message-content/SliderContent.d.ts +4 -0
  39. package/dist/components/message-template/components/message-content/TableContent.d.ts +4 -0
  40. package/dist/components/message-template/components/message-content/TextContent.d.ts +5 -0
  41. package/dist/components/message-template/components/message-content/tabular-content/components/AgentResponse.d.ts +4 -0
  42. package/dist/components/message-template/components/message-content/tabular-content/components/Steps.d.ts +4 -0
  43. package/dist/components/message-template/components/message-content/tabular-content/index.d.ts +6 -0
  44. package/dist/components/message-template/components/message-types/BotMessage.d.ts +7 -0
  45. package/dist/components/message-template/components/message-types/LoaderMessage.d.ts +4 -0
  46. package/dist/components/message-template/components/message-types/UserMessage.d.ts +4 -0
  47. package/dist/components/message-template/components/message-types/streamed-content/AxiosEventSource.d.ts +17 -0
  48. package/dist/components/message-template/components/message-types/streamed-content/StreamedContent.d.ts +16 -0
  49. package/dist/components/message-template/components/message-types/streamed-content/ThinkinHeaderInfo.d.ts +2 -0
  50. package/dist/components/message-template/components/message-types/streamed-content/ThinkingIndicator.d.ts +9 -0
  51. package/dist/components/message-template/components/message-types/streamed-content/steps-response-tab/StepsResponseTab.d.ts +2 -0
  52. package/dist/components/message-template/components/message-types/streamed-content/steps-response-tab/components/AgentResponse.d.ts +2 -0
  53. package/dist/components/message-template/components/message-types/streamed-content/steps-response-tab/components/Steps.d.ts +12 -0
  54. package/dist/components/message-template/components/message-types/streamed-content/styling.d.ts +1 -0
  55. package/dist/components/message-template/index.d.ts +2 -0
  56. package/dist/components/message-template/reference.d.ts +2 -0
  57. package/dist/components/message-template/utils.d.ts +4 -0
  58. package/dist/components/upload-modal/index.d.ts +2 -0
  59. package/dist/constants.d.ts +17 -0
  60. package/dist/core/constants/index.d.ts +5 -0
  61. package/dist/core/styles/colours.d.ts +213 -0
  62. package/dist/core/styles/globalStyles.d.ts +2 -0
  63. package/dist/core/utils/functions.d.ts +7 -0
  64. package/dist/core/utils/replaceSpecialCharacter.d.ts +1 -0
  65. package/dist/hooks/useAgentFlow.d.ts +5 -0
  66. package/dist/hooks/useBotConfiguration.d.ts +5 -0
  67. package/dist/hooks/useChatFlow.d.ts +16 -0
  68. package/dist/hooks/useChatSession.d.ts +8 -0
  69. package/dist/hooks/useChatState.d.ts +134 -0
  70. package/dist/hooks/useConversationManagement.d.ts +10 -0
  71. package/dist/hooks/useDragAndDrop.d.ts +6 -0
  72. package/dist/impact-ui-components/ConfirmationDialog/index.d.ts +24 -0
  73. package/dist/index.cjs.css +360 -0
  74. package/dist/index.cjs.js +9950 -0
  75. package/dist/index.cjs.js.map +1 -0
  76. package/dist/index.d.ts +2 -0
  77. package/dist/index.esm.css +360 -0
  78. package/dist/index.esm.js +9928 -0
  79. package/dist/index.esm.js.map +1 -0
  80. package/dist/services/chatbot-services.d.ts +14 -0
  81. package/dist/services/conversation-service.d.ts +6 -0
  82. package/dist/styling.d.ts +2 -0
  83. package/dist/temp.d.ts +65 -0
  84. package/dist/utils/coreUtils.d.ts +25 -0
  85. package/dist/utlis.d.ts +56 -0
  86. package/package.json +68 -0
@@ -0,0 +1,2 @@
1
+ declare const SmartBot: (props: any) => import("react/jsx-runtime").JSX.Element;
2
+ export default SmartBot;
@@ -0,0 +1,360 @@
1
+ /* Markdown Content Styling - Comprehensive styles for proper bullet point rendering */
2
+ .markdown-content,
3
+ .md-content {
4
+ font-family: inherit;
5
+ font-size: inherit;
6
+ color: inherit;
7
+ overflow: visible !important;
8
+ /* Headings */
9
+ }
10
+ .markdown-content h1, .markdown-content h2, .markdown-content h3, .markdown-content h4, .markdown-content h5, .markdown-content h6,
11
+ .md-content h1,
12
+ .md-content h2,
13
+ .md-content h3,
14
+ .md-content h4,
15
+ .md-content h5,
16
+ .md-content h6 {
17
+ margin: 16px 0 8px 0;
18
+ font-weight: 600;
19
+ line-height: 1.3;
20
+ color: inherit;
21
+ }
22
+ .markdown-content h1,
23
+ .md-content h1 {
24
+ font-size: 1.5em;
25
+ }
26
+ .markdown-content h2,
27
+ .md-content h2 {
28
+ font-size: 1.3em;
29
+ }
30
+ .markdown-content h3,
31
+ .md-content h3 {
32
+ font-size: 1.2em;
33
+ }
34
+ .markdown-content h4,
35
+ .md-content h4 {
36
+ font-size: 1.1em;
37
+ }
38
+ .markdown-content h5,
39
+ .md-content h5 {
40
+ font-size: 1.05em;
41
+ }
42
+ .markdown-content h6,
43
+ .md-content h6 {
44
+ font-size: 1em;
45
+ }
46
+ .markdown-content,
47
+ .md-content {
48
+ /* Paragraphs */
49
+ }
50
+ .markdown-content p,
51
+ .markdown-content .markdown-paragraph,
52
+ .md-content p,
53
+ .md-content .markdown-paragraph {
54
+ margin: 8px 0;
55
+ line-height: 1.6;
56
+ }
57
+ .markdown-content,
58
+ .md-content {
59
+ /* Lists - Critical styling for bullet points */
60
+ }
61
+ .markdown-content ul, .markdown-content ol,
62
+ .md-content ul,
63
+ .md-content ol {
64
+ margin: 12px 0 !important;
65
+ padding-left: 1.5rem !important;
66
+ line-height: 1.6 !important;
67
+ overflow: visible !important;
68
+ }
69
+ .markdown-content ul,
70
+ .md-content ul {
71
+ list-style-type: disc !important;
72
+ list-style-position: outside !important;
73
+ }
74
+ .markdown-content ol,
75
+ .md-content ol {
76
+ list-style-type: decimal !important;
77
+ list-style-position: outside !important;
78
+ }
79
+ .markdown-content li,
80
+ .md-content li {
81
+ margin: 6px 0 !important;
82
+ line-height: 1.5 !important;
83
+ display: list-item !important;
84
+ list-style: inherit !important;
85
+ }
86
+ .markdown-content li p,
87
+ .md-content li p {
88
+ margin: 4px 0;
89
+ display: inline;
90
+ }
91
+ .markdown-content li:has(> ul:only-child), .markdown-content li:has(> ol:only-child),
92
+ .md-content li:has(> ul:only-child),
93
+ .md-content li:has(> ol:only-child) {
94
+ list-style: none !important;
95
+ }
96
+ .markdown-content li ul, .markdown-content li ol,
97
+ .md-content li ul,
98
+ .md-content li ol {
99
+ margin: 4px 0 4px 0;
100
+ padding-left: 1.5rem !important;
101
+ }
102
+ .markdown-content,
103
+ .md-content {
104
+ /* Specific styling for markdown lists */
105
+ }
106
+ .markdown-content .markdown-list,
107
+ .md-content .markdown-list {
108
+ margin: 12px 0 !important;
109
+ padding-left: 1.5rem !important;
110
+ overflow: visible !important;
111
+ }
112
+ .markdown-content .markdown-list.markdown-ordered-list,
113
+ .md-content .markdown-list.markdown-ordered-list {
114
+ list-style-type: decimal !important;
115
+ list-style-position: outside !important;
116
+ }
117
+ .markdown-content .markdown-list.markdown-ordered-list .markdown-list-item,
118
+ .md-content .markdown-list.markdown-ordered-list .markdown-list-item {
119
+ position: relative;
120
+ display: list-item !important;
121
+ list-style: inherit !important;
122
+ }
123
+ .markdown-content .markdown-list.markdown-unordered-list,
124
+ .md-content .markdown-list.markdown-unordered-list {
125
+ list-style-type: disc !important;
126
+ list-style-position: outside !important;
127
+ }
128
+ .markdown-content .markdown-list.markdown-unordered-list .markdown-list-item,
129
+ .md-content .markdown-list.markdown-unordered-list .markdown-list-item {
130
+ position: relative;
131
+ display: list-item !important;
132
+ list-style: inherit !important;
133
+ }
134
+ .markdown-content .markdown-list.markdown-unordered-list .markdown-list-item::marker,
135
+ .md-content .markdown-list.markdown-unordered-list .markdown-list-item::marker {
136
+ font-size: 1.1em;
137
+ color: currentColor;
138
+ }
139
+ .markdown-content .markdown-list.markdown-unordered-list .markdown-list-item:has(> .markdown-list:only-child),
140
+ .md-content .markdown-list.markdown-unordered-list .markdown-list-item:has(> .markdown-list:only-child) {
141
+ list-style: none !important;
142
+ }
143
+ .markdown-content .markdown-list-item,
144
+ .md-content .markdown-list-item {
145
+ margin: 8px 0 !important;
146
+ line-height: 1.6 !important;
147
+ display: list-item !important;
148
+ list-style: inherit !important;
149
+ }
150
+ .markdown-content .markdown-list-item > p,
151
+ .md-content .markdown-list-item > p {
152
+ margin: 0;
153
+ display: inline;
154
+ }
155
+ .markdown-content .markdown-list-item br,
156
+ .md-content .markdown-list-item br {
157
+ line-height: 1.8;
158
+ }
159
+ .markdown-content .markdown-list-item .markdown-list,
160
+ .md-content .markdown-list-item .markdown-list {
161
+ margin: 4px 0 4px 0 !important;
162
+ padding-left: 1.5rem !important;
163
+ }
164
+ .markdown-content,
165
+ .md-content {
166
+ /* Text formatting */
167
+ }
168
+ .markdown-content strong, .markdown-content b,
169
+ .md-content strong,
170
+ .md-content b {
171
+ font-weight: 600;
172
+ color: inherit;
173
+ }
174
+ .markdown-content em, .markdown-content i,
175
+ .md-content em,
176
+ .md-content i {
177
+ font-style: italic;
178
+ }
179
+ .markdown-content,
180
+ .md-content {
181
+ /* Code */
182
+ }
183
+ .markdown-content code,
184
+ .markdown-content .markdown-code,
185
+ .md-content code,
186
+ .md-content .markdown-code {
187
+ background: rgba(0, 0, 0, 0.1);
188
+ padding: 2px 4px;
189
+ border-radius: 3px;
190
+ font-family: "Courier New", Courier, monospace;
191
+ font-size: 0.9em;
192
+ }
193
+ .markdown-content pre,
194
+ .markdown-content .markdown-pre,
195
+ .md-content pre,
196
+ .md-content .markdown-pre {
197
+ background: rgba(0, 0, 0, 0.1);
198
+ padding: 12px;
199
+ border-radius: 6px;
200
+ overflow-x: auto;
201
+ margin: 8px 0;
202
+ }
203
+ .markdown-content pre code,
204
+ .markdown-content .markdown-pre code,
205
+ .md-content pre code,
206
+ .md-content .markdown-pre code {
207
+ background: none;
208
+ padding: 0;
209
+ }
210
+ .markdown-content,
211
+ .md-content {
212
+ /* Blockquotes */
213
+ }
214
+ .markdown-content blockquote,
215
+ .md-content blockquote {
216
+ border-left: 4px solid #646CE7;
217
+ margin: 8px 0;
218
+ padding: 4px 0 4px 12px;
219
+ background: rgba(100, 108, 231, 0.05);
220
+ font-style: italic;
221
+ }
222
+ .markdown-content,
223
+ .md-content {
224
+ /* Links */
225
+ }
226
+ .markdown-content a,
227
+ .md-content a {
228
+ color: #646CE7;
229
+ text-decoration: none;
230
+ }
231
+ .markdown-content a:hover,
232
+ .md-content a:hover {
233
+ text-decoration: underline;
234
+ }
235
+ .chat-input-container {
236
+ width: 100%;
237
+ position: relative;
238
+ border-radius: 12px;
239
+ padding: 12px;
240
+ background: #fff;
241
+ border: 1px solid #d9dde7;
242
+ box-shadow: 0px 0px 12px 8px rgba(0, 0, 0, 0.0588235294);
243
+ }
244
+ .chat-input-container:hover {
245
+ border: 1px solid #b3bdf8;
246
+ }
247
+ .chat-input-container:focus-within {
248
+ border: 1px solid #b3bdf8;
249
+ }
250
+
251
+ .chat-input-wrapper {
252
+ display: flex;
253
+ align-items: flex-end;
254
+ width: 100%;
255
+ max-height: 182px;
256
+ transition: all 0.2s ease-in-out;
257
+ }
258
+
259
+ .chat-input-wrapper.stacked {
260
+ flex-direction: column;
261
+ align-items: stretch;
262
+ }
263
+
264
+ .chat-input-wrapper.empty {
265
+ flex-direction: row;
266
+ align-items: flex-end;
267
+ }
268
+
269
+ .chat-input-wrapper.single-line-textarea {
270
+ align-items: center;
271
+ }
272
+
273
+ .chat-input-editor {
274
+ flex: 1;
275
+ min-height: 22px;
276
+ max-height: 142px;
277
+ overflow-y: auto;
278
+ overflow-x: hidden;
279
+ font-size: 14px;
280
+ line-height: 22.4px;
281
+ font-family: "Manrope", sans-serif;
282
+ font-weight: 400;
283
+ color: #1f2b4d;
284
+ outline: none;
285
+ border: none;
286
+ white-space: pre-wrap;
287
+ word-wrap: break-word;
288
+ -webkit-user-modify: read-write-plaintext-only;
289
+ }
290
+ .chat-input-editor:empty:before {
291
+ content: attr(data-placeholder);
292
+ color: #b4bac7;
293
+ pointer-events: none;
294
+ position: absolute;
295
+ }
296
+ .chat-input-editor:focus {
297
+ outline: none;
298
+ }
299
+
300
+ .chat-actions {
301
+ display: flex;
302
+ align-items: flex-end;
303
+ gap: 12px;
304
+ justify-content: flex-end;
305
+ height: 32px;
306
+ }
307
+ .chat-actions.fixed {
308
+ height: 36px;
309
+ }
310
+ .chat-actions.not-fixed {
311
+ height: 32px;
312
+ }
313
+
314
+ .stop-icon-button .ia-btn-icon {
315
+ width: auto;
316
+ height: auto;
317
+ margin-bottom: 0;
318
+ display: flex;
319
+ align-items: center;
320
+ justify-content: center;
321
+ }
322
+
323
+ .mention-select-wrapper {
324
+ position: absolute;
325
+ }
326
+
327
+ .mention-highlight {
328
+ background-color: #7C5CB1;
329
+ color: #ffffff !important;
330
+ padding: 2px 6px;
331
+ border-radius: 6px;
332
+ font-weight: 500;
333
+ display: inline-block;
334
+ line-height: 18px;
335
+ vertical-align: middle;
336
+ margin: 0 2px;
337
+ cursor: default;
338
+ user-select: none;
339
+ }
340
+ .mention-highlight.mention-count-badge {
341
+ cursor: pointer;
342
+ font-size: 12px;
343
+ font-weight: 600;
344
+ padding: 2px 8px;
345
+ }
346
+
347
+ .mention-tooltip {
348
+ position: fixed;
349
+ background-color: #1f2b4d;
350
+ color: #ffffff;
351
+ padding: 8px 12px;
352
+ border-radius: 6px;
353
+ font-size: 13px;
354
+ line-height: 20px;
355
+ z-index: 10000;
356
+ box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.2);
357
+ pointer-events: none;
358
+ white-space: nowrap;
359
+ font-family: "Manrope", sans-serif;
360
+ }