@envive-ai/react-widgets-v3 0.3.14 → 0.3.15-alpha.1
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/debug/chatEmbed.cjs +1 -1
- package/dist/debug/chatEmbed.js +1 -1
- package/dist/debug/reportIssue.cjs +1 -1
- package/dist/debug/reportIssue.js +1 -1
- package/dist/hocs/withBaseWidget/types.d.cts +3 -3
- package/dist/hocs/withBaseWidget/types.d.ts +5 -3
- package/dist/hocs/withBaseWidget/withBaseWidget.d.cts +2 -2
- package/dist/hocs/withBaseWidget/withBaseWidget.d.ts +2 -2
- package/dist/hooks/dist/application/models/api/widgetText.d.cts +8 -0
- package/dist/hooks/dist/contexts/hardcopyContext/hardcopyContext.d.cts +12 -0
- package/dist/hooks/dist/contexts/types.d.cts +38 -0
- package/dist/hooks/dist/contexts/typesV3.d.cts +230 -0
- package/dist/hooks/dist/services/amplitudeService/eventNames.d.cts +43 -0
- package/dist/hooks/dist/types/customerService.d.cts +21 -0
- package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/models/WidgetType.cjs +1 -0
- package/dist/packages/hooks/dist/application/models/api/orgConfigResults.d.ts +1 -0
- package/dist/packages/hooks/dist/application/models/api/widgetText.d.ts +8 -0
- package/dist/packages/hooks/dist/application/models/frontendConfig.d.ts +1 -0
- package/dist/packages/hooks/dist/contexts/amplitudeContext/amplitudeContext.d.ts +2 -0
- package/dist/packages/hooks/dist/contexts/amplitudeContext/index.d.ts +2 -0
- package/dist/packages/hooks/dist/contexts/featureFlagServiceContext/featureFlagServiceContext.d.ts +2 -0
- package/dist/packages/hooks/dist/contexts/hardcopyContext/hardcopyContext.d.ts +14 -0
- package/dist/packages/hooks/dist/contexts/hardcopyContext/index.d.ts +1 -0
- package/dist/packages/hooks/dist/contexts/types.d.ts +42 -0
- package/dist/packages/hooks/dist/contexts/typesV3.d.ts +230 -0
- package/dist/packages/hooks/dist/services/amplitudeService/amplitudeService.d.ts +1 -0
- package/dist/packages/hooks/dist/services/amplitudeService/eventNames.d.ts +43 -0
- package/dist/packages/hooks/dist/types/customerService.d.ts +21 -0
- package/dist/packages/icons/dist/IconCloseVariant.cjs +5 -6
- package/dist/packages/icons/dist/IconCloseVariant.js +4 -6
- package/dist/packages/widgets/dist/SearchResults/SearchResults.d.ts +4 -3
- package/dist/packages/widgets/dist/SearchResults/SearchResultsWidget.d.ts +2 -2
- package/dist/packages/widgets/dist/SearchZeroState/SearchZeroStateWidget.d.ts +2 -2
- package/dist/packages/widgets/dist/SearchZeroState/index.d.ts +2 -1
- package/dist/packages/widgets/dist/SearchZeroState/types.d.ts +2 -2
- package/dist/packages/widgets/dist/SuggestionBar/SuggestionBar.d.ts +3 -3
- package/dist/packages/widgets/dist/SuggestionButtonContainer/index.d.ts +2 -0
- package/dist/packages/widgets/dist/SuggestionButtonContainer/types.d.ts +3 -2
- package/dist/packages/widgets/dist/packages/hooks/dist/application/models/api/response.d.ts +14 -0
- package/dist/packages/widgets/dist/packages/hooks/dist/application/models/api/search.d.ts +15 -0
- package/dist/packages/widgets/dist/packages/hooks/dist/application/models/utilityTypes/camelCase.d.ts +73 -0
- package/dist/packages/widgets/dist/packages/hooks/dist/application/models/utilityTypes/camelCasedPropertiesDeep.d.ts +61 -0
- package/dist/packages/widgets/dist/packages/hooks/dist/application/models/utilityTypes/internal.d.ts +25 -0
- package/dist/packages/widgets/dist/packages/hooks/dist/application/models/utilityTypes/splitWords.d.ts +35 -0
- package/dist/packages/widgets/dist/packages/hooks/dist/application/models/utilityTypes/trim.d.ts +32 -0
- package/dist/packages/widgets/dist/packages/hooks/dist/application/models/utilityTypes/unknownArray.d.ts +32 -0
- package/dist/packages/widgets/dist/packages/hooks/dist/application/models/variantInfo/variantInfo.d.ts +1 -0
- package/dist/packages/widgets/dist/packages/hooks/dist/atoms/search/searchAPI.d.ts +15 -0
- package/dist/packages/widgets/dist/packages/hooks/dist/contexts/hardcopyContext/hardcopyContext.d.ts +1 -0
- package/dist/packages/widgets/dist/packages/hooks/dist/contexts/types.d.ts +63 -0
- package/dist/packages/widgets/dist/packages/hooks/dist/hooks/Search/useSearch.d.ts +60 -0
- package/dist/packages/widgets/dist/packages/hooks/dist/hooks/utils.d.ts +13 -0
- package/dist/packages/widgets/dist/packages/hooks/dist/types/OrgInfo.d.ts +1 -0
- package/dist/packages/widgets/dist/packages/hooks/dist/types/index.d.ts +1 -0
- package/dist/packages/widgets/dist/packages/hooks/dist/types/search-filter-types.d.ts +28 -0
- package/dist/packages/widgets/dist/packages/hooks/dist/types/test-types.d.ts +10 -0
- package/dist/src/CXIntegration/hooks/useUnifiedCXButton.d.ts +10 -0
- package/dist/src/CXIntegration/hooks/useUnifiedCXButton.js +29 -0
- package/dist/src/CXIntegration/implementations/useDefaultUnifiedCXButton.d.ts +2 -0
- package/dist/src/CXIntegration/implementations/useDefaultUnifiedCXButton.js +6 -0
- package/dist/src/CXIntegration/implementations/useEightByEightUnifiedCXButton.d.ts +5 -0
- package/dist/src/CXIntegration/implementations/useEightByEightUnifiedCXButton.js +63 -0
- package/dist/src/CXIntegration/implementations/useGladlyUnifiedCXButton.d.ts +5 -0
- package/dist/src/CXIntegration/implementations/useGladlyUnifiedCXButton.js +23 -0
- package/dist/src/CXIntegration/implementations/useGorgiasUnifiedCXButton.d.ts +5 -0
- package/dist/src/CXIntegration/implementations/useGorgiasUnifiedCXButton.js +54 -0
- package/dist/src/CXIntegration/implementations/useGrooveUnifiedCXButton.d.ts +18 -0
- package/dist/src/CXIntegration/implementations/useGrooveUnifiedCXButton.js +48 -0
- package/dist/src/CXIntegration/implementations/useHelpScoutUnifiedCXButton.d.ts +5 -0
- package/dist/src/CXIntegration/implementations/useHelpScoutUnifiedCXButton.js +84 -0
- package/dist/src/CXIntegration/implementations/useKustomerUnifiedCXButton.d.ts +5 -0
- package/dist/src/CXIntegration/implementations/useKustomerUnifiedCXButton.js +86 -0
- package/dist/src/CXIntegration/implementations/useReDoUnifiedCXButton.d.ts +5 -0
- package/dist/src/CXIntegration/implementations/useReDoUnifiedCXButton.js +59 -0
- package/dist/src/CXIntegration/implementations/useRichpanelUnifiedCXButton.d.ts +5 -0
- package/dist/src/CXIntegration/implementations/useRichpanelUnifiedCXButton.js +62 -0
- package/dist/src/CXIntegration/implementations/useShopifyChatUnifiedCXButton.d.ts +5 -0
- package/dist/src/CXIntegration/implementations/useShopifyChatUnifiedCXButton.js +49 -0
- package/dist/src/CXIntegration/implementations/useTalkdeskUnifiedCXButton.d.ts +5 -0
- package/dist/src/CXIntegration/implementations/useTalkdeskUnifiedCXButton.js +77 -0
- package/dist/src/CXIntegration/implementations/useTidioUnifiedCXButton.d.ts +13 -0
- package/dist/src/CXIntegration/implementations/useTidioUnifiedCXButton.js +20 -0
- package/dist/src/CXIntegration/implementations/useZendeskUnifiedCXButton.d.ts +5 -0
- package/dist/src/CXIntegration/implementations/useZendeskUnifiedCXButton.js +55 -0
- package/dist/src/CXIntegration/implementations/useZowieUnifiedCXButton.d.ts +13 -0
- package/dist/src/CXIntegration/implementations/useZowieUnifiedCXButton.js +20 -0
- package/dist/src/CXIntegration/types.d.ts +26 -0
- package/dist/src/CXIntegration/types.js +17 -0
- package/dist/src/CXIntegration/utils/functions.d.ts +2 -0
- package/dist/src/CXIntegration/utils/functions.js +57 -0
- package/dist/src/debug/GenericSelect.d.ts +11 -0
- package/dist/src/debug/GenericSelect.js +151 -0
- package/dist/src/debug/MessageContent.d.ts +4 -0
- package/dist/src/debug/MessageContent.js +87 -0
- package/dist/src/debug/chatEmbed.d.ts +2 -0
- package/dist/src/debug/chatEmbed.js +58 -0
- package/dist/src/debug/debugBar.d.ts +1 -0
- package/dist/src/debug/debugBar.js +9 -0
- package/dist/src/debug/reportIssue.d.ts +1 -0
- package/dist/src/debug/reportIssue.js +322 -0
- package/dist/src/hocs/withBaseWidget/__tests__/withBaseWidget.test.d.ts +1 -0
- package/dist/src/hocs/withBaseWidget/__tests__/withBaseWidget.test.js +452 -0
- package/dist/src/hocs/withBaseWidget/index.d.ts +2 -0
- package/dist/src/hocs/withBaseWidget/index.js +1 -0
- package/dist/src/hocs/withBaseWidget/types.d.ts +33 -0
- package/dist/src/hocs/withBaseWidget/types.js +0 -0
- package/dist/src/hocs/withBaseWidget/withBaseWidget.d.ts +5 -0
- package/dist/src/hocs/withBaseWidget/withBaseWidget.js +80 -0
- package/dist/src/stories/FloatingChatWidget.stories.d.ts +25 -0
- package/dist/src/stories/FloatingChatWidget.stories.js +44 -0
- package/dist/src/stories/FullPageSalesAgentWidget.stories.d.ts +31 -0
- package/dist/src/stories/FullPageSalesAgentWidget.stories.js +51 -0
- package/dist/src/stories/ProductCardWidget.stories.d.ts +31 -0
- package/dist/src/stories/ProductCardWidget.stories.js +44 -0
- package/dist/src/stories/PromptButtonCarouselWithImageWidget.stories.d.ts +31 -0
- package/dist/src/stories/PromptButtonCarouselWithImageWidget.stories.js +40 -0
- package/dist/src/stories/PromptCarouselWidget.stories.d.ts +31 -0
- package/dist/src/stories/PromptCarouselWidget.stories.js +40 -0
- package/dist/src/stories/SalesAgentTest/SalesAgentTest.d.ts +1 -0
- package/dist/src/stories/SalesAgentTest/SalesAgentTest.js +40 -0
- package/dist/src/stories/SalesAgentTest/SalesAgentTest.stories.d.ts +12 -0
- package/dist/src/stories/SalesAgentTest/SalesAgentTest.stories.js +12 -0
- package/dist/src/stories/SalesAgentTest/index.d.ts +0 -0
- package/dist/src/stories/SalesAgentTest/index.js +0 -0
- package/dist/src/stories/SearchResults.stories.d.ts +6 -0
- package/dist/src/stories/SearchResults.stories.js +23 -0
- package/dist/src/stories/SearchZeroState.stories.d.ts +38 -0
- package/dist/src/stories/SearchZeroState.stories.js +42 -0
- package/dist/src/stories/SocialProofFlowWidget.stories.d.ts +35 -0
- package/dist/src/stories/SocialProofFlowWidget.stories.js +60 -0
- package/dist/src/stories/SuggestionBar.stories.d.ts +7 -0
- package/dist/src/stories/SuggestionBar.stories.js +36 -0
- package/dist/src/stories/TitledPromptCarouselWidget.stories.d.ts +32 -0
- package/dist/src/stories/TitledPromptCarouselWidget.stories.js +55 -0
- package/dist/src/stories/TypingAnimationFlowWidget.stories.d.ts +34 -0
- package/dist/src/stories/TypingAnimationFlowWidget.stories.js +51 -0
- package/dist/src/widgets/ChatPreviewComparisonWidget/ChatPreviewComparisonWidget.d.ts +12 -0
- package/dist/src/widgets/ChatPreviewComparisonWidget/ChatPreviewComparisonWidget.js +112 -0
- package/dist/src/widgets/ChatPreviewComparisonWidget/index.d.ts +3 -0
- package/dist/src/widgets/ChatPreviewComparisonWidget/index.js +2 -0
- package/dist/src/widgets/ChatPreviewLoadingWidget/ChatPreviewLoadingWidget.d.ts +9 -0
- package/dist/src/widgets/ChatPreviewLoadingWidget/ChatPreviewLoadingWidget.js +34 -0
- package/dist/src/widgets/ChatPreviewLoadingWidget/index.d.ts +3 -0
- package/dist/src/widgets/ChatPreviewLoadingWidget/index.js +2 -0
- package/dist/src/widgets/ChatPreviewWidget/ChatPreviewWidget.d.ts +12 -0
- package/dist/src/widgets/ChatPreviewWidget/ChatPreviewWidget.js +111 -0
- package/dist/src/widgets/ChatPreviewWidget/__tests__/ChatPreviewWidget.test.d.ts +1 -0
- package/dist/src/widgets/ChatPreviewWidget/__tests__/ChatPreviewWidget.test.js +97 -0
- package/dist/src/widgets/ChatPreviewWidget/index.d.ts +3 -0
- package/dist/src/widgets/ChatPreviewWidget/index.js +2 -0
- package/dist/src/widgets/FloatingChatWidget/FloatingChatOverlay.d.ts +14 -0
- package/dist/src/widgets/FloatingChatWidget/FloatingChatOverlay.js +44 -0
- package/dist/src/widgets/FloatingChatWidget/FloatingChatWidget.d.ts +8 -0
- package/dist/src/widgets/FloatingChatWidget/FloatingChatWidget.js +134 -0
- package/dist/src/widgets/FloatingChatWidget/__tests__/FloatingChatWidget.test.d.ts +1 -0
- package/dist/src/widgets/FloatingChatWidget/__tests__/FloatingChatWidget.test.js +100 -0
- package/dist/src/widgets/FloatingChatWidget/constants.d.ts +1 -0
- package/dist/src/widgets/FloatingChatWidget/constants.js +1 -0
- package/dist/src/widgets/FloatingChatWidget/hooks/useAutoPopup.d.ts +4 -0
- package/dist/src/widgets/FloatingChatWidget/hooks/useAutoPopup.js +51 -0
- package/dist/src/widgets/FloatingChatWidget/hooks/useFloatingButtonVisibility.d.ts +11 -0
- package/dist/src/widgets/FloatingChatWidget/hooks/useFloatingButtonVisibility.js +21 -0
- package/dist/src/widgets/FloatingChatWidget/index.d.ts +4 -0
- package/dist/src/widgets/FloatingChatWidget/index.js +3 -0
- package/dist/src/widgets/FullPageSalesAgentWidget/FullPageSalesAgentWidget.d.ts +12 -0
- package/dist/src/widgets/FullPageSalesAgentWidget/FullPageSalesAgentWidget.js +14 -0
- package/dist/src/widgets/FullPageSalesAgentWidget/index.d.ts +1 -0
- package/dist/src/widgets/FullPageSalesAgentWidget/index.js +1 -0
- package/dist/src/widgets/ProductCardWidget/ProductCardWidget.d.ts +7 -0
- package/dist/src/widgets/ProductCardWidget/ProductCardWidget.js +94 -0
- package/dist/src/widgets/ProductCardWidget/__tests__/ProductCardWidget.test.d.ts +1 -0
- package/dist/src/widgets/ProductCardWidget/__tests__/ProductCardWidget.test.js +106 -0
- package/dist/src/widgets/ProductCardWidget/index.d.ts +2 -0
- package/dist/src/widgets/ProductCardWidget/index.js +1 -0
- package/dist/src/widgets/PromptButtonCarouselWithImageWidget/PromptButtonCarouselWithImageWidget.d.ts +12 -0
- package/dist/src/widgets/PromptButtonCarouselWithImageWidget/PromptButtonCarouselWithImageWidget.js +88 -0
- package/dist/src/widgets/PromptButtonCarouselWithImageWidget/__tests__/PromptButtonCarouselWithImageWidget.test.d.ts +1 -0
- package/dist/src/widgets/PromptButtonCarouselWithImageWidget/__tests__/PromptButtonCarouselWithImageWidget.test.js +132 -0
- package/dist/src/widgets/PromptButtonCarouselWithImageWidget/index.d.ts +2 -0
- package/dist/src/widgets/PromptButtonCarouselWithImageWidget/index.js +2 -0
- package/dist/src/widgets/PromptCarouselWidget/PromptCarouselWidget.d.ts +7 -0
- package/dist/src/widgets/PromptCarouselWidget/PromptCarouselWidget.js +74 -0
- package/dist/src/widgets/PromptCarouselWidget/__tests__/PromptCarouselWidget.test.d.ts +1 -0
- package/dist/src/widgets/PromptCarouselWidget/__tests__/PromptCarouselWidget.test.js +106 -0
- package/dist/src/widgets/PromptCarouselWidget/index.d.ts +2 -0
- package/dist/src/widgets/PromptCarouselWidget/index.js +1 -0
- package/dist/src/widgets/SocialProofFlowWidget/SocialProofFlowWidget.d.ts +7 -0
- package/dist/src/widgets/SocialProofFlowWidget/SocialProofFlowWidget.js +25 -0
- package/dist/src/widgets/SocialProofFlowWidget/index.d.ts +3 -0
- package/dist/src/widgets/SocialProofFlowWidget/index.js +2 -0
- package/dist/src/widgets/SocialProofWidget/SocialProofWidget.d.ts +12 -0
- package/dist/src/widgets/SocialProofWidget/SocialProofWidget.js +203 -0
- package/dist/src/widgets/SocialProofWidget/__tests__/SocialProofWidget.test.d.ts +1 -0
- package/dist/src/widgets/SocialProofWidget/__tests__/SocialProofWidget.test.js +135 -0
- package/dist/src/widgets/SocialProofWidget/index.d.ts +2 -0
- package/dist/src/widgets/SocialProofWidget/index.js +1 -0
- package/dist/src/widgets/TitledPromptCarouselWidget/TitledPromptCarouselWidget.d.ts +7 -0
- package/dist/src/widgets/TitledPromptCarouselWidget/TitledPromptCarouselWidget.js +75 -0
- package/dist/src/widgets/TitledPromptCarouselWidget/__tests__/TitledPromptCarouselWidget.test.d.ts +1 -0
- package/dist/src/widgets/TitledPromptCarouselWidget/__tests__/TitledPromptCarouselWidget.test.js +106 -0
- package/dist/src/widgets/TitledPromptCarouselWidget/index.d.ts +2 -0
- package/dist/src/widgets/TitledPromptCarouselWidget/index.js +1 -0
- package/dist/src/widgets/TypingAnimationFlowWidget/TypingAnimationFlowWidget.d.ts +7 -0
- package/dist/src/widgets/TypingAnimationFlowWidget/TypingAnimationFlowWidget.js +25 -0
- package/dist/src/widgets/TypingAnimationFlowWidget/index.d.ts +3 -0
- package/dist/src/widgets/TypingAnimationFlowWidget/index.js +2 -0
- package/dist/src/widgets/TypingAnimationWidget/TypingAnimationWidget.d.ts +12 -0
- package/dist/src/widgets/TypingAnimationWidget/TypingAnimationWidget.js +126 -0
- package/dist/src/widgets/TypingAnimationWidget/__tests__/TypingAnimationWidget.test.d.ts +1 -0
- package/dist/src/widgets/TypingAnimationWidget/__tests__/TypingAnimationWidget.test.js +118 -0
- package/dist/src/widgets/TypingAnimationWidget/index.d.ts +2 -0
- package/dist/src/widgets/TypingAnimationWidget/index.js +1 -0
- package/dist/src/widgets/__tests__/testUtils.d.ts +60 -0
- package/dist/src/widgets/__tests__/testUtils.js +46 -0
- package/dist/src/widgets/__tests__/trackEventCanary.test.d.ts +1 -0
- package/dist/src/widgets/__tests__/trackEventCanary.test.js +37 -0
- package/dist/src/widgets/hooks/useGetWidgetStatus.d.ts +7 -0
- package/dist/src/widgets/hooks/useGetWidgetStatus.js +17 -0
- package/dist/src/widgets/utils/functions.d.ts +16 -0
- package/dist/src/widgets/utils/functions.js +87 -0
- package/dist/src/widgets-v2/SearchResults/index.d.ts +2 -0
- package/dist/src/widgets-v2/SearchResults/index.js +2 -0
- package/dist/src/widgets-v2/SearchZeroState/index.d.ts +2 -0
- package/dist/src/widgets-v2/SearchZeroState/index.js +2 -0
- package/dist/src/widgets-v2/SuggestionBar/index.d.ts +2 -0
- package/dist/src/widgets-v2/SuggestionBar/index.js +2 -0
- package/dist/src/widgets-v2/SuggestionButtonContainer/index.d.ts +2 -0
- package/dist/src/widgets-v2/SuggestionButtonContainer/index.js +2 -0
- package/dist/tsdown.config.d.ts +2 -0
- package/dist/tsdown.config.js +12 -0
- package/dist/widgets/ChatPreviewComparisonWidget/ChatPreviewComparisonWidget.cjs +36 -5
- package/dist/widgets/ChatPreviewComparisonWidget/ChatPreviewComparisonWidget.d.ts +3 -3
- package/dist/widgets/ChatPreviewComparisonWidget/ChatPreviewComparisonWidget.js +36 -5
- package/dist/widgets/ChatPreviewLoadingWidget/ChatPreviewLoadingWidget.d.cts +3 -3
- package/dist/widgets/ChatPreviewLoadingWidget/ChatPreviewLoadingWidget.d.ts +3 -3
- package/dist/widgets/ChatPreviewWidget/ChatPreviewWidget.cjs +34 -4
- package/dist/widgets/ChatPreviewWidget/ChatPreviewWidget.d.cts +3 -3
- package/dist/widgets/ChatPreviewWidget/ChatPreviewWidget.d.ts +3 -3
- package/dist/widgets/ChatPreviewWidget/ChatPreviewWidget.js +35 -5
- package/dist/widgets/FloatingChatWidget/FloatingChatOverlay.cjs +0 -2
- package/dist/widgets/FloatingChatWidget/FloatingChatOverlay.js +0 -2
- package/dist/widgets/FloatingChatWidget/FloatingChatWidget.cjs +31 -7
- package/dist/widgets/FloatingChatWidget/FloatingChatWidget.d.cts +2 -2
- package/dist/widgets/FloatingChatWidget/FloatingChatWidget.js +32 -8
- package/dist/widgets/FullPageSalesAgentWidget/FullPageSalesAgentWidget.d.cts +2 -2
- package/dist/widgets/FullPageSalesAgentWidget/FullPageSalesAgentWidget.d.ts +2 -2
- package/dist/widgets/ProductCardWidget/ProductCardWidget.cjs +25 -3
- package/dist/widgets/ProductCardWidget/ProductCardWidget.d.cts +2 -2
- package/dist/widgets/ProductCardWidget/ProductCardWidget.d.ts +2 -2
- package/dist/widgets/ProductCardWidget/ProductCardWidget.js +25 -3
- package/dist/widgets/PromptButtonCarouselWithImageWidget/PromptButtonCarouselWithImageWidget.cjs +23 -4
- package/dist/widgets/PromptButtonCarouselWithImageWidget/PromptButtonCarouselWithImageWidget.d.cts +3 -3
- package/dist/widgets/PromptButtonCarouselWithImageWidget/PromptButtonCarouselWithImageWidget.d.ts +3 -3
- package/dist/widgets/PromptButtonCarouselWithImageWidget/PromptButtonCarouselWithImageWidget.js +23 -4
- package/dist/widgets/PromptCarouselWidget/PromptCarouselWidget.cjs +15 -3
- package/dist/widgets/PromptCarouselWidget/PromptCarouselWidget.d.cts +2 -2
- package/dist/widgets/PromptCarouselWidget/PromptCarouselWidget.d.ts +2 -2
- package/dist/widgets/PromptCarouselWidget/PromptCarouselWidget.js +17 -5
- package/dist/widgets/SocialProofFlowWidget/SocialProofFlowWidget.d.cts +2 -2
- package/dist/widgets/SocialProofFlowWidget/SocialProofFlowWidget.d.ts +2 -2
- package/dist/widgets/SocialProofWidget/SocialProofWidget.cjs +53 -6
- package/dist/widgets/SocialProofWidget/SocialProofWidget.d.ts +3 -3
- package/dist/widgets/SocialProofWidget/SocialProofWidget.js +54 -7
- package/dist/widgets/TitledPromptCarouselWidget/TitledPromptCarouselWidget.cjs +10 -1
- package/dist/widgets/TitledPromptCarouselWidget/TitledPromptCarouselWidget.d.cts +2 -2
- package/dist/widgets/TitledPromptCarouselWidget/TitledPromptCarouselWidget.d.ts +2 -2
- package/dist/widgets/TitledPromptCarouselWidget/TitledPromptCarouselWidget.js +11 -2
- package/dist/widgets/TypingAnimationFlowWidget/TypingAnimationFlowWidget.d.ts +2 -2
- package/dist/widgets/TypingAnimationWidget/TypingAnimationWidget.cjs +24 -3
- package/dist/widgets/TypingAnimationWidget/TypingAnimationWidget.d.cts +3 -3
- package/dist/widgets/TypingAnimationWidget/TypingAnimationWidget.d.ts +3 -3
- package/dist/widgets/TypingAnimationWidget/TypingAnimationWidget.js +25 -4
- package/dist/widgets/dist/SearchResults/SearchResults.d.cts +4 -3
- package/dist/widgets/dist/SearchResults/SearchResultsWidget.d.cts +2 -2
- package/dist/widgets/dist/SearchZeroState/SearchZeroStateWidget.d.cts +2 -2
- package/dist/widgets/dist/SearchZeroState/types.d.cts +2 -2
- package/dist/widgets/dist/SuggestionBar/SuggestionBar.d.cts +3 -3
- package/dist/widgets/dist/SuggestionButtonContainer/types.d.cts +3 -2
- 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/search.d.cts +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/camelCasedPropertiesDeep.d.cts +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/splitWords.d.cts +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/unknownArray.d.cts +32 -0
- package/dist/widgets/dist/packages/hooks/dist/atoms/search/searchAPI.d.cts +14 -0
- package/dist/widgets/dist/packages/hooks/dist/contexts/types.d.cts +61 -0
- package/dist/widgets/dist/packages/hooks/dist/hooks/Search/useSearch.d.cts +60 -0
- package/dist/widgets/dist/packages/hooks/dist/hooks/utils.d.cts +12 -0
- package/dist/widgets/dist/packages/hooks/dist/types/search-filter-types.d.cts +28 -0
- package/dist/widgets/dist/packages/hooks/dist/types/test-types.d.cts +10 -0
- package/dist/widgets/hooks/useGetWidgetStatus.cjs +1 -1
- package/dist/widgets/hooks/useGetWidgetStatus.js +1 -1
- package/dist/widgets/utils/functions.cjs +0 -14
- package/dist/widgets/utils/functions.js +1 -14
- package/dist/widgets-v2/SearchZeroState/index.d.cts +2 -1
- package/dist/widgets-v2/SearchZeroState/index.d.ts +2 -1
- package/dist/widgets-v2/SuggestionButtonContainer/index.d.ts +1 -0
- package/package.json +4 -4
- package/src/hocs/withBaseWidget/__tests__/withBaseWidget.test.tsx +68 -302
- package/src/hocs/withBaseWidget/types.ts +6 -6
- package/src/hocs/withBaseWidget/withBaseWidget.tsx +46 -61
- package/src/widgets/ChatPreviewComparisonWidget/ChatPreviewComparisonWidget.tsx +59 -8
- package/src/widgets/ChatPreviewWidget/ChatPreviewWidget.tsx +54 -18
- package/src/widgets/ChatPreviewWidget/__tests__/ChatPreviewWidget.test.tsx +11 -5
- package/src/widgets/FloatingChatWidget/FloatingChatOverlay.tsx +48 -19
- package/src/widgets/FloatingChatWidget/FloatingChatWidget.tsx +100 -52
- package/src/widgets/FloatingChatWidget/__tests__/FloatingChatWidget.test.tsx +11 -5
- package/src/widgets/ProductCardWidget/ProductCardWidget.tsx +37 -16
- package/src/widgets/ProductCardWidget/__tests__/ProductCardWidget.test.tsx +12 -8
- package/src/widgets/PromptButtonCarouselWithImageWidget/PromptButtonCarouselWithImageWidget.tsx +38 -19
- package/src/widgets/PromptButtonCarouselWithImageWidget/__tests__/PromptButtonCarouselWithImageWidget.test.tsx +19 -8
- package/src/widgets/PromptCarouselWidget/PromptCarouselWidget.tsx +32 -19
- package/src/widgets/PromptCarouselWidget/__tests__/PromptCarouselWidget.test.tsx +21 -8
- package/src/widgets/SocialProofWidget/SocialProofWidget.tsx +77 -18
- package/src/widgets/SocialProofWidget/__tests__/SocialProofWidget.test.tsx +19 -8
- package/src/widgets/TitledPromptCarouselWidget/TitledPromptCarouselWidget.tsx +23 -19
- package/src/widgets/TitledPromptCarouselWidget/__tests__/TitledPromptCarouselWidget.test.tsx +19 -8
- package/src/widgets/TypingAnimationWidget/TypingAnimationWidget.tsx +45 -21
- package/src/widgets/TypingAnimationWidget/__tests__/TypingAnimationWidget.test.tsx +19 -8
- package/src/widgets/__tests__/trackEventCanary.test.ts +1 -1
- package/dist/packages/icons/dist/_virtual/rolldown_runtime.cjs +0 -27
- package/dist/packages/icons/dist/_virtual/rolldown_runtime.js +0 -25
- package/dist/packages/icons/dist/node_modules/react/cjs/react-jsx-runtime.development.cjs +0 -696
- package/dist/packages/icons/dist/node_modules/react/cjs/react-jsx-runtime.development.js +0 -696
- package/dist/packages/icons/dist/node_modules/react/cjs/react-jsx-runtime.production.min.cjs +0 -43
- package/dist/packages/icons/dist/node_modules/react/cjs/react-jsx-runtime.production.min.js +0 -43
- package/dist/packages/icons/dist/node_modules/react/cjs/react.development.cjs +0 -1528
- package/dist/packages/icons/dist/node_modules/react/cjs/react.development.js +0 -1528
- package/dist/packages/icons/dist/node_modules/react/cjs/react.production.min.cjs +0 -329
- package/dist/packages/icons/dist/node_modules/react/cjs/react.production.min.js +0 -329
- package/dist/packages/icons/dist/node_modules/react/index.cjs +0 -13
- package/dist/packages/icons/dist/node_modules/react/index.js +0 -13
- package/dist/packages/icons/dist/node_modules/react/jsx-runtime.cjs +0 -13
- package/dist/packages/icons/dist/node_modules/react/jsx-runtime.js +0 -13
package/dist/debug/chatEmbed.cjs
CHANGED
|
@@ -3,8 +3,8 @@ const require_MessageContent = require('./MessageContent.cjs');
|
|
|
3
3
|
let react = require("react");
|
|
4
4
|
react = require_rolldown_runtime.__toESM(react);
|
|
5
5
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
6
|
-
let jotai = require("jotai");
|
|
7
6
|
let __envive_ai_react_hooks_atoms_chat = require("@envive-ai/react-hooks/atoms/chat");
|
|
7
|
+
let jotai = require("jotai");
|
|
8
8
|
let __envive_ai_react_hooks_application_models = require("@envive-ai/react-hooks/application/models");
|
|
9
9
|
let __envive_ai_react_toolkit_v3_PromptCarousel = require("@envive-ai/react-toolkit-v3/PromptCarousel");
|
|
10
10
|
let classnames = require("classnames");
|
package/dist/debug/chatEmbed.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { MessageContent } from "./MessageContent.js";
|
|
2
2
|
import React from "react";
|
|
3
3
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
4
|
-
import { useAtomValue } from "jotai";
|
|
5
4
|
import { chatAtom } from "@envive-ai/react-hooks/atoms/chat";
|
|
5
|
+
import { useAtomValue } from "jotai";
|
|
6
6
|
import { MessageType } from "@envive-ai/react-hooks/application/models";
|
|
7
7
|
import { PromptCarousel, PromptCarouselRows } from "@envive-ai/react-toolkit-v3/PromptCarousel";
|
|
8
8
|
import classNames from "classnames";
|
|
@@ -5,8 +5,8 @@ const require_GenericSelect = require('./GenericSelect.cjs');
|
|
|
5
5
|
const require_chatEmbed = require('./chatEmbed.cjs');
|
|
6
6
|
let react = require("react");
|
|
7
7
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
8
|
-
let jotai = require("jotai");
|
|
9
8
|
let __envive_ai_react_hooks_atoms_chat = require("@envive-ai/react-hooks/atoms/chat");
|
|
9
|
+
let jotai = require("jotai");
|
|
10
10
|
let __envive_ai_react_hooks_application_models = require("@envive-ai/react-hooks/application/models");
|
|
11
11
|
let __envive_ai_react_hooks_atoms_app = require("@envive-ai/react-hooks/atoms/app");
|
|
12
12
|
let classnames = require("classnames");
|
|
@@ -3,8 +3,8 @@ import { GenericSelect } from "./GenericSelect.js";
|
|
|
3
3
|
import chatEmbed_default from "./chatEmbed.js";
|
|
4
4
|
import { useCallback, useEffect, useState } from "react";
|
|
5
5
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
6
|
-
import { useAtomValue } from "jotai";
|
|
7
6
|
import { chatAtom, lastAssistantMessageAtom } from "@envive-ai/react-hooks/atoms/chat";
|
|
7
|
+
import { useAtomValue } from "jotai";
|
|
8
8
|
import { MessageType } from "@envive-ai/react-hooks/application/models";
|
|
9
9
|
import { userIdAtom } from "@envive-ai/react-hooks/atoms/app";
|
|
10
10
|
import { ReportSessionRequestReportPriorityEnum, ReportSessionRequestReportTypeEnum } from "@spiffy-ai/commerce-api-client";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
+
import { SpiffyMetricsEventName } from "../../hooks/dist/services/amplitudeService/eventNames.cjs";
|
|
2
|
+
import { OrgUIConfigV3, WidgetConfigV3, WidgetTypeV3 } from "../../hooks/dist/contexts/typesV3.cjs";
|
|
3
|
+
import { HardcopyResponse } from "../../hooks/dist/contexts/hardcopyContext/hardcopyContext.cjs";
|
|
1
4
|
import { RefObject } from "react";
|
|
2
|
-
import { SpiffyMetricsEventName } from "@envive-ai/react-hooks/contexts/amplitudeContext";
|
|
3
|
-
import { HardcopyResponse } from "@envive-ai/react-hooks/contexts/hardcopyContext";
|
|
4
|
-
import { OrgUIConfigV3, WidgetConfigV3, WidgetTypeV3 } from "@envive-ai/react-hooks/contexts/typesV3";
|
|
5
5
|
|
|
6
6
|
//#region src/hocs/withBaseWidget/types.d.ts
|
|
7
7
|
interface BaseWidgetProps {
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
+
import { SpiffyMetricsEventName } from "../../packages/hooks/dist/services/amplitudeService/eventNames.js";
|
|
2
|
+
import { OrgUIConfigV3, WidgetConfigV3, WidgetTypeV3 } from "../../packages/hooks/dist/contexts/typesV3.js";
|
|
3
|
+
import { HardcopyResponse } from "../../packages/hooks/dist/contexts/hardcopyContext/hardcopyContext.js";
|
|
4
|
+
import "../../packages/hooks/dist/contexts/amplitudeContext/index.js";
|
|
5
|
+
import "../../packages/hooks/dist/contexts/hardcopyContext/index.js";
|
|
1
6
|
import { RefObject } from "react";
|
|
2
|
-
import { SpiffyMetricsEventName } from "@envive-ai/react-hooks/contexts/amplitudeContext";
|
|
3
|
-
import { HardcopyResponse } from "@envive-ai/react-hooks/contexts/hardcopyContext";
|
|
4
|
-
import { OrgUIConfigV3, WidgetConfigV3, WidgetTypeV3 } from "@envive-ai/react-hooks/contexts/typesV3";
|
|
5
7
|
|
|
6
8
|
//#region src/hocs/withBaseWidget/types.d.ts
|
|
7
9
|
interface BaseWidgetProps {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { BaseWidgetProps, WithBaseWidgetOptions } from "./types.cjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime5 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/hocs/withBaseWidget/withBaseWidget.d.ts
|
|
5
5
|
declare function withBaseWidget<P extends BaseWidgetProps>(Widget: React.ComponentType<P>, options?: WithBaseWidgetOptions): {
|
|
6
|
-
(props: P):
|
|
6
|
+
(props: P): react_jsx_runtime5.JSX.Element;
|
|
7
7
|
displayName: string;
|
|
8
8
|
};
|
|
9
9
|
//#endregion
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { BaseWidgetProps, WithBaseWidgetOptions } from "./types.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime10 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/hocs/withBaseWidget/withBaseWidget.d.ts
|
|
5
5
|
declare function withBaseWidget<P extends BaseWidgetProps>(Widget: React.ComponentType<P>, options?: WithBaseWidgetOptions): {
|
|
6
|
-
(props: P):
|
|
6
|
+
(props: P): react_jsx_runtime10.JSX.Element;
|
|
7
7
|
displayName: string;
|
|
8
8
|
};
|
|
9
9
|
//#endregion
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { WidgetString } from "../../application/models/api/widgetText.cjs";
|
|
2
|
+
|
|
3
|
+
//#region ../hooks/dist/contexts/hardcopyContext/hardcopyContext.d.ts
|
|
4
|
+
|
|
5
|
+
type HardcopyResponse = {
|
|
6
|
+
responseId: string;
|
|
7
|
+
language: string;
|
|
8
|
+
rawValues?: Record<string, WidgetString | WidgetString[]>;
|
|
9
|
+
values: Record<string, string | string[]>;
|
|
10
|
+
};
|
|
11
|
+
//#endregion
|
|
12
|
+
export { HardcopyResponse };
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
//#region ../hooks/dist/contexts/types.d.ts
|
|
2
|
+
|
|
3
|
+
interface AlphabeticFilterSorting {
|
|
4
|
+
type: 'alphabetic';
|
|
5
|
+
}
|
|
6
|
+
interface ProductCountFilterSorting {
|
|
7
|
+
type: 'productCount';
|
|
8
|
+
}
|
|
9
|
+
interface CustomFilterSorting {
|
|
10
|
+
type: 'custom';
|
|
11
|
+
map: Record<string, number>;
|
|
12
|
+
}
|
|
13
|
+
type FilterSorting = AlphabeticFilterSorting | ProductCountFilterSorting | CustomFilterSorting;
|
|
14
|
+
interface BaseFilterConfig {
|
|
15
|
+
filterId: string;
|
|
16
|
+
displayName: string;
|
|
17
|
+
}
|
|
18
|
+
interface DynamicFilterConfig extends BaseFilterConfig {
|
|
19
|
+
type: 'dynamic';
|
|
20
|
+
attribute: string;
|
|
21
|
+
sorting: FilterSorting;
|
|
22
|
+
}
|
|
23
|
+
interface PriceFilterConfig extends BaseFilterConfig {
|
|
24
|
+
type: 'price';
|
|
25
|
+
bucketSize: number;
|
|
26
|
+
}
|
|
27
|
+
type FilterAttribute = DynamicFilterConfig | PriceFilterConfig;
|
|
28
|
+
interface SearchConfig {
|
|
29
|
+
enableGlobalSearch: boolean;
|
|
30
|
+
searchFilterConfig: FilterAttribute[];
|
|
31
|
+
searchOverlayHeading?: string;
|
|
32
|
+
redirectSearchResultsUrl?: string;
|
|
33
|
+
additiveDynamicFilters?: boolean;
|
|
34
|
+
recommendedProducts?: string[];
|
|
35
|
+
recommendedProductsHeading?: string;
|
|
36
|
+
}
|
|
37
|
+
//#endregion
|
|
38
|
+
export { type SearchConfig };
|
|
@@ -0,0 +1,230 @@
|
|
|
1
|
+
import { CustomerServiceType } from "../types/customerService.cjs";
|
|
2
|
+
import { SearchConfig } from "./types.cjs";
|
|
3
|
+
import { FloatingButtonLocation } from "@envive-ai/react-toolkit-v3/FloatingButton";
|
|
4
|
+
import { ImageGalleryImage, ImageGalleryLayout } from "@envive-ai/react-toolkit-v3/ImageGallery";
|
|
5
|
+
import { PromptButtonVariant } from "@envive-ai/react-toolkit-v3/PromptButton";
|
|
6
|
+
import { AnimationSpeed, PromptCarouselRows } from "@envive-ai/react-toolkit-v3/PromptCarousel";
|
|
7
|
+
import { DynamicLayout, WidgetKind } from "@envive-ai/react-toolkit-v3/SocialProof";
|
|
8
|
+
import { Theme } from "@envive-ai/react-toolkit-v3/Tokens";
|
|
9
|
+
import { SparkleIconColor } from "@envive-ai/react-toolkit-v3/WelcomeMessage";
|
|
10
|
+
import { WidgetWrapperVariant } from "@envive-ai/react-toolkit-v3/WidgetWrapper";
|
|
11
|
+
|
|
12
|
+
//#region ../hooks/dist/contexts/typesV3.d.ts
|
|
13
|
+
|
|
14
|
+
type ImageAspectRatio = '1/1' | '3/4';
|
|
15
|
+
type ButtonColors = {
|
|
16
|
+
lightButtonBackgroundColor: string;
|
|
17
|
+
lightButtonIconColor: string;
|
|
18
|
+
darkButtonBackgroundColor: string;
|
|
19
|
+
darkButtonIconColor: string;
|
|
20
|
+
};
|
|
21
|
+
type Typography = {
|
|
22
|
+
titleFontFamily: string;
|
|
23
|
+
headerFontFamily: string;
|
|
24
|
+
bodyFontFamily: string;
|
|
25
|
+
fontSize?: {
|
|
26
|
+
t1: string;
|
|
27
|
+
t2: string;
|
|
28
|
+
t3: string;
|
|
29
|
+
h1: string;
|
|
30
|
+
h2: string;
|
|
31
|
+
h3: string;
|
|
32
|
+
b1: string;
|
|
33
|
+
b2: string;
|
|
34
|
+
b3: string;
|
|
35
|
+
b4: string;
|
|
36
|
+
b5: string;
|
|
37
|
+
l1: string;
|
|
38
|
+
l2: string;
|
|
39
|
+
};
|
|
40
|
+
fontWeight?: {
|
|
41
|
+
rg: string;
|
|
42
|
+
md: string;
|
|
43
|
+
sb: string;
|
|
44
|
+
};
|
|
45
|
+
letterSpacing?: {
|
|
46
|
+
'0': string;
|
|
47
|
+
'wide-1': string;
|
|
48
|
+
};
|
|
49
|
+
lineHeight?: {
|
|
50
|
+
'124': number;
|
|
51
|
+
'120': number;
|
|
52
|
+
'118': number;
|
|
53
|
+
'116': number;
|
|
54
|
+
'114': number;
|
|
55
|
+
'148': number;
|
|
56
|
+
'140': number;
|
|
57
|
+
'128': number;
|
|
58
|
+
'130': number;
|
|
59
|
+
'133': number;
|
|
60
|
+
};
|
|
61
|
+
};
|
|
62
|
+
type LookAndFeelConfig = {
|
|
63
|
+
theme: Theme;
|
|
64
|
+
agentName: string;
|
|
65
|
+
chatHeaderLogoDarkSrc: string;
|
|
66
|
+
chatHeaderLogoLightSrc: string;
|
|
67
|
+
widgetLogoSrc: string;
|
|
68
|
+
hideWidgetLogo: boolean;
|
|
69
|
+
elementRadius: number;
|
|
70
|
+
imageAspectRatio: ImageAspectRatio;
|
|
71
|
+
buttonColors: ButtonColors;
|
|
72
|
+
typography: Typography;
|
|
73
|
+
};
|
|
74
|
+
declare enum ConfigVersionEnum {
|
|
75
|
+
V3 = "v3",
|
|
76
|
+
Deprecated = "deprecated",
|
|
77
|
+
}
|
|
78
|
+
type ConfigVersion = ConfigVersionEnum.V3 | ConfigVersionEnum.Deprecated | undefined;
|
|
79
|
+
type Mode = 'dark' | 'light';
|
|
80
|
+
type ShowOptions = 'always' | 'postInteraction' | 'none';
|
|
81
|
+
type Style = 'attached' | 'detached';
|
|
82
|
+
type FloatingButtonConfig = {
|
|
83
|
+
position: FloatingButtonLocation;
|
|
84
|
+
backgroundColor?: string;
|
|
85
|
+
mode: Mode;
|
|
86
|
+
showOption: ShowOptions;
|
|
87
|
+
iconSVGSrc?: string;
|
|
88
|
+
style: Style;
|
|
89
|
+
};
|
|
90
|
+
type ReferrerPopupTrigger = {
|
|
91
|
+
type: 'referrer';
|
|
92
|
+
referrers: string[];
|
|
93
|
+
};
|
|
94
|
+
type AutomaticPopupTrigger = {
|
|
95
|
+
type: 'automatic';
|
|
96
|
+
};
|
|
97
|
+
type PopupTrigger = ReferrerPopupTrigger | AutomaticPopupTrigger;
|
|
98
|
+
type AutoPopupTrigger = {
|
|
99
|
+
delay: number;
|
|
100
|
+
trigger: PopupTrigger;
|
|
101
|
+
};
|
|
102
|
+
interface AutoPopupConfig {
|
|
103
|
+
triggers: AutoPopupTrigger[];
|
|
104
|
+
}
|
|
105
|
+
type FloatingChatConfig = {
|
|
106
|
+
headerBackgroundColor?: string;
|
|
107
|
+
headerMode: Mode;
|
|
108
|
+
welcomeMessageIconColor: SparkleIconColor;
|
|
109
|
+
showVerifiedBuyer: boolean;
|
|
110
|
+
userQueryInputEnabled: boolean;
|
|
111
|
+
showEnviveLogo: boolean;
|
|
112
|
+
ignoreFirstModelResponse?: boolean;
|
|
113
|
+
neverShowSingleProductCards?: boolean;
|
|
114
|
+
welcomeMessageTitle: string;
|
|
115
|
+
welcomeMessageText: string;
|
|
116
|
+
chatFooterTextFieldPlaceholderText: string;
|
|
117
|
+
autoPopupConfig?: AutoPopupConfig;
|
|
118
|
+
};
|
|
119
|
+
type CustomerServiceIntegration = {
|
|
120
|
+
enabled: boolean;
|
|
121
|
+
provider: CustomerServiceType;
|
|
122
|
+
suppressMerchantButton?: boolean;
|
|
123
|
+
};
|
|
124
|
+
type SPASettings = {
|
|
125
|
+
enabled: boolean;
|
|
126
|
+
refreshInterval?: number;
|
|
127
|
+
};
|
|
128
|
+
type OrgUIConfigV3 = {
|
|
129
|
+
id?: string;
|
|
130
|
+
version: ConfigVersion;
|
|
131
|
+
shortName: string;
|
|
132
|
+
lookAndFeel: LookAndFeelConfig;
|
|
133
|
+
floatingButton: FloatingButtonConfig;
|
|
134
|
+
floatingChat: FloatingChatConfig;
|
|
135
|
+
merchantOverrideCss?: string;
|
|
136
|
+
customerServiceIntegration?: CustomerServiceIntegration;
|
|
137
|
+
singlePageApplicationSettings?: SPASettings;
|
|
138
|
+
searchConfig?: SearchConfig;
|
|
139
|
+
};
|
|
140
|
+
declare enum WidgetTypeV3 {
|
|
141
|
+
PromptCarouselV3 = "PromptCarouselV3",
|
|
142
|
+
TitledPromptCarouselV3 = "TitledPromptCarouselV3",
|
|
143
|
+
SocialProofV3 = "SocialProofV3",
|
|
144
|
+
TypingAnimationV3 = "TypingAnimationV3",
|
|
145
|
+
ChatPreviewV3 = "ChatPreviewV3",
|
|
146
|
+
ChatPreviewComparisonV3 = "ChatPreviewComparisonV3",
|
|
147
|
+
ChatPreviewLoadingV3 = "ChatPreviewLoadingV3",
|
|
148
|
+
ImagePromptCardV3 = "ImagePromptCardV3",
|
|
149
|
+
PromptButtonCarouselWithImageV3 = "PromptButtonCarouselWithImageV3",
|
|
150
|
+
ImageBannerV3 = "ImageBannerV3",
|
|
151
|
+
SingleImagePromptV3 = "SingleImagePromptV3",
|
|
152
|
+
FloatingChatV3 = "FloatingChatV3",
|
|
153
|
+
FloatingButtonV3 = "FloatingButtonV3",
|
|
154
|
+
ProductCardV3 = "ProductCardV3",
|
|
155
|
+
FullPageSalesAgentV3 = "FullPageSalesAgentV3",
|
|
156
|
+
}
|
|
157
|
+
interface BaseWidgetConfig<T extends WidgetTypeV3> {
|
|
158
|
+
widgetConfigId: string;
|
|
159
|
+
type: T;
|
|
160
|
+
contentId?: string;
|
|
161
|
+
}
|
|
162
|
+
interface PromptCarouselWidgetV3Config extends BaseWidgetConfig<WidgetTypeV3.PromptCarouselV3> {
|
|
163
|
+
promptButtonType?: PromptButtonVariant;
|
|
164
|
+
boldFirstButton?: boolean;
|
|
165
|
+
promptCarouselRows?: PromptCarouselRows;
|
|
166
|
+
animationSpeed?: AnimationSpeed;
|
|
167
|
+
}
|
|
168
|
+
interface TitledPromptCarouselWidgetV3Config extends BaseWidgetConfig<WidgetTypeV3.TitledPromptCarouselV3> {
|
|
169
|
+
promptButtonType?: PromptButtonVariant;
|
|
170
|
+
boldFirstButton?: boolean;
|
|
171
|
+
promptCarouselRows?: PromptCarouselRows;
|
|
172
|
+
animationSpeed?: AnimationSpeed;
|
|
173
|
+
}
|
|
174
|
+
interface SocialProofWidgetV3Config extends BaseWidgetConfig<WidgetTypeV3.SocialProofV3> {
|
|
175
|
+
kind: WidgetKind;
|
|
176
|
+
variant: WidgetWrapperVariant;
|
|
177
|
+
hexCardColor?: string;
|
|
178
|
+
promptCarouselRows: PromptCarouselRows;
|
|
179
|
+
hideImage?: boolean;
|
|
180
|
+
imageGalleryLayout: Exclude<ImageGalleryLayout, 'TWO_SIDE'>;
|
|
181
|
+
hideTextField?: boolean;
|
|
182
|
+
primaryButtonVariant: Exclude<PromptButtonVariant, 'suggestedResponse' | 'ghost'>;
|
|
183
|
+
secondaryButtonVariant: Exclude<PromptButtonVariant, 'suggestedResponse' | 'ghost'>;
|
|
184
|
+
dynamicLayout?: DynamicLayout;
|
|
185
|
+
images?: ImageGalleryImage[];
|
|
186
|
+
}
|
|
187
|
+
interface TypingAnimationWidgetV3Config extends BaseWidgetConfig<WidgetTypeV3.TypingAnimationV3> {
|
|
188
|
+
widgetVariant?: WidgetWrapperVariant;
|
|
189
|
+
cardColor?: string;
|
|
190
|
+
promptButtonType?: PromptButtonVariant;
|
|
191
|
+
promptCarouselRows?: PromptCarouselRows;
|
|
192
|
+
showTextField?: boolean;
|
|
193
|
+
}
|
|
194
|
+
interface ChatPreviewComparisonWidgetV3Config extends BaseWidgetConfig<WidgetTypeV3.ChatPreviewComparisonV3> {
|
|
195
|
+
variant: WidgetWrapperVariant;
|
|
196
|
+
hexCardColor?: string;
|
|
197
|
+
hideImage?: boolean;
|
|
198
|
+
hideTextField?: boolean;
|
|
199
|
+
}
|
|
200
|
+
interface ChatPreviewLoadingWidgetV3Config extends BaseWidgetConfig<WidgetTypeV3.ChatPreviewLoadingV3> {
|
|
201
|
+
variant: WidgetWrapperVariant;
|
|
202
|
+
hexCardColor?: string;
|
|
203
|
+
hideTextField?: boolean;
|
|
204
|
+
}
|
|
205
|
+
interface ChatPreviewWidgetV3Config extends BaseWidgetConfig<WidgetTypeV3.ChatPreviewV3> {
|
|
206
|
+
variant: WidgetWrapperVariant;
|
|
207
|
+
hexCardColor?: string;
|
|
208
|
+
hideTextField?: boolean;
|
|
209
|
+
}
|
|
210
|
+
interface PromptButtonCarouselWithImageWidgetV3Config extends BaseWidgetConfig<WidgetTypeV3.PromptButtonCarouselWithImageV3> {
|
|
211
|
+
promptButtonType?: PromptButtonVariant;
|
|
212
|
+
image?: ImageGalleryImage;
|
|
213
|
+
hideTextField?: boolean;
|
|
214
|
+
isDynamic?: boolean;
|
|
215
|
+
}
|
|
216
|
+
interface FloatingChatWidgetV3Config extends BaseWidgetConfig<WidgetTypeV3.FloatingChatV3> {}
|
|
217
|
+
interface ProductCardWidgetV3Config extends BaseWidgetConfig<WidgetTypeV3.ProductCardV3> {
|
|
218
|
+
promptButtonType?: PromptButtonVariant;
|
|
219
|
+
italicizeHeadline?: boolean;
|
|
220
|
+
fallbackColor?: string;
|
|
221
|
+
imageSrc?: string;
|
|
222
|
+
}
|
|
223
|
+
interface FullPageSalesAgentWidgetV3Config extends BaseWidgetConfig<WidgetTypeV3.FullPageSalesAgentV3> {
|
|
224
|
+
headerContainer?: string;
|
|
225
|
+
autoHeight?: boolean;
|
|
226
|
+
}
|
|
227
|
+
type WidgetConfigV3 = PromptCarouselWidgetV3Config | SocialProofWidgetV3Config | TitledPromptCarouselWidgetV3Config | ChatPreviewComparisonWidgetV3Config | ChatPreviewLoadingWidgetV3Config | TypingAnimationWidgetV3Config | ChatPreviewWidgetV3Config | PromptButtonCarouselWithImageWidgetV3Config | FloatingChatWidgetV3Config | ProductCardWidgetV3Config | FullPageSalesAgentWidgetV3Config;
|
|
228
|
+
//#endregion
|
|
229
|
+
//#endregion
|
|
230
|
+
export { type OrgUIConfigV3, type WidgetConfigV3, WidgetTypeV3 };
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
//#region ../hooks/dist/services/amplitudeService/eventNames.d.ts
|
|
2
|
+
//#region src/services/amplitudeService/eventNames.d.ts
|
|
3
|
+
/**
|
|
4
|
+
* Event name enums for Amplitude tracking.
|
|
5
|
+
*
|
|
6
|
+
* NOTE: This file exists separately to avoid circular dependency issues.
|
|
7
|
+
* The amplitudeService imports from ga4ProjectionService, which needs these enums.
|
|
8
|
+
* By keeping the enums in a separate file, ga4ProjectionService can import them
|
|
9
|
+
* without creating a circular dependency with amplitudeService.
|
|
10
|
+
*/
|
|
11
|
+
declare enum SpiffyMetricsEventName {
|
|
12
|
+
BundleLoaded = "Bundle Loaded",
|
|
13
|
+
EnvironmentInitialized = "Environment Initialized",
|
|
14
|
+
ChatLiveAgentBtnClick = "Chat Live Agent Btn Click",
|
|
15
|
+
ChatFloatingButtonVisible = "Chat Floating Button Visible",
|
|
16
|
+
ChatComponentVisible = "Chat Component Visible",
|
|
17
|
+
ChatComponentExpanded = "Chat Component Expanded",
|
|
18
|
+
ChatComponentCollapsed = "Chat Component Collapsed",
|
|
19
|
+
ChatUserMessageInput = "Chat User Message Input",
|
|
20
|
+
ChatSuggestionClicked = "Chat Suggestion Clicked",
|
|
21
|
+
ChatAssistantResponse = "Chat Assistant Response",
|
|
22
|
+
ProductCardClicked = "Product Card Clicked",
|
|
23
|
+
ProductReviewCardClicked = "Product Review Card Clicked",
|
|
24
|
+
AddToCartClicked = "Add To Cart Clicked",
|
|
25
|
+
PromptCardClicked = "Prompt Card Clicked",
|
|
26
|
+
SupportedEvent = "Supported Event",
|
|
27
|
+
SearchBackToResponseClicked = "Search Back to Response Clicked",
|
|
28
|
+
PerformanceMetrics = "Performance Metrics",
|
|
29
|
+
SearchBarClicked = "Search Bar Clicked",
|
|
30
|
+
OrderLookupStarted = "Order Lookup Started",
|
|
31
|
+
OrderLookupFormSubmitted = "Order Lookup Form Submitted",
|
|
32
|
+
SearchComponentVisible = "Search Component Visible",
|
|
33
|
+
SearchZeroStateSuggestionClicked = "Search Zero State Suggestion Clicked",
|
|
34
|
+
SearchInputStarted = "Search Input Started",
|
|
35
|
+
SearchQuerySubmitted = "Search Query Submitted",
|
|
36
|
+
SearchResultsViewed = "Search Results Viewed",
|
|
37
|
+
SearchTimeToFirstClick = "Search Time to First Click",
|
|
38
|
+
SearchZeroResultsRate = "Search Zero Results Rate",
|
|
39
|
+
SearchFilterClicked = "Search Filter Clicked",
|
|
40
|
+
SearchSortClicked = "Search Sort Clicked",
|
|
41
|
+
}
|
|
42
|
+
//#endregion
|
|
43
|
+
export { SpiffyMetricsEventName };
|
|
@@ -0,0 +1,21 @@
|
|
|
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
|
+
helpscout = "helpscout",
|
|
16
|
+
talkdesk = "talkdesk",
|
|
17
|
+
eightByEight = "8x8",
|
|
18
|
+
unsupported = "unsupported",
|
|
19
|
+
}
|
|
20
|
+
//#endregion
|
|
21
|
+
export { CustomerServiceType };
|
|
@@ -31,6 +31,7 @@ var require_WidgetType = /* @__PURE__ */ require_rolldown_runtime.__commonJSMin(
|
|
|
31
31
|
(function(WidgetType$1) {
|
|
32
32
|
WidgetType$1["FloatingButtonV3"] = "FloatingButtonV3";
|
|
33
33
|
WidgetType$1["FloatingChatV3"] = "FloatingChatV3";
|
|
34
|
+
WidgetType$1["FullPageSalesAgentV3"] = "FullPageSalesAgentV3";
|
|
34
35
|
WidgetType$1["PromptCarouselV3"] = "PromptCarouselV3";
|
|
35
36
|
WidgetType$1["TitledPromptCarouselV3"] = "TitledPromptCarouselV3";
|
|
36
37
|
WidgetType$1["SocialProofV3"] = "SocialProofV3";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import "../frontendConfig.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import "../../contexts/types.js";
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import "../typesV3.js";
|
|
2
|
+
import { WidgetString } from "../../application/models/api/widgetText.js";
|
|
3
|
+
import "react";
|
|
4
|
+
|
|
5
|
+
//#region ../hooks/dist/contexts/hardcopyContext/hardcopyContext.d.ts
|
|
6
|
+
|
|
7
|
+
type HardcopyResponse = {
|
|
8
|
+
responseId: string;
|
|
9
|
+
language: string;
|
|
10
|
+
rawValues?: Record<string, WidgetString | WidgetString[]>;
|
|
11
|
+
values: Record<string, string | string[]>;
|
|
12
|
+
};
|
|
13
|
+
//#endregion
|
|
14
|
+
export { HardcopyResponse };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import { HardcopyResponse } from "./hardcopyContext.js";
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import "./typesV3.js";
|
|
2
|
+
import "./hardcopyContext/hardcopyContext.js";
|
|
3
|
+
import "../application/models/api/orgConfigResults.js";
|
|
4
|
+
|
|
5
|
+
//#region ../hooks/dist/contexts/types.d.ts
|
|
6
|
+
|
|
7
|
+
interface AlphabeticFilterSorting {
|
|
8
|
+
type: 'alphabetic';
|
|
9
|
+
}
|
|
10
|
+
interface ProductCountFilterSorting {
|
|
11
|
+
type: 'productCount';
|
|
12
|
+
}
|
|
13
|
+
interface CustomFilterSorting {
|
|
14
|
+
type: 'custom';
|
|
15
|
+
map: Record<string, number>;
|
|
16
|
+
}
|
|
17
|
+
type FilterSorting = AlphabeticFilterSorting | ProductCountFilterSorting | CustomFilterSorting;
|
|
18
|
+
interface BaseFilterConfig {
|
|
19
|
+
filterId: string;
|
|
20
|
+
displayName: string;
|
|
21
|
+
}
|
|
22
|
+
interface DynamicFilterConfig extends BaseFilterConfig {
|
|
23
|
+
type: 'dynamic';
|
|
24
|
+
attribute: string;
|
|
25
|
+
sorting: FilterSorting;
|
|
26
|
+
}
|
|
27
|
+
interface PriceFilterConfig extends BaseFilterConfig {
|
|
28
|
+
type: 'price';
|
|
29
|
+
bucketSize: number;
|
|
30
|
+
}
|
|
31
|
+
type FilterAttribute = DynamicFilterConfig | PriceFilterConfig;
|
|
32
|
+
interface SearchConfig {
|
|
33
|
+
enableGlobalSearch: boolean;
|
|
34
|
+
searchFilterConfig: FilterAttribute[];
|
|
35
|
+
searchOverlayHeading?: string;
|
|
36
|
+
redirectSearchResultsUrl?: string;
|
|
37
|
+
additiveDynamicFilters?: boolean;
|
|
38
|
+
recommendedProducts?: string[];
|
|
39
|
+
recommendedProductsHeading?: string;
|
|
40
|
+
}
|
|
41
|
+
//#endregion
|
|
42
|
+
export { type SearchConfig };
|