@envive-ai/react-toolkit-v3 0.3.11 → 0.3.13
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/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/Carousel/components/Container.cjs +11 -3
- package/dist/Carousel/components/Container.js +12 -4
- package/dist/ChatFooter/ChatFooter.d.cts +2 -2
- package/dist/ChatFooter/ChatFooter.d.ts +2 -2
- package/dist/ChatFooter/components/Layout.cjs +2 -8
- package/dist/ChatFooter/components/Layout.js +2 -8
- package/dist/ChatFooter/components/index.d.cts +5 -5
- package/dist/ChatFooter/components/index.d.ts +3 -3
- package/dist/ChatHeader/ChatHeader.d.cts +2 -2
- package/dist/ChatHeader/ChatHeader.d.ts +2 -2
- package/dist/ChatHeader/hooks/useGetCloseButtonProperties.cjs +1 -1
- package/dist/ChatHeader/hooks/useGetCloseButtonProperties.js +1 -1
- 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/ChatPreviewComparison/components/Layout.cjs +4 -3
- package/dist/ChatPreviewComparison/components/Layout.js +4 -3
- package/dist/ChatPreviewLoading/ChatPreviewLoading.d.cts +2 -2
- package/dist/ChatPreviewLoading/ChatPreviewLoading.d.ts +2 -2
- package/dist/Container/Container.d.cts +178 -178
- package/dist/Container/Container.d.ts +8 -8
- 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 +6 -3
- package/dist/FloatingChat/FloatingChat.d.cts +2 -2
- package/dist/FloatingChat/FloatingChat.d.ts +2 -2
- package/dist/FloatingChat/FloatingChat.js +6 -3
- package/dist/FloatingChat/hooks/useSnapSetup.cjs +10 -7
- package/dist/FloatingChat/hooks/useSnapSetup.js +10 -7
- package/dist/FullPageSalesAgent/FullPageSalesAgent.cjs +3 -2
- package/dist/FullPageSalesAgent/FullPageSalesAgent.d.cts +2 -2
- package/dist/FullPageSalesAgent/FullPageSalesAgent.d.ts +2 -2
- package/dist/FullPageSalesAgent/FullPageSalesAgent.js +3 -2
- package/dist/FullPageSalesAgent/hooks/useContainerResizerObserver.cjs +3 -3
- package/dist/FullPageSalesAgent/hooks/useContainerResizerObserver.js +3 -3
- package/dist/Image/Image.cjs +5 -0
- package/dist/Image/Image.d.cts +2 -2
- package/dist/Image/Image.d.ts +2 -2
- package/dist/Image/Image.js +5 -0
- package/dist/ImageGallery/ImageGallery.d.cts +2 -2
- package/dist/MarkdownProcessor/MarkdownProcessor.cjs +14 -27
- package/dist/MarkdownProcessor/MarkdownProcessor.d.cts +3 -5
- package/dist/MarkdownProcessor/MarkdownProcessor.d.ts +1 -3
- package/dist/MarkdownProcessor/MarkdownProcessor.js +15 -26
- package/dist/MarkdownProcessor/components/index.cjs +1 -3
- package/dist/MarkdownProcessor/components/index.js +1 -3
- package/dist/MarkdownProcessor/utils/functions.cjs +1 -11
- package/dist/MarkdownProcessor/utils/functions.js +1 -10
- package/dist/ProductCard/ProductCard.d.cts +2 -2
- package/dist/ProductCard/components/Header.cjs +33 -7
- package/dist/ProductCard/components/Header.js +34 -8
- package/dist/PromptButton/PromptButton.d.cts +2 -2
- package/dist/PromptButtonCarouselWithImage/PromptButtonCarouselWithImage.d.cts +2 -2
- package/dist/PromptButtonCarouselWithImage/PromptButtonCarouselWithImage.d.ts +2 -2
- package/dist/PromptCarousel/PromptCarousel.cjs +19 -28
- package/dist/PromptCarousel/PromptCarousel.d.cts +2 -2
- package/dist/PromptCarousel/PromptCarousel.d.ts +2 -2
- package/dist/PromptCarousel/PromptCarousel.js +19 -28
- 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.d.cts +2 -2
- package/dist/SalesAgentProductCard/SalesAgentProductCard.d.ts +2 -2
- package/dist/SalesAgentProductCard/components/index.d.cts +8 -8
- package/dist/SalesAgentProductCard/components/index.d.ts +6 -6
- 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.ts +2 -2
- package/dist/TypingAnimation/TypingAnimation.cjs +58 -18
- package/dist/TypingAnimation/TypingAnimation.d.cts +2 -2
- package/dist/TypingAnimation/TypingAnimation.d.ts +2 -2
- package/dist/TypingAnimation/TypingAnimation.js +59 -19
- 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/styles.css +1 -1
- package/dist/utils/useAnimatedTextMinHeight.cjs +28 -0
- package/dist/utils/useAnimatedTextMinHeight.js +27 -0
- package/package.json +1 -3
- package/src/components/Carousel/components/Container.tsx +15 -3
- package/src/components/ChatFooter/components/Layout.tsx +2 -14
- package/src/components/ChatHeader/hooks/useGetCloseButtonProperties.ts +1 -1
- package/src/components/ChatPreviewComparison/components/Layout.tsx +2 -2
- package/src/components/FloatingChat/FloatingChat.tsx +5 -2
- package/src/components/FloatingChat/hooks/useSnapSetup.ts +11 -4
- package/src/components/FullPageSalesAgent/FullPageSalesAgent.tsx +6 -2
- package/src/components/FullPageSalesAgent/components/Layout.tsx +1 -1
- package/src/components/FullPageSalesAgent/hooks/useContainerResizerObserver.ts +4 -3
- package/src/components/FullPageSalesAgent/hooks/useIsMobile.ts +1 -1
- package/src/components/Image/Image.tsx +2 -0
- package/src/components/MarkdownProcessor/MarkdownProcessor.tsx +3 -19
- package/src/components/MarkdownProcessor/__tests__/MarkdownProcessor.test.tsx +1 -39
- package/src/components/MarkdownProcessor/components/index.ts +0 -2
- package/src/components/MarkdownProcessor/utils/functions.tsx +0 -19
- package/src/components/ProductCard/components/Header.tsx +39 -9
- package/src/components/PromptCarousel/PromptCarousel.tsx +29 -31
- package/src/components/TypingAnimation/TypingAnimation.tsx +68 -22
- package/src/components/utils/useAnimatedTextMinHeight.ts +29 -0
- package/dist/ChatFooter/hooks/useGetButtonScrollProperties.cjs +0 -18
- package/dist/ChatFooter/hooks/useGetButtonScrollProperties.js +0 -17
- package/dist/MarkdownProcessor/components/MarkdownSubscript.cjs +0 -15
- package/dist/MarkdownProcessor/components/MarkdownSubscript.js +0 -14
- package/src/components/MarkdownProcessor/components/MarkdownSubscript.tsx +0 -22
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ContainerProps } from "./types/index.cjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react10 from "react";
|
|
3
3
|
|
|
4
4
|
//#region src/components/Container/Container.d.ts
|
|
5
5
|
|
|
@@ -17,15 +17,7 @@ declare const Container: ({
|
|
|
17
17
|
fluid,
|
|
18
18
|
centerContent,
|
|
19
19
|
...props
|
|
20
|
-
}: ContainerProps & Omit<React.HTMLAttributes<HTMLElement>, "className" | "style" | "component">) =>
|
|
21
|
-
onClick?: react15.MouseEventHandler<HTMLElement>;
|
|
22
|
-
slot?: string | undefined;
|
|
23
|
-
title?: string | undefined;
|
|
24
|
-
color?: string | undefined;
|
|
25
|
-
"aria-label"?: string | undefined;
|
|
26
|
-
"aria-labelledby"?: string | undefined;
|
|
27
|
-
"aria-describedby"?: string | undefined;
|
|
28
|
-
role?: react15.AriaRole | undefined;
|
|
20
|
+
}: ContainerProps & Omit<React.HTMLAttributes<HTMLElement>, "className" | "style" | "component">) => react10.DetailedReactHTMLElement<{
|
|
29
21
|
defaultChecked?: boolean | undefined;
|
|
30
22
|
defaultValue?: string | number | readonly string[] | undefined;
|
|
31
23
|
suppressContentEditableWarning?: boolean | undefined;
|
|
@@ -41,10 +33,13 @@ declare const Container: ({
|
|
|
41
33
|
hidden?: boolean | undefined;
|
|
42
34
|
lang?: string | undefined;
|
|
43
35
|
nonce?: string | undefined;
|
|
36
|
+
slot?: string | undefined;
|
|
44
37
|
spellCheck?: (boolean | "true" | "false") | undefined;
|
|
45
38
|
tabIndex?: number | undefined;
|
|
39
|
+
title?: string | undefined;
|
|
46
40
|
translate?: "yes" | "no" | undefined;
|
|
47
41
|
radioGroup?: string | undefined;
|
|
42
|
+
role?: react10.AriaRole | undefined;
|
|
48
43
|
about?: string | undefined;
|
|
49
44
|
content?: string | undefined;
|
|
50
45
|
datatype?: string | undefined;
|
|
@@ -58,6 +53,7 @@ declare const Container: ({
|
|
|
58
53
|
vocab?: string | undefined;
|
|
59
54
|
autoCorrect?: string | undefined;
|
|
60
55
|
autoSave?: string | undefined;
|
|
56
|
+
color?: string | undefined;
|
|
61
57
|
itemProp?: string | undefined;
|
|
62
58
|
itemScope?: boolean | undefined;
|
|
63
59
|
itemType?: string | undefined;
|
|
@@ -87,6 +83,7 @@ declare const Container: ({
|
|
|
87
83
|
"aria-colspan"?: number | undefined;
|
|
88
84
|
"aria-controls"?: string | undefined;
|
|
89
85
|
"aria-current"?: boolean | "false" | "true" | "page" | "step" | "location" | "date" | "time" | undefined;
|
|
86
|
+
"aria-describedby"?: string | undefined;
|
|
90
87
|
"aria-description"?: string | undefined;
|
|
91
88
|
"aria-details"?: string | undefined;
|
|
92
89
|
"aria-disabled"?: (boolean | "true" | "false") | undefined;
|
|
@@ -99,6 +96,8 @@ declare const Container: ({
|
|
|
99
96
|
"aria-hidden"?: (boolean | "true" | "false") | undefined;
|
|
100
97
|
"aria-invalid"?: boolean | "false" | "true" | "grammar" | "spelling" | undefined;
|
|
101
98
|
"aria-keyshortcuts"?: string | undefined;
|
|
99
|
+
"aria-label"?: string | undefined;
|
|
100
|
+
"aria-labelledby"?: string | undefined;
|
|
102
101
|
"aria-level"?: number | undefined;
|
|
103
102
|
"aria-live"?: "off" | "assertive" | "polite" | undefined;
|
|
104
103
|
"aria-modal"?: (boolean | "true" | "false") | undefined;
|
|
@@ -127,175 +126,176 @@ declare const Container: ({
|
|
|
127
126
|
dangerouslySetInnerHTML?: {
|
|
128
127
|
__html: string | TrustedHTML;
|
|
129
128
|
} | 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
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
129
|
+
onCopy?: react10.ClipboardEventHandler<HTMLElement>;
|
|
130
|
+
onCopyCapture?: react10.ClipboardEventHandler<HTMLElement>;
|
|
131
|
+
onCut?: react10.ClipboardEventHandler<HTMLElement>;
|
|
132
|
+
onCutCapture?: react10.ClipboardEventHandler<HTMLElement>;
|
|
133
|
+
onPaste?: react10.ClipboardEventHandler<HTMLElement>;
|
|
134
|
+
onPasteCapture?: react10.ClipboardEventHandler<HTMLElement>;
|
|
135
|
+
onCompositionEnd?: react10.CompositionEventHandler<HTMLElement>;
|
|
136
|
+
onCompositionEndCapture?: react10.CompositionEventHandler<HTMLElement>;
|
|
137
|
+
onCompositionStart?: react10.CompositionEventHandler<HTMLElement>;
|
|
138
|
+
onCompositionStartCapture?: react10.CompositionEventHandler<HTMLElement>;
|
|
139
|
+
onCompositionUpdate?: react10.CompositionEventHandler<HTMLElement>;
|
|
140
|
+
onCompositionUpdateCapture?: react10.CompositionEventHandler<HTMLElement>;
|
|
141
|
+
onFocus?: react10.FocusEventHandler<HTMLElement>;
|
|
142
|
+
onFocusCapture?: react10.FocusEventHandler<HTMLElement>;
|
|
143
|
+
onBlur?: react10.FocusEventHandler<HTMLElement>;
|
|
144
|
+
onBlurCapture?: react10.FocusEventHandler<HTMLElement>;
|
|
145
|
+
onChange?: react10.FormEventHandler<HTMLElement>;
|
|
146
|
+
onChangeCapture?: react10.FormEventHandler<HTMLElement>;
|
|
147
|
+
onBeforeInput?: react10.InputEventHandler<HTMLElement>;
|
|
148
|
+
onBeforeInputCapture?: react10.FormEventHandler<HTMLElement>;
|
|
149
|
+
onInput?: react10.FormEventHandler<HTMLElement>;
|
|
150
|
+
onInputCapture?: react10.FormEventHandler<HTMLElement>;
|
|
151
|
+
onReset?: react10.FormEventHandler<HTMLElement>;
|
|
152
|
+
onResetCapture?: react10.FormEventHandler<HTMLElement>;
|
|
153
|
+
onSubmit?: react10.FormEventHandler<HTMLElement>;
|
|
154
|
+
onSubmitCapture?: react10.FormEventHandler<HTMLElement>;
|
|
155
|
+
onInvalid?: react10.FormEventHandler<HTMLElement>;
|
|
156
|
+
onInvalidCapture?: react10.FormEventHandler<HTMLElement>;
|
|
157
|
+
onLoad?: react10.ReactEventHandler<HTMLElement>;
|
|
158
|
+
onLoadCapture?: react10.ReactEventHandler<HTMLElement>;
|
|
159
|
+
onError?: react10.ReactEventHandler<HTMLElement>;
|
|
160
|
+
onErrorCapture?: react10.ReactEventHandler<HTMLElement>;
|
|
161
|
+
onKeyDown?: react10.KeyboardEventHandler<HTMLElement>;
|
|
162
|
+
onKeyDownCapture?: react10.KeyboardEventHandler<HTMLElement>;
|
|
163
|
+
onKeyPress?: react10.KeyboardEventHandler<HTMLElement>;
|
|
164
|
+
onKeyPressCapture?: react10.KeyboardEventHandler<HTMLElement>;
|
|
165
|
+
onKeyUp?: react10.KeyboardEventHandler<HTMLElement>;
|
|
166
|
+
onKeyUpCapture?: react10.KeyboardEventHandler<HTMLElement>;
|
|
167
|
+
onAbort?: react10.ReactEventHandler<HTMLElement>;
|
|
168
|
+
onAbortCapture?: react10.ReactEventHandler<HTMLElement>;
|
|
169
|
+
onCanPlay?: react10.ReactEventHandler<HTMLElement>;
|
|
170
|
+
onCanPlayCapture?: react10.ReactEventHandler<HTMLElement>;
|
|
171
|
+
onCanPlayThrough?: react10.ReactEventHandler<HTMLElement>;
|
|
172
|
+
onCanPlayThroughCapture?: react10.ReactEventHandler<HTMLElement>;
|
|
173
|
+
onDurationChange?: react10.ReactEventHandler<HTMLElement>;
|
|
174
|
+
onDurationChangeCapture?: react10.ReactEventHandler<HTMLElement>;
|
|
175
|
+
onEmptied?: react10.ReactEventHandler<HTMLElement>;
|
|
176
|
+
onEmptiedCapture?: react10.ReactEventHandler<HTMLElement>;
|
|
177
|
+
onEncrypted?: react10.ReactEventHandler<HTMLElement>;
|
|
178
|
+
onEncryptedCapture?: react10.ReactEventHandler<HTMLElement>;
|
|
179
|
+
onEnded?: react10.ReactEventHandler<HTMLElement>;
|
|
180
|
+
onEndedCapture?: react10.ReactEventHandler<HTMLElement>;
|
|
181
|
+
onLoadedData?: react10.ReactEventHandler<HTMLElement>;
|
|
182
|
+
onLoadedDataCapture?: react10.ReactEventHandler<HTMLElement>;
|
|
183
|
+
onLoadedMetadata?: react10.ReactEventHandler<HTMLElement>;
|
|
184
|
+
onLoadedMetadataCapture?: react10.ReactEventHandler<HTMLElement>;
|
|
185
|
+
onLoadStart?: react10.ReactEventHandler<HTMLElement>;
|
|
186
|
+
onLoadStartCapture?: react10.ReactEventHandler<HTMLElement>;
|
|
187
|
+
onPause?: react10.ReactEventHandler<HTMLElement>;
|
|
188
|
+
onPauseCapture?: react10.ReactEventHandler<HTMLElement>;
|
|
189
|
+
onPlay?: react10.ReactEventHandler<HTMLElement>;
|
|
190
|
+
onPlayCapture?: react10.ReactEventHandler<HTMLElement>;
|
|
191
|
+
onPlaying?: react10.ReactEventHandler<HTMLElement>;
|
|
192
|
+
onPlayingCapture?: react10.ReactEventHandler<HTMLElement>;
|
|
193
|
+
onProgress?: react10.ReactEventHandler<HTMLElement>;
|
|
194
|
+
onProgressCapture?: react10.ReactEventHandler<HTMLElement>;
|
|
195
|
+
onRateChange?: react10.ReactEventHandler<HTMLElement>;
|
|
196
|
+
onRateChangeCapture?: react10.ReactEventHandler<HTMLElement>;
|
|
197
|
+
onSeeked?: react10.ReactEventHandler<HTMLElement>;
|
|
198
|
+
onSeekedCapture?: react10.ReactEventHandler<HTMLElement>;
|
|
199
|
+
onSeeking?: react10.ReactEventHandler<HTMLElement>;
|
|
200
|
+
onSeekingCapture?: react10.ReactEventHandler<HTMLElement>;
|
|
201
|
+
onStalled?: react10.ReactEventHandler<HTMLElement>;
|
|
202
|
+
onStalledCapture?: react10.ReactEventHandler<HTMLElement>;
|
|
203
|
+
onSuspend?: react10.ReactEventHandler<HTMLElement>;
|
|
204
|
+
onSuspendCapture?: react10.ReactEventHandler<HTMLElement>;
|
|
205
|
+
onTimeUpdate?: react10.ReactEventHandler<HTMLElement>;
|
|
206
|
+
onTimeUpdateCapture?: react10.ReactEventHandler<HTMLElement>;
|
|
207
|
+
onVolumeChange?: react10.ReactEventHandler<HTMLElement>;
|
|
208
|
+
onVolumeChangeCapture?: react10.ReactEventHandler<HTMLElement>;
|
|
209
|
+
onWaiting?: react10.ReactEventHandler<HTMLElement>;
|
|
210
|
+
onWaitingCapture?: react10.ReactEventHandler<HTMLElement>;
|
|
211
|
+
onAuxClick?: react10.MouseEventHandler<HTMLElement>;
|
|
212
|
+
onAuxClickCapture?: react10.MouseEventHandler<HTMLElement>;
|
|
213
|
+
onClick?: react10.MouseEventHandler<HTMLElement>;
|
|
214
|
+
onClickCapture?: react10.MouseEventHandler<HTMLElement>;
|
|
215
|
+
onContextMenu?: react10.MouseEventHandler<HTMLElement>;
|
|
216
|
+
onContextMenuCapture?: react10.MouseEventHandler<HTMLElement>;
|
|
217
|
+
onDoubleClick?: react10.MouseEventHandler<HTMLElement>;
|
|
218
|
+
onDoubleClickCapture?: react10.MouseEventHandler<HTMLElement>;
|
|
219
|
+
onDrag?: react10.DragEventHandler<HTMLElement>;
|
|
220
|
+
onDragCapture?: react10.DragEventHandler<HTMLElement>;
|
|
221
|
+
onDragEnd?: react10.DragEventHandler<HTMLElement>;
|
|
222
|
+
onDragEndCapture?: react10.DragEventHandler<HTMLElement>;
|
|
223
|
+
onDragEnter?: react10.DragEventHandler<HTMLElement>;
|
|
224
|
+
onDragEnterCapture?: react10.DragEventHandler<HTMLElement>;
|
|
225
|
+
onDragExit?: react10.DragEventHandler<HTMLElement>;
|
|
226
|
+
onDragExitCapture?: react10.DragEventHandler<HTMLElement>;
|
|
227
|
+
onDragLeave?: react10.DragEventHandler<HTMLElement>;
|
|
228
|
+
onDragLeaveCapture?: react10.DragEventHandler<HTMLElement>;
|
|
229
|
+
onDragOver?: react10.DragEventHandler<HTMLElement>;
|
|
230
|
+
onDragOverCapture?: react10.DragEventHandler<HTMLElement>;
|
|
231
|
+
onDragStart?: react10.DragEventHandler<HTMLElement>;
|
|
232
|
+
onDragStartCapture?: react10.DragEventHandler<HTMLElement>;
|
|
233
|
+
onDrop?: react10.DragEventHandler<HTMLElement>;
|
|
234
|
+
onDropCapture?: react10.DragEventHandler<HTMLElement>;
|
|
235
|
+
onMouseDown?: react10.MouseEventHandler<HTMLElement>;
|
|
236
|
+
onMouseDownCapture?: react10.MouseEventHandler<HTMLElement>;
|
|
237
|
+
onMouseEnter?: react10.MouseEventHandler<HTMLElement>;
|
|
238
|
+
onMouseLeave?: react10.MouseEventHandler<HTMLElement>;
|
|
239
|
+
onMouseMove?: react10.MouseEventHandler<HTMLElement>;
|
|
240
|
+
onMouseMoveCapture?: react10.MouseEventHandler<HTMLElement>;
|
|
241
|
+
onMouseOut?: react10.MouseEventHandler<HTMLElement>;
|
|
242
|
+
onMouseOutCapture?: react10.MouseEventHandler<HTMLElement>;
|
|
243
|
+
onMouseOver?: react10.MouseEventHandler<HTMLElement>;
|
|
244
|
+
onMouseOverCapture?: react10.MouseEventHandler<HTMLElement>;
|
|
245
|
+
onMouseUp?: react10.MouseEventHandler<HTMLElement>;
|
|
246
|
+
onMouseUpCapture?: react10.MouseEventHandler<HTMLElement>;
|
|
247
|
+
onSelect?: react10.ReactEventHandler<HTMLElement>;
|
|
248
|
+
onSelectCapture?: react10.ReactEventHandler<HTMLElement>;
|
|
249
|
+
onTouchCancel?: react10.TouchEventHandler<HTMLElement>;
|
|
250
|
+
onTouchCancelCapture?: react10.TouchEventHandler<HTMLElement>;
|
|
251
|
+
onTouchEnd?: react10.TouchEventHandler<HTMLElement>;
|
|
252
|
+
onTouchEndCapture?: react10.TouchEventHandler<HTMLElement>;
|
|
253
|
+
onTouchMove?: react10.TouchEventHandler<HTMLElement>;
|
|
254
|
+
onTouchMoveCapture?: react10.TouchEventHandler<HTMLElement>;
|
|
255
|
+
onTouchStart?: react10.TouchEventHandler<HTMLElement>;
|
|
256
|
+
onTouchStartCapture?: react10.TouchEventHandler<HTMLElement>;
|
|
257
|
+
onPointerDown?: react10.PointerEventHandler<HTMLElement>;
|
|
258
|
+
onPointerDownCapture?: react10.PointerEventHandler<HTMLElement>;
|
|
259
|
+
onPointerMove?: react10.PointerEventHandler<HTMLElement>;
|
|
260
|
+
onPointerMoveCapture?: react10.PointerEventHandler<HTMLElement>;
|
|
261
|
+
onPointerUp?: react10.PointerEventHandler<HTMLElement>;
|
|
262
|
+
onPointerUpCapture?: react10.PointerEventHandler<HTMLElement>;
|
|
263
|
+
onPointerCancel?: react10.PointerEventHandler<HTMLElement>;
|
|
264
|
+
onPointerCancelCapture?: react10.PointerEventHandler<HTMLElement>;
|
|
265
|
+
onPointerEnter?: react10.PointerEventHandler<HTMLElement>;
|
|
266
|
+
onPointerLeave?: react10.PointerEventHandler<HTMLElement>;
|
|
267
|
+
onPointerOver?: react10.PointerEventHandler<HTMLElement>;
|
|
268
|
+
onPointerOverCapture?: react10.PointerEventHandler<HTMLElement>;
|
|
269
|
+
onPointerOut?: react10.PointerEventHandler<HTMLElement>;
|
|
270
|
+
onPointerOutCapture?: react10.PointerEventHandler<HTMLElement>;
|
|
271
|
+
onGotPointerCapture?: react10.PointerEventHandler<HTMLElement>;
|
|
272
|
+
onGotPointerCaptureCapture?: react10.PointerEventHandler<HTMLElement>;
|
|
273
|
+
onLostPointerCapture?: react10.PointerEventHandler<HTMLElement>;
|
|
274
|
+
onLostPointerCaptureCapture?: react10.PointerEventHandler<HTMLElement>;
|
|
275
|
+
onScroll?: react10.UIEventHandler<HTMLElement>;
|
|
276
|
+
onScrollCapture?: react10.UIEventHandler<HTMLElement>;
|
|
277
|
+
onScrollEnd?: react10.UIEventHandler<HTMLElement>;
|
|
278
|
+
onScrollEndCapture?: react10.UIEventHandler<HTMLElement>;
|
|
279
|
+
onWheel?: react10.WheelEventHandler<HTMLElement>;
|
|
280
|
+
onWheelCapture?: react10.WheelEventHandler<HTMLElement>;
|
|
281
|
+
onAnimationStart?: react10.AnimationEventHandler<HTMLElement>;
|
|
282
|
+
onAnimationStartCapture?: react10.AnimationEventHandler<HTMLElement>;
|
|
283
|
+
onAnimationEnd?: react10.AnimationEventHandler<HTMLElement>;
|
|
284
|
+
onAnimationEndCapture?: react10.AnimationEventHandler<HTMLElement>;
|
|
285
|
+
onAnimationIteration?: react10.AnimationEventHandler<HTMLElement>;
|
|
286
|
+
onAnimationIterationCapture?: react10.AnimationEventHandler<HTMLElement>;
|
|
287
|
+
onToggle?: react10.ToggleEventHandler<HTMLElement>;
|
|
288
|
+
onBeforeToggle?: react10.ToggleEventHandler<HTMLElement>;
|
|
289
|
+
onTransitionCancel?: react10.TransitionEventHandler<HTMLElement>;
|
|
290
|
+
onTransitionCancelCapture?: react10.TransitionEventHandler<HTMLElement>;
|
|
291
|
+
onTransitionEnd?: react10.TransitionEventHandler<HTMLElement>;
|
|
292
|
+
onTransitionEndCapture?: react10.TransitionEventHandler<HTMLElement>;
|
|
293
|
+
onTransitionRun?: react10.TransitionEventHandler<HTMLElement>;
|
|
294
|
+
onTransitionRunCapture?: react10.TransitionEventHandler<HTMLElement>;
|
|
295
|
+
onTransitionStart?: react10.TransitionEventHandler<HTMLElement>;
|
|
296
|
+
onTransitionStartCapture?: react10.TransitionEventHandler<HTMLElement>;
|
|
297
297
|
className: string;
|
|
298
|
-
style:
|
|
298
|
+
style: react10.CSSProperties;
|
|
299
299
|
id: string;
|
|
300
300
|
'data-testid': string;
|
|
301
301
|
}, HTMLElement>;
|
|
@@ -18,14 +18,6 @@ declare const Container: ({
|
|
|
18
18
|
centerContent,
|
|
19
19
|
...props
|
|
20
20
|
}: ContainerProps & Omit<React.HTMLAttributes<HTMLElement>, "className" | "style" | "component">) => react10.DetailedReactHTMLElement<{
|
|
21
|
-
onClick?: react10.MouseEventHandler<HTMLElement>;
|
|
22
|
-
slot?: string | undefined;
|
|
23
|
-
title?: string | undefined;
|
|
24
|
-
color?: string | undefined;
|
|
25
|
-
"aria-label"?: string | undefined;
|
|
26
|
-
"aria-labelledby"?: string | undefined;
|
|
27
|
-
"aria-describedby"?: string | undefined;
|
|
28
|
-
role?: react10.AriaRole | undefined;
|
|
29
21
|
defaultChecked?: boolean | undefined;
|
|
30
22
|
defaultValue?: string | number | readonly string[] | undefined;
|
|
31
23
|
suppressContentEditableWarning?: boolean | undefined;
|
|
@@ -41,10 +33,13 @@ declare const Container: ({
|
|
|
41
33
|
hidden?: boolean | undefined;
|
|
42
34
|
lang?: string | undefined;
|
|
43
35
|
nonce?: string | undefined;
|
|
36
|
+
slot?: string | undefined;
|
|
44
37
|
spellCheck?: (boolean | "true" | "false") | undefined;
|
|
45
38
|
tabIndex?: number | undefined;
|
|
39
|
+
title?: string | undefined;
|
|
46
40
|
translate?: "yes" | "no" | undefined;
|
|
47
41
|
radioGroup?: string | undefined;
|
|
42
|
+
role?: react10.AriaRole | undefined;
|
|
48
43
|
about?: string | undefined;
|
|
49
44
|
content?: string | undefined;
|
|
50
45
|
datatype?: string | undefined;
|
|
@@ -58,6 +53,7 @@ declare const Container: ({
|
|
|
58
53
|
vocab?: string | undefined;
|
|
59
54
|
autoCorrect?: string | undefined;
|
|
60
55
|
autoSave?: string | undefined;
|
|
56
|
+
color?: string | undefined;
|
|
61
57
|
itemProp?: string | undefined;
|
|
62
58
|
itemScope?: boolean | undefined;
|
|
63
59
|
itemType?: string | undefined;
|
|
@@ -87,6 +83,7 @@ declare const Container: ({
|
|
|
87
83
|
"aria-colspan"?: number | undefined;
|
|
88
84
|
"aria-controls"?: string | undefined;
|
|
89
85
|
"aria-current"?: boolean | "false" | "true" | "page" | "step" | "location" | "date" | "time" | undefined;
|
|
86
|
+
"aria-describedby"?: string | undefined;
|
|
90
87
|
"aria-description"?: string | undefined;
|
|
91
88
|
"aria-details"?: string | undefined;
|
|
92
89
|
"aria-disabled"?: (boolean | "true" | "false") | undefined;
|
|
@@ -99,6 +96,8 @@ declare const Container: ({
|
|
|
99
96
|
"aria-hidden"?: (boolean | "true" | "false") | undefined;
|
|
100
97
|
"aria-invalid"?: boolean | "false" | "true" | "grammar" | "spelling" | undefined;
|
|
101
98
|
"aria-keyshortcuts"?: string | undefined;
|
|
99
|
+
"aria-label"?: string | undefined;
|
|
100
|
+
"aria-labelledby"?: string | undefined;
|
|
102
101
|
"aria-level"?: number | undefined;
|
|
103
102
|
"aria-live"?: "off" | "assertive" | "polite" | undefined;
|
|
104
103
|
"aria-modal"?: (boolean | "true" | "false") | undefined;
|
|
@@ -211,6 +210,7 @@ declare const Container: ({
|
|
|
211
210
|
onWaitingCapture?: react10.ReactEventHandler<HTMLElement>;
|
|
212
211
|
onAuxClick?: react10.MouseEventHandler<HTMLElement>;
|
|
213
212
|
onAuxClickCapture?: react10.MouseEventHandler<HTMLElement>;
|
|
213
|
+
onClick?: react10.MouseEventHandler<HTMLElement>;
|
|
214
214
|
onClickCapture?: react10.MouseEventHandler<HTMLElement>;
|
|
215
215
|
onContextMenu?: react10.MouseEventHandler<HTMLElement>;
|
|
216
216
|
onContextMenuCapture?: react10.MouseEventHandler<HTMLElement>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime19 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_runtime19.JSX.Element;
|
|
13
13
|
//#endregion
|
|
14
14
|
export { DesignTokens, DesignTokensProps };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime34 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_runtime34.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_runtime23 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_runtime23.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_runtime31 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_runtime31.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_runtime21 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_runtime21.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_runtime22 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_runtime22.JSX.Element;
|
|
21
21
|
//#endregion
|
|
22
22
|
export { FloatingButton };
|
|
@@ -31,7 +31,7 @@ const FloatingChat = ({ id, className, style, testId, theme = require_theme.Them
|
|
|
31
31
|
const finalTheme = require_resolveTheme.resolveTheme(theme);
|
|
32
32
|
const [query, setQuery] = (0, react.useState)("");
|
|
33
33
|
const chatMessagesRef = (0, react.useRef)(null);
|
|
34
|
-
const { headerBackgroundColor, headerMode, welcomeMessageIconColor, showVerifiedBuyer, userQueryInputEnabled = true, showEnviveLogo, ignoreFirstModelResponse, neverShowSingleProductCards } = floatingChatConfig;
|
|
34
|
+
const { headerBackgroundColor, headerMode, welcomeMessageIconColor, showVerifiedBuyer, userQueryInputEnabled = true, showEnviveLogo, ignoreFirstModelResponse, neverShowSingleProductCards, partialViewConfig } = floatingChatConfig;
|
|
35
35
|
const { welcomeMessageTitle, welcomeMessageText, chatFooterTextFieldPlaceholderText, disclaimerText } = hardcopyContent?.values ?? {};
|
|
36
36
|
const { agentName, chatHeaderLogoDarkSrc, chatHeaderLogoLightSrc } = lookAndFeelConfig;
|
|
37
37
|
const { messages, isResponseStreaming, isPendingResponse, suggestions, onSuggestionClicked, onTypedMessageSubmitted, onFormResponseSubmitted } = salesAgentData;
|
|
@@ -46,7 +46,10 @@ const FloatingChat = ({ id, className, style, testId, theme = require_theme.Them
|
|
|
46
46
|
onClose();
|
|
47
47
|
}
|
|
48
48
|
};
|
|
49
|
-
const { modalSheetControl, maxSwipeableViewHeight, isOpen, isMobile, snaps, initialSnap, shouldAutoExpand, currentSnapPercentage, handleSnapChange, animationKey, mobileHeaderHeight, shouldShowHeader, isFullView, isPartialView } = require_useSnapSetup.useSnapSetup({
|
|
49
|
+
const { modalSheetControl, maxSwipeableViewHeight, isOpen, isMobile, snaps, initialSnap, shouldAutoExpand, currentSnapPercentage, handleSnapChange, animationKey, mobileHeaderHeight, shouldShowHeader, isFullView, isPartialView } = require_useSnapSetup.useSnapSetup({
|
|
50
|
+
isFloatingChatOpen,
|
|
51
|
+
partialViewDisabled: partialViewConfig?.disabled ?? false
|
|
52
|
+
});
|
|
50
53
|
const { showScrollButton, scrollToBottom, isFloatingLayout } = require_useScrollToBottom.useScrollToBottom({
|
|
51
54
|
messagesRef: chatMessagesRef,
|
|
52
55
|
autoScrollDependencies: [
|
|
@@ -126,7 +129,7 @@ const FloatingChat = ({ id, className, style, testId, theme = require_theme.Them
|
|
|
126
129
|
setGeneralSuggestions([]);
|
|
127
130
|
},
|
|
128
131
|
textFieldPlaceholderText: chatFooterTextFieldPlaceholderText,
|
|
129
|
-
promptSuggestions: isPendingResponse || isResponseStreaming
|
|
132
|
+
promptSuggestions: isPendingResponse || isResponseStreaming ? ["Loading suggestions 1...", "Loading suggestions 2..."] : generalSuggestions,
|
|
130
133
|
handleButtonClick: (buttonText) => {
|
|
131
134
|
const suggestion = suggestions.find((s) => s.content === buttonText && !s.isAnswer);
|
|
132
135
|
if (suggestion) onSuggestionClicked(suggestion, __envive_ai_react_hooks_application_models.ChatElementDisplayLocationV3.FLOATING_CHAT_PROMPT_BUTTON);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { FloatingChatProps } from "./types/types.cjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime20 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/components/FloatingChat/FloatingChat.d.ts
|
|
5
5
|
declare const FloatingChat: ({
|
|
@@ -17,6 +17,6 @@ declare const FloatingChat: ({
|
|
|
17
17
|
debugBar,
|
|
18
18
|
onClose,
|
|
19
19
|
onToggleCXButton
|
|
20
|
-
}: FloatingChatProps) =>
|
|
20
|
+
}: FloatingChatProps) => react_jsx_runtime20.JSX.Element;
|
|
21
21
|
//#endregion
|
|
22
22
|
export { FloatingChat };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { FloatingChatProps } from "./types/types.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime25 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/components/FloatingChat/FloatingChat.d.ts
|
|
5
5
|
declare const FloatingChat: ({
|
|
@@ -17,6 +17,6 @@ declare const FloatingChat: ({
|
|
|
17
17
|
debugBar,
|
|
18
18
|
onClose,
|
|
19
19
|
onToggleCXButton
|
|
20
|
-
}: FloatingChatProps) =>
|
|
20
|
+
}: FloatingChatProps) => react_jsx_runtime25.JSX.Element;
|
|
21
21
|
//#endregion
|
|
22
22
|
export { FloatingChat };
|