@envive-ai/react-toolkit-v3 0.3.8 → 0.3.9
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.cjs +1 -0
- package/dist/AnimatedText/AnimatedText.js +1 -0
- package/dist/CSSVariablesEditor/CssVariablesEditorComponent.d.cts +2 -2
- package/dist/CSSVariablesEditor/CssVariablesEditorComponent.d.ts +2 -2
- package/dist/CSSVariablesEditor/components/CSSVariablesEditor.cjs +1 -1
- package/dist/CSSVariablesEditor/components/CSSVariablesEditor.js +1 -1
- package/dist/Carousel/Carousel.d.cts +2 -2
- package/dist/Carousel/Carousel.d.ts +2 -2
- package/dist/Carousel/components/Container.cjs +1 -1
- package/dist/Carousel/components/Container.js +1 -1
- package/dist/ChatFooter/ChatFooter.d.cts +2 -2
- package/dist/ChatFooter/components/index.d.cts +3 -3
- 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.cjs +13 -3
- package/dist/ChatPreview/ChatPreview.d.cts +2 -2
- package/dist/ChatPreview/ChatPreview.d.ts +2 -2
- package/dist/ChatPreview/ChatPreview.js +13 -3
- package/dist/ChatPreview/components/Message.cjs +1 -1
- package/dist/ChatPreview/components/Message.js +1 -1
- package/dist/ChatPreview/types/types.d.cts +5 -4
- package/dist/ChatPreview/types/types.d.ts +5 -4
- package/dist/ChatPreviewComparison/ChatPreviewComparison.cjs +13 -3
- package/dist/ChatPreviewComparison/ChatPreviewComparison.d.cts +2 -2
- package/dist/ChatPreviewComparison/ChatPreviewComparison.d.ts +2 -2
- package/dist/ChatPreviewComparison/ChatPreviewComparison.js +13 -3
- package/dist/ChatPreviewComparison/components/Message.cjs +1 -1
- package/dist/ChatPreviewComparison/components/Message.js +1 -1
- package/dist/ChatPreviewComparison/types/types.d.cts +4 -4
- package/dist/ChatPreviewComparison/types/types.d.ts +4 -4
- package/dist/ChatPreviewLoading/ChatPreviewLoading.cjs +1 -1
- package/dist/ChatPreviewLoading/ChatPreviewLoading.d.cts +2 -2
- package/dist/ChatPreviewLoading/ChatPreviewLoading.d.ts +2 -2
- package/dist/ChatPreviewLoading/ChatPreviewLoading.js +1 -1
- package/dist/Container/Container.d.cts +174 -174
- package/dist/Container/Container.d.ts +174 -174
- package/dist/DesignTokens/DesignTokensComponent.cjs +1 -1
- package/dist/DesignTokens/DesignTokensComponent.d.cts +2 -2
- package/dist/DesignTokens/DesignTokensComponent.d.ts +2 -2
- package/dist/DesignTokens/DesignTokensComponent.js +1 -1
- 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 +4 -3
- package/dist/FloatingChat/FloatingChat.d.cts +2 -2
- package/dist/FloatingChat/FloatingChat.d.ts +2 -2
- package/dist/FloatingChat/FloatingChat.js +4 -3
- package/dist/FloatingChat/components/AgentMessage.cjs +9 -5
- package/dist/FloatingChat/components/AgentMessage.js +9 -5
- package/dist/FloatingChat/components/ChatMessages.cjs +1 -1
- package/dist/FloatingChat/components/ChatMessages.js +1 -1
- package/dist/FloatingChat/components/Layout.cjs +11 -11
- package/dist/FloatingChat/components/Layout.js +11 -11
- package/dist/FloatingChat/components/ModalSheet.cjs +1 -1
- package/dist/FloatingChat/components/ModalSheet.js +1 -1
- package/dist/FloatingChat/components/ReviewCardsCarousel.cjs +2 -1
- package/dist/FloatingChat/components/ReviewCardsCarousel.js +2 -1
- package/dist/FloatingChat/components/ScrollToBottomButton.cjs +1 -1
- package/dist/FloatingChat/components/ScrollToBottomButton.js +1 -1
- package/dist/Form/Form.cjs +1 -1
- package/dist/Form/Form.js +1 -1
- 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/ImageGallery/components/NormalLayout.cjs +1 -1
- package/dist/ImageGallery/components/NormalLayout.js +1 -1
- package/dist/MarkdownProcessor/MarkdownProcessor.cjs +1 -1
- package/dist/MarkdownProcessor/MarkdownProcessor.d.cts +2 -2
- package/dist/MarkdownProcessor/MarkdownProcessor.d.ts +2 -2
- package/dist/MarkdownProcessor/MarkdownProcessor.js +1 -1
- package/dist/Message/components/AgentContent.cjs +1 -1
- package/dist/Message/components/AgentContent.js +1 -1
- package/dist/ProductCard/ProductCard.cjs +9 -5
- package/dist/ProductCard/ProductCard.d.cts +2 -2
- package/dist/ProductCard/ProductCard.d.ts +2 -2
- package/dist/ProductCard/ProductCard.js +4 -1
- package/dist/ProductCard/components/Header.cjs +3 -3
- package/dist/ProductCard/components/Header.js +3 -3
- package/dist/PromptButton/PromptButton.d.cts +2 -2
- package/dist/PromptButton/PromptButton.d.ts +2 -2
- package/dist/PromptButtonCarouselWithImage/PromptButtonCarouselWithImage.cjs +3 -2
- package/dist/PromptButtonCarouselWithImage/PromptButtonCarouselWithImage.d.cts +2 -2
- package/dist/PromptButtonCarouselWithImage/PromptButtonCarouselWithImage.d.ts +2 -2
- package/dist/PromptButtonCarouselWithImage/PromptButtonCarouselWithImage.js +3 -2
- package/dist/PromptButtonCarouselWithImage/components/Layout.cjs +8 -3
- package/dist/PromptButtonCarouselWithImage/components/Layout.js +8 -3
- package/dist/PromptButtonCarouselWithImage/components/PromptButtonsCarousel.cjs +53 -3
- package/dist/PromptButtonCarouselWithImage/components/PromptButtonsCarousel.js +53 -3
- package/dist/PromptCarousel/PromptCarousel.cjs +70 -33
- package/dist/PromptCarousel/PromptCarousel.d.cts +2 -2
- package/dist/PromptCarousel/PromptCarousel.d.ts +2 -2
- package/dist/PromptCarousel/PromptCarousel.js +71 -34
- package/dist/PromptCarousel/hooks/index.cjs +2 -4
- package/dist/PromptCarousel/hooks/index.js +2 -4
- package/dist/PromptCarousel/hooks/useCoordinatedScrollAnimation.cjs +91 -0
- package/dist/PromptCarousel/hooks/useCoordinatedScrollAnimation.js +90 -0
- package/dist/PromptCarousel/hooks/useScrollSync.cjs +65 -0
- package/dist/PromptCarousel/hooks/useScrollSync.js +64 -0
- package/dist/ReviewCard/ReviewCard.cjs +1 -1
- package/dist/ReviewCard/ReviewCard.d.cts +2 -2
- package/dist/ReviewCard/ReviewCard.d.ts +2 -2
- package/dist/ReviewCard/ReviewCard.js +1 -1
- package/dist/ReviewCard/components/index.d.cts +6 -6
- package/dist/ReviewCard/components/index.d.ts +6 -6
- 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/SocialProof/components/Headline.cjs +1 -1
- package/dist/SocialProof/components/Headline.js +1 -1
- package/dist/SocialProof/components/LayoutSingle.cjs +1 -1
- package/dist/SocialProof/components/LayoutSingle.js +1 -1
- package/dist/Stack/Stack.d.cts +2 -2
- package/dist/Stack/Stack.d.ts +2 -2
- package/dist/Stack/hooks/useFormatStackChildren.cjs +1 -1
- package/dist/Stack/hooks/useFormatStackChildren.js +1 -1
- package/dist/Title/components/Image.cjs +1 -1
- package/dist/Title/components/Image.js +1 -1
- package/dist/TitledPromptCarousel/TitledPromptCarousel.d.cts +2 -2
- package/dist/TitledPromptCarousel/TitledPromptCarousel.d.ts +2 -2
- package/dist/TypingAnimation/TypingAnimation.cjs +2 -2
- package/dist/TypingAnimation/TypingAnimation.d.ts +2 -2
- package/dist/TypingAnimation/TypingAnimation.js +2 -2
- package/dist/Typography/Typography.d.cts +4 -4
- package/dist/Typography/Typography.d.ts +4 -4
- package/dist/WidgetTextField/WidgetTextField.cjs +11 -6
- package/dist/WidgetTextField/WidgetTextField.d.cts +3 -2
- package/dist/WidgetTextField/WidgetTextField.d.ts +3 -2
- package/dist/WidgetTextField/WidgetTextField.js +7 -2
- package/dist/WidgetTextField/components/FakeTextInput.cjs +2 -2
- package/dist/WidgetTextField/components/FakeTextInput.js +2 -2
- package/dist/WidgetTextField/components/Icon.cjs +10 -9
- package/dist/WidgetTextField/components/Icon.js +10 -9
- package/dist/WidgetTextField/components/Skeleton.cjs +1 -1
- package/dist/WidgetTextField/components/Skeleton.js +1 -1
- package/dist/WidgetTextField/types/types.d.cts +3 -0
- package/dist/WidgetTextField/types/types.d.ts +3 -0
- 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/dist/utils/CustomIcon.cjs +1 -1
- package/dist/utils/CustomIcon.js +1 -1
- package/dist/utils/useDragToScroll.cjs +68 -0
- package/dist/utils/useDragToScroll.js +67 -0
- package/package.json +1 -1
- package/src/components/AnimatedText/AnimatedText.tsx +2 -0
- package/src/components/ChatPreview/ChatPreview.tsx +20 -3
- package/src/components/ChatPreview/types/types.ts +5 -4
- package/src/components/ChatPreviewComparison/ChatPreviewComparison.tsx +20 -3
- package/src/components/ChatPreviewComparison/types/types.ts +4 -4
- package/src/components/FloatingChat/FloatingChat.tsx +3 -2
- package/src/components/FloatingChat/components/AgentMessage.tsx +1 -0
- package/src/components/FloatingChat/components/Layout.tsx +7 -2
- package/src/components/FloatingChat/components/ReviewCardsCarousel.tsx +3 -0
- package/src/components/ProductCard/ProductCard.tsx +12 -1
- package/src/components/ProductCard/components/Header.tsx +10 -8
- package/src/components/PromptButtonCarouselWithImage/PromptButtonCarouselWithImage.tsx +6 -3
- package/src/components/PromptButtonCarouselWithImage/components/Layout.tsx +13 -4
- package/src/components/PromptButtonCarouselWithImage/components/PromptButtonsCarousel.tsx +63 -20
- package/src/components/PromptCarousel/PromptCarousel.tsx +88 -51
- package/src/components/PromptCarousel/hooks/index.ts +2 -4
- package/src/components/PromptCarousel/hooks/useCoordinatedScrollAnimation.ts +115 -0
- package/src/components/PromptCarousel/hooks/useHorizontalScrollAnimation.ts +71 -78
- package/src/components/PromptCarousel/hooks/useScrollSync.ts +83 -0
- package/src/components/WidgetTextField/WidgetTextField.tsx +9 -1
- package/src/components/WidgetTextField/components/FakeTextInput.tsx +6 -2
- package/src/components/WidgetTextField/components/Icon.tsx +43 -9
- package/src/components/WidgetTextField/types/types.ts +3 -0
- package/src/components/utils/useDragToScroll.ts +83 -0
- package/dist/PromptCarousel/components/BlockScrollContainer.cjs +0 -23
- package/dist/PromptCarousel/components/BlockScrollContainer.js +0 -21
- package/dist/PromptCarousel/components/ButtonContainerRow.cjs +0 -34
- package/dist/PromptCarousel/components/ButtonContainerRow.js +0 -32
- package/dist/PromptCarousel/components/CarouselContentWithBlockScroll.cjs +0 -45
- package/dist/PromptCarousel/components/CarouselContentWithBlockScroll.js +0 -44
- package/dist/PromptCarousel/components/CarouselContentWithRowScroll.cjs +0 -33
- package/dist/PromptCarousel/components/CarouselContentWithRowScroll.js +0 -32
- package/dist/PromptCarousel/components/index.cjs +0 -13
- package/dist/PromptCarousel/components/index.js +0 -13
- package/dist/PromptCarousel/hooks/useButtonScrollPosition.cjs +0 -79
- package/dist/PromptCarousel/hooks/useButtonScrollPosition.js +0 -78
- package/dist/PromptCarousel/hooks/useCarouselAnimation.cjs +0 -23
- package/dist/PromptCarousel/hooks/useCarouselAnimation.js +0 -22
- package/dist/PromptCarousel/hooks/useCarouselRefs.cjs +0 -20
- package/dist/PromptCarousel/hooks/useCarouselRefs.js +0 -19
- package/dist/PromptCarousel/hooks/useGetScrollProperties.cjs +0 -18
- package/dist/PromptCarousel/hooks/useGetScrollProperties.js +0 -17
- package/dist/PromptCarousel/hooks/useHorizontalScrollAnimation.cjs +0 -78
- package/dist/PromptCarousel/hooks/useHorizontalScrollAnimation.js +0 -77
- package/src/components/PromptCarousel/components/BlockScrollContainer.tsx +0 -34
- package/src/components/PromptCarousel/components/ButtonContainerRow.tsx +0 -46
- package/src/components/PromptCarousel/components/CarouselContentWithBlockScroll.tsx +0 -83
- package/src/components/PromptCarousel/components/CarouselContentWithRowScroll.tsx +0 -71
- package/src/components/PromptCarousel/components/index.ts +0 -9
- package/src/components/PromptCarousel/hooks/useButtonScrollPosition.ts +0 -128
- package/src/components/PromptCarousel/hooks/useCarouselAnimation.ts +0 -47
- package/src/components/PromptCarousel/hooks/useCarouselRefs.ts +0 -27
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ContainerProps } from "./types/index.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react10 from "react";
|
|
3
3
|
|
|
4
4
|
//#region src/components/Container/Container.d.ts
|
|
5
5
|
|
|
@@ -17,10 +17,8 @@ declare const Container: ({
|
|
|
17
17
|
fluid,
|
|
18
18
|
centerContent,
|
|
19
19
|
...props
|
|
20
|
-
}: ContainerProps & Omit<React.HTMLAttributes<HTMLElement>, "className" | "style" | "component">) =>
|
|
21
|
-
|
|
22
|
-
content?: string | undefined;
|
|
23
|
-
onClick?: react7.MouseEventHandler<HTMLElement>;
|
|
20
|
+
}: ContainerProps & Omit<React.HTMLAttributes<HTMLElement>, "className" | "style" | "component">) => react10.DetailedReactHTMLElement<{
|
|
21
|
+
onClick?: react10.MouseEventHandler<HTMLElement>;
|
|
24
22
|
defaultChecked?: boolean | undefined;
|
|
25
23
|
defaultValue?: string | number | readonly string[] | undefined;
|
|
26
24
|
suppressContentEditableWarning?: boolean | undefined;
|
|
@@ -39,10 +37,12 @@ declare const Container: ({
|
|
|
39
37
|
slot?: string | undefined;
|
|
40
38
|
spellCheck?: (boolean | "true" | "false") | undefined;
|
|
41
39
|
tabIndex?: number | undefined;
|
|
40
|
+
title?: string | undefined;
|
|
42
41
|
translate?: "yes" | "no" | undefined;
|
|
43
42
|
radioGroup?: string | undefined;
|
|
44
|
-
role?:
|
|
43
|
+
role?: react10.AriaRole | undefined;
|
|
45
44
|
about?: string | undefined;
|
|
45
|
+
content?: string | undefined;
|
|
46
46
|
datatype?: string | undefined;
|
|
47
47
|
inlist?: any;
|
|
48
48
|
prefix?: string | 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?: react10.ClipboardEventHandler<HTMLElement>;
|
|
131
|
+
onCopyCapture?: react10.ClipboardEventHandler<HTMLElement>;
|
|
132
|
+
onCut?: react10.ClipboardEventHandler<HTMLElement>;
|
|
133
|
+
onCutCapture?: react10.ClipboardEventHandler<HTMLElement>;
|
|
134
|
+
onPaste?: react10.ClipboardEventHandler<HTMLElement>;
|
|
135
|
+
onPasteCapture?: react10.ClipboardEventHandler<HTMLElement>;
|
|
136
|
+
onCompositionEnd?: react10.CompositionEventHandler<HTMLElement>;
|
|
137
|
+
onCompositionEndCapture?: react10.CompositionEventHandler<HTMLElement>;
|
|
138
|
+
onCompositionStart?: react10.CompositionEventHandler<HTMLElement>;
|
|
139
|
+
onCompositionStartCapture?: react10.CompositionEventHandler<HTMLElement>;
|
|
140
|
+
onCompositionUpdate?: react10.CompositionEventHandler<HTMLElement>;
|
|
141
|
+
onCompositionUpdateCapture?: react10.CompositionEventHandler<HTMLElement>;
|
|
142
|
+
onFocus?: react10.FocusEventHandler<HTMLElement>;
|
|
143
|
+
onFocusCapture?: react10.FocusEventHandler<HTMLElement>;
|
|
144
|
+
onBlur?: react10.FocusEventHandler<HTMLElement>;
|
|
145
|
+
onBlurCapture?: react10.FocusEventHandler<HTMLElement>;
|
|
146
|
+
onChange?: react10.FormEventHandler<HTMLElement>;
|
|
147
|
+
onChangeCapture?: react10.FormEventHandler<HTMLElement>;
|
|
148
|
+
onBeforeInput?: react10.InputEventHandler<HTMLElement>;
|
|
149
|
+
onBeforeInputCapture?: react10.FormEventHandler<HTMLElement>;
|
|
150
|
+
onInput?: react10.FormEventHandler<HTMLElement>;
|
|
151
|
+
onInputCapture?: react10.FormEventHandler<HTMLElement>;
|
|
152
|
+
onReset?: react10.FormEventHandler<HTMLElement>;
|
|
153
|
+
onResetCapture?: react10.FormEventHandler<HTMLElement>;
|
|
154
|
+
onSubmit?: react10.FormEventHandler<HTMLElement>;
|
|
155
|
+
onSubmitCapture?: react10.FormEventHandler<HTMLElement>;
|
|
156
|
+
onInvalid?: react10.FormEventHandler<HTMLElement>;
|
|
157
|
+
onInvalidCapture?: react10.FormEventHandler<HTMLElement>;
|
|
158
|
+
onLoad?: react10.ReactEventHandler<HTMLElement>;
|
|
159
|
+
onLoadCapture?: react10.ReactEventHandler<HTMLElement>;
|
|
160
|
+
onError?: react10.ReactEventHandler<HTMLElement>;
|
|
161
|
+
onErrorCapture?: react10.ReactEventHandler<HTMLElement>;
|
|
162
|
+
onKeyDown?: react10.KeyboardEventHandler<HTMLElement>;
|
|
163
|
+
onKeyDownCapture?: react10.KeyboardEventHandler<HTMLElement>;
|
|
164
|
+
onKeyPress?: react10.KeyboardEventHandler<HTMLElement>;
|
|
165
|
+
onKeyPressCapture?: react10.KeyboardEventHandler<HTMLElement>;
|
|
166
|
+
onKeyUp?: react10.KeyboardEventHandler<HTMLElement>;
|
|
167
|
+
onKeyUpCapture?: react10.KeyboardEventHandler<HTMLElement>;
|
|
168
|
+
onAbort?: react10.ReactEventHandler<HTMLElement>;
|
|
169
|
+
onAbortCapture?: react10.ReactEventHandler<HTMLElement>;
|
|
170
|
+
onCanPlay?: react10.ReactEventHandler<HTMLElement>;
|
|
171
|
+
onCanPlayCapture?: react10.ReactEventHandler<HTMLElement>;
|
|
172
|
+
onCanPlayThrough?: react10.ReactEventHandler<HTMLElement>;
|
|
173
|
+
onCanPlayThroughCapture?: react10.ReactEventHandler<HTMLElement>;
|
|
174
|
+
onDurationChange?: react10.ReactEventHandler<HTMLElement>;
|
|
175
|
+
onDurationChangeCapture?: react10.ReactEventHandler<HTMLElement>;
|
|
176
|
+
onEmptied?: react10.ReactEventHandler<HTMLElement>;
|
|
177
|
+
onEmptiedCapture?: react10.ReactEventHandler<HTMLElement>;
|
|
178
|
+
onEncrypted?: react10.ReactEventHandler<HTMLElement>;
|
|
179
|
+
onEncryptedCapture?: react10.ReactEventHandler<HTMLElement>;
|
|
180
|
+
onEnded?: react10.ReactEventHandler<HTMLElement>;
|
|
181
|
+
onEndedCapture?: react10.ReactEventHandler<HTMLElement>;
|
|
182
|
+
onLoadedData?: react10.ReactEventHandler<HTMLElement>;
|
|
183
|
+
onLoadedDataCapture?: react10.ReactEventHandler<HTMLElement>;
|
|
184
|
+
onLoadedMetadata?: react10.ReactEventHandler<HTMLElement>;
|
|
185
|
+
onLoadedMetadataCapture?: react10.ReactEventHandler<HTMLElement>;
|
|
186
|
+
onLoadStart?: react10.ReactEventHandler<HTMLElement>;
|
|
187
|
+
onLoadStartCapture?: react10.ReactEventHandler<HTMLElement>;
|
|
188
|
+
onPause?: react10.ReactEventHandler<HTMLElement>;
|
|
189
|
+
onPauseCapture?: react10.ReactEventHandler<HTMLElement>;
|
|
190
|
+
onPlay?: react10.ReactEventHandler<HTMLElement>;
|
|
191
|
+
onPlayCapture?: react10.ReactEventHandler<HTMLElement>;
|
|
192
|
+
onPlaying?: react10.ReactEventHandler<HTMLElement>;
|
|
193
|
+
onPlayingCapture?: react10.ReactEventHandler<HTMLElement>;
|
|
194
|
+
onProgress?: react10.ReactEventHandler<HTMLElement>;
|
|
195
|
+
onProgressCapture?: react10.ReactEventHandler<HTMLElement>;
|
|
196
|
+
onRateChange?: react10.ReactEventHandler<HTMLElement>;
|
|
197
|
+
onRateChangeCapture?: react10.ReactEventHandler<HTMLElement>;
|
|
198
|
+
onSeeked?: react10.ReactEventHandler<HTMLElement>;
|
|
199
|
+
onSeekedCapture?: react10.ReactEventHandler<HTMLElement>;
|
|
200
|
+
onSeeking?: react10.ReactEventHandler<HTMLElement>;
|
|
201
|
+
onSeekingCapture?: react10.ReactEventHandler<HTMLElement>;
|
|
202
|
+
onStalled?: react10.ReactEventHandler<HTMLElement>;
|
|
203
|
+
onStalledCapture?: react10.ReactEventHandler<HTMLElement>;
|
|
204
|
+
onSuspend?: react10.ReactEventHandler<HTMLElement>;
|
|
205
|
+
onSuspendCapture?: react10.ReactEventHandler<HTMLElement>;
|
|
206
|
+
onTimeUpdate?: react10.ReactEventHandler<HTMLElement>;
|
|
207
|
+
onTimeUpdateCapture?: react10.ReactEventHandler<HTMLElement>;
|
|
208
|
+
onVolumeChange?: react10.ReactEventHandler<HTMLElement>;
|
|
209
|
+
onVolumeChangeCapture?: react10.ReactEventHandler<HTMLElement>;
|
|
210
|
+
onWaiting?: react10.ReactEventHandler<HTMLElement>;
|
|
211
|
+
onWaitingCapture?: react10.ReactEventHandler<HTMLElement>;
|
|
212
|
+
onAuxClick?: react10.MouseEventHandler<HTMLElement>;
|
|
213
|
+
onAuxClickCapture?: 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>;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
const require_rolldown_runtime = require('../_virtual/rolldown_runtime.cjs');
|
|
2
2
|
const require_useGetDesignTokensFromTailwindConfig = require('./hooks/useGetDesignTokensFromTailwindConfig.cjs');
|
|
3
3
|
const require_index = require('./components/index.cjs');
|
|
4
|
+
let react_jsx_runtime = require("react/jsx-runtime");
|
|
4
5
|
let react = require("react");
|
|
5
6
|
react = require_rolldown_runtime.__toESM(react);
|
|
6
|
-
let react_jsx_runtime = require("react/jsx-runtime");
|
|
7
7
|
|
|
8
8
|
//#region src/components/DesignTokens/DesignTokensComponent.tsx
|
|
9
9
|
const DesignTokens$1 = ({ selectedMerchant, config }) => {
|
|
@@ -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,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime22 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_runtime22.JSX.Element;
|
|
13
13
|
//#endregion
|
|
14
14
|
export { DesignTokens, DesignTokensProps };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { useGetDesignTokensFromTailwindConfig } from "./hooks/useGetDesignTokensFromTailwindConfig.js";
|
|
2
2
|
import { DesignTokens } from "./components/index.js";
|
|
3
|
-
import React from "react";
|
|
4
3
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
4
|
+
import React from "react";
|
|
5
5
|
|
|
6
6
|
//#region src/components/DesignTokens/DesignTokensComponent.tsx
|
|
7
7
|
const DesignTokens$1 = ({ selectedMerchant, config }) => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { DocumentRetrievalCardProps } from "./types/index.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime21 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_runtime21.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_runtime0 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_runtime0.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_runtime18 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_runtime18.JSX.Element;
|
|
21
21
|
//#endregion
|
|
22
22
|
export { FloatingButton };
|
|
@@ -21,9 +21,10 @@ const require_useSnapSetup = require('./hooks/useSnapSetup.cjs');
|
|
|
21
21
|
const require_useChatSuggestions = require('./hooks/useChatSuggestions.cjs');
|
|
22
22
|
const require_WelcomeMessage = require('../WelcomeMessage/WelcomeMessage.cjs');
|
|
23
23
|
const require_useFilteredChatMessages = require('./hooks/useFilteredChatMessages.cjs');
|
|
24
|
-
let react = require("react");
|
|
25
24
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
25
|
+
let react = require("react");
|
|
26
26
|
let framer_motion = require("framer-motion");
|
|
27
|
+
let __envive_ai_react_hooks_application_models = require("@envive-ai/react-hooks/application/models");
|
|
27
28
|
|
|
28
29
|
//#region src/components/FloatingChat/FloatingChat.tsx
|
|
29
30
|
const FloatingChat = ({ id, className, style, testId, theme = require_theme.Theme.GLOBAL_CUSTOM, salesAgentData, floatingChatConfig, hardcopyContent, lookAndFeelConfig, isCXButtonSwitchEnabled, isFloatingChatOpen, onClose, onToggleCXButton }) => {
|
|
@@ -127,7 +128,7 @@ const FloatingChat = ({ id, className, style, testId, theme = require_theme.Them
|
|
|
127
128
|
promptSuggestions: isPendingResponse || isResponseStreaming || generalSuggestions.length === 0 ? ["Loading suggestions 1...", "Loading suggestions 2..."] : generalSuggestions,
|
|
128
129
|
handleButtonClick: (buttonText) => {
|
|
129
130
|
const suggestion = suggestions.find((s) => s.content === buttonText && !s.isAnswer);
|
|
130
|
-
if (suggestion) onSuggestionClicked(suggestion);
|
|
131
|
+
if (suggestion) onSuggestionClicked(suggestion, __envive_ai_react_hooks_application_models.ChatElementDisplayLocationV3.FLOATING_CHAT_PROMPT_BUTTON);
|
|
131
132
|
setAnswerSuggestions([]);
|
|
132
133
|
setGeneralSuggestions([]);
|
|
133
134
|
},
|
|
@@ -165,7 +166,7 @@ const FloatingChat = ({ id, className, style, testId, theme = require_theme.Them
|
|
|
165
166
|
promptButtonTexts: answerSuggestions,
|
|
166
167
|
handleButtonClick: (buttonText) => {
|
|
167
168
|
const suggestion = suggestions.find((s) => s.content === buttonText && s.isAnswer);
|
|
168
|
-
if (suggestion) onSuggestionClicked(suggestion);
|
|
169
|
+
if (suggestion) onSuggestionClicked(suggestion, __envive_ai_react_hooks_application_models.ChatElementDisplayLocationV3.FLOATING_CHAT_PROMPT_BUTTON);
|
|
169
170
|
setAnswerSuggestions([]);
|
|
170
171
|
setGeneralSuggestions([]);
|
|
171
172
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { FloatingChatProps } from "./types/types.cjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime2 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/components/FloatingChat/FloatingChat.d.ts
|
|
5
5
|
declare const FloatingChat: ({
|
|
@@ -16,6 +16,6 @@ declare const FloatingChat: ({
|
|
|
16
16
|
isFloatingChatOpen,
|
|
17
17
|
onClose,
|
|
18
18
|
onToggleCXButton
|
|
19
|
-
}: FloatingChatProps) =>
|
|
19
|
+
}: FloatingChatProps) => react_jsx_runtime2.JSX.Element;
|
|
20
20
|
//#endregion
|
|
21
21
|
export { FloatingChat };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { FloatingChatProps } from "./types/types.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime23 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/components/FloatingChat/FloatingChat.d.ts
|
|
5
5
|
declare const FloatingChat: ({
|
|
@@ -16,6 +16,6 @@ declare const FloatingChat: ({
|
|
|
16
16
|
isFloatingChatOpen,
|
|
17
17
|
onClose,
|
|
18
18
|
onToggleCXButton
|
|
19
|
-
}: FloatingChatProps) =>
|
|
19
|
+
}: FloatingChatProps) => react_jsx_runtime23.JSX.Element;
|
|
20
20
|
//#endregion
|
|
21
21
|
export { FloatingChat };
|
|
@@ -20,9 +20,10 @@ import { useSnapSetup } from "./hooks/useSnapSetup.js";
|
|
|
20
20
|
import { useChatSuggestions } from "./hooks/useChatSuggestions.js";
|
|
21
21
|
import { WelcomeMessage } from "../WelcomeMessage/WelcomeMessage.js";
|
|
22
22
|
import { useFilteredChatMessages } from "./hooks/useFilteredChatMessages.js";
|
|
23
|
-
import { useRef, useState } from "react";
|
|
24
23
|
import { jsx } from "react/jsx-runtime";
|
|
24
|
+
import { useRef, useState } from "react";
|
|
25
25
|
import { motion } from "framer-motion";
|
|
26
|
+
import { ChatElementDisplayLocationV3 } from "@envive-ai/react-hooks/application/models";
|
|
26
27
|
|
|
27
28
|
//#region src/components/FloatingChat/FloatingChat.tsx
|
|
28
29
|
const FloatingChat = ({ id, className, style, testId, theme = Theme.GLOBAL_CUSTOM, salesAgentData, floatingChatConfig, hardcopyContent, lookAndFeelConfig, isCXButtonSwitchEnabled, isFloatingChatOpen, onClose, onToggleCXButton }) => {
|
|
@@ -126,7 +127,7 @@ const FloatingChat = ({ id, className, style, testId, theme = Theme.GLOBAL_CUSTO
|
|
|
126
127
|
promptSuggestions: isPendingResponse || isResponseStreaming || generalSuggestions.length === 0 ? ["Loading suggestions 1...", "Loading suggestions 2..."] : generalSuggestions,
|
|
127
128
|
handleButtonClick: (buttonText) => {
|
|
128
129
|
const suggestion = suggestions.find((s) => s.content === buttonText && !s.isAnswer);
|
|
129
|
-
if (suggestion) onSuggestionClicked(suggestion);
|
|
130
|
+
if (suggestion) onSuggestionClicked(suggestion, ChatElementDisplayLocationV3.FLOATING_CHAT_PROMPT_BUTTON);
|
|
130
131
|
setAnswerSuggestions([]);
|
|
131
132
|
setGeneralSuggestions([]);
|
|
132
133
|
},
|
|
@@ -164,7 +165,7 @@ const FloatingChat = ({ id, className, style, testId, theme = Theme.GLOBAL_CUSTO
|
|
|
164
165
|
promptButtonTexts: answerSuggestions,
|
|
165
166
|
handleButtonClick: (buttonText) => {
|
|
166
167
|
const suggestion = suggestions.find((s) => s.content === buttonText && s.isAnswer);
|
|
167
|
-
if (suggestion) onSuggestionClicked(suggestion);
|
|
168
|
+
if (suggestion) onSuggestionClicked(suggestion, ChatElementDisplayLocationV3.FLOATING_CHAT_PROMPT_BUTTON);
|
|
168
169
|
setAnswerSuggestions([]);
|
|
169
170
|
setGeneralSuggestions([]);
|
|
170
171
|
}
|
|
@@ -33,11 +33,15 @@ const AgentMessage = ({ theme = require_theme.Theme.GLOBAL_CUSTOM, agentName, ty
|
|
|
33
33
|
}, msg.id);
|
|
34
34
|
return null;
|
|
35
35
|
});
|
|
36
|
-
if (type === __envive_ai_react_hooks_application_models.MessageType.Review)
|
|
37
|
-
reviews
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
36
|
+
if (type === __envive_ai_react_hooks_application_models.MessageType.Review) {
|
|
37
|
+
const reviews = require_functions.getCleanReviews(messages);
|
|
38
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_ReviewCardsCarousel.ReviewCardsCarousel, {
|
|
39
|
+
reviews,
|
|
40
|
+
theme: finalTheme,
|
|
41
|
+
showVerifiedBuyer,
|
|
42
|
+
hideNavigation: reviews.length === 1
|
|
43
|
+
});
|
|
44
|
+
}
|
|
41
45
|
if (type === __envive_ai_react_hooks_application_models.MessageType.Product) {
|
|
42
46
|
const products = require_functions.getCleanProducts(messages);
|
|
43
47
|
if (products.length === 1 && neverShowSingleProductCards) return null;
|
|
@@ -32,11 +32,15 @@ const AgentMessage = ({ theme = Theme.GLOBAL_CUSTOM, agentName, type, messages,
|
|
|
32
32
|
}, msg.id);
|
|
33
33
|
return null;
|
|
34
34
|
});
|
|
35
|
-
if (type === MessageType.Review)
|
|
36
|
-
reviews
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
35
|
+
if (type === MessageType.Review) {
|
|
36
|
+
const reviews = getCleanReviews(messages);
|
|
37
|
+
return /* @__PURE__ */ jsx(ReviewCardsCarousel, {
|
|
38
|
+
reviews,
|
|
39
|
+
theme: finalTheme,
|
|
40
|
+
showVerifiedBuyer,
|
|
41
|
+
hideNavigation: reviews.length === 1
|
|
42
|
+
});
|
|
43
|
+
}
|
|
40
44
|
if (type === MessageType.Product) {
|
|
41
45
|
const products = getCleanProducts(messages);
|
|
42
46
|
if (products.length === 1 && neverShowSingleProductCards) return null;
|
|
@@ -13,8 +13,8 @@ const require_UserMessage = require('./UserMessage.cjs');
|
|
|
13
13
|
const require_functions = require('../utils/functions.cjs');
|
|
14
14
|
const require_AgentMessage = require('./AgentMessage.cjs');
|
|
15
15
|
const require_MessageDivider = require('./MessageDivider.cjs');
|
|
16
|
-
let react = require("react");
|
|
17
16
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
17
|
+
let react = require("react");
|
|
18
18
|
let classnames = require("classnames");
|
|
19
19
|
classnames = require_rolldown_runtime.__toESM(classnames);
|
|
20
20
|
let __envive_ai_react_hooks_application_models = require("@envive-ai/react-hooks/application/models");
|