@envive-ai/react-toolkit-v3 0.3.10 → 0.3.11
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/dist/AnimatedText/AnimatedText.d.cts +3 -3
- package/dist/AnimatedText/AnimatedText.d.ts +3 -3
- package/dist/CSSVariablesEditor/CssVariablesEditorComponent.d.cts +2 -2
- package/dist/CSSVariablesEditor/CssVariablesEditorComponent.d.ts +2 -2
- package/dist/Carousel/Carousel.d.cts +2 -2
- package/dist/Carousel/Carousel.d.ts +2 -2
- package/dist/ChatFooter/ChatFooter.d.cts +2 -2
- package/dist/ChatFooter/ChatFooter.d.ts +2 -2
- package/dist/ChatFooter/components/index.d.cts +5 -5
- package/dist/ChatFooter/components/index.d.ts +5 -5
- package/dist/ChatHeader/ChatHeader.d.cts +2 -2
- package/dist/ChatHeader/ChatHeader.d.ts +2 -2
- package/dist/ChatPreview/ChatPreview.d.cts +2 -2
- package/dist/ChatPreview/ChatPreview.d.ts +2 -2
- package/dist/ChatPreviewComparison/ChatPreviewComparison.d.cts +2 -2
- package/dist/ChatPreviewComparison/ChatPreviewComparison.d.ts +2 -2
- package/dist/ChatPreviewLoading/ChatPreviewLoading.d.cts +2 -2
- package/dist/ChatPreviewLoading/ChatPreviewLoading.d.ts +2 -2
- package/dist/Container/Container.d.cts +175 -175
- package/dist/Container/Container.d.ts +4 -4
- package/dist/DesignTokens/DesignTokensComponent.d.cts +2 -2
- package/dist/DesignTokens/DesignTokensComponent.d.ts +2 -2
- package/dist/DocumentRetrievalCard/DocumentRetrievalCard.d.cts +2 -2
- package/dist/DocumentRetrievalCard/DocumentRetrievalCard.d.ts +2 -2
- package/dist/FloatingButton/FloatingButton.d.cts +2 -2
- package/dist/FloatingButton/FloatingButton.d.ts +2 -2
- package/dist/FloatingChat/FloatingChat.cjs +5 -3
- package/dist/FloatingChat/FloatingChat.d.cts +3 -2
- package/dist/FloatingChat/FloatingChat.d.ts +1 -0
- package/dist/FloatingChat/FloatingChat.js +5 -3
- package/dist/FloatingChat/components/Layout.cjs +5 -1
- package/dist/FloatingChat/components/Layout.js +5 -1
- package/dist/FloatingChat/components/SalesAgentProductCardsCarousel.cjs +1 -0
- package/dist/FloatingChat/components/SalesAgentProductCardsCarousel.js +1 -0
- package/dist/FloatingChat/types/types.d.cts +4 -0
- package/dist/FloatingChat/types/types.d.ts +4 -0
- package/dist/FullPageSalesAgent/FullPageSalesAgent.cjs +131 -0
- package/dist/FullPageSalesAgent/FullPageSalesAgent.d.cts +24 -0
- package/dist/FullPageSalesAgent/FullPageSalesAgent.d.ts +24 -0
- package/dist/FullPageSalesAgent/FullPageSalesAgent.js +130 -0
- package/dist/FullPageSalesAgent/components/Layout.cjs +53 -0
- package/dist/FullPageSalesAgent/components/Layout.js +51 -0
- package/dist/FullPageSalesAgent/components/index.cjs +7 -0
- package/dist/FullPageSalesAgent/components/index.js +7 -0
- package/dist/FullPageSalesAgent/hooks/useContainerResizerObserver.cjs +23 -0
- package/dist/FullPageSalesAgent/hooks/useContainerResizerObserver.js +22 -0
- package/dist/FullPageSalesAgent/hooks/useGetContainerStyles.cjs +16 -0
- package/dist/FullPageSalesAgent/hooks/useGetContainerStyles.js +16 -0
- package/dist/FullPageSalesAgent/hooks/useGetFooterStyles.cjs +16 -0
- package/dist/FullPageSalesAgent/hooks/useGetFooterStyles.js +16 -0
- package/dist/FullPageSalesAgent/hooks/useGetScrollContentStyles.cjs +19 -0
- package/dist/FullPageSalesAgent/hooks/useGetScrollContentStyles.js +17 -0
- package/dist/FullPageSalesAgent/hooks/useIsMobile.cjs +7 -0
- package/dist/FullPageSalesAgent/hooks/useIsMobile.js +7 -0
- package/dist/FullPageSalesAgent/index.cjs +3 -0
- package/dist/FullPageSalesAgent/index.d.cts +2 -0
- package/dist/FullPageSalesAgent/index.d.ts +2 -0
- package/dist/FullPageSalesAgent/index.js +3 -0
- package/dist/Image/Image.d.cts +2 -2
- package/dist/Image/Image.d.ts +2 -2
- package/dist/ImageGallery/ImageGallery.d.cts +2 -2
- package/dist/ImageGallery/ImageGallery.d.ts +2 -2
- package/dist/MarkdownProcessor/MarkdownProcessor.d.cts +2 -2
- package/dist/MarkdownProcessor/MarkdownProcessor.d.ts +2 -2
- package/dist/Message/hooks/useVariantStyleProperties.cjs +1 -1
- package/dist/Message/hooks/useVariantStyleProperties.js +1 -1
- package/dist/ProductCard/ProductCard.d.cts +2 -2
- package/dist/ProductCard/ProductCard.d.ts +2 -2
- package/dist/PromptButton/PromptButton.d.cts +2 -2
- package/dist/PromptButton/PromptButton.d.ts +2 -2
- package/dist/PromptButtonCarouselWithImage/PromptButtonCarouselWithImage.d.cts +2 -2
- package/dist/PromptButtonCarouselWithImage/PromptButtonCarouselWithImage.d.ts +2 -2
- package/dist/PromptCarousel/PromptCarousel.d.cts +2 -2
- package/dist/PromptCarousel/PromptCarousel.d.ts +2 -2
- package/dist/ReviewCard/ReviewCard.d.cts +2 -2
- package/dist/ReviewCard/ReviewCard.d.ts +2 -2
- package/dist/ReviewCard/components/index.d.cts +6 -6
- package/dist/ReviewCard/components/index.d.ts +4 -4
- package/dist/SalesAgentProductCard/SalesAgentProductCard.cjs +2 -1
- package/dist/SalesAgentProductCard/SalesAgentProductCard.d.cts +3 -2
- package/dist/SalesAgentProductCard/SalesAgentProductCard.d.ts +3 -2
- package/dist/SalesAgentProductCard/SalesAgentProductCard.js +2 -1
- package/dist/SalesAgentProductCard/components/Container.cjs +7 -5
- package/dist/SalesAgentProductCard/components/Container.d.cts +2 -1
- package/dist/SalesAgentProductCard/components/Container.d.ts +2 -1
- package/dist/SalesAgentProductCard/components/Container.js +7 -5
- package/dist/SalesAgentProductCard/components/index.d.cts +9 -8
- package/dist/SalesAgentProductCard/components/index.d.ts +9 -8
- package/dist/SalesAgentProductCard/types/types.d.cts +4 -0
- package/dist/SalesAgentProductCard/types/types.d.ts +4 -0
- package/dist/SocialProof/SocialProof.d.cts +2 -2
- package/dist/SocialProof/SocialProof.d.ts +2 -2
- package/dist/Stack/Stack.d.ts +2 -2
- package/dist/TitledPromptCarousel/TitledPromptCarousel.d.cts +2 -2
- package/dist/TitledPromptCarousel/TitledPromptCarousel.d.ts +2 -2
- package/dist/TypingAnimation/TypingAnimation.d.cts +2 -2
- package/dist/TypingAnimation/TypingAnimation.d.ts +2 -2
- package/dist/Typography/Typography.d.cts +4 -4
- package/dist/Typography/Typography.d.ts +4 -4
- package/dist/WidgetTextField/WidgetTextField.d.cts +2 -2
- package/dist/WidgetTextField/WidgetTextField.d.ts +2 -2
- package/dist/WidgetWrapper/WidgetWrapper.d.cts +2 -2
- package/dist/WidgetWrapper/WidgetWrapper.d.ts +2 -2
- package/dist/WidgetWrapperWithTitle/WidgetWrapperWithTitle.d.cts +2 -2
- package/dist/WidgetWrapperWithTitle/WidgetWrapperWithTitle.d.ts +2 -2
- package/dist/styles.css +1 -1
- package/package.json +5 -1
- package/src/components/FloatingChat/FloatingChat.tsx +7 -1
- package/src/components/FloatingChat/components/Layout.tsx +3 -0
- package/src/components/FloatingChat/components/SalesAgentProductCardsCarousel.tsx +4 -3
- package/src/components/FloatingChat/types/types.ts +4 -0
- package/src/components/FullPageSalesAgent/FullPageSalesAgent.tsx +199 -0
- package/src/components/FullPageSalesAgent/components/Layout.tsx +81 -0
- package/src/components/FullPageSalesAgent/components/index.ts +5 -0
- package/src/components/FullPageSalesAgent/hooks/useContainerResizerObserver.ts +33 -0
- package/src/components/FullPageSalesAgent/hooks/useGetContainerStyles.ts +24 -0
- package/src/components/FullPageSalesAgent/hooks/useGetFooterStyles.ts +17 -0
- package/src/components/FullPageSalesAgent/hooks/useGetScrollContentStyles.ts +17 -0
- package/src/components/FullPageSalesAgent/hooks/useIsMobile.ts +3 -0
- package/src/components/FullPageSalesAgent/index.ts +1 -0
- package/src/components/Message/hooks/useVariantStyleProperties.ts +1 -1
- package/src/components/SalesAgentProductCard/SalesAgentProductCard.tsx +2 -0
- package/src/components/SalesAgentProductCard/components/Container.tsx +16 -9
- package/src/components/SalesAgentProductCard/types/types.ts +4 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ContainerProps } from "./types/index.cjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react15 from "react";
|
|
3
3
|
|
|
4
4
|
//#region src/components/Container/Container.d.ts
|
|
5
5
|
|
|
@@ -17,12 +17,15 @@ declare const Container: ({
|
|
|
17
17
|
fluid,
|
|
18
18
|
centerContent,
|
|
19
19
|
...props
|
|
20
|
-
}: ContainerProps & Omit<React.HTMLAttributes<HTMLElement>, "className" | "style" | "component">) =>
|
|
21
|
-
onClick?:
|
|
22
|
-
color?: string | undefined;
|
|
20
|
+
}: ContainerProps & Omit<React.HTMLAttributes<HTMLElement>, "className" | "style" | "component">) => react15.DetailedReactHTMLElement<{
|
|
21
|
+
onClick?: react15.MouseEventHandler<HTMLElement>;
|
|
23
22
|
slot?: string | undefined;
|
|
24
23
|
title?: string | undefined;
|
|
24
|
+
color?: string | undefined;
|
|
25
25
|
"aria-label"?: string | undefined;
|
|
26
|
+
"aria-labelledby"?: string | undefined;
|
|
27
|
+
"aria-describedby"?: string | undefined;
|
|
28
|
+
role?: react15.AriaRole | undefined;
|
|
26
29
|
defaultChecked?: boolean | undefined;
|
|
27
30
|
defaultValue?: string | number | readonly string[] | undefined;
|
|
28
31
|
suppressContentEditableWarning?: boolean | undefined;
|
|
@@ -42,7 +45,6 @@ declare const Container: ({
|
|
|
42
45
|
tabIndex?: number | undefined;
|
|
43
46
|
translate?: "yes" | "no" | undefined;
|
|
44
47
|
radioGroup?: string | undefined;
|
|
45
|
-
role?: react10.AriaRole | undefined;
|
|
46
48
|
about?: string | undefined;
|
|
47
49
|
content?: string | undefined;
|
|
48
50
|
datatype?: string | undefined;
|
|
@@ -85,7 +87,6 @@ declare const Container: ({
|
|
|
85
87
|
"aria-colspan"?: number | undefined;
|
|
86
88
|
"aria-controls"?: string | undefined;
|
|
87
89
|
"aria-current"?: boolean | "false" | "true" | "page" | "step" | "location" | "date" | "time" | undefined;
|
|
88
|
-
"aria-describedby"?: string | undefined;
|
|
89
90
|
"aria-description"?: string | undefined;
|
|
90
91
|
"aria-details"?: string | undefined;
|
|
91
92
|
"aria-disabled"?: (boolean | "true" | "false") | undefined;
|
|
@@ -98,7 +99,6 @@ declare const Container: ({
|
|
|
98
99
|
"aria-hidden"?: (boolean | "true" | "false") | undefined;
|
|
99
100
|
"aria-invalid"?: boolean | "false" | "true" | "grammar" | "spelling" | undefined;
|
|
100
101
|
"aria-keyshortcuts"?: string | undefined;
|
|
101
|
-
"aria-labelledby"?: string | undefined;
|
|
102
102
|
"aria-level"?: number | undefined;
|
|
103
103
|
"aria-live"?: "off" | "assertive" | "polite" | undefined;
|
|
104
104
|
"aria-modal"?: (boolean | "true" | "false") | undefined;
|
|
@@ -127,175 +127,175 @@ declare const Container: ({
|
|
|
127
127
|
dangerouslySetInnerHTML?: {
|
|
128
128
|
__html: string | TrustedHTML;
|
|
129
129
|
} | undefined;
|
|
130
|
-
onCopy?:
|
|
131
|
-
onCopyCapture?:
|
|
132
|
-
onCut?:
|
|
133
|
-
onCutCapture?:
|
|
134
|
-
onPaste?:
|
|
135
|
-
onPasteCapture?:
|
|
136
|
-
onCompositionEnd?:
|
|
137
|
-
onCompositionEndCapture?:
|
|
138
|
-
onCompositionStart?:
|
|
139
|
-
onCompositionStartCapture?:
|
|
140
|
-
onCompositionUpdate?:
|
|
141
|
-
onCompositionUpdateCapture?:
|
|
142
|
-
onFocus?:
|
|
143
|
-
onFocusCapture?:
|
|
144
|
-
onBlur?:
|
|
145
|
-
onBlurCapture?:
|
|
146
|
-
onChange?:
|
|
147
|
-
onChangeCapture?:
|
|
148
|
-
onBeforeInput?:
|
|
149
|
-
onBeforeInputCapture?:
|
|
150
|
-
onInput?:
|
|
151
|
-
onInputCapture?:
|
|
152
|
-
onReset?:
|
|
153
|
-
onResetCapture?:
|
|
154
|
-
onSubmit?:
|
|
155
|
-
onSubmitCapture?:
|
|
156
|
-
onInvalid?:
|
|
157
|
-
onInvalidCapture?:
|
|
158
|
-
onLoad?:
|
|
159
|
-
onLoadCapture?:
|
|
160
|
-
onError?:
|
|
161
|
-
onErrorCapture?:
|
|
162
|
-
onKeyDown?:
|
|
163
|
-
onKeyDownCapture?:
|
|
164
|
-
onKeyPress?:
|
|
165
|
-
onKeyPressCapture?:
|
|
166
|
-
onKeyUp?:
|
|
167
|
-
onKeyUpCapture?:
|
|
168
|
-
onAbort?:
|
|
169
|
-
onAbortCapture?:
|
|
170
|
-
onCanPlay?:
|
|
171
|
-
onCanPlayCapture?:
|
|
172
|
-
onCanPlayThrough?:
|
|
173
|
-
onCanPlayThroughCapture?:
|
|
174
|
-
onDurationChange?:
|
|
175
|
-
onDurationChangeCapture?:
|
|
176
|
-
onEmptied?:
|
|
177
|
-
onEmptiedCapture?:
|
|
178
|
-
onEncrypted?:
|
|
179
|
-
onEncryptedCapture?:
|
|
180
|
-
onEnded?:
|
|
181
|
-
onEndedCapture?:
|
|
182
|
-
onLoadedData?:
|
|
183
|
-
onLoadedDataCapture?:
|
|
184
|
-
onLoadedMetadata?:
|
|
185
|
-
onLoadedMetadataCapture?:
|
|
186
|
-
onLoadStart?:
|
|
187
|
-
onLoadStartCapture?:
|
|
188
|
-
onPause?:
|
|
189
|
-
onPauseCapture?:
|
|
190
|
-
onPlay?:
|
|
191
|
-
onPlayCapture?:
|
|
192
|
-
onPlaying?:
|
|
193
|
-
onPlayingCapture?:
|
|
194
|
-
onProgress?:
|
|
195
|
-
onProgressCapture?:
|
|
196
|
-
onRateChange?:
|
|
197
|
-
onRateChangeCapture?:
|
|
198
|
-
onSeeked?:
|
|
199
|
-
onSeekedCapture?:
|
|
200
|
-
onSeeking?:
|
|
201
|
-
onSeekingCapture?:
|
|
202
|
-
onStalled?:
|
|
203
|
-
onStalledCapture?:
|
|
204
|
-
onSuspend?:
|
|
205
|
-
onSuspendCapture?:
|
|
206
|
-
onTimeUpdate?:
|
|
207
|
-
onTimeUpdateCapture?:
|
|
208
|
-
onVolumeChange?:
|
|
209
|
-
onVolumeChangeCapture?:
|
|
210
|
-
onWaiting?:
|
|
211
|
-
onWaitingCapture?:
|
|
212
|
-
onAuxClick?:
|
|
213
|
-
onAuxClickCapture?:
|
|
214
|
-
onClickCapture?:
|
|
215
|
-
onContextMenu?:
|
|
216
|
-
onContextMenuCapture?:
|
|
217
|
-
onDoubleClick?:
|
|
218
|
-
onDoubleClickCapture?:
|
|
219
|
-
onDrag?:
|
|
220
|
-
onDragCapture?:
|
|
221
|
-
onDragEnd?:
|
|
222
|
-
onDragEndCapture?:
|
|
223
|
-
onDragEnter?:
|
|
224
|
-
onDragEnterCapture?:
|
|
225
|
-
onDragExit?:
|
|
226
|
-
onDragExitCapture?:
|
|
227
|
-
onDragLeave?:
|
|
228
|
-
onDragLeaveCapture?:
|
|
229
|
-
onDragOver?:
|
|
230
|
-
onDragOverCapture?:
|
|
231
|
-
onDragStart?:
|
|
232
|
-
onDragStartCapture?:
|
|
233
|
-
onDrop?:
|
|
234
|
-
onDropCapture?:
|
|
235
|
-
onMouseDown?:
|
|
236
|
-
onMouseDownCapture?:
|
|
237
|
-
onMouseEnter?:
|
|
238
|
-
onMouseLeave?:
|
|
239
|
-
onMouseMove?:
|
|
240
|
-
onMouseMoveCapture?:
|
|
241
|
-
onMouseOut?:
|
|
242
|
-
onMouseOutCapture?:
|
|
243
|
-
onMouseOver?:
|
|
244
|
-
onMouseOverCapture?:
|
|
245
|
-
onMouseUp?:
|
|
246
|
-
onMouseUpCapture?:
|
|
247
|
-
onSelect?:
|
|
248
|
-
onSelectCapture?:
|
|
249
|
-
onTouchCancel?:
|
|
250
|
-
onTouchCancelCapture?:
|
|
251
|
-
onTouchEnd?:
|
|
252
|
-
onTouchEndCapture?:
|
|
253
|
-
onTouchMove?:
|
|
254
|
-
onTouchMoveCapture?:
|
|
255
|
-
onTouchStart?:
|
|
256
|
-
onTouchStartCapture?:
|
|
257
|
-
onPointerDown?:
|
|
258
|
-
onPointerDownCapture?:
|
|
259
|
-
onPointerMove?:
|
|
260
|
-
onPointerMoveCapture?:
|
|
261
|
-
onPointerUp?:
|
|
262
|
-
onPointerUpCapture?:
|
|
263
|
-
onPointerCancel?:
|
|
264
|
-
onPointerCancelCapture?:
|
|
265
|
-
onPointerEnter?:
|
|
266
|
-
onPointerLeave?:
|
|
267
|
-
onPointerOver?:
|
|
268
|
-
onPointerOverCapture?:
|
|
269
|
-
onPointerOut?:
|
|
270
|
-
onPointerOutCapture?:
|
|
271
|
-
onGotPointerCapture?:
|
|
272
|
-
onGotPointerCaptureCapture?:
|
|
273
|
-
onLostPointerCapture?:
|
|
274
|
-
onLostPointerCaptureCapture?:
|
|
275
|
-
onScroll?:
|
|
276
|
-
onScrollCapture?:
|
|
277
|
-
onScrollEnd?:
|
|
278
|
-
onScrollEndCapture?:
|
|
279
|
-
onWheel?:
|
|
280
|
-
onWheelCapture?:
|
|
281
|
-
onAnimationStart?:
|
|
282
|
-
onAnimationStartCapture?:
|
|
283
|
-
onAnimationEnd?:
|
|
284
|
-
onAnimationEndCapture?:
|
|
285
|
-
onAnimationIteration?:
|
|
286
|
-
onAnimationIterationCapture?:
|
|
287
|
-
onToggle?:
|
|
288
|
-
onBeforeToggle?:
|
|
289
|
-
onTransitionCancel?:
|
|
290
|
-
onTransitionCancelCapture?:
|
|
291
|
-
onTransitionEnd?:
|
|
292
|
-
onTransitionEndCapture?:
|
|
293
|
-
onTransitionRun?:
|
|
294
|
-
onTransitionRunCapture?:
|
|
295
|
-
onTransitionStart?:
|
|
296
|
-
onTransitionStartCapture?:
|
|
130
|
+
onCopy?: react15.ClipboardEventHandler<HTMLElement>;
|
|
131
|
+
onCopyCapture?: react15.ClipboardEventHandler<HTMLElement>;
|
|
132
|
+
onCut?: react15.ClipboardEventHandler<HTMLElement>;
|
|
133
|
+
onCutCapture?: react15.ClipboardEventHandler<HTMLElement>;
|
|
134
|
+
onPaste?: react15.ClipboardEventHandler<HTMLElement>;
|
|
135
|
+
onPasteCapture?: react15.ClipboardEventHandler<HTMLElement>;
|
|
136
|
+
onCompositionEnd?: react15.CompositionEventHandler<HTMLElement>;
|
|
137
|
+
onCompositionEndCapture?: react15.CompositionEventHandler<HTMLElement>;
|
|
138
|
+
onCompositionStart?: react15.CompositionEventHandler<HTMLElement>;
|
|
139
|
+
onCompositionStartCapture?: react15.CompositionEventHandler<HTMLElement>;
|
|
140
|
+
onCompositionUpdate?: react15.CompositionEventHandler<HTMLElement>;
|
|
141
|
+
onCompositionUpdateCapture?: react15.CompositionEventHandler<HTMLElement>;
|
|
142
|
+
onFocus?: react15.FocusEventHandler<HTMLElement>;
|
|
143
|
+
onFocusCapture?: react15.FocusEventHandler<HTMLElement>;
|
|
144
|
+
onBlur?: react15.FocusEventHandler<HTMLElement>;
|
|
145
|
+
onBlurCapture?: react15.FocusEventHandler<HTMLElement>;
|
|
146
|
+
onChange?: react15.FormEventHandler<HTMLElement>;
|
|
147
|
+
onChangeCapture?: react15.FormEventHandler<HTMLElement>;
|
|
148
|
+
onBeforeInput?: react15.InputEventHandler<HTMLElement>;
|
|
149
|
+
onBeforeInputCapture?: react15.FormEventHandler<HTMLElement>;
|
|
150
|
+
onInput?: react15.FormEventHandler<HTMLElement>;
|
|
151
|
+
onInputCapture?: react15.FormEventHandler<HTMLElement>;
|
|
152
|
+
onReset?: react15.FormEventHandler<HTMLElement>;
|
|
153
|
+
onResetCapture?: react15.FormEventHandler<HTMLElement>;
|
|
154
|
+
onSubmit?: react15.FormEventHandler<HTMLElement>;
|
|
155
|
+
onSubmitCapture?: react15.FormEventHandler<HTMLElement>;
|
|
156
|
+
onInvalid?: react15.FormEventHandler<HTMLElement>;
|
|
157
|
+
onInvalidCapture?: react15.FormEventHandler<HTMLElement>;
|
|
158
|
+
onLoad?: react15.ReactEventHandler<HTMLElement>;
|
|
159
|
+
onLoadCapture?: react15.ReactEventHandler<HTMLElement>;
|
|
160
|
+
onError?: react15.ReactEventHandler<HTMLElement>;
|
|
161
|
+
onErrorCapture?: react15.ReactEventHandler<HTMLElement>;
|
|
162
|
+
onKeyDown?: react15.KeyboardEventHandler<HTMLElement>;
|
|
163
|
+
onKeyDownCapture?: react15.KeyboardEventHandler<HTMLElement>;
|
|
164
|
+
onKeyPress?: react15.KeyboardEventHandler<HTMLElement>;
|
|
165
|
+
onKeyPressCapture?: react15.KeyboardEventHandler<HTMLElement>;
|
|
166
|
+
onKeyUp?: react15.KeyboardEventHandler<HTMLElement>;
|
|
167
|
+
onKeyUpCapture?: react15.KeyboardEventHandler<HTMLElement>;
|
|
168
|
+
onAbort?: react15.ReactEventHandler<HTMLElement>;
|
|
169
|
+
onAbortCapture?: react15.ReactEventHandler<HTMLElement>;
|
|
170
|
+
onCanPlay?: react15.ReactEventHandler<HTMLElement>;
|
|
171
|
+
onCanPlayCapture?: react15.ReactEventHandler<HTMLElement>;
|
|
172
|
+
onCanPlayThrough?: react15.ReactEventHandler<HTMLElement>;
|
|
173
|
+
onCanPlayThroughCapture?: react15.ReactEventHandler<HTMLElement>;
|
|
174
|
+
onDurationChange?: react15.ReactEventHandler<HTMLElement>;
|
|
175
|
+
onDurationChangeCapture?: react15.ReactEventHandler<HTMLElement>;
|
|
176
|
+
onEmptied?: react15.ReactEventHandler<HTMLElement>;
|
|
177
|
+
onEmptiedCapture?: react15.ReactEventHandler<HTMLElement>;
|
|
178
|
+
onEncrypted?: react15.ReactEventHandler<HTMLElement>;
|
|
179
|
+
onEncryptedCapture?: react15.ReactEventHandler<HTMLElement>;
|
|
180
|
+
onEnded?: react15.ReactEventHandler<HTMLElement>;
|
|
181
|
+
onEndedCapture?: react15.ReactEventHandler<HTMLElement>;
|
|
182
|
+
onLoadedData?: react15.ReactEventHandler<HTMLElement>;
|
|
183
|
+
onLoadedDataCapture?: react15.ReactEventHandler<HTMLElement>;
|
|
184
|
+
onLoadedMetadata?: react15.ReactEventHandler<HTMLElement>;
|
|
185
|
+
onLoadedMetadataCapture?: react15.ReactEventHandler<HTMLElement>;
|
|
186
|
+
onLoadStart?: react15.ReactEventHandler<HTMLElement>;
|
|
187
|
+
onLoadStartCapture?: react15.ReactEventHandler<HTMLElement>;
|
|
188
|
+
onPause?: react15.ReactEventHandler<HTMLElement>;
|
|
189
|
+
onPauseCapture?: react15.ReactEventHandler<HTMLElement>;
|
|
190
|
+
onPlay?: react15.ReactEventHandler<HTMLElement>;
|
|
191
|
+
onPlayCapture?: react15.ReactEventHandler<HTMLElement>;
|
|
192
|
+
onPlaying?: react15.ReactEventHandler<HTMLElement>;
|
|
193
|
+
onPlayingCapture?: react15.ReactEventHandler<HTMLElement>;
|
|
194
|
+
onProgress?: react15.ReactEventHandler<HTMLElement>;
|
|
195
|
+
onProgressCapture?: react15.ReactEventHandler<HTMLElement>;
|
|
196
|
+
onRateChange?: react15.ReactEventHandler<HTMLElement>;
|
|
197
|
+
onRateChangeCapture?: react15.ReactEventHandler<HTMLElement>;
|
|
198
|
+
onSeeked?: react15.ReactEventHandler<HTMLElement>;
|
|
199
|
+
onSeekedCapture?: react15.ReactEventHandler<HTMLElement>;
|
|
200
|
+
onSeeking?: react15.ReactEventHandler<HTMLElement>;
|
|
201
|
+
onSeekingCapture?: react15.ReactEventHandler<HTMLElement>;
|
|
202
|
+
onStalled?: react15.ReactEventHandler<HTMLElement>;
|
|
203
|
+
onStalledCapture?: react15.ReactEventHandler<HTMLElement>;
|
|
204
|
+
onSuspend?: react15.ReactEventHandler<HTMLElement>;
|
|
205
|
+
onSuspendCapture?: react15.ReactEventHandler<HTMLElement>;
|
|
206
|
+
onTimeUpdate?: react15.ReactEventHandler<HTMLElement>;
|
|
207
|
+
onTimeUpdateCapture?: react15.ReactEventHandler<HTMLElement>;
|
|
208
|
+
onVolumeChange?: react15.ReactEventHandler<HTMLElement>;
|
|
209
|
+
onVolumeChangeCapture?: react15.ReactEventHandler<HTMLElement>;
|
|
210
|
+
onWaiting?: react15.ReactEventHandler<HTMLElement>;
|
|
211
|
+
onWaitingCapture?: react15.ReactEventHandler<HTMLElement>;
|
|
212
|
+
onAuxClick?: react15.MouseEventHandler<HTMLElement>;
|
|
213
|
+
onAuxClickCapture?: react15.MouseEventHandler<HTMLElement>;
|
|
214
|
+
onClickCapture?: react15.MouseEventHandler<HTMLElement>;
|
|
215
|
+
onContextMenu?: react15.MouseEventHandler<HTMLElement>;
|
|
216
|
+
onContextMenuCapture?: react15.MouseEventHandler<HTMLElement>;
|
|
217
|
+
onDoubleClick?: react15.MouseEventHandler<HTMLElement>;
|
|
218
|
+
onDoubleClickCapture?: react15.MouseEventHandler<HTMLElement>;
|
|
219
|
+
onDrag?: react15.DragEventHandler<HTMLElement>;
|
|
220
|
+
onDragCapture?: react15.DragEventHandler<HTMLElement>;
|
|
221
|
+
onDragEnd?: react15.DragEventHandler<HTMLElement>;
|
|
222
|
+
onDragEndCapture?: react15.DragEventHandler<HTMLElement>;
|
|
223
|
+
onDragEnter?: react15.DragEventHandler<HTMLElement>;
|
|
224
|
+
onDragEnterCapture?: react15.DragEventHandler<HTMLElement>;
|
|
225
|
+
onDragExit?: react15.DragEventHandler<HTMLElement>;
|
|
226
|
+
onDragExitCapture?: react15.DragEventHandler<HTMLElement>;
|
|
227
|
+
onDragLeave?: react15.DragEventHandler<HTMLElement>;
|
|
228
|
+
onDragLeaveCapture?: react15.DragEventHandler<HTMLElement>;
|
|
229
|
+
onDragOver?: react15.DragEventHandler<HTMLElement>;
|
|
230
|
+
onDragOverCapture?: react15.DragEventHandler<HTMLElement>;
|
|
231
|
+
onDragStart?: react15.DragEventHandler<HTMLElement>;
|
|
232
|
+
onDragStartCapture?: react15.DragEventHandler<HTMLElement>;
|
|
233
|
+
onDrop?: react15.DragEventHandler<HTMLElement>;
|
|
234
|
+
onDropCapture?: react15.DragEventHandler<HTMLElement>;
|
|
235
|
+
onMouseDown?: react15.MouseEventHandler<HTMLElement>;
|
|
236
|
+
onMouseDownCapture?: react15.MouseEventHandler<HTMLElement>;
|
|
237
|
+
onMouseEnter?: react15.MouseEventHandler<HTMLElement>;
|
|
238
|
+
onMouseLeave?: react15.MouseEventHandler<HTMLElement>;
|
|
239
|
+
onMouseMove?: react15.MouseEventHandler<HTMLElement>;
|
|
240
|
+
onMouseMoveCapture?: react15.MouseEventHandler<HTMLElement>;
|
|
241
|
+
onMouseOut?: react15.MouseEventHandler<HTMLElement>;
|
|
242
|
+
onMouseOutCapture?: react15.MouseEventHandler<HTMLElement>;
|
|
243
|
+
onMouseOver?: react15.MouseEventHandler<HTMLElement>;
|
|
244
|
+
onMouseOverCapture?: react15.MouseEventHandler<HTMLElement>;
|
|
245
|
+
onMouseUp?: react15.MouseEventHandler<HTMLElement>;
|
|
246
|
+
onMouseUpCapture?: react15.MouseEventHandler<HTMLElement>;
|
|
247
|
+
onSelect?: react15.ReactEventHandler<HTMLElement>;
|
|
248
|
+
onSelectCapture?: react15.ReactEventHandler<HTMLElement>;
|
|
249
|
+
onTouchCancel?: react15.TouchEventHandler<HTMLElement>;
|
|
250
|
+
onTouchCancelCapture?: react15.TouchEventHandler<HTMLElement>;
|
|
251
|
+
onTouchEnd?: react15.TouchEventHandler<HTMLElement>;
|
|
252
|
+
onTouchEndCapture?: react15.TouchEventHandler<HTMLElement>;
|
|
253
|
+
onTouchMove?: react15.TouchEventHandler<HTMLElement>;
|
|
254
|
+
onTouchMoveCapture?: react15.TouchEventHandler<HTMLElement>;
|
|
255
|
+
onTouchStart?: react15.TouchEventHandler<HTMLElement>;
|
|
256
|
+
onTouchStartCapture?: react15.TouchEventHandler<HTMLElement>;
|
|
257
|
+
onPointerDown?: react15.PointerEventHandler<HTMLElement>;
|
|
258
|
+
onPointerDownCapture?: react15.PointerEventHandler<HTMLElement>;
|
|
259
|
+
onPointerMove?: react15.PointerEventHandler<HTMLElement>;
|
|
260
|
+
onPointerMoveCapture?: react15.PointerEventHandler<HTMLElement>;
|
|
261
|
+
onPointerUp?: react15.PointerEventHandler<HTMLElement>;
|
|
262
|
+
onPointerUpCapture?: react15.PointerEventHandler<HTMLElement>;
|
|
263
|
+
onPointerCancel?: react15.PointerEventHandler<HTMLElement>;
|
|
264
|
+
onPointerCancelCapture?: react15.PointerEventHandler<HTMLElement>;
|
|
265
|
+
onPointerEnter?: react15.PointerEventHandler<HTMLElement>;
|
|
266
|
+
onPointerLeave?: react15.PointerEventHandler<HTMLElement>;
|
|
267
|
+
onPointerOver?: react15.PointerEventHandler<HTMLElement>;
|
|
268
|
+
onPointerOverCapture?: react15.PointerEventHandler<HTMLElement>;
|
|
269
|
+
onPointerOut?: react15.PointerEventHandler<HTMLElement>;
|
|
270
|
+
onPointerOutCapture?: react15.PointerEventHandler<HTMLElement>;
|
|
271
|
+
onGotPointerCapture?: react15.PointerEventHandler<HTMLElement>;
|
|
272
|
+
onGotPointerCaptureCapture?: react15.PointerEventHandler<HTMLElement>;
|
|
273
|
+
onLostPointerCapture?: react15.PointerEventHandler<HTMLElement>;
|
|
274
|
+
onLostPointerCaptureCapture?: react15.PointerEventHandler<HTMLElement>;
|
|
275
|
+
onScroll?: react15.UIEventHandler<HTMLElement>;
|
|
276
|
+
onScrollCapture?: react15.UIEventHandler<HTMLElement>;
|
|
277
|
+
onScrollEnd?: react15.UIEventHandler<HTMLElement>;
|
|
278
|
+
onScrollEndCapture?: react15.UIEventHandler<HTMLElement>;
|
|
279
|
+
onWheel?: react15.WheelEventHandler<HTMLElement>;
|
|
280
|
+
onWheelCapture?: react15.WheelEventHandler<HTMLElement>;
|
|
281
|
+
onAnimationStart?: react15.AnimationEventHandler<HTMLElement>;
|
|
282
|
+
onAnimationStartCapture?: react15.AnimationEventHandler<HTMLElement>;
|
|
283
|
+
onAnimationEnd?: react15.AnimationEventHandler<HTMLElement>;
|
|
284
|
+
onAnimationEndCapture?: react15.AnimationEventHandler<HTMLElement>;
|
|
285
|
+
onAnimationIteration?: react15.AnimationEventHandler<HTMLElement>;
|
|
286
|
+
onAnimationIterationCapture?: react15.AnimationEventHandler<HTMLElement>;
|
|
287
|
+
onToggle?: react15.ToggleEventHandler<HTMLElement>;
|
|
288
|
+
onBeforeToggle?: react15.ToggleEventHandler<HTMLElement>;
|
|
289
|
+
onTransitionCancel?: react15.TransitionEventHandler<HTMLElement>;
|
|
290
|
+
onTransitionCancelCapture?: react15.TransitionEventHandler<HTMLElement>;
|
|
291
|
+
onTransitionEnd?: react15.TransitionEventHandler<HTMLElement>;
|
|
292
|
+
onTransitionEndCapture?: react15.TransitionEventHandler<HTMLElement>;
|
|
293
|
+
onTransitionRun?: react15.TransitionEventHandler<HTMLElement>;
|
|
294
|
+
onTransitionRunCapture?: react15.TransitionEventHandler<HTMLElement>;
|
|
295
|
+
onTransitionStart?: react15.TransitionEventHandler<HTMLElement>;
|
|
296
|
+
onTransitionStartCapture?: react15.TransitionEventHandler<HTMLElement>;
|
|
297
297
|
className: string;
|
|
298
|
-
style:
|
|
298
|
+
style: react15.CSSProperties;
|
|
299
299
|
id: string;
|
|
300
300
|
'data-testid': string;
|
|
301
301
|
}, HTMLElement>;
|
|
@@ -19,10 +19,13 @@ declare const Container: ({
|
|
|
19
19
|
...props
|
|
20
20
|
}: ContainerProps & Omit<React.HTMLAttributes<HTMLElement>, "className" | "style" | "component">) => react10.DetailedReactHTMLElement<{
|
|
21
21
|
onClick?: react10.MouseEventHandler<HTMLElement>;
|
|
22
|
-
color?: string | undefined;
|
|
23
22
|
slot?: string | undefined;
|
|
24
23
|
title?: string | undefined;
|
|
24
|
+
color?: string | undefined;
|
|
25
25
|
"aria-label"?: string | undefined;
|
|
26
|
+
"aria-labelledby"?: string | undefined;
|
|
27
|
+
"aria-describedby"?: string | undefined;
|
|
28
|
+
role?: react10.AriaRole | undefined;
|
|
26
29
|
defaultChecked?: boolean | undefined;
|
|
27
30
|
defaultValue?: string | number | readonly string[] | undefined;
|
|
28
31
|
suppressContentEditableWarning?: boolean | undefined;
|
|
@@ -42,7 +45,6 @@ declare const Container: ({
|
|
|
42
45
|
tabIndex?: number | undefined;
|
|
43
46
|
translate?: "yes" | "no" | undefined;
|
|
44
47
|
radioGroup?: string | undefined;
|
|
45
|
-
role?: react10.AriaRole | undefined;
|
|
46
48
|
about?: string | undefined;
|
|
47
49
|
content?: string | undefined;
|
|
48
50
|
datatype?: string | undefined;
|
|
@@ -85,7 +87,6 @@ declare const Container: ({
|
|
|
85
87
|
"aria-colspan"?: number | undefined;
|
|
86
88
|
"aria-controls"?: string | undefined;
|
|
87
89
|
"aria-current"?: boolean | "false" | "true" | "page" | "step" | "location" | "date" | "time" | undefined;
|
|
88
|
-
"aria-describedby"?: string | undefined;
|
|
89
90
|
"aria-description"?: string | undefined;
|
|
90
91
|
"aria-details"?: string | undefined;
|
|
91
92
|
"aria-disabled"?: (boolean | "true" | "false") | undefined;
|
|
@@ -98,7 +99,6 @@ declare const Container: ({
|
|
|
98
99
|
"aria-hidden"?: (boolean | "true" | "false") | undefined;
|
|
99
100
|
"aria-invalid"?: boolean | "false" | "true" | "grammar" | "spelling" | undefined;
|
|
100
101
|
"aria-keyshortcuts"?: string | undefined;
|
|
101
|
-
"aria-labelledby"?: string | undefined;
|
|
102
102
|
"aria-level"?: number | undefined;
|
|
103
103
|
"aria-live"?: "off" | "assertive" | "polite" | undefined;
|
|
104
104
|
"aria-modal"?: (boolean | "true" | "false") | undefined;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime8 from "react/jsx-runtime";
|
|
2
2
|
import { Config } from "tailwindcss";
|
|
3
3
|
|
|
4
4
|
//#region src/components/DesignTokens/DesignTokensComponent.d.ts
|
|
@@ -9,6 +9,6 @@ type DesignTokensProps = {
|
|
|
9
9
|
declare const DesignTokens: ({
|
|
10
10
|
selectedMerchant,
|
|
11
11
|
config
|
|
12
|
-
}: DesignTokensProps) =>
|
|
12
|
+
}: DesignTokensProps) => react_jsx_runtime8.JSX.Element;
|
|
13
13
|
//#endregion
|
|
14
14
|
export { DesignTokens, DesignTokensProps };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime27 from "react/jsx-runtime";
|
|
2
2
|
import { Config } from "tailwindcss";
|
|
3
3
|
|
|
4
4
|
//#region src/components/DesignTokens/DesignTokensComponent.d.ts
|
|
@@ -9,6 +9,6 @@ type DesignTokensProps = {
|
|
|
9
9
|
declare const DesignTokens: ({
|
|
10
10
|
selectedMerchant,
|
|
11
11
|
config
|
|
12
|
-
}: DesignTokensProps) =>
|
|
12
|
+
}: DesignTokensProps) => react_jsx_runtime27.JSX.Element;
|
|
13
13
|
//#endregion
|
|
14
14
|
export { DesignTokens, DesignTokensProps };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { DocumentRetrievalCardProps } from "./types/index.cjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime1 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/components/DocumentRetrievalCard/DocumentRetrievalCard.d.ts
|
|
5
5
|
declare const DocumentRetrievalCard: ({
|
|
@@ -16,6 +16,6 @@ declare const DocumentRetrievalCard: ({
|
|
|
16
16
|
onViewArticle,
|
|
17
17
|
ariaLabel,
|
|
18
18
|
viewArticleLabel
|
|
19
|
-
}: DocumentRetrievalCardProps) =>
|
|
19
|
+
}: DocumentRetrievalCardProps) => react_jsx_runtime1.JSX.Element;
|
|
20
20
|
//#endregion
|
|
21
21
|
export { DocumentRetrievalCard };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { DocumentRetrievalCardProps } from "./types/index.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime26 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/components/DocumentRetrievalCard/DocumentRetrievalCard.d.ts
|
|
5
5
|
declare const DocumentRetrievalCard: ({
|
|
@@ -16,6 +16,6 @@ declare const DocumentRetrievalCard: ({
|
|
|
16
16
|
onViewArticle,
|
|
17
17
|
ariaLabel,
|
|
18
18
|
viewArticleLabel
|
|
19
|
-
}: DocumentRetrievalCardProps) =>
|
|
19
|
+
}: DocumentRetrievalCardProps) => react_jsx_runtime26.JSX.Element;
|
|
20
20
|
//#endregion
|
|
21
21
|
export { DocumentRetrievalCard };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { FloatingButtonProps } from "./types/types.cjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime12 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/components/FloatingButton/FloatingButton.d.ts
|
|
5
5
|
declare const FloatingButton: ({
|
|
@@ -17,6 +17,6 @@ declare const FloatingButton: ({
|
|
|
17
17
|
onClick,
|
|
18
18
|
ariaLabel,
|
|
19
19
|
previewMode
|
|
20
|
-
}: FloatingButtonProps) =>
|
|
20
|
+
}: FloatingButtonProps) => react_jsx_runtime12.JSX.Element;
|
|
21
21
|
//#endregion
|
|
22
22
|
export { FloatingButton };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { FloatingButtonProps } from "./types/types.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime23 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/components/FloatingButton/FloatingButton.d.ts
|
|
5
5
|
declare const FloatingButton: ({
|
|
@@ -17,6 +17,6 @@ declare const FloatingButton: ({
|
|
|
17
17
|
onClick,
|
|
18
18
|
ariaLabel,
|
|
19
19
|
previewMode
|
|
20
|
-
}: FloatingButtonProps) =>
|
|
20
|
+
}: FloatingButtonProps) => react_jsx_runtime23.JSX.Element;
|
|
21
21
|
//#endregion
|
|
22
22
|
export { FloatingButton };
|
|
@@ -27,7 +27,7 @@ let framer_motion = require("framer-motion");
|
|
|
27
27
|
let __envive_ai_react_hooks_application_models = require("@envive-ai/react-hooks/application/models");
|
|
28
28
|
|
|
29
29
|
//#region src/components/FloatingChat/FloatingChat.tsx
|
|
30
|
-
const FloatingChat = ({ id, className, style, testId, theme = require_theme.Theme.GLOBAL_CUSTOM, salesAgentData, floatingChatConfig, hardcopyContent, lookAndFeelConfig, isCXButtonSwitchEnabled, isFloatingChatOpen, onClose, onToggleCXButton }) => {
|
|
30
|
+
const FloatingChat = ({ id, className, style, testId, theme = require_theme.Theme.GLOBAL_CUSTOM, salesAgentData, floatingChatConfig, hardcopyContent, lookAndFeelConfig, isCXButtonSwitchEnabled, isFloatingChatOpen, debugBar, onClose, onToggleCXButton }) => {
|
|
31
31
|
const finalTheme = require_resolveTheme.resolveTheme(theme);
|
|
32
32
|
const [query, setQuery] = (0, react.useState)("");
|
|
33
33
|
const chatMessagesRef = (0, react.useRef)(null);
|
|
@@ -119,7 +119,8 @@ const FloatingChat = ({ id, className, style, testId, theme = require_theme.Them
|
|
|
119
119
|
onSubmit: () => {
|
|
120
120
|
onTypedMessageSubmitted({
|
|
121
121
|
query,
|
|
122
|
-
userTyped: true
|
|
122
|
+
userTyped: true,
|
|
123
|
+
displayLocation: __envive_ai_react_hooks_application_models.ChatElementDisplayLocationV3.FLOATING_CHAT_TEXT_INPUT
|
|
123
124
|
});
|
|
124
125
|
setAnswerSuggestions([]);
|
|
125
126
|
setGeneralSuggestions([]);
|
|
@@ -183,7 +184,8 @@ const FloatingChat = ({ id, className, style, testId, theme = require_theme.Them
|
|
|
183
184
|
chatMessages,
|
|
184
185
|
answerSuggestions: showAnswerSuggestions ? answerSuggestionsComponent : void 0,
|
|
185
186
|
scrollToBottomButton: showScrollButton ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_index$1.FloatingChatComponents.ScrollToBottomButton, { onClick: scrollToBottom }) : void 0,
|
|
186
|
-
disclaimer: disclaimerText && typeof disclaimerText === "string" ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_Disclaimer.Disclaimer, { disclaimerMarkdown: disclaimerText }) : void 0
|
|
187
|
+
disclaimer: disclaimerText && typeof disclaimerText === "string" ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_Disclaimer.Disclaimer, { disclaimerMarkdown: disclaimerText }) : void 0,
|
|
188
|
+
debugBar
|
|
187
189
|
});
|
|
188
190
|
const mobileLayout = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_index$1.FloatingChatComponents.Layout, {
|
|
189
191
|
id,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { FloatingChatProps } from "./types/types.cjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime34 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/components/FloatingChat/FloatingChat.d.ts
|
|
5
5
|
declare const FloatingChat: ({
|
|
@@ -14,8 +14,9 @@ declare const FloatingChat: ({
|
|
|
14
14
|
lookAndFeelConfig,
|
|
15
15
|
isCXButtonSwitchEnabled,
|
|
16
16
|
isFloatingChatOpen,
|
|
17
|
+
debugBar,
|
|
17
18
|
onClose,
|
|
18
19
|
onToggleCXButton
|
|
19
|
-
}: FloatingChatProps) =>
|
|
20
|
+
}: FloatingChatProps) => react_jsx_runtime34.JSX.Element;
|
|
20
21
|
//#endregion
|
|
21
22
|
export { FloatingChat };
|
|
@@ -26,7 +26,7 @@ import { motion } from "framer-motion";
|
|
|
26
26
|
import { ChatElementDisplayLocationV3 } from "@envive-ai/react-hooks/application/models";
|
|
27
27
|
|
|
28
28
|
//#region src/components/FloatingChat/FloatingChat.tsx
|
|
29
|
-
const FloatingChat = ({ id, className, style, testId, theme = Theme.GLOBAL_CUSTOM, salesAgentData, floatingChatConfig, hardcopyContent, lookAndFeelConfig, isCXButtonSwitchEnabled, isFloatingChatOpen, onClose, onToggleCXButton }) => {
|
|
29
|
+
const FloatingChat = ({ id, className, style, testId, theme = Theme.GLOBAL_CUSTOM, salesAgentData, floatingChatConfig, hardcopyContent, lookAndFeelConfig, isCXButtonSwitchEnabled, isFloatingChatOpen, debugBar, onClose, onToggleCXButton }) => {
|
|
30
30
|
const finalTheme = resolveTheme(theme);
|
|
31
31
|
const [query, setQuery] = useState("");
|
|
32
32
|
const chatMessagesRef = useRef(null);
|
|
@@ -118,7 +118,8 @@ const FloatingChat = ({ id, className, style, testId, theme = Theme.GLOBAL_CUSTO
|
|
|
118
118
|
onSubmit: () => {
|
|
119
119
|
onTypedMessageSubmitted({
|
|
120
120
|
query,
|
|
121
|
-
userTyped: true
|
|
121
|
+
userTyped: true,
|
|
122
|
+
displayLocation: ChatElementDisplayLocationV3.FLOATING_CHAT_TEXT_INPUT
|
|
122
123
|
});
|
|
123
124
|
setAnswerSuggestions([]);
|
|
124
125
|
setGeneralSuggestions([]);
|
|
@@ -182,7 +183,8 @@ const FloatingChat = ({ id, className, style, testId, theme = Theme.GLOBAL_CUSTO
|
|
|
182
183
|
chatMessages,
|
|
183
184
|
answerSuggestions: showAnswerSuggestions ? answerSuggestionsComponent : void 0,
|
|
184
185
|
scrollToBottomButton: showScrollButton ? /* @__PURE__ */ jsx(FloatingChatComponents.ScrollToBottomButton, { onClick: scrollToBottom }) : void 0,
|
|
185
|
-
disclaimer: disclaimerText && typeof disclaimerText === "string" ? /* @__PURE__ */ jsx(Disclaimer, { disclaimerMarkdown: disclaimerText }) : void 0
|
|
186
|
+
disclaimer: disclaimerText && typeof disclaimerText === "string" ? /* @__PURE__ */ jsx(Disclaimer, { disclaimerMarkdown: disclaimerText }) : void 0,
|
|
187
|
+
debugBar
|
|
186
188
|
});
|
|
187
189
|
const mobileLayout = /* @__PURE__ */ jsx(FloatingChatComponents.Layout, {
|
|
188
190
|
id,
|