@envive-ai/react-widgets-v3 0.3.2
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/CXIntegration/hooks/useUnifiedCXButton.cjs +23 -0
- package/dist/CXIntegration/hooks/useUnifiedCXButton.js +22 -0
- package/dist/CXIntegration/implementations/useDefaultUnifiedCXButton.cjs +11 -0
- package/dist/CXIntegration/implementations/useDefaultUnifiedCXButton.js +10 -0
- package/dist/CXIntegration/implementations/useGladlyUnifiedCXButton.cjs +20 -0
- package/dist/CXIntegration/implementations/useGladlyUnifiedCXButton.js +19 -0
- package/dist/CXIntegration/implementations/useGorgiasUnifiedCXButton.cjs +53 -0
- package/dist/CXIntegration/implementations/useGorgiasUnifiedCXButton.js +52 -0
- package/dist/CXIntegration/implementations/useGrooveUnifiedCXButton.cjs +45 -0
- package/dist/CXIntegration/implementations/useGrooveUnifiedCXButton.js +44 -0
- package/dist/CXIntegration/implementations/useKustomerUnifiedCXButton.cjs +70 -0
- package/dist/CXIntegration/implementations/useKustomerUnifiedCXButton.js +69 -0
- package/dist/CXIntegration/implementations/useReDoUnifiedCXButton.cjs +59 -0
- package/dist/CXIntegration/implementations/useReDoUnifiedCXButton.js +58 -0
- package/dist/CXIntegration/implementations/useRichpanelUnifiedCXButton.cjs +65 -0
- package/dist/CXIntegration/implementations/useRichpanelUnifiedCXButton.js +64 -0
- package/dist/CXIntegration/implementations/useShopifyChatUnifiedCXButton.cjs +53 -0
- package/dist/CXIntegration/implementations/useShopifyChatUnifiedCXButton.js +52 -0
- package/dist/CXIntegration/implementations/useTidioUnifiedCXButton.cjs +18 -0
- package/dist/CXIntegration/implementations/useTidioUnifiedCXButton.js +17 -0
- package/dist/CXIntegration/implementations/useZendeskUnifiedCXButton.cjs +54 -0
- package/dist/CXIntegration/implementations/useZendeskUnifiedCXButton.js +53 -0
- package/dist/CXIntegration/implementations/useZowieUnifiedCXButton.cjs +18 -0
- package/dist/CXIntegration/implementations/useZowieUnifiedCXButton.js +17 -0
- package/dist/CXIntegration/types.cjs +19 -0
- package/dist/CXIntegration/types.js +18 -0
- package/dist/CXIntegration/utils/functions.cjs +30 -0
- package/dist/CXIntegration/utils/functions.js +30 -0
- package/dist/_virtual/rolldown_runtime.cjs +29 -0
- package/dist/hocs/withBaseWidget/index.cjs +3 -0
- package/dist/hocs/withBaseWidget/index.d.cts +3 -0
- package/dist/hocs/withBaseWidget/index.d.ts +3 -0
- package/dist/hocs/withBaseWidget/index.js +3 -0
- package/dist/hocs/withBaseWidget/types.d.cts +37 -0
- package/dist/hocs/withBaseWidget/types.d.ts +39 -0
- package/dist/hocs/withBaseWidget/withBaseWidget.cjs +101 -0
- package/dist/hocs/withBaseWidget/withBaseWidget.d.cts +10 -0
- package/dist/hocs/withBaseWidget/withBaseWidget.d.ts +10 -0
- package/dist/hocs/withBaseWidget/withBaseWidget.js +100 -0
- package/dist/hooks/dist/application/models/api/orgConfigResults.d.ts +1 -0
- package/dist/hooks/dist/application/models/frontendConfig.d.ts +1 -0
- package/dist/hooks/dist/contexts/amplitudeContext/amplitudeContext.d.ts +2 -0
- package/dist/hooks/dist/contexts/amplitudeContext/index.d.ts +2 -0
- package/dist/hooks/dist/contexts/featureFlagServiceContext/featureFlagServiceContext.d.ts +2 -0
- package/dist/hooks/dist/contexts/hardcopyContext/hardcopyContext.d.cts +8 -0
- package/dist/hooks/dist/contexts/hardcopyContext/hardcopyContext.d.ts +11 -0
- package/dist/hooks/dist/contexts/hardcopyContext/index.d.ts +1 -0
- package/dist/hooks/dist/contexts/types.d.cts +44 -0
- package/dist/hooks/dist/contexts/types.d.ts +47 -0
- package/dist/hooks/dist/contexts/typesV3.d.cts +201 -0
- package/dist/hooks/dist/contexts/typesV3.d.ts +201 -0
- package/dist/hooks/dist/services/amplitudeService/amplitudeService.d.cts +36 -0
- package/dist/hooks/dist/services/amplitudeService/amplitudeService.d.ts +37 -0
- package/dist/hooks/dist/types/customerService.d.cts +18 -0
- package/dist/hooks/dist/types/customerService.d.ts +18 -0
- package/dist/stories/SalesAgentTest/index.cjs +0 -0
- package/dist/stories/SalesAgentTest/index.d.cts +1 -0
- package/dist/stories/SalesAgentTest/index.d.ts +1 -0
- package/dist/stories/SalesAgentTest/index.js +0 -0
- package/dist/widgets/ChatPreviewComparisonWidget/ChatPreviewComparisonWidget.cjs +98 -0
- package/dist/widgets/ChatPreviewComparisonWidget/ChatPreviewComparisonWidget.d.cts +19 -0
- package/dist/widgets/ChatPreviewComparisonWidget/ChatPreviewComparisonWidget.d.ts +19 -0
- package/dist/widgets/ChatPreviewComparisonWidget/ChatPreviewComparisonWidget.js +96 -0
- package/dist/widgets/ChatPreviewComparisonWidget/index.cjs +4 -0
- package/dist/widgets/ChatPreviewComparisonWidget/index.d.cts +2 -0
- package/dist/widgets/ChatPreviewComparisonWidget/index.d.ts +2 -0
- package/dist/widgets/ChatPreviewComparisonWidget/index.js +3 -0
- package/dist/widgets/ChatPreviewLoadingWidget/ChatPreviewLoadingWidget.cjs +44 -0
- package/dist/widgets/ChatPreviewLoadingWidget/ChatPreviewLoadingWidget.d.cts +16 -0
- package/dist/widgets/ChatPreviewLoadingWidget/ChatPreviewLoadingWidget.d.ts +16 -0
- package/dist/widgets/ChatPreviewLoadingWidget/ChatPreviewLoadingWidget.js +42 -0
- package/dist/widgets/ChatPreviewLoadingWidget/index.cjs +4 -0
- package/dist/widgets/ChatPreviewLoadingWidget/index.d.cts +2 -0
- package/dist/widgets/ChatPreviewLoadingWidget/index.d.ts +2 -0
- package/dist/widgets/ChatPreviewLoadingWidget/index.js +3 -0
- package/dist/widgets/ChatPreviewWidget/ChatPreviewWidget.cjs +86 -0
- package/dist/widgets/ChatPreviewWidget/ChatPreviewWidget.d.cts +19 -0
- package/dist/widgets/ChatPreviewWidget/ChatPreviewWidget.d.ts +19 -0
- package/dist/widgets/ChatPreviewWidget/ChatPreviewWidget.js +84 -0
- package/dist/widgets/ChatPreviewWidget/index.cjs +4 -0
- package/dist/widgets/ChatPreviewWidget/index.d.cts +2 -0
- package/dist/widgets/ChatPreviewWidget/index.d.ts +2 -0
- package/dist/widgets/ChatPreviewWidget/index.js +3 -0
- package/dist/widgets/FloatingChatWidget/FloatingChatOverlay.cjs +66 -0
- package/dist/widgets/FloatingChatWidget/FloatingChatOverlay.js +64 -0
- package/dist/widgets/FloatingChatWidget/FloatingChatWidget.cjs +70 -0
- package/dist/widgets/FloatingChatWidget/FloatingChatWidget.d.cts +10 -0
- package/dist/widgets/FloatingChatWidget/FloatingChatWidget.d.ts +10 -0
- package/dist/widgets/FloatingChatWidget/FloatingChatWidget.js +69 -0
- package/dist/widgets/FloatingChatWidget/constants.cjs +6 -0
- package/dist/widgets/FloatingChatWidget/constants.d.cts +4 -0
- package/dist/widgets/FloatingChatWidget/constants.d.ts +4 -0
- package/dist/widgets/FloatingChatWidget/constants.js +5 -0
- package/dist/widgets/FloatingChatWidget/index.cjs +5 -0
- package/dist/widgets/FloatingChatWidget/index.d.cts +3 -0
- package/dist/widgets/FloatingChatWidget/index.d.ts +3 -0
- package/dist/widgets/FloatingChatWidget/index.js +4 -0
- package/dist/widgets/PromptButtonCarouselWithImageWidget/PromptButtonCarouselWithImageWidget.cjs +60 -0
- package/dist/widgets/PromptButtonCarouselWithImageWidget/PromptButtonCarouselWithImageWidget.d.cts +19 -0
- package/dist/widgets/PromptButtonCarouselWithImageWidget/PromptButtonCarouselWithImageWidget.d.ts +19 -0
- package/dist/widgets/PromptButtonCarouselWithImageWidget/PromptButtonCarouselWithImageWidget.js +58 -0
- package/dist/widgets/PromptButtonCarouselWithImageWidget/index.cjs +4 -0
- package/dist/widgets/PromptButtonCarouselWithImageWidget/index.d.cts +2 -0
- package/dist/widgets/PromptButtonCarouselWithImageWidget/index.d.ts +2 -0
- package/dist/widgets/PromptButtonCarouselWithImageWidget/index.js +3 -0
- package/dist/widgets/PromptCarouselWidget/PromptCarouselWidget.cjs +64 -0
- package/dist/widgets/PromptCarouselWidget/PromptCarouselWidget.d.cts +14 -0
- package/dist/widgets/PromptCarouselWidget/PromptCarouselWidget.d.ts +14 -0
- package/dist/widgets/PromptCarouselWidget/PromptCarouselWidget.js +63 -0
- package/dist/widgets/PromptCarouselWidget/index.cjs +3 -0
- package/dist/widgets/PromptCarouselWidget/index.d.cts +2 -0
- package/dist/widgets/PromptCarouselWidget/index.d.ts +2 -0
- package/dist/widgets/PromptCarouselWidget/index.js +3 -0
- package/dist/widgets/SocialProofFlowWidget/SocialProofFlowWidget.cjs +35 -0
- package/dist/widgets/SocialProofFlowWidget/SocialProofFlowWidget.d.cts +14 -0
- package/dist/widgets/SocialProofFlowWidget/SocialProofFlowWidget.d.ts +14 -0
- package/dist/widgets/SocialProofFlowWidget/SocialProofFlowWidget.js +34 -0
- package/dist/widgets/SocialProofFlowWidget/index.cjs +3 -0
- package/dist/widgets/SocialProofFlowWidget/index.d.cts +2 -0
- package/dist/widgets/SocialProofFlowWidget/index.d.ts +2 -0
- package/dist/widgets/SocialProofFlowWidget/index.js +3 -0
- package/dist/widgets/SocialProofWidget/SocialProofWidget.cjs +118 -0
- package/dist/widgets/SocialProofWidget/SocialProofWidget.d.cts +19 -0
- package/dist/widgets/SocialProofWidget/SocialProofWidget.d.ts +19 -0
- package/dist/widgets/SocialProofWidget/SocialProofWidget.js +116 -0
- package/dist/widgets/SocialProofWidget/index.cjs +4 -0
- package/dist/widgets/SocialProofWidget/index.d.cts +2 -0
- package/dist/widgets/SocialProofWidget/index.d.ts +2 -0
- package/dist/widgets/SocialProofWidget/index.js +3 -0
- package/dist/widgets/TitledPromptCarouselWidget/TitledPromptCarouselWidget.cjs +67 -0
- package/dist/widgets/TitledPromptCarouselWidget/TitledPromptCarouselWidget.d.cts +14 -0
- package/dist/widgets/TitledPromptCarouselWidget/TitledPromptCarouselWidget.d.ts +14 -0
- package/dist/widgets/TitledPromptCarouselWidget/TitledPromptCarouselWidget.js +66 -0
- package/dist/widgets/TitledPromptCarouselWidget/index.cjs +3 -0
- package/dist/widgets/TitledPromptCarouselWidget/index.d.cts +2 -0
- package/dist/widgets/TitledPromptCarouselWidget/index.d.ts +2 -0
- package/dist/widgets/TitledPromptCarouselWidget/index.js +3 -0
- package/dist/widgets/TypingAnimationFlowWidget/TypingAnimationFlowWidget.cjs +35 -0
- package/dist/widgets/TypingAnimationFlowWidget/TypingAnimationFlowWidget.d.cts +14 -0
- package/dist/widgets/TypingAnimationFlowWidget/TypingAnimationFlowWidget.d.ts +14 -0
- package/dist/widgets/TypingAnimationFlowWidget/TypingAnimationFlowWidget.js +34 -0
- package/dist/widgets/TypingAnimationFlowWidget/index.cjs +3 -0
- package/dist/widgets/TypingAnimationFlowWidget/index.d.cts +2 -0
- package/dist/widgets/TypingAnimationFlowWidget/index.d.ts +2 -0
- package/dist/widgets/TypingAnimationFlowWidget/index.js +3 -0
- package/dist/widgets/TypingAnimationWidget/TypingAnimationWidget.cjs +90 -0
- package/dist/widgets/TypingAnimationWidget/TypingAnimationWidget.d.cts +19 -0
- package/dist/widgets/TypingAnimationWidget/TypingAnimationWidget.d.ts +19 -0
- package/dist/widgets/TypingAnimationWidget/TypingAnimationWidget.js +88 -0
- package/dist/widgets/TypingAnimationWidget/index.cjs +4 -0
- package/dist/widgets/TypingAnimationWidget/index.d.cts +2 -0
- package/dist/widgets/TypingAnimationWidget/index.d.ts +2 -0
- package/dist/widgets/TypingAnimationWidget/index.js +3 -0
- package/dist/widgets/dist/SearchResults/SearchResults.d.cts +15 -0
- package/dist/widgets/dist/SearchResults/SearchResults.d.ts +15 -0
- package/dist/widgets/dist/SearchResults/SearchResultsWidget.d.cts +9 -0
- package/dist/widgets/dist/SearchResults/SearchResultsWidget.d.ts +9 -0
- package/dist/widgets/dist/SearchResults/index.d.ts +2 -0
- package/dist/widgets/dist/SearchResults/types.d.cts +20 -0
- package/dist/widgets/dist/SearchResults/types.d.ts +20 -0
- package/dist/widgets/dist/SearchZeroState/SearchZeroState.d.cts +10 -0
- package/dist/widgets/dist/SearchZeroState/SearchZeroState.d.ts +10 -0
- package/dist/widgets/dist/SearchZeroState/SearchZeroStateWidget.d.cts +18 -0
- package/dist/widgets/dist/SearchZeroState/SearchZeroStateWidget.d.ts +18 -0
- package/dist/widgets/dist/SearchZeroState/index.d.ts +4 -0
- package/dist/widgets/dist/SearchZeroState/types.d.cts +13 -0
- package/dist/widgets/dist/SearchZeroState/types.d.ts +13 -0
- package/dist/widgets/dist/SuggestionBar/SuggestionBar.d.cts +36 -0
- package/dist/widgets/dist/SuggestionBar/SuggestionBar.d.ts +36 -0
- package/dist/widgets/dist/SuggestionBar/index.d.ts +2 -0
- package/dist/widgets/dist/SuggestionBar/types.d.cts +9 -0
- package/dist/widgets/dist/SuggestionBar/types.d.ts +9 -0
- package/dist/widgets/dist/SuggestionButtonContainer/SuggestionButtonContainer.d.cts +9 -0
- package/dist/widgets/dist/SuggestionButtonContainer/SuggestionButtonContainer.d.ts +9 -0
- package/dist/widgets/dist/SuggestionButtonContainer/types.d.cts +20 -0
- package/dist/widgets/dist/SuggestionButtonContainer/types.d.ts +20 -0
- package/dist/widgets/dist/config/BaseWidgetConfig.d.cts +13 -0
- package/dist/widgets/dist/config/BaseWidgetConfig.d.ts +13 -0
- package/dist/widgets/dist/config/WidgetType.d.cts +23 -0
- package/dist/widgets/dist/config/WidgetType.d.ts +23 -0
- package/dist/widgets/dist/packages/hooks/dist/application/models/api/response.d.cts +14 -0
- package/dist/widgets/dist/packages/hooks/dist/application/models/api/response.d.ts +14 -0
- package/dist/widgets/dist/packages/hooks/dist/application/models/api/search.d.cts +15 -0
- package/dist/widgets/dist/packages/hooks/dist/application/models/api/search.d.ts +15 -0
- package/dist/widgets/dist/packages/hooks/dist/application/models/utilityTypes/camelCase.d.cts +73 -0
- package/dist/widgets/dist/packages/hooks/dist/application/models/utilityTypes/camelCase.d.ts +73 -0
- package/dist/widgets/dist/packages/hooks/dist/application/models/utilityTypes/camelCasedPropertiesDeep.d.cts +61 -0
- package/dist/widgets/dist/packages/hooks/dist/application/models/utilityTypes/camelCasedPropertiesDeep.d.ts +61 -0
- package/dist/widgets/dist/packages/hooks/dist/application/models/utilityTypes/internal.d.cts +25 -0
- package/dist/widgets/dist/packages/hooks/dist/application/models/utilityTypes/internal.d.ts +25 -0
- package/dist/widgets/dist/packages/hooks/dist/application/models/utilityTypes/splitWords.d.cts +35 -0
- package/dist/widgets/dist/packages/hooks/dist/application/models/utilityTypes/splitWords.d.ts +35 -0
- package/dist/widgets/dist/packages/hooks/dist/application/models/utilityTypes/trim.d.cts +32 -0
- package/dist/widgets/dist/packages/hooks/dist/application/models/utilityTypes/trim.d.ts +32 -0
- package/dist/widgets/dist/packages/hooks/dist/application/models/utilityTypes/unknownArray.d.cts +32 -0
- package/dist/widgets/dist/packages/hooks/dist/application/models/utilityTypes/unknownArray.d.ts +32 -0
- package/dist/widgets/dist/packages/hooks/dist/atoms/search/searchAPI.d.cts +14 -0
- package/dist/widgets/dist/packages/hooks/dist/atoms/search/searchAPI.d.ts +15 -0
- package/dist/widgets/dist/packages/hooks/dist/contexts/types.d.cts +61 -0
- package/dist/widgets/dist/packages/hooks/dist/contexts/types.d.ts +61 -0
- package/dist/widgets/dist/packages/hooks/dist/hooks/Search/useSearch.d.cts +60 -0
- package/dist/widgets/dist/packages/hooks/dist/hooks/Search/useSearch.d.ts +60 -0
- package/dist/widgets/dist/packages/hooks/dist/hooks/utils.d.cts +11 -0
- package/dist/widgets/dist/packages/hooks/dist/hooks/utils.d.ts +11 -0
- package/dist/widgets/dist/packages/hooks/dist/types/search-filter-types.d.cts +28 -0
- package/dist/widgets/dist/packages/hooks/dist/types/search-filter-types.d.ts +28 -0
- package/dist/widgets/dist/packages/hooks/dist/types/test-types.d.cts +10 -0
- package/dist/widgets/dist/packages/hooks/dist/types/test-types.d.ts +10 -0
- package/dist/widgets/hooks/useGetWidgetStatus.cjs +27 -0
- package/dist/widgets/hooks/useGetWidgetStatus.js +26 -0
- package/dist/widgets/utils/functions.cjs +55 -0
- package/dist/widgets/utils/functions.js +48 -0
- package/dist/widgets-v2/SearchResults/index.cjs +5 -0
- package/dist/widgets-v2/SearchResults/index.d.cts +3 -0
- package/dist/widgets-v2/SearchResults/index.d.ts +4 -0
- package/dist/widgets-v2/SearchResults/index.js +3 -0
- package/dist/widgets-v2/SearchZeroState/index.cjs +8 -0
- package/dist/widgets-v2/SearchZeroState/index.d.cts +5 -0
- package/dist/widgets-v2/SearchZeroState/index.d.ts +6 -0
- package/dist/widgets-v2/SearchZeroState/index.js +3 -0
- package/dist/widgets-v2/SuggestionBar/index.cjs +5 -0
- package/dist/widgets-v2/SuggestionBar/index.d.cts +3 -0
- package/dist/widgets-v2/SuggestionBar/index.d.ts +4 -0
- package/dist/widgets-v2/SuggestionBar/index.js +3 -0
- package/dist/widgets-v2/SuggestionButtonContainer/index.cjs +5 -0
- package/dist/widgets-v2/SuggestionButtonContainer/index.d.cts +3 -0
- package/dist/widgets-v2/SuggestionButtonContainer/index.d.ts +3 -0
- package/dist/widgets-v2/SuggestionButtonContainer/index.js +3 -0
- package/package.json +158 -0
- package/src/CXIntegration/hooks/useUnifiedCXButton.ts +38 -0
- package/src/CXIntegration/implementations/useDefaultUnifiedCXButton.ts +8 -0
- package/src/CXIntegration/implementations/useGladlyUnifiedCXButton.ts +28 -0
- package/src/CXIntegration/implementations/useGorgiasUnifiedCXButton.ts +67 -0
- package/src/CXIntegration/implementations/useGrooveUnifiedCXButton.ts +83 -0
- package/src/CXIntegration/implementations/useKustomerUnifiedCXButton.ts +120 -0
- package/src/CXIntegration/implementations/useReDoUnifiedCXButton.ts +80 -0
- package/src/CXIntegration/implementations/useRichpanelUnifiedCXButton.ts +83 -0
- package/src/CXIntegration/implementations/useShopifyChatUnifiedCXButton.ts +78 -0
- package/src/CXIntegration/implementations/useTidioUnifiedCXButton.ts +34 -0
- package/src/CXIntegration/implementations/useZendeskUnifiedCXButton.ts +69 -0
- package/src/CXIntegration/implementations/useZowieUnifiedCXButton.ts +34 -0
- package/src/CXIntegration/types.ts +24 -0
- package/src/CXIntegration/utils/functions.ts +50 -0
- package/src/hocs/withBaseWidget/__tests__/withBaseWidget.test.tsx +689 -0
- package/src/hocs/withBaseWidget/index.ts +2 -0
- package/src/hocs/withBaseWidget/types.ts +39 -0
- package/src/hocs/withBaseWidget/withBaseWidget.tsx +126 -0
- package/src/stories/FloatingChatWidget.stories.tsx +56 -0
- package/src/stories/PromptButtonCarouselWithImageWidget.stories.tsx +54 -0
- package/src/stories/PromptCarouselWidget.stories.tsx +54 -0
- package/src/stories/SalesAgentTest/SalesAgentTest.stories.tsx +18 -0
- package/src/stories/SalesAgentTest/SalesAgentTest.tsx +111 -0
- package/src/stories/SalesAgentTest/index.ts +0 -0
- package/src/stories/SearchResults.stories.tsx +29 -0
- package/src/stories/SearchZeroState.stories.tsx +52 -0
- package/src/stories/SocialProofFlowWidget.stories.tsx +77 -0
- package/src/stories/SuggestionBar.stories.tsx +45 -0
- package/src/stories/TitledPromptCarouselWidget.stories.tsx +71 -0
- package/src/stories/TypingAnimationFlowWidget.stories.tsx +67 -0
- package/src/widgets/ChatPreviewComparisonWidget/ChatPreviewComparisonWidget.tsx +152 -0
- package/src/widgets/ChatPreviewComparisonWidget/index.ts +7 -0
- package/src/widgets/ChatPreviewLoadingWidget/ChatPreviewLoadingWidget.tsx +82 -0
- package/src/widgets/ChatPreviewLoadingWidget/index.ts +7 -0
- package/src/widgets/ChatPreviewWidget/ChatPreviewWidget.tsx +119 -0
- package/src/widgets/ChatPreviewWidget/index.ts +4 -0
- package/src/widgets/FloatingChatWidget/FloatingChatOverlay.tsx +115 -0
- package/src/widgets/FloatingChatWidget/FloatingChatWidget.tsx +110 -0
- package/src/widgets/FloatingChatWidget/constants.ts +1 -0
- package/src/widgets/FloatingChatWidget/index.ts +5 -0
- package/src/widgets/PromptButtonCarouselWithImageWidget/PromptButtonCarouselWithImageWidget.tsx +87 -0
- package/src/widgets/PromptButtonCarouselWithImageWidget/index.ts +6 -0
- package/src/widgets/PromptCarouselWidget/PromptCarouselWidget.tsx +83 -0
- package/src/widgets/PromptCarouselWidget/index.ts +2 -0
- package/src/widgets/SocialProofFlowWidget/SocialProofFlowWidget.tsx +61 -0
- package/src/widgets/SocialProofFlowWidget/index.ts +4 -0
- package/src/widgets/SocialProofWidget/SocialProofWidget.tsx +160 -0
- package/src/widgets/SocialProofWidget/index.ts +2 -0
- package/src/widgets/TitledPromptCarouselWidget/TitledPromptCarouselWidget.tsx +93 -0
- package/src/widgets/TitledPromptCarouselWidget/index.ts +2 -0
- package/src/widgets/TypingAnimationFlowWidget/TypingAnimationFlowWidget.tsx +61 -0
- package/src/widgets/TypingAnimationFlowWidget/index.ts +4 -0
- package/src/widgets/TypingAnimationWidget/TypingAnimationWidget.tsx +115 -0
- package/src/widgets/TypingAnimationWidget/index.ts +2 -0
- package/src/widgets/hooks/useGetWidgetStatus.tsx +29 -0
- package/src/widgets/utils/functions.ts +104 -0
- package/src/widgets-v2/SearchResults/index.ts +3 -0
- package/src/widgets-v2/SearchZeroState/index.ts +15 -0
- package/src/widgets-v2/SuggestionBar/index.ts +6 -0
- package/src/widgets-v2/SuggestionButtonContainer/index.ts +6 -0
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
import { CustomerServiceType } from "../types/customerService.js";
|
|
2
|
+
import { MerchantVariantSettings, SearchConfig } from "./types.js";
|
|
3
|
+
import { Theme } from "@envive-ai/react-toolkit-v3/Tokens";
|
|
4
|
+
import { AnimationSpeed, PromptCarouselRows } from "@envive-ai/react-toolkit-v3/PromptCarousel";
|
|
5
|
+
import { DynamicLayout } from "@envive-ai/react-toolkit-v3/SocialProof";
|
|
6
|
+
import { WidgetWrapperVariant } from "@envive-ai/react-toolkit-v3/WidgetWrapper";
|
|
7
|
+
import { ImageGalleryImage, ImageGalleryLayout } from "@envive-ai/react-toolkit-v3/ImageGallery";
|
|
8
|
+
import { PromptButtonVariant } from "@envive-ai/react-toolkit-v3/PromptButton";
|
|
9
|
+
import { SparkleIconColor } from "@envive-ai/react-toolkit-v3/WelcomeMessage";
|
|
10
|
+
|
|
11
|
+
//#region ../hooks/dist/contexts/typesV3.d.ts
|
|
12
|
+
|
|
13
|
+
type ImageAspectRatio = '1/1' | '3/4';
|
|
14
|
+
type ButtonColors = {
|
|
15
|
+
lightButtonBackgroundColor: string;
|
|
16
|
+
lightButtonIconColor: string;
|
|
17
|
+
darkButtonBackgroundColor: string;
|
|
18
|
+
darkButtonIconColor: string;
|
|
19
|
+
};
|
|
20
|
+
type Typography = {
|
|
21
|
+
titleFontFamily: string;
|
|
22
|
+
headerFontFamily: string;
|
|
23
|
+
bodyFontFamily: string;
|
|
24
|
+
fontSize?: {
|
|
25
|
+
t1: string;
|
|
26
|
+
t2: string;
|
|
27
|
+
t3: string;
|
|
28
|
+
h1: string;
|
|
29
|
+
h2: string;
|
|
30
|
+
h3: string;
|
|
31
|
+
b1: string;
|
|
32
|
+
b2: string;
|
|
33
|
+
b3: string;
|
|
34
|
+
b4: string;
|
|
35
|
+
b5: string;
|
|
36
|
+
l1: string;
|
|
37
|
+
l2: string;
|
|
38
|
+
};
|
|
39
|
+
fontWeight?: {
|
|
40
|
+
rg: string;
|
|
41
|
+
md: string;
|
|
42
|
+
sb: string;
|
|
43
|
+
};
|
|
44
|
+
letterSpacing?: {
|
|
45
|
+
'0': string;
|
|
46
|
+
'wide-1': string;
|
|
47
|
+
};
|
|
48
|
+
lineHeight?: {
|
|
49
|
+
'124': number;
|
|
50
|
+
'120': number;
|
|
51
|
+
'118': number;
|
|
52
|
+
'116': number;
|
|
53
|
+
'114': number;
|
|
54
|
+
'148': number;
|
|
55
|
+
'140': number;
|
|
56
|
+
'128': number;
|
|
57
|
+
'130': number;
|
|
58
|
+
'133': number;
|
|
59
|
+
};
|
|
60
|
+
};
|
|
61
|
+
type LookAndFeelConfig = {
|
|
62
|
+
theme: Theme;
|
|
63
|
+
agentName: string;
|
|
64
|
+
chatHeaderLogoDarkSrc: string;
|
|
65
|
+
chatHeaderLogoLightSrc: string;
|
|
66
|
+
widgetLogoSrc: string;
|
|
67
|
+
hideWidgetLogo: boolean;
|
|
68
|
+
elementRadius: number;
|
|
69
|
+
imageAspectRatio: ImageAspectRatio;
|
|
70
|
+
buttonColors: ButtonColors;
|
|
71
|
+
typography: Typography;
|
|
72
|
+
};
|
|
73
|
+
declare enum ConfigVersionEnum {
|
|
74
|
+
V3 = "v3",
|
|
75
|
+
Deprecated = "deprecated",
|
|
76
|
+
}
|
|
77
|
+
type ConfigVersion = ConfigVersionEnum.V3 | ConfigVersionEnum.Deprecated | undefined;
|
|
78
|
+
type Mode = 'dark' | 'light';
|
|
79
|
+
type Position = 'bottomLeft' | 'middleLeft' | 'middleRight' | 'bottomRight';
|
|
80
|
+
type ShowOptions = 'always' | 'postInteraction' | 'none';
|
|
81
|
+
type Style = 'attached' | 'detached';
|
|
82
|
+
type FloatingButtonConfig = {
|
|
83
|
+
position: Position;
|
|
84
|
+
backgroundColor?: string;
|
|
85
|
+
mode: Mode;
|
|
86
|
+
showOption: ShowOptions;
|
|
87
|
+
iconSVGSrc?: string;
|
|
88
|
+
style: Style;
|
|
89
|
+
};
|
|
90
|
+
type FloatingChatConfig = {
|
|
91
|
+
headerBackgroundColor?: string;
|
|
92
|
+
headerMode: Mode;
|
|
93
|
+
welcomeMessageIconColor: SparkleIconColor;
|
|
94
|
+
showVerifiedBuyer: boolean;
|
|
95
|
+
userQueryInputEnabled: boolean;
|
|
96
|
+
showEnviveLogo: boolean;
|
|
97
|
+
ignoreFirstModelResponse?: boolean;
|
|
98
|
+
neverShowSingleProductCards?: boolean;
|
|
99
|
+
welcomeMessageTitle: string;
|
|
100
|
+
welcomeMessageText: string;
|
|
101
|
+
chatFooterTextFieldPlaceholderText: string;
|
|
102
|
+
};
|
|
103
|
+
type CustomerServiceIntegration = {
|
|
104
|
+
enabled: boolean;
|
|
105
|
+
provider: CustomerServiceType;
|
|
106
|
+
suppressMerchantButton?: boolean;
|
|
107
|
+
};
|
|
108
|
+
type OrgUIConfigV3 = {
|
|
109
|
+
id?: string;
|
|
110
|
+
version: ConfigVersion;
|
|
111
|
+
shortName: string;
|
|
112
|
+
lookAndFeel: LookAndFeelConfig;
|
|
113
|
+
floatingButton: FloatingButtonConfig;
|
|
114
|
+
floatingChat: FloatingChatConfig;
|
|
115
|
+
merchantOverrideCss?: string;
|
|
116
|
+
customerServiceIntegration?: CustomerServiceIntegration;
|
|
117
|
+
merchantVariantSettings?: MerchantVariantSettings;
|
|
118
|
+
searchConfig?: SearchConfig;
|
|
119
|
+
};
|
|
120
|
+
declare enum WidgetTypeV3 {
|
|
121
|
+
PromptCarouselV3 = "PromptCarouselV3",
|
|
122
|
+
TitledPromptCarouselV3 = "TitledPromptCarouselV3",
|
|
123
|
+
SocialProofV3 = "SocialProofV3",
|
|
124
|
+
TypingAnimationV3 = "TypingAnimationV3",
|
|
125
|
+
ChatPreviewV3 = "ChatPreviewV3",
|
|
126
|
+
ChatPreviewComparisonV3 = "ChatPreviewComparisonV3",
|
|
127
|
+
ChatPreviewLoadingV3 = "ChatPreviewLoadingV3",
|
|
128
|
+
ImagePromptCardV3 = "ImagePromptCardV3",
|
|
129
|
+
PromptButtonCarouselWithImageV3 = "PromptButtonCarouselWithImageV3",
|
|
130
|
+
ImageBannerV3 = "ImageBannerV3",
|
|
131
|
+
SingleImagePromptV3 = "SingleImagePromptV3",
|
|
132
|
+
FloatingChatV3 = "FloatingChatV3",
|
|
133
|
+
FloatingButtonV3 = "FloatingButtonV3",
|
|
134
|
+
}
|
|
135
|
+
interface BaseWidgetConfig<T extends WidgetTypeV3> {
|
|
136
|
+
widgetConfigId: string;
|
|
137
|
+
type: T;
|
|
138
|
+
contentId?: string;
|
|
139
|
+
}
|
|
140
|
+
interface PromptCarouselWidgetV3Config extends BaseWidgetConfig<WidgetTypeV3.PromptCarouselV3> {
|
|
141
|
+
promptButtonType?: PromptButtonVariant;
|
|
142
|
+
boldFirstButton?: boolean;
|
|
143
|
+
promptCarouselRows?: PromptCarouselRows;
|
|
144
|
+
animationSpeed?: AnimationSpeed;
|
|
145
|
+
}
|
|
146
|
+
interface TitledPromptCarouselWidgetV3Config extends BaseWidgetConfig<WidgetTypeV3.TitledPromptCarouselV3> {
|
|
147
|
+
promptButtonType?: PromptButtonVariant;
|
|
148
|
+
boldFirstButton?: boolean;
|
|
149
|
+
promptCarouselRows?: PromptCarouselRows;
|
|
150
|
+
animationSpeed?: AnimationSpeed;
|
|
151
|
+
}
|
|
152
|
+
declare enum SocialProofWidgetKind {
|
|
153
|
+
STATIC = "static",
|
|
154
|
+
DYNAMIC = "dynamic",
|
|
155
|
+
}
|
|
156
|
+
interface SocialProofWidgetV3Config extends BaseWidgetConfig<WidgetTypeV3.SocialProofV3> {
|
|
157
|
+
kind: SocialProofWidgetKind;
|
|
158
|
+
variant: WidgetWrapperVariant;
|
|
159
|
+
hexCardColor?: string;
|
|
160
|
+
promptCarouselRows: PromptCarouselRows;
|
|
161
|
+
hideImage?: boolean;
|
|
162
|
+
imageGalleryLayout: Exclude<ImageGalleryLayout, 'TWO_SIDE'>;
|
|
163
|
+
hideTextField?: boolean;
|
|
164
|
+
primaryButtonVariant: Exclude<PromptButtonVariant, 'suggestedResponse' | 'ghost'>;
|
|
165
|
+
secondaryButtonVariant: Exclude<PromptButtonVariant, 'suggestedResponse' | 'ghost'>;
|
|
166
|
+
dynamicLayout?: DynamicLayout;
|
|
167
|
+
images?: ImageGalleryImage[];
|
|
168
|
+
}
|
|
169
|
+
interface TypingAnimationWidgetV3Config extends BaseWidgetConfig<WidgetTypeV3.TypingAnimationV3> {
|
|
170
|
+
widgetVariant?: WidgetWrapperVariant;
|
|
171
|
+
cardColor?: string;
|
|
172
|
+
promptButtonType?: PromptButtonVariant;
|
|
173
|
+
promptCarouselRows?: PromptCarouselRows;
|
|
174
|
+
showTextField?: boolean;
|
|
175
|
+
}
|
|
176
|
+
interface ChatPreviewComparisonWidgetV3Config extends BaseWidgetConfig<WidgetTypeV3.ChatPreviewComparisonV3> {
|
|
177
|
+
variant: WidgetWrapperVariant;
|
|
178
|
+
hexCardColor?: string;
|
|
179
|
+
hideImage?: boolean;
|
|
180
|
+
hideTextField?: boolean;
|
|
181
|
+
}
|
|
182
|
+
interface ChatPreviewLoadingWidgetV3Config extends BaseWidgetConfig<WidgetTypeV3.ChatPreviewLoadingV3> {
|
|
183
|
+
variant: WidgetWrapperVariant;
|
|
184
|
+
hexCardColor?: string;
|
|
185
|
+
hideTextField?: boolean;
|
|
186
|
+
}
|
|
187
|
+
interface ChatPreviewWidgetV3Config extends BaseWidgetConfig<WidgetTypeV3.ChatPreviewV3> {
|
|
188
|
+
variant: WidgetWrapperVariant;
|
|
189
|
+
hexCardColor?: string;
|
|
190
|
+
hideTextField?: boolean;
|
|
191
|
+
}
|
|
192
|
+
interface PromptButtonCarouselWithImageWidgetV3Config extends BaseWidgetConfig<WidgetTypeV3.PromptButtonCarouselWithImageV3> {
|
|
193
|
+
promptButtonType?: PromptButtonVariant;
|
|
194
|
+
image?: ImageGalleryImage;
|
|
195
|
+
hideTextField?: boolean;
|
|
196
|
+
}
|
|
197
|
+
interface FloatingChatWidgetV3Config extends BaseWidgetConfig<WidgetTypeV3.FloatingChatV3> {}
|
|
198
|
+
type WidgetConfigV3 = PromptCarouselWidgetV3Config | SocialProofWidgetV3Config | TitledPromptCarouselWidgetV3Config | ChatPreviewComparisonWidgetV3Config | ChatPreviewLoadingWidgetV3Config | TypingAnimationWidgetV3Config | ChatPreviewWidgetV3Config | PromptButtonCarouselWithImageWidgetV3Config | FloatingChatWidgetV3Config;
|
|
199
|
+
//#endregion
|
|
200
|
+
//#endregion
|
|
201
|
+
export { type OrgUIConfigV3, type WidgetConfigV3, WidgetTypeV3 };
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
//#region ../hooks/dist/services/amplitudeService/amplitudeService.d.ts
|
|
2
|
+
|
|
3
|
+
//#region src/services/amplitudeService/amplitudeService.d.ts
|
|
4
|
+
declare enum SpiffyMetricsEventName {
|
|
5
|
+
BundleLoaded = "Bundle Loaded",
|
|
6
|
+
ChatLiveAgentBtnClick = "Chat Live Agent Btn Click",
|
|
7
|
+
ChatFloatingButtonVisible = "Chat Floating Button Visible",
|
|
8
|
+
ChatComponentVisible = "Chat Component Visible",
|
|
9
|
+
ChatComponentExpanded = "Chat Component Expanded",
|
|
10
|
+
ChatComponentCollapsed = "Chat Component Collapsed",
|
|
11
|
+
ChatUserMessageInput = "Chat User Message Input",
|
|
12
|
+
ChatSuggestionClicked = "Chat Suggestion Clicked",
|
|
13
|
+
ChatAssistantResponse = "Chat Assistant Response",
|
|
14
|
+
ProductCardClicked = "Product Card Clicked",
|
|
15
|
+
ProductReviewCardClicked = "Product Review Card Clicked",
|
|
16
|
+
AddToCartClicked = "Add To Cart Clicked",
|
|
17
|
+
PromptCardClicked = "Prompt Card Clicked",
|
|
18
|
+
SupportedEvent = "Supported Event",
|
|
19
|
+
SearchBackToResponseClicked = "Search Back to Response Clicked",
|
|
20
|
+
PerformanceMetrics = "Performance Metrics",
|
|
21
|
+
SearchBarClicked = "Search Bar Clicked",
|
|
22
|
+
OrderLookupStarted = "Order Lookup Started",
|
|
23
|
+
OrderLookupFormSubmitted = "Order Lookup Form Submitted",
|
|
24
|
+
SearchComponentVisible = "Search Component Visible",
|
|
25
|
+
SearchZeroStateSuggestionClicked = "Search Zero State Suggestion Clicked",
|
|
26
|
+
// This is the scrolling list of suggestion buttons in global search
|
|
27
|
+
SearchInputStarted = "Search Input Started",
|
|
28
|
+
SearchQuerySubmitted = "Search Query Submitted",
|
|
29
|
+
SearchResultsViewed = "Search Results Viewed",
|
|
30
|
+
SearchTimeToFirstClick = "Search Time to First Click",
|
|
31
|
+
SearchZeroResultsRate = "Search Zero Results Rate",
|
|
32
|
+
SearchFilterClicked = "Search Filter Clicked",
|
|
33
|
+
SearchSortClicked = "Search Sort Clicked",
|
|
34
|
+
}
|
|
35
|
+
//#endregion
|
|
36
|
+
export { SpiffyMetricsEventName };
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import "../../contexts/featureFlagServiceContext/featureFlagServiceContext.js";
|
|
2
|
+
|
|
3
|
+
//#region ../hooks/dist/services/amplitudeService/amplitudeService.d.ts
|
|
4
|
+
//#region src/services/amplitudeService/amplitudeService.d.ts
|
|
5
|
+
declare enum SpiffyMetricsEventName {
|
|
6
|
+
BundleLoaded = "Bundle Loaded",
|
|
7
|
+
ChatLiveAgentBtnClick = "Chat Live Agent Btn Click",
|
|
8
|
+
ChatFloatingButtonVisible = "Chat Floating Button Visible",
|
|
9
|
+
ChatComponentVisible = "Chat Component Visible",
|
|
10
|
+
ChatComponentExpanded = "Chat Component Expanded",
|
|
11
|
+
ChatComponentCollapsed = "Chat Component Collapsed",
|
|
12
|
+
ChatUserMessageInput = "Chat User Message Input",
|
|
13
|
+
ChatSuggestionClicked = "Chat Suggestion Clicked",
|
|
14
|
+
ChatAssistantResponse = "Chat Assistant Response",
|
|
15
|
+
ProductCardClicked = "Product Card Clicked",
|
|
16
|
+
ProductReviewCardClicked = "Product Review Card Clicked",
|
|
17
|
+
AddToCartClicked = "Add To Cart Clicked",
|
|
18
|
+
PromptCardClicked = "Prompt Card Clicked",
|
|
19
|
+
SupportedEvent = "Supported Event",
|
|
20
|
+
SearchBackToResponseClicked = "Search Back to Response Clicked",
|
|
21
|
+
PerformanceMetrics = "Performance Metrics",
|
|
22
|
+
SearchBarClicked = "Search Bar Clicked",
|
|
23
|
+
OrderLookupStarted = "Order Lookup Started",
|
|
24
|
+
OrderLookupFormSubmitted = "Order Lookup Form Submitted",
|
|
25
|
+
SearchComponentVisible = "Search Component Visible",
|
|
26
|
+
SearchZeroStateSuggestionClicked = "Search Zero State Suggestion Clicked",
|
|
27
|
+
// This is the scrolling list of suggestion buttons in global search
|
|
28
|
+
SearchInputStarted = "Search Input Started",
|
|
29
|
+
SearchQuerySubmitted = "Search Query Submitted",
|
|
30
|
+
SearchResultsViewed = "Search Results Viewed",
|
|
31
|
+
SearchTimeToFirstClick = "Search Time to First Click",
|
|
32
|
+
SearchZeroResultsRate = "Search Zero Results Rate",
|
|
33
|
+
SearchFilterClicked = "Search Filter Clicked",
|
|
34
|
+
SearchSortClicked = "Search Sort Clicked",
|
|
35
|
+
}
|
|
36
|
+
//#endregion
|
|
37
|
+
export { SpiffyMetricsEventName };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
//#region ../hooks/dist/types/customerService.d.ts
|
|
2
|
+
|
|
3
|
+
//#region src/types/customerService.d.ts
|
|
4
|
+
declare enum CustomerServiceType {
|
|
5
|
+
shopify = "shopify",
|
|
6
|
+
gorgias = "gorgias",
|
|
7
|
+
kustomer = "kustomer",
|
|
8
|
+
groove = "groove",
|
|
9
|
+
tidio = "tidio",
|
|
10
|
+
zowie = "zowie",
|
|
11
|
+
redo = "redo",
|
|
12
|
+
gladly = "gladly",
|
|
13
|
+
richpanel = "richpanel",
|
|
14
|
+
zendesk = "zendesk",
|
|
15
|
+
unsupported = "unsupported",
|
|
16
|
+
}
|
|
17
|
+
//#endregion
|
|
18
|
+
export { CustomerServiceType };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
//#region ../hooks/dist/types/customerService.d.ts
|
|
2
|
+
|
|
3
|
+
//#region src/types/customerService.d.ts
|
|
4
|
+
declare enum CustomerServiceType {
|
|
5
|
+
shopify = "shopify",
|
|
6
|
+
gorgias = "gorgias",
|
|
7
|
+
kustomer = "kustomer",
|
|
8
|
+
groove = "groove",
|
|
9
|
+
tidio = "tidio",
|
|
10
|
+
zowie = "zowie",
|
|
11
|
+
redo = "redo",
|
|
12
|
+
gladly = "gladly",
|
|
13
|
+
richpanel = "richpanel",
|
|
14
|
+
zendesk = "zendesk",
|
|
15
|
+
unsupported = "unsupported",
|
|
16
|
+
}
|
|
17
|
+
//#endregion
|
|
18
|
+
export { CustomerServiceType };
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { };
|
|
File without changes
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
const require_rolldown_runtime = require('../../_virtual/rolldown_runtime.cjs');
|
|
2
|
+
const require_withBaseWidget = require('../../hocs/withBaseWidget/withBaseWidget.cjs');
|
|
3
|
+
const require_functions = require('../utils/functions.cjs');
|
|
4
|
+
const require_ChatPreviewLoadingWidget = require('../ChatPreviewLoadingWidget/ChatPreviewLoadingWidget.cjs');
|
|
5
|
+
let react = require("react");
|
|
6
|
+
let react_jsx_runtime = require("react/jsx-runtime");
|
|
7
|
+
let __envive_ai_react_hooks_contexts_typesV3 = require("@envive-ai/react-hooks/contexts/typesV3");
|
|
8
|
+
let __envive_ai_react_hooks_contexts_salesAgentContext = require("@envive-ai/react-hooks/contexts/salesAgentContext");
|
|
9
|
+
let __envive_ai_react_toolkit_v3_Tokens = require("@envive-ai/react-toolkit-v3/Tokens");
|
|
10
|
+
let __envive_ai_react_hooks_hooks_ChatToggle = require("@envive-ai/react-hooks/hooks/ChatToggle");
|
|
11
|
+
let __envive_ai_react_hooks_application_models = require("@envive-ai/react-hooks/application/models");
|
|
12
|
+
let jotai = require("jotai");
|
|
13
|
+
let __envive_ai_react_hooks_atoms_chat = require("@envive-ai/react-hooks/atoms/chat");
|
|
14
|
+
let __envive_ai_react_hooks_atoms_app = require("@envive-ai/react-hooks/atoms/app");
|
|
15
|
+
let __envive_ai_react_toolkit_v3_ChatPreviewComparison = require("@envive-ai/react-toolkit-v3/ChatPreviewComparison");
|
|
16
|
+
|
|
17
|
+
//#region src/widgets/ChatPreviewComparisonWidget/ChatPreviewComparisonWidget.tsx
|
|
18
|
+
const ChatPreviewComparisonWidgetHandler = (props) => {
|
|
19
|
+
const { onTypedMessageSubmitted } = (0, __envive_ai_react_hooks_contexts_salesAgentContext.useSalesAgent)();
|
|
20
|
+
const { openChat } = (0, __envive_ai_react_hooks_hooks_ChatToggle.useChatToggle)();
|
|
21
|
+
const lastAssistantMessage = (0, jotai.useAtomValue)(__envive_ai_react_hooks_atoms_chat.lastAssistantMessageAtom);
|
|
22
|
+
const variantInfo = (0, jotai.useAtomValue)(__envive_ai_react_hooks_atoms_app.variantInfoAtom);
|
|
23
|
+
const productId = variantInfo.variant === __envive_ai_react_hooks_application_models.VariantTypeEnum.Pdp ? variantInfo.productId : void 0;
|
|
24
|
+
const { suggestions } = (0, jotai.useAtomValue)(__envive_ai_react_hooks_atoms_chat.chatAtom);
|
|
25
|
+
const promptButtonTexts = (0, react.useMemo)(() => {
|
|
26
|
+
return suggestions.map((suggestion) => suggestion.content);
|
|
27
|
+
}, [suggestions]);
|
|
28
|
+
const messageText = (0, react.useMemo)(() => require_functions.getMessageText(lastAssistantMessage), [lastAssistantMessage]);
|
|
29
|
+
const productImageUrls = (0, react.useMemo)(() => lastAssistantMessage ? require_functions.getRecentProductImageUrls(lastAssistantMessage, productId) : [], [lastAssistantMessage, productId]);
|
|
30
|
+
const images = (0, react.useMemo)(() => productImageUrls ? productImageUrls.map((url, index) => ({
|
|
31
|
+
src: url,
|
|
32
|
+
alt: `Product Image ${index + 1}`
|
|
33
|
+
})) : [], [productImageUrls]);
|
|
34
|
+
const { hardcopyContent, widgetConfig, uiConfig, isLoading, widgetConfigId } = props;
|
|
35
|
+
const chatPreviewComparisonWidgetConfig = widgetConfig;
|
|
36
|
+
const id = widgetConfig?.contentId;
|
|
37
|
+
const hardCopyContent = {
|
|
38
|
+
titleLabel: hardcopyContent?.values?.titleLabel,
|
|
39
|
+
headlineText: hardcopyContent?.values?.headlineText,
|
|
40
|
+
textFieldPlaceholderText: hardcopyContent?.values?.textFieldPlaceholderText,
|
|
41
|
+
messageText,
|
|
42
|
+
promptButtonTexts
|
|
43
|
+
};
|
|
44
|
+
const logoSrc = uiConfig?.lookAndFeel?.widgetLogoSrc;
|
|
45
|
+
const hideLogo = uiConfig?.lookAndFeel?.hideWidgetLogo;
|
|
46
|
+
const handlePromptButtonClick = (0, react.useCallback)((text) => {
|
|
47
|
+
onTypedMessageSubmitted({
|
|
48
|
+
query: text,
|
|
49
|
+
userTyped: false
|
|
50
|
+
});
|
|
51
|
+
openChat(__envive_ai_react_hooks_application_models.ChatElementDisplayLocationV3.CHAT_PREVIEW_COMPARISON_PROMPT_BUTTON);
|
|
52
|
+
}, [onTypedMessageSubmitted, openChat]);
|
|
53
|
+
const handleTextFieldClick = (0, react.useCallback)(() => {
|
|
54
|
+
openChat(__envive_ai_react_hooks_application_models.ChatElementDisplayLocationV3.CHAT_PREVIEW_COMPARISON_TEXT_FIELD);
|
|
55
|
+
}, [openChat]);
|
|
56
|
+
if (isLoading) return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_ChatPreviewLoadingWidget.ChatPreviewLoadingWidgetWithBaseWidget, {
|
|
57
|
+
widgetConfigId,
|
|
58
|
+
widgetType: __envive_ai_react_hooks_contexts_typesV3.WidgetTypeV3.ChatPreviewLoadingV3
|
|
59
|
+
});
|
|
60
|
+
const widgetStyleProps = {
|
|
61
|
+
theme: __envive_ai_react_toolkit_v3_Tokens.Theme.GLOBAL_CUSTOM,
|
|
62
|
+
variant: chatPreviewComparisonWidgetConfig?.variant,
|
|
63
|
+
hideImage: images?.length === 0 || images === void 0 ? true : chatPreviewComparisonWidgetConfig?.hideImage,
|
|
64
|
+
hideTextField: chatPreviewComparisonWidgetConfig?.hideTextField,
|
|
65
|
+
hideLogo,
|
|
66
|
+
hexCardColor: chatPreviewComparisonWidgetConfig?.hexCardColor
|
|
67
|
+
};
|
|
68
|
+
const widgetContentProps = {
|
|
69
|
+
titleLabel: hardCopyContent?.titleLabel,
|
|
70
|
+
headlineText: hardCopyContent?.headlineText,
|
|
71
|
+
messageText: hardCopyContent?.messageText,
|
|
72
|
+
promptButtonTexts: hardCopyContent?.promptButtonTexts,
|
|
73
|
+
textFieldPlaceholderText: hardCopyContent?.textFieldPlaceholderText,
|
|
74
|
+
images: images ?? [],
|
|
75
|
+
logoSrc: logoSrc ?? void 0
|
|
76
|
+
};
|
|
77
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__envive_ai_react_toolkit_v3_ChatPreviewComparison.ChatPreviewComparison, {
|
|
78
|
+
baseProps: { id },
|
|
79
|
+
widgetStyleProps,
|
|
80
|
+
widgetContentProps,
|
|
81
|
+
widgetEventProps: {
|
|
82
|
+
handlePromptButtonClick,
|
|
83
|
+
handleTextFieldClick
|
|
84
|
+
}
|
|
85
|
+
});
|
|
86
|
+
};
|
|
87
|
+
const ChatPreviewComparisonWidgetWithBaseWidget = require_withBaseWidget.withBaseWidget(ChatPreviewComparisonWidgetHandler);
|
|
88
|
+
const ChatPreviewComparisonWidget = ({ widgetConfigId }) => {
|
|
89
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(ChatPreviewComparisonWidgetWithBaseWidget, {
|
|
90
|
+
widgetConfigId,
|
|
91
|
+
widgetType: __envive_ai_react_hooks_contexts_typesV3.WidgetTypeV3.ChatPreviewComparisonV3
|
|
92
|
+
});
|
|
93
|
+
};
|
|
94
|
+
ChatPreviewComparisonWidget.displayName = "ChatPreviewComparisonWidget";
|
|
95
|
+
|
|
96
|
+
//#endregion
|
|
97
|
+
exports.ChatPreviewComparisonWidget = ChatPreviewComparisonWidget;
|
|
98
|
+
exports.ChatPreviewComparisonWidgetWithBaseWidget = ChatPreviewComparisonWidgetWithBaseWidget;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { BaseWidgetProps } from "../../hocs/withBaseWidget/types.cjs";
|
|
2
|
+
import * as react_jsx_runtime10 from "react/jsx-runtime";
|
|
3
|
+
|
|
4
|
+
//#region src/widgets/ChatPreviewComparisonWidget/ChatPreviewComparisonWidget.d.ts
|
|
5
|
+
declare const ChatPreviewComparisonWidgetWithBaseWidget: {
|
|
6
|
+
(props: BaseWidgetProps): react_jsx_runtime10.JSX.Element;
|
|
7
|
+
displayName: string;
|
|
8
|
+
};
|
|
9
|
+
interface ChatPreviewComparisonWidgetProps {
|
|
10
|
+
widgetConfigId: string;
|
|
11
|
+
}
|
|
12
|
+
declare const ChatPreviewComparisonWidget: {
|
|
13
|
+
({
|
|
14
|
+
widgetConfigId
|
|
15
|
+
}: ChatPreviewComparisonWidgetProps): react_jsx_runtime10.JSX.Element;
|
|
16
|
+
displayName: string;
|
|
17
|
+
};
|
|
18
|
+
//#endregion
|
|
19
|
+
export { ChatPreviewComparisonWidget, ChatPreviewComparisonWidgetProps, ChatPreviewComparisonWidgetWithBaseWidget };
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { BaseWidgetProps } from "../../hocs/withBaseWidget/types.js";
|
|
2
|
+
import * as react_jsx_runtime3 from "react/jsx-runtime";
|
|
3
|
+
|
|
4
|
+
//#region src/widgets/ChatPreviewComparisonWidget/ChatPreviewComparisonWidget.d.ts
|
|
5
|
+
declare const ChatPreviewComparisonWidgetWithBaseWidget: {
|
|
6
|
+
(props: BaseWidgetProps): react_jsx_runtime3.JSX.Element;
|
|
7
|
+
displayName: string;
|
|
8
|
+
};
|
|
9
|
+
interface ChatPreviewComparisonWidgetProps {
|
|
10
|
+
widgetConfigId: string;
|
|
11
|
+
}
|
|
12
|
+
declare const ChatPreviewComparisonWidget: {
|
|
13
|
+
({
|
|
14
|
+
widgetConfigId
|
|
15
|
+
}: ChatPreviewComparisonWidgetProps): react_jsx_runtime3.JSX.Element;
|
|
16
|
+
displayName: string;
|
|
17
|
+
};
|
|
18
|
+
//#endregion
|
|
19
|
+
export { ChatPreviewComparisonWidget, ChatPreviewComparisonWidgetProps, ChatPreviewComparisonWidgetWithBaseWidget };
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
import { withBaseWidget } from "../../hocs/withBaseWidget/withBaseWidget.js";
|
|
2
|
+
import { getMessageText, getRecentProductImageUrls } from "../utils/functions.js";
|
|
3
|
+
import { ChatPreviewLoadingWidgetWithBaseWidget } from "../ChatPreviewLoadingWidget/ChatPreviewLoadingWidget.js";
|
|
4
|
+
import { useCallback, useMemo } from "react";
|
|
5
|
+
import { jsx } from "react/jsx-runtime";
|
|
6
|
+
import { WidgetTypeV3 } from "@envive-ai/react-hooks/contexts/typesV3";
|
|
7
|
+
import { useSalesAgent } from "@envive-ai/react-hooks/contexts/salesAgentContext";
|
|
8
|
+
import { Theme } from "@envive-ai/react-toolkit-v3/Tokens";
|
|
9
|
+
import { useChatToggle } from "@envive-ai/react-hooks/hooks/ChatToggle";
|
|
10
|
+
import { ChatElementDisplayLocationV3, VariantTypeEnum } from "@envive-ai/react-hooks/application/models";
|
|
11
|
+
import { useAtomValue } from "jotai";
|
|
12
|
+
import { chatAtom, lastAssistantMessageAtom } from "@envive-ai/react-hooks/atoms/chat";
|
|
13
|
+
import { variantInfoAtom } from "@envive-ai/react-hooks/atoms/app";
|
|
14
|
+
import { ChatPreviewComparison } from "@envive-ai/react-toolkit-v3/ChatPreviewComparison";
|
|
15
|
+
|
|
16
|
+
//#region src/widgets/ChatPreviewComparisonWidget/ChatPreviewComparisonWidget.tsx
|
|
17
|
+
const ChatPreviewComparisonWidgetHandler = (props) => {
|
|
18
|
+
const { onTypedMessageSubmitted } = useSalesAgent();
|
|
19
|
+
const { openChat } = useChatToggle();
|
|
20
|
+
const lastAssistantMessage = useAtomValue(lastAssistantMessageAtom);
|
|
21
|
+
const variantInfo = useAtomValue(variantInfoAtom);
|
|
22
|
+
const productId = variantInfo.variant === VariantTypeEnum.Pdp ? variantInfo.productId : void 0;
|
|
23
|
+
const { suggestions } = useAtomValue(chatAtom);
|
|
24
|
+
const promptButtonTexts = useMemo(() => {
|
|
25
|
+
return suggestions.map((suggestion) => suggestion.content);
|
|
26
|
+
}, [suggestions]);
|
|
27
|
+
const messageText = useMemo(() => getMessageText(lastAssistantMessage), [lastAssistantMessage]);
|
|
28
|
+
const productImageUrls = useMemo(() => lastAssistantMessage ? getRecentProductImageUrls(lastAssistantMessage, productId) : [], [lastAssistantMessage, productId]);
|
|
29
|
+
const images = useMemo(() => productImageUrls ? productImageUrls.map((url, index) => ({
|
|
30
|
+
src: url,
|
|
31
|
+
alt: `Product Image ${index + 1}`
|
|
32
|
+
})) : [], [productImageUrls]);
|
|
33
|
+
const { hardcopyContent, widgetConfig, uiConfig, isLoading, widgetConfigId } = props;
|
|
34
|
+
const chatPreviewComparisonWidgetConfig = widgetConfig;
|
|
35
|
+
const id = widgetConfig?.contentId;
|
|
36
|
+
const hardCopyContent = {
|
|
37
|
+
titleLabel: hardcopyContent?.values?.titleLabel,
|
|
38
|
+
headlineText: hardcopyContent?.values?.headlineText,
|
|
39
|
+
textFieldPlaceholderText: hardcopyContent?.values?.textFieldPlaceholderText,
|
|
40
|
+
messageText,
|
|
41
|
+
promptButtonTexts
|
|
42
|
+
};
|
|
43
|
+
const logoSrc = uiConfig?.lookAndFeel?.widgetLogoSrc;
|
|
44
|
+
const hideLogo = uiConfig?.lookAndFeel?.hideWidgetLogo;
|
|
45
|
+
const handlePromptButtonClick = useCallback((text) => {
|
|
46
|
+
onTypedMessageSubmitted({
|
|
47
|
+
query: text,
|
|
48
|
+
userTyped: false
|
|
49
|
+
});
|
|
50
|
+
openChat(ChatElementDisplayLocationV3.CHAT_PREVIEW_COMPARISON_PROMPT_BUTTON);
|
|
51
|
+
}, [onTypedMessageSubmitted, openChat]);
|
|
52
|
+
const handleTextFieldClick = useCallback(() => {
|
|
53
|
+
openChat(ChatElementDisplayLocationV3.CHAT_PREVIEW_COMPARISON_TEXT_FIELD);
|
|
54
|
+
}, [openChat]);
|
|
55
|
+
if (isLoading) return /* @__PURE__ */ jsx(ChatPreviewLoadingWidgetWithBaseWidget, {
|
|
56
|
+
widgetConfigId,
|
|
57
|
+
widgetType: WidgetTypeV3.ChatPreviewLoadingV3
|
|
58
|
+
});
|
|
59
|
+
const widgetStyleProps = {
|
|
60
|
+
theme: Theme.GLOBAL_CUSTOM,
|
|
61
|
+
variant: chatPreviewComparisonWidgetConfig?.variant,
|
|
62
|
+
hideImage: images?.length === 0 || images === void 0 ? true : chatPreviewComparisonWidgetConfig?.hideImage,
|
|
63
|
+
hideTextField: chatPreviewComparisonWidgetConfig?.hideTextField,
|
|
64
|
+
hideLogo,
|
|
65
|
+
hexCardColor: chatPreviewComparisonWidgetConfig?.hexCardColor
|
|
66
|
+
};
|
|
67
|
+
const widgetContentProps = {
|
|
68
|
+
titleLabel: hardCopyContent?.titleLabel,
|
|
69
|
+
headlineText: hardCopyContent?.headlineText,
|
|
70
|
+
messageText: hardCopyContent?.messageText,
|
|
71
|
+
promptButtonTexts: hardCopyContent?.promptButtonTexts,
|
|
72
|
+
textFieldPlaceholderText: hardCopyContent?.textFieldPlaceholderText,
|
|
73
|
+
images: images ?? [],
|
|
74
|
+
logoSrc: logoSrc ?? void 0
|
|
75
|
+
};
|
|
76
|
+
return /* @__PURE__ */ jsx(ChatPreviewComparison, {
|
|
77
|
+
baseProps: { id },
|
|
78
|
+
widgetStyleProps,
|
|
79
|
+
widgetContentProps,
|
|
80
|
+
widgetEventProps: {
|
|
81
|
+
handlePromptButtonClick,
|
|
82
|
+
handleTextFieldClick
|
|
83
|
+
}
|
|
84
|
+
});
|
|
85
|
+
};
|
|
86
|
+
const ChatPreviewComparisonWidgetWithBaseWidget = withBaseWidget(ChatPreviewComparisonWidgetHandler);
|
|
87
|
+
const ChatPreviewComparisonWidget = ({ widgetConfigId }) => {
|
|
88
|
+
return /* @__PURE__ */ jsx(ChatPreviewComparisonWidgetWithBaseWidget, {
|
|
89
|
+
widgetConfigId,
|
|
90
|
+
widgetType: WidgetTypeV3.ChatPreviewComparisonV3
|
|
91
|
+
});
|
|
92
|
+
};
|
|
93
|
+
ChatPreviewComparisonWidget.displayName = "ChatPreviewComparisonWidget";
|
|
94
|
+
|
|
95
|
+
//#endregion
|
|
96
|
+
export { ChatPreviewComparisonWidget, ChatPreviewComparisonWidgetWithBaseWidget };
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
const require_ChatPreviewComparisonWidget = require('./ChatPreviewComparisonWidget.cjs');
|
|
2
|
+
|
|
3
|
+
exports.ChatPreviewComparisonWidget = require_ChatPreviewComparisonWidget.ChatPreviewComparisonWidget;
|
|
4
|
+
exports.ChatPreviewComparisonWidgetWithBaseWidget = require_ChatPreviewComparisonWidget.ChatPreviewComparisonWidgetWithBaseWidget;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { ChatPreviewComparisonWidget, ChatPreviewComparisonWidgetProps, ChatPreviewComparisonWidgetWithBaseWidget } from "./ChatPreviewComparisonWidget.cjs";
|
|
2
|
+
export { ChatPreviewComparisonWidget, type ChatPreviewComparisonWidgetProps, ChatPreviewComparisonWidgetWithBaseWidget };
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { ChatPreviewComparisonWidget, ChatPreviewComparisonWidgetProps, ChatPreviewComparisonWidgetWithBaseWidget } from "./ChatPreviewComparisonWidget.js";
|
|
2
|
+
export { ChatPreviewComparisonWidget, type ChatPreviewComparisonWidgetProps, ChatPreviewComparisonWidgetWithBaseWidget };
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
const require_rolldown_runtime = require('../../_virtual/rolldown_runtime.cjs');
|
|
2
|
+
const require_withBaseWidget = require('../../hocs/withBaseWidget/withBaseWidget.cjs');
|
|
3
|
+
const require_PromptCarouselWidget = require('../PromptCarouselWidget/PromptCarouselWidget.cjs');
|
|
4
|
+
let react_jsx_runtime = require("react/jsx-runtime");
|
|
5
|
+
let __envive_ai_react_hooks_contexts_typesV3 = require("@envive-ai/react-hooks/contexts/typesV3");
|
|
6
|
+
let jotai = require("jotai");
|
|
7
|
+
let __envive_ai_react_toolkit_v3_ChatPreviewLoading = require("@envive-ai/react-toolkit-v3/ChatPreviewLoading");
|
|
8
|
+
let __envive_ai_react_hooks_atoms_widget = require("@envive-ai/react-hooks/atoms/widget");
|
|
9
|
+
|
|
10
|
+
//#region src/widgets/ChatPreviewLoadingWidget/ChatPreviewLoadingWidget.tsx
|
|
11
|
+
const ChatPreviewLoadingWidgetHandler = (props) => {
|
|
12
|
+
const { widgetConfig, isLoading, widgetConfigId, hardcopyContent, uiConfig } = props;
|
|
13
|
+
const chatPreviewLoadingWidgetConfig = widgetConfig;
|
|
14
|
+
const id = widgetConfig?.contentId;
|
|
15
|
+
const chatPreviewLoadingData = (0, jotai.useAtomValue)(__envive_ai_react_hooks_atoms_widget.chatPreviewLoadingDataAtom)[widgetConfigId] ?? void 0;
|
|
16
|
+
const isCacheEmpty = !chatPreviewLoadingData || Object.values(chatPreviewLoadingData).every((value) => value === void 0) || Object.keys(chatPreviewLoadingData).length === 0;
|
|
17
|
+
if (isLoading && isCacheEmpty) return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__envive_ai_react_toolkit_v3_ChatPreviewLoading.ChatPreviewLoading, { fullIsLoading: true });
|
|
18
|
+
const titleLabel = hardcopyContent?.values?.titleLabel ?? chatPreviewLoadingData?.titleLabel;
|
|
19
|
+
const textFieldPlaceholder = hardcopyContent?.values?.textFieldPlaceholderText ?? chatPreviewLoadingData?.textFieldPlaceholder;
|
|
20
|
+
const hideLogo = uiConfig?.lookAndFeel?.hideWidgetLogo ?? chatPreviewLoadingData?.hideLogo;
|
|
21
|
+
const logoSrc = uiConfig?.lookAndFeel?.widgetLogoSrc ?? chatPreviewLoadingData?.logoSrc;
|
|
22
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__envive_ai_react_toolkit_v3_ChatPreviewLoading.ChatPreviewLoading, {
|
|
23
|
+
id,
|
|
24
|
+
variant: chatPreviewLoadingWidgetConfig?.variant ?? chatPreviewLoadingData?.variant,
|
|
25
|
+
hexCardColor: chatPreviewLoadingWidgetConfig?.hexCardColor ?? chatPreviewLoadingData?.hexCardColor,
|
|
26
|
+
hideTextField: chatPreviewLoadingWidgetConfig?.hideTextField ?? chatPreviewLoadingData?.hideTextField,
|
|
27
|
+
textFieldPlaceholder,
|
|
28
|
+
hideLogo,
|
|
29
|
+
logoSrc,
|
|
30
|
+
titleLabel
|
|
31
|
+
});
|
|
32
|
+
};
|
|
33
|
+
const ChatPreviewLoadingWidgetWithBaseWidget = require_withBaseWidget.withBaseWidget(ChatPreviewLoadingWidgetHandler);
|
|
34
|
+
const ChatPreviewLoadingWidget = ({ widgetConfigId }) => {
|
|
35
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(ChatPreviewLoadingWidgetWithBaseWidget, {
|
|
36
|
+
widgetConfigId,
|
|
37
|
+
widgetType: __envive_ai_react_hooks_contexts_typesV3.WidgetTypeV3.ChatPreviewLoadingV3
|
|
38
|
+
});
|
|
39
|
+
};
|
|
40
|
+
require_PromptCarouselWidget.PromptCarouselWidget.displayName = "PromptCarouselWidget";
|
|
41
|
+
|
|
42
|
+
//#endregion
|
|
43
|
+
exports.ChatPreviewLoadingWidget = ChatPreviewLoadingWidget;
|
|
44
|
+
exports.ChatPreviewLoadingWidgetWithBaseWidget = ChatPreviewLoadingWidgetWithBaseWidget;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { BaseWidgetProps } from "../../hocs/withBaseWidget/types.cjs";
|
|
2
|
+
import * as react_jsx_runtime5 from "react/jsx-runtime";
|
|
3
|
+
|
|
4
|
+
//#region src/widgets/ChatPreviewLoadingWidget/ChatPreviewLoadingWidget.d.ts
|
|
5
|
+
declare const ChatPreviewLoadingWidgetWithBaseWidget: {
|
|
6
|
+
(props: BaseWidgetProps): react_jsx_runtime5.JSX.Element;
|
|
7
|
+
displayName: string;
|
|
8
|
+
};
|
|
9
|
+
interface ChatPreviewLoadingWidgetProps {
|
|
10
|
+
widgetConfigId: string;
|
|
11
|
+
}
|
|
12
|
+
declare const ChatPreviewLoadingWidget: ({
|
|
13
|
+
widgetConfigId
|
|
14
|
+
}: ChatPreviewLoadingWidgetProps) => react_jsx_runtime5.JSX.Element;
|
|
15
|
+
//#endregion
|
|
16
|
+
export { ChatPreviewLoadingWidget, ChatPreviewLoadingWidgetProps, ChatPreviewLoadingWidgetWithBaseWidget };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { BaseWidgetProps } from "../../hocs/withBaseWidget/types.js";
|
|
2
|
+
import * as react_jsx_runtime14 from "react/jsx-runtime";
|
|
3
|
+
|
|
4
|
+
//#region src/widgets/ChatPreviewLoadingWidget/ChatPreviewLoadingWidget.d.ts
|
|
5
|
+
declare const ChatPreviewLoadingWidgetWithBaseWidget: {
|
|
6
|
+
(props: BaseWidgetProps): react_jsx_runtime14.JSX.Element;
|
|
7
|
+
displayName: string;
|
|
8
|
+
};
|
|
9
|
+
interface ChatPreviewLoadingWidgetProps {
|
|
10
|
+
widgetConfigId: string;
|
|
11
|
+
}
|
|
12
|
+
declare const ChatPreviewLoadingWidget: ({
|
|
13
|
+
widgetConfigId
|
|
14
|
+
}: ChatPreviewLoadingWidgetProps) => react_jsx_runtime14.JSX.Element;
|
|
15
|
+
//#endregion
|
|
16
|
+
export { ChatPreviewLoadingWidget, ChatPreviewLoadingWidgetProps, ChatPreviewLoadingWidgetWithBaseWidget };
|