@envive-ai/react-hooks 0.3.7 → 0.3.8
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/application/commerce-api.cjs +1 -1
- package/dist/application/commerce-api.js +1 -1
- package/dist/application/models/chatElementDisplayLocationV3.cjs +3 -1
- package/dist/application/models/chatElementDisplayLocationV3.d.cts +3 -1
- package/dist/application/models/chatElementDisplayLocationV3.d.ts +3 -1
- package/dist/application/models/chatElementDisplayLocationV3.js +3 -1
- package/dist/application/models/frontendConfigV3.d.cts +2 -2
- package/dist/application/models/frontendConfigV3.d.ts +2 -2
- package/dist/application/utils/widgetTextRequestToApiRequest.cjs +5 -2
- package/dist/application/utils/widgetTextRequestToApiRequest.js +5 -2
- package/dist/atoms/app/index.cjs +4 -4
- package/dist/atoms/app/index.d.cts +7 -7
- package/dist/atoms/app/index.d.ts +7 -7
- package/dist/atoms/app/index.js +4 -4
- package/dist/atoms/app/variant.d.cts +6 -6
- package/dist/atoms/app/variant.d.ts +6 -6
- package/dist/atoms/chat/chatState.d.cts +18 -18
- package/dist/atoms/chat/chatState.d.ts +17 -17
- package/dist/atoms/chat/form.d.cts +2 -2
- package/dist/atoms/chat/form.d.ts +2 -2
- package/dist/atoms/chat/index.d.cts +2 -2
- package/dist/atoms/chat/index.d.ts +2 -2
- package/dist/atoms/chat/lastMessage.d.cts +2 -2
- package/dist/atoms/chat/lastMessage.d.ts +2 -2
- package/dist/atoms/chat/performanceMetrics.d.cts +6 -6
- package/dist/atoms/chat/performanceMetrics.d.ts +6 -6
- package/dist/atoms/chat/renderedWidgetRefs.d.cts +2 -2
- package/dist/atoms/chat/renderedWidgetRefs.d.ts +2 -2
- package/dist/atoms/chat/replies.cjs +46 -0
- package/dist/atoms/chat/replies.d.cts +14 -0
- package/dist/atoms/chat/replies.d.ts +14 -0
- package/dist/atoms/chat/replies.js +45 -0
- package/dist/atoms/chat/suggestions.d.cts +2 -2
- package/dist/atoms/chat/suggestions.d.ts +2 -2
- package/dist/atoms/globalSearch/globalSearch.d.cts +5 -5
- package/dist/atoms/globalSearch/globalSearch.d.ts +5 -5
- package/dist/atoms/org/customerService.d.cts +6 -6
- package/dist/atoms/org/customerService.d.ts +6 -6
- package/dist/atoms/org/graphqlConfig.d.cts +4 -4
- package/dist/atoms/org/graphqlConfig.d.ts +4 -4
- package/dist/atoms/org/index.cjs +2 -2
- package/dist/atoms/org/index.js +2 -2
- package/dist/atoms/org/newOrgConfigAtom.d.cts +2 -2
- package/dist/atoms/org/newOrgConfigAtom.d.ts +2 -2
- package/dist/atoms/org/orgAnalyticsConfig.d.cts +5 -5
- package/dist/atoms/org/orgAnalyticsConfig.d.ts +5 -5
- package/dist/atoms/search/chatSearch.cjs +1 -1
- package/dist/atoms/search/chatSearch.d.cts +17 -17
- package/dist/atoms/search/chatSearch.d.ts +17 -17
- package/dist/atoms/search/chatSearch.js +1 -1
- package/dist/atoms/search/searchAPI.cjs +1 -1
- package/dist/atoms/search/searchAPI.d.cts +13 -13
- package/dist/atoms/search/searchAPI.d.ts +13 -13
- package/dist/atoms/search/searchAPI.js +1 -1
- package/dist/atoms/search/types.d.cts +1 -1
- package/dist/atoms/widget/chatPreviewLoading.d.cts +2 -2
- package/dist/atoms/widget/chatPreviewLoading.d.ts +2 -2
- package/dist/contexts/amplitudeContext/amplitudeContext.cjs +6 -4
- package/dist/contexts/amplitudeContext/amplitudeContext.js +6 -4
- package/dist/contexts/enviveContext/enviveContext.cjs +38 -16
- package/dist/contexts/enviveContext/enviveContext.d.cts +4 -1
- package/dist/contexts/enviveContext/enviveContext.d.ts +4 -1
- package/dist/contexts/enviveContext/enviveContext.js +38 -16
- package/dist/contexts/enviveContext/types.d.cts +1 -1
- package/dist/contexts/featureFlagServiceContext/featureFlagServiceContext.cjs +56 -2
- package/dist/contexts/featureFlagServiceContext/featureFlagServiceContext.d.cts +6 -1
- package/dist/contexts/featureFlagServiceContext/featureFlagServiceContext.d.ts +6 -1
- package/dist/contexts/featureFlagServiceContext/featureFlagServiceContext.js +56 -2
- package/dist/contexts/graphqlContext/graphqlContext.cjs +10 -4
- package/dist/contexts/graphqlContext/graphqlContext.js +10 -4
- package/dist/contexts/graphqlContext/mockV3Config.cjs +18 -7
- package/dist/contexts/graphqlContext/mockV3Config.js +17 -6
- package/dist/contexts/hardcopyContext/hardcopyContext.cjs +29 -1
- package/dist/contexts/hardcopyContext/hardcopyContext.js +29 -1
- package/dist/contexts/newOrgConfigContext/newOrgConfigContext.cjs +1 -1
- package/dist/contexts/newOrgConfigContext/newOrgConfigContext.js +1 -1
- package/dist/contexts/salesAgentContext/chatAPI.cjs +33 -5
- package/dist/contexts/salesAgentContext/chatAPI.d.cts +4 -4
- package/dist/contexts/salesAgentContext/chatAPI.d.ts +4 -4
- package/dist/contexts/salesAgentContext/chatAPI.js +33 -5
- package/dist/contexts/salesAgentContext/formSubmittedUtils.cjs +37 -0
- package/dist/contexts/salesAgentContext/formSubmittedUtils.js +36 -0
- package/dist/contexts/salesAgentContext/index.d.cts +2 -2
- package/dist/contexts/salesAgentContext/index.d.ts +2 -2
- package/dist/contexts/salesAgentContext/salesAgentContext.cjs +33 -4
- package/dist/contexts/salesAgentContext/salesAgentContext.d.cts +11 -4
- package/dist/contexts/salesAgentContext/salesAgentContext.d.ts +11 -4
- package/dist/contexts/salesAgentContext/salesAgentContext.js +33 -4
- package/dist/contexts/salesAgentContext/salesAgentService.cjs +13 -7
- package/dist/contexts/salesAgentContext/salesAgentService.js +13 -7
- package/dist/contexts/searchContext/searchContext.cjs +1 -1
- package/dist/contexts/searchContext/searchContext.js +1 -1
- package/dist/contexts/types.d.cts +1 -1
- package/dist/contexts/types.d.ts +1 -1
- package/dist/contexts/typesV3.cjs +2 -7
- package/dist/contexts/typesV3.d.cts +12 -9
- package/dist/contexts/typesV3.d.ts +12 -9
- package/dist/contexts/typesV3.js +3 -7
- package/dist/contexts/userIdentityContext/userIdentityContext.cjs +22 -29
- package/dist/contexts/userIdentityContext/userIdentityContext.d.cts +9 -8
- package/dist/contexts/userIdentityContext/userIdentityContext.d.ts +9 -8
- package/dist/contexts/userIdentityContext/userIdentityContext.js +22 -29
- package/dist/hooks/ElementObserver/useElementObserver.cjs +3 -2
- package/dist/hooks/ElementObserver/useElementObserver.js +3 -2
- package/dist/hooks/GrabAndScroll/useGrabAndScroll.d.cts +2 -2
- package/dist/hooks/GrabAndScroll/useGrabAndScroll.d.ts +2 -2
- package/dist/hooks/Search/useSearch.cjs +2 -2
- package/dist/hooks/Search/useSearch.js +2 -2
- package/dist/hooks/Search/useSearchInput.cjs +2 -2
- package/dist/hooks/Search/useSearchInput.js +2 -2
- package/dist/hooks/utils.d.cts +1 -1
- package/dist/mocks/index.cjs +5 -0
- package/dist/mocks/index.d.cts +2 -0
- package/dist/mocks/index.d.ts +2 -0
- package/dist/mocks/index.js +3 -0
- package/dist/mocks/salesAgentMockData.cjs +207 -0
- package/dist/mocks/salesAgentMockData.d.cts +11 -0
- package/dist/mocks/salesAgentMockData.d.ts +11 -0
- package/dist/mocks/salesAgentMockData.js +204 -0
- package/dist/packages/components-v3/dist/ChatHeader/components/CloseButton.cjs +2 -2
- package/dist/packages/components-v3/dist/ChatHeader/components/CloseButton.js +2 -2
- package/dist/packages/components-v3/dist/ChatHeader/hooks/useGetCloseButtonProperties.cjs +2 -2
- package/dist/packages/components-v3/dist/ChatHeader/hooks/useGetCloseButtonProperties.js +2 -2
- package/dist/packages/components-v3/dist/ChatHeader/hooks/useGetHandleProperties.cjs +18 -18
- package/dist/packages/components-v3/dist/ChatHeader/hooks/useGetHandleProperties.js +18 -18
- package/dist/packages/components-v3/dist/ChatHeader/hooks/useGetLayoutProperties.cjs +1 -1
- package/dist/packages/components-v3/dist/ChatHeader/hooks/useGetLayoutProperties.js +1 -1
- package/dist/packages/components-v3/dist/ChatHeader/hooks/useGetToggleProperties.cjs +4 -4
- package/dist/packages/components-v3/dist/ChatHeader/hooks/useGetToggleProperties.js +4 -4
- package/dist/packages/components-v3/dist/ChatPreviewLoading/components/Skeleton.cjs +1 -0
- package/dist/packages/components-v3/dist/ChatPreviewLoading/components/Skeleton.js +3 -0
- package/dist/packages/components-v3/dist/Container/Container.cjs +19 -3
- package/dist/packages/components-v3/dist/Container/Container.js +19 -4
- package/dist/packages/components-v3/dist/Container/hooks/useGetCenterContentProperties.cjs +13 -0
- package/dist/packages/components-v3/dist/Container/hooks/useGetCenterContentProperties.js +11 -1
- package/dist/packages/components-v3/dist/Container/hooks/useGetFluidProperties.cjs +13 -0
- package/dist/packages/components-v3/dist/Container/hooks/useGetFluidProperties.js +11 -1
- package/dist/packages/components-v3/dist/Container/index.cjs +1 -1
- package/dist/packages/components-v3/dist/Container/index.js +1 -1
- package/dist/packages/components-v3/dist/DesignTokens/components/utils.cjs +16 -0
- package/dist/packages/components-v3/dist/DesignTokens/components/utils.js +15 -0
- package/dist/packages/components-v3/dist/ImageGallery/components/Layout.cjs +2 -2
- package/dist/packages/components-v3/dist/ImageGallery/components/Layout.js +2 -2
- package/dist/packages/components-v3/dist/PromptButton/PromptButton.cjs +40 -4
- package/dist/packages/components-v3/dist/PromptButton/PromptButton.js +40 -5
- package/dist/packages/components-v3/dist/PromptButton/components/Icon.cjs +10 -0
- package/dist/packages/components-v3/dist/PromptButton/components/Icon.js +8 -1
- package/dist/packages/components-v3/dist/PromptButton/components/Label.cjs +18 -1
- package/dist/packages/components-v3/dist/PromptButton/components/Label.js +16 -2
- package/dist/packages/components-v3/dist/PromptButton/components/Layout.cjs +31 -3
- package/dist/packages/components-v3/dist/PromptButton/components/Layout.js +31 -4
- package/dist/packages/components-v3/dist/PromptButton/components/Loading.cjs +5 -1
- package/dist/packages/components-v3/dist/PromptButton/components/Loading.js +5 -2
- package/dist/packages/components-v3/dist/PromptButton/components/index.cjs +16 -4
- package/dist/packages/components-v3/dist/PromptButton/components/index.js +15 -5
- package/dist/packages/components-v3/dist/PromptButton/hooks/useGetBackgroundColorsProperties.cjs +18 -0
- package/dist/packages/components-v3/dist/PromptButton/hooks/useGetBackgroundColorsProperties.js +18 -0
- package/dist/packages/components-v3/dist/PromptButton/hooks/useGetBoldTextProperties.cjs +12 -0
- package/dist/packages/components-v3/dist/PromptButton/hooks/useGetBoldTextProperties.js +10 -1
- package/dist/packages/components-v3/dist/PromptButton/hooks/useGetBorderColorsProperties.cjs +18 -0
- package/dist/packages/components-v3/dist/PromptButton/hooks/useGetBorderColorsProperties.js +18 -0
- package/dist/packages/components-v3/dist/PromptButton/hooks/useGetIconColorsProperties.cjs +32 -0
- package/dist/packages/components-v3/dist/PromptButton/hooks/useGetIconColorsProperties.js +32 -0
- package/dist/packages/components-v3/dist/PromptButton/hooks/useGetLayoutBaseProperties.cjs +9 -1
- package/dist/packages/components-v3/dist/PromptButton/hooks/useGetLayoutBaseProperties.js +9 -2
- package/dist/packages/components-v3/dist/PromptButton/hooks/useGetTextColorsProperties.cjs +19 -0
- package/dist/packages/components-v3/dist/PromptButton/hooks/useGetTextColorsProperties.js +19 -0
- package/dist/packages/components-v3/dist/PromptButton/hooks/useGetVariantColorsProperties.cjs +29 -0
- package/dist/packages/components-v3/dist/PromptButton/hooks/useGetVariantColorsProperties.js +29 -0
- package/dist/packages/components-v3/dist/PromptButton/index.cjs +1 -1
- package/dist/packages/components-v3/dist/PromptButton/index.js +1 -1
- package/dist/packages/components-v3/dist/PromptButton/utils/functions.cjs +10 -0
- package/dist/packages/components-v3/dist/PromptButton/utils/functions.js +10 -0
- package/dist/packages/components-v3/dist/PromptCarousel/hooks/useCarouselRefs.js +1 -1
- package/dist/packages/components-v3/dist/SocialProof/SocialProof.cjs +10 -0
- package/dist/packages/components-v3/dist/SocialProof/SocialProof.js +12 -0
- package/dist/packages/components-v3/dist/SocialProof/components/Headline.cjs +53 -0
- package/dist/packages/components-v3/dist/SocialProof/components/Headline.js +54 -0
- package/dist/packages/components-v3/dist/SocialProof/components/ImageGallery.cjs +5 -0
- package/dist/packages/components-v3/dist/SocialProof/components/ImageGallery.js +7 -0
- package/dist/packages/components-v3/dist/SocialProof/components/LayoutFourGrid.cjs +6 -0
- package/dist/packages/components-v3/dist/SocialProof/components/LayoutFourGrid.js +8 -0
- package/dist/packages/components-v3/dist/SocialProof/components/LayoutFourHorizontal.cjs +16 -0
- package/dist/packages/components-v3/dist/SocialProof/components/LayoutFourHorizontal.js +17 -0
- package/dist/packages/components-v3/dist/SocialProof/components/LayoutSingle.cjs +8 -0
- package/dist/packages/components-v3/dist/SocialProof/components/LayoutSingle.js +10 -0
- package/dist/packages/components-v3/dist/SocialProof/components/Skeleton.cjs +1 -0
- package/dist/packages/components-v3/dist/SocialProof/components/Skeleton.js +3 -0
- package/dist/packages/components-v3/dist/SocialProof/components/Subheadline.cjs +8 -0
- package/dist/packages/components-v3/dist/SocialProof/components/Subheadline.js +10 -0
- package/dist/packages/components-v3/dist/SocialProof/components/Textfield.cjs +3 -0
- package/dist/packages/components-v3/dist/SocialProof/components/Textfield.js +5 -0
- package/dist/packages/components-v3/dist/SocialProof/components/index.cjs +8 -0
- package/dist/packages/components-v3/dist/SocialProof/components/index.js +10 -0
- package/dist/packages/components-v3/dist/SocialProof/hooks/index.cjs +1 -0
- package/dist/packages/components-v3/dist/SocialProof/hooks/index.js +3 -0
- package/dist/packages/components-v3/dist/SocialProof/hooks/useSocialProofCount.cjs +1 -0
- package/dist/packages/components-v3/dist/SocialProof/hooks/useSocialProofCount.js +3 -0
- package/dist/packages/components-v3/dist/SocialProof/index.cjs +4 -0
- package/dist/packages/components-v3/dist/SocialProof/index.js +6 -0
- package/dist/packages/components-v3/dist/SocialProof/types/types.cjs +11 -0
- package/dist/packages/components-v3/dist/SocialProof/types/types.js +10 -0
- package/dist/packages/components-v3/dist/SocialProof/utils/functions.cjs +1 -0
- package/dist/packages/components-v3/dist/SocialProof/utils/functions.js +3 -0
- package/dist/packages/components-v3/dist/Title/Title.cjs +11 -0
- package/dist/packages/components-v3/dist/Title/Title.js +12 -0
- package/dist/packages/components-v3/dist/Title/components/Image.cjs +2 -0
- package/dist/packages/components-v3/dist/Title/components/Image.js +4 -0
- package/dist/packages/components-v3/dist/Title/components/Label.cjs +3 -0
- package/dist/packages/components-v3/dist/Title/components/Label.js +5 -0
- package/dist/packages/components-v3/dist/Title/components/Layout.cjs +11 -0
- package/dist/packages/components-v3/dist/Title/components/Layout.js +12 -0
- package/dist/packages/components-v3/dist/Title/components/index.cjs +3 -0
- package/dist/packages/components-v3/dist/Title/components/index.js +5 -0
- package/dist/packages/components-v3/dist/Title/index.cjs +1 -0
- package/dist/packages/components-v3/dist/Title/index.js +3 -0
- package/dist/packages/components-v3/dist/Tokens/index.cjs +11 -11
- package/dist/packages/components-v3/dist/Tokens/index.js +11 -11
- package/dist/packages/components-v3/dist/Typography/Typography.cjs +35 -7
- package/dist/packages/components-v3/dist/Typography/Typography.js +35 -8
- package/dist/packages/components-v3/dist/Typography/hooks/useGetAccessibilityAttributes.cjs +30 -0
- package/dist/packages/components-v3/dist/Typography/hooks/useGetAccessibilityAttributes.js +28 -1
- package/dist/packages/components-v3/dist/Typography/hooks/useGetAlignProperties.cjs +19 -0
- package/dist/packages/components-v3/dist/Typography/hooks/useGetAlignProperties.js +17 -1
- package/dist/packages/components-v3/dist/Typography/hooks/useGetColorProperties.cjs +20 -0
- package/dist/packages/components-v3/dist/Typography/hooks/useGetColorProperties.js +18 -1
- package/dist/packages/components-v3/dist/Typography/hooks/useGetNoWrapProperties.cjs +12 -0
- package/dist/packages/components-v3/dist/Typography/hooks/useGetNoWrapProperties.js +10 -1
- package/dist/packages/components-v3/dist/Typography/hooks/useGetNumberOfLinesProperties.cjs +21 -0
- package/dist/packages/components-v3/dist/Typography/hooks/useGetNumberOfLinesProperties.js +19 -1
- package/dist/packages/components-v3/dist/Typography/hooks/useGetVariantProperties.cjs +61 -0
- package/dist/packages/components-v3/dist/Typography/hooks/useGetVariantProperties.js +59 -1
- package/dist/packages/components-v3/dist/Typography/index.cjs +2 -1
- package/dist/packages/components-v3/dist/Typography/index.js +2 -1
- package/dist/packages/components-v3/dist/Typography/types/index.cjs +47 -0
- package/dist/packages/components-v3/dist/Typography/types/index.js +44 -0
- package/dist/packages/components-v3/dist/Typography/utils/utils.cjs +12 -0
- package/dist/packages/components-v3/dist/Typography/utils/utils.js +10 -0
- package/dist/packages/components-v3/dist/WelcomeMessage/components/Container.cjs +1 -1
- package/dist/packages/components-v3/dist/WelcomeMessage/components/Container.js +1 -1
- package/dist/packages/components-v3/dist/WelcomeMessage/types/types.cjs +2 -2
- package/dist/packages/components-v3/dist/WelcomeMessage/types/types.js +2 -2
- package/dist/packages/components-v3/dist/WidgetTextField/WidgetTextField.cjs +2 -0
- package/dist/packages/components-v3/dist/WidgetTextField/WidgetTextField.js +4 -0
- package/dist/packages/components-v3/dist/WidgetTextField/components/Container.cjs +14 -0
- package/dist/packages/components-v3/dist/WidgetTextField/components/Container.js +15 -0
- package/dist/packages/components-v3/dist/WidgetTextField/components/FakeTextInput.cjs +3 -0
- package/dist/packages/components-v3/dist/WidgetTextField/components/FakeTextInput.js +5 -0
- package/dist/packages/components-v3/dist/WidgetTextField/components/Icon.cjs +7 -0
- package/dist/packages/components-v3/dist/WidgetTextField/components/Icon.js +9 -0
- package/dist/packages/components-v3/dist/WidgetTextField/components/Skeleton.cjs +10 -0
- package/dist/packages/components-v3/dist/WidgetTextField/components/Skeleton.js +11 -0
- package/dist/packages/components-v3/dist/WidgetTextField/components/index.cjs +4 -0
- package/dist/packages/components-v3/dist/WidgetTextField/components/index.js +6 -0
- package/dist/packages/components-v3/dist/WidgetTextField/hooks/useGetContainerProperties.cjs +1 -0
- package/dist/packages/components-v3/dist/WidgetTextField/hooks/useGetContainerProperties.js +3 -0
- package/dist/packages/components-v3/dist/WidgetTextField/index.cjs +1 -0
- package/dist/packages/components-v3/dist/WidgetTextField/index.js +3 -0
- package/dist/packages/components-v3/dist/WidgetWrapperWithTitle/WidgetWrapperWithTitle.cjs +8 -0
- package/dist/packages/components-v3/dist/WidgetWrapperWithTitle/WidgetWrapperWithTitle.js +10 -0
- package/dist/packages/components-v3/dist/packages/components-v3/src/models/colorsConfig.cjs +26 -0
- package/dist/packages/components-v3/dist/packages/components-v3/src/models/colorsConfig.js +25 -0
- package/dist/packages/components-v3/dist/packages/components-v3/tokens/aspectRatio/aspectRatio.cjs +16 -0
- package/dist/packages/components-v3/dist/packages/components-v3/tokens/aspectRatio/aspectRatio.js +17 -0
- package/dist/packages/components-v3/dist/packages/components-v3/tokens/breakpoints/breakpoints.cjs +25 -0
- package/dist/packages/components-v3/dist/packages/components-v3/tokens/breakpoints/breakpoints.js +23 -0
- package/dist/packages/components-v3/dist/packages/components-v3/tokens/colors/colors.cjs +51 -0
- package/dist/packages/components-v3/dist/packages/components-v3/tokens/colors/colors.js +51 -0
- package/dist/packages/components-v3/dist/packages/components-v3/tokens/radius/radius.cjs +64 -0
- package/dist/packages/components-v3/dist/packages/components-v3/tokens/radius/radius.js +65 -0
- package/dist/packages/components-v3/dist/packages/components-v3/tokens/theme/theme.cjs +18 -0
- package/dist/packages/components-v3/dist/packages/components-v3/tokens/theme/theme.js +16 -0
- package/dist/packages/components-v3/dist/packages/components-v3/tokens/typography/fontFamily.cjs +25 -0
- package/dist/packages/components-v3/dist/packages/components-v3/tokens/typography/fontFamily.js +25 -0
- package/dist/packages/components-v3/dist/packages/components-v3/tokens/typography/fontSize.cjs +37 -0
- package/dist/packages/components-v3/dist/packages/components-v3/tokens/typography/fontSize.js +38 -0
- package/dist/packages/components-v3/dist/packages/components-v3/tokens/typography/fontWeight.cjs +17 -0
- package/dist/packages/components-v3/dist/packages/components-v3/tokens/typography/fontWeight.js +18 -0
- package/dist/packages/components-v3/dist/packages/components-v3/tokens/typography/letterSpacing.cjs +15 -0
- package/dist/packages/components-v3/dist/packages/components-v3/tokens/typography/letterSpacing.js +16 -0
- package/dist/packages/components-v3/dist/packages/components-v3/tokens/typography/lineHeight.cjs +31 -0
- package/dist/packages/components-v3/dist/packages/components-v3/tokens/typography/lineHeight.js +32 -0
- package/dist/packages/components-v3/dist/packages/components-v3/tokens/utils.cjs +7 -0
- package/dist/packages/components-v3/dist/packages/components-v3/tokens/utils.js +6 -0
- package/dist/packages/components-v3/dist/utils/resolveTheme.cjs +13 -0
- package/dist/packages/components-v3/dist/utils/resolveTheme.js +13 -0
- package/dist/packages/components-v3/dist/utils/useGetContentSize.cjs +1 -0
- package/dist/packages/components-v3/dist/utils/useGetContentSize.js +3 -0
- package/dist/packages/components-v3/dist/utils/useResponsiveValue.cjs +2 -2
- package/dist/packages/components-v3/dist/utils/useResponsiveValue.js +2 -2
- package/dist/packages/icons/dist/FourPointStar.cjs +16 -1
- package/dist/packages/icons/dist/FourPointStar.js +16 -2
- package/dist/packages/icons/dist/MagnifyingGlass.cjs +8 -0
- package/dist/packages/icons/dist/MagnifyingGlass.js +9 -0
- package/dist/packages/icons/dist/MagnifyingThin.cjs +8 -0
- package/dist/packages/icons/dist/MagnifyingThin.js +9 -0
- package/dist/packages/icons/dist/SendMinimalist.cjs +8 -0
- package/dist/packages/icons/dist/SendMinimalist.js +9 -0
- package/dist/packages/icons/dist/SendModern.cjs +8 -0
- package/dist/packages/icons/dist/SendModern.js +9 -0
- package/dist/packages/icons/dist/SendStandard.cjs +8 -0
- package/dist/packages/icons/dist/SendStandard.js +9 -0
- package/dist/services/amplitudeService/amplitudeService.cjs +37 -12
- package/dist/services/amplitudeService/amplitudeService.d.cts +11 -3
- package/dist/services/amplitudeService/amplitudeService.d.ts +11 -3
- package/dist/services/amplitudeService/amplitudeService.js +37 -12
- package/dist/services/userIdentityService/index.cjs +3 -0
- package/dist/services/userIdentityService/index.d.cts +2 -0
- package/dist/services/userIdentityService/index.d.ts +2 -0
- package/dist/services/userIdentityService/index.js +3 -0
- package/dist/services/userIdentityService/userIdentityService.cjs +49 -0
- package/dist/services/userIdentityService/userIdentityService.d.cts +19 -0
- package/dist/services/userIdentityService/userIdentityService.d.ts +19 -0
- package/dist/services/userIdentityService/userIdentityService.js +48 -0
- package/package.json +18 -5
- package/src/application/models/chatElementDisplayLocationV3.ts +2 -0
- package/src/application/models/frontendConfigV3.ts +1 -1
- package/src/application/utils/widgetTextRequestToApiRequest.ts +5 -5
- package/src/atoms/app/index.ts +9 -7
- package/src/atoms/chat/replies.ts +56 -0
- package/src/contexts/amplitudeContext/__tests__/amplitudeContext.test.tsx +47 -66
- package/src/contexts/amplitudeContext/amplitudeContext.tsx +4 -1
- package/src/contexts/enviveContext/enviveContext.tsx +47 -6
- package/src/contexts/featureFlagServiceContext/featureFlagServiceContext.tsx +101 -2
- package/src/contexts/graphqlContext/graphqlContext.tsx +11 -2
- package/src/contexts/graphqlContext/mockV3Config.ts +15 -4
- package/src/contexts/hardcopyContext/hardcopyContext.tsx +29 -0
- package/src/contexts/salesAgentContext/chatAPI.ts +36 -7
- package/src/contexts/salesAgentContext/formSubmittedUtils.ts +57 -0
- package/src/contexts/salesAgentContext/salesAgentContext.tsx +63 -2
- package/src/contexts/salesAgentContext/salesAgentService.ts +15 -9
- package/src/contexts/searchContext/__tests__/searchContext.test.tsx +3 -1
- package/src/contexts/typesV3.ts +13 -10
- package/src/contexts/userIdentityContext/__tests__/userIdentityContext.test.tsx +18 -131
- package/src/contexts/userIdentityContext/userIdentityContext.tsx +47 -41
- package/src/hooks/ElementObserver/useElementObserver.ts +2 -1
- package/src/hooks/Search/__tests__/useSearch.test.tsx +11 -1
- package/src/mocks/index.ts +1 -0
- package/src/mocks/salesAgentMockData.ts +247 -0
- package/src/services/amplitudeService/__tests__/amplitudeService.test.ts +17 -0
- package/src/services/amplitudeService/amplitudeService.ts +50 -11
- package/src/services/userIdentityService/index.ts +1 -0
- package/src/services/userIdentityService/userIdentityService.ts +64 -0
- package/dist/contexts/featureFlagContext/featureFlagContext.cjs +0 -105
- package/dist/contexts/featureFlagContext/featureFlagContext.d.cts +0 -19
- package/dist/contexts/featureFlagContext/featureFlagContext.d.ts +0 -19
- package/dist/contexts/featureFlagContext/featureFlagContext.js +0 -102
- package/dist/contexts/featureFlagContext/index.cjs +0 -4
- package/dist/contexts/featureFlagContext/index.d.cts +0 -2
- package/dist/contexts/featureFlagContext/index.d.ts +0 -2
- package/dist/contexts/featureFlagContext/index.js +0 -3
- package/dist/packages/components-v3/dist/src/models/colorsConfig.cjs +0 -26
- package/dist/packages/components-v3/dist/src/models/colorsConfig.js +0 -25
- package/dist/packages/components-v3/dist/tokens/aspectRatio/aspectRatio.cjs +0 -16
- package/dist/packages/components-v3/dist/tokens/aspectRatio/aspectRatio.js +0 -17
- package/dist/packages/components-v3/dist/tokens/breakpoints/breakpoints.cjs +0 -25
- package/dist/packages/components-v3/dist/tokens/breakpoints/breakpoints.js +0 -23
- package/dist/packages/components-v3/dist/tokens/colors/colors.cjs +0 -51
- package/dist/packages/components-v3/dist/tokens/colors/colors.js +0 -51
- package/dist/packages/components-v3/dist/tokens/radius/radius.cjs +0 -64
- package/dist/packages/components-v3/dist/tokens/radius/radius.js +0 -65
- package/dist/packages/components-v3/dist/tokens/theme/theme.cjs +0 -13
- package/dist/packages/components-v3/dist/tokens/theme/theme.js +0 -12
- package/dist/packages/components-v3/dist/tokens/typography/fontFamily.cjs +0 -25
- package/dist/packages/components-v3/dist/tokens/typography/fontFamily.js +0 -25
- package/dist/packages/components-v3/dist/tokens/typography/fontSize.cjs +0 -37
- package/dist/packages/components-v3/dist/tokens/typography/fontSize.js +0 -38
- package/dist/packages/components-v3/dist/tokens/typography/fontWeight.cjs +0 -17
- package/dist/packages/components-v3/dist/tokens/typography/fontWeight.js +0 -18
- package/dist/packages/components-v3/dist/tokens/typography/letterSpacing.cjs +0 -15
- package/dist/packages/components-v3/dist/tokens/typography/letterSpacing.js +0 -16
- package/dist/packages/components-v3/dist/tokens/typography/lineHeight.cjs +0 -31
- package/dist/packages/components-v3/dist/tokens/typography/lineHeight.js +0 -32
- package/dist/packages/components-v3/dist/tokens/utils.cjs +0 -7
- package/dist/packages/components-v3/dist/tokens/utils.js +0 -6
- package/src/contexts/featureFlagContext/featureFlagContext.tsx +0 -180
- package/src/contexts/featureFlagContext/index.ts +0 -1
- /package/dist/packages/components-v3/dist/{tokens → packages/components-v3/tokens}/typography/typography.cjs +0 -0
- /package/dist/packages/components-v3/dist/{tokens → packages/components-v3/tokens}/typography/typography.js +0 -0
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { ProductResponseAttributes } from "../../application/models/api/response.cjs";
|
|
2
2
|
import { Message } from "../../application/models/message.cjs";
|
|
3
3
|
import { ChatSearchFilter, ChatSearchStateType, ProductSorting } from "./types.cjs";
|
|
4
|
-
import * as
|
|
4
|
+
import * as jotai35 from "jotai";
|
|
5
5
|
|
|
6
6
|
//#region src/atoms/search/chatSearch.d.ts
|
|
7
|
-
declare const chatSearchStateAtom:
|
|
7
|
+
declare const chatSearchStateAtom: jotai35.PrimitiveAtom<ChatSearchStateType> & {
|
|
8
8
|
init: ChatSearchStateType;
|
|
9
9
|
};
|
|
10
|
-
declare const chatSearchHasProductsAtom:
|
|
10
|
+
declare const chatSearchHasProductsAtom: jotai35.PrimitiveAtom<boolean> & {
|
|
11
11
|
init: boolean;
|
|
12
12
|
};
|
|
13
|
-
declare const chatSearchProductSortingAtom:
|
|
13
|
+
declare const chatSearchProductSortingAtom: jotai35.PrimitiveAtom<ProductSorting> & {
|
|
14
14
|
init: ProductSorting;
|
|
15
15
|
};
|
|
16
16
|
type ChatSearchTurn = {
|
|
@@ -21,7 +21,7 @@ type ChatSearchTurn = {
|
|
|
21
21
|
filterList: string[];
|
|
22
22
|
messages: Message[];
|
|
23
23
|
};
|
|
24
|
-
declare const chatSearchIsLoadingAtom:
|
|
24
|
+
declare const chatSearchIsLoadingAtom: jotai35.PrimitiveAtom<boolean> & {
|
|
25
25
|
init: boolean;
|
|
26
26
|
};
|
|
27
27
|
type SelectedChatSearchFilterOption = {
|
|
@@ -30,21 +30,21 @@ type SelectedChatSearchFilterOption = {
|
|
|
30
30
|
filterId: string;
|
|
31
31
|
filterItemId: string;
|
|
32
32
|
};
|
|
33
|
-
declare const selectedFilterOptionsAtom:
|
|
33
|
+
declare const selectedFilterOptionsAtom: jotai35.PrimitiveAtom<SelectedChatSearchFilterOption[]> & {
|
|
34
34
|
init: SelectedChatSearchFilterOption[];
|
|
35
35
|
};
|
|
36
|
-
declare const additiveDynamicFiltersAtom:
|
|
36
|
+
declare const additiveDynamicFiltersAtom: jotai35.Atom<boolean>;
|
|
37
37
|
declare const createChatSearchFilterOption: (filterId: string, filterItemId: string, displayName: string) => SelectedChatSearchFilterOption;
|
|
38
|
-
declare const chatSearchParamsAtom:
|
|
38
|
+
declare const chatSearchParamsAtom: jotai35.WritableAtom<{
|
|
39
39
|
id: string | null;
|
|
40
40
|
query: string | null;
|
|
41
41
|
}, [value: {
|
|
42
42
|
id: string | null;
|
|
43
43
|
query: string | null;
|
|
44
44
|
}], void>;
|
|
45
|
-
declare const chatSearchQueryAtom:
|
|
46
|
-
declare const chatSearchIdAtom:
|
|
47
|
-
declare const ChatSearchTurnAtom:
|
|
45
|
+
declare const chatSearchQueryAtom: jotai35.WritableAtom<string | null, [value: string | null], void>;
|
|
46
|
+
declare const chatSearchIdAtom: jotai35.WritableAtom<string | null, [value: string | null], void>;
|
|
47
|
+
declare const ChatSearchTurnAtom: jotai35.Atom<{
|
|
48
48
|
productList: {
|
|
49
49
|
averageRating?: number | undefined;
|
|
50
50
|
colors?: string[] | undefined;
|
|
@@ -74,7 +74,7 @@ declare const ChatSearchTurnAtom: jotai34.Atom<{
|
|
|
74
74
|
filterList: string[];
|
|
75
75
|
messages: Message[];
|
|
76
76
|
} | null>;
|
|
77
|
-
declare const chatSearchProducts:
|
|
77
|
+
declare const chatSearchProducts: jotai35.Atom<{
|
|
78
78
|
averageRating?: number | undefined;
|
|
79
79
|
colors?: string[] | undefined;
|
|
80
80
|
description?: string | undefined;
|
|
@@ -97,19 +97,19 @@ declare const chatSearchProducts: jotai34.Atom<{
|
|
|
97
97
|
title: string;
|
|
98
98
|
url: string;
|
|
99
99
|
}[]>;
|
|
100
|
-
declare const chatSearchFiltersAtom:
|
|
100
|
+
declare const chatSearchFiltersAtom: jotai35.Atom<ChatSearchFilter[]>;
|
|
101
101
|
declare const setSearchParams: (query: string) => void;
|
|
102
|
-
declare const getSearchParamsAtom:
|
|
102
|
+
declare const getSearchParamsAtom: jotai35.Atom<{
|
|
103
103
|
es: string | null;
|
|
104
104
|
esq: string | null;
|
|
105
105
|
}>;
|
|
106
|
-
declare const initiateChatSearchAtom:
|
|
106
|
+
declare const initiateChatSearchAtom: jotai35.WritableAtom<null, [query: string], void> & {
|
|
107
107
|
init: null;
|
|
108
108
|
};
|
|
109
|
-
declare const handleSearchResultsAtom:
|
|
109
|
+
declare const handleSearchResultsAtom: jotai35.WritableAtom<null, [message: Message | undefined], void> & {
|
|
110
110
|
init: null;
|
|
111
111
|
};
|
|
112
|
-
declare const setChatSearchParamsAtom:
|
|
112
|
+
declare const setChatSearchParamsAtom: jotai35.WritableAtom<null, [query: string], void> & {
|
|
113
113
|
init: null;
|
|
114
114
|
};
|
|
115
115
|
//#endregion
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { ProductResponseAttributes } from "../../application/models/api/response.js";
|
|
2
2
|
import { Message } from "../../application/models/message.js";
|
|
3
3
|
import { ChatSearchFilter, ChatSearchStateType, ProductSorting } from "./types.js";
|
|
4
|
-
import * as
|
|
4
|
+
import * as jotai52 from "jotai";
|
|
5
5
|
|
|
6
6
|
//#region src/atoms/search/chatSearch.d.ts
|
|
7
|
-
declare const chatSearchStateAtom:
|
|
7
|
+
declare const chatSearchStateAtom: jotai52.PrimitiveAtom<ChatSearchStateType> & {
|
|
8
8
|
init: ChatSearchStateType;
|
|
9
9
|
};
|
|
10
|
-
declare const chatSearchHasProductsAtom:
|
|
10
|
+
declare const chatSearchHasProductsAtom: jotai52.PrimitiveAtom<boolean> & {
|
|
11
11
|
init: boolean;
|
|
12
12
|
};
|
|
13
|
-
declare const chatSearchProductSortingAtom:
|
|
13
|
+
declare const chatSearchProductSortingAtom: jotai52.PrimitiveAtom<ProductSorting> & {
|
|
14
14
|
init: ProductSorting;
|
|
15
15
|
};
|
|
16
16
|
type ChatSearchTurn = {
|
|
@@ -21,7 +21,7 @@ type ChatSearchTurn = {
|
|
|
21
21
|
filterList: string[];
|
|
22
22
|
messages: Message[];
|
|
23
23
|
};
|
|
24
|
-
declare const chatSearchIsLoadingAtom:
|
|
24
|
+
declare const chatSearchIsLoadingAtom: jotai52.PrimitiveAtom<boolean> & {
|
|
25
25
|
init: boolean;
|
|
26
26
|
};
|
|
27
27
|
type SelectedChatSearchFilterOption = {
|
|
@@ -30,21 +30,21 @@ type SelectedChatSearchFilterOption = {
|
|
|
30
30
|
filterId: string;
|
|
31
31
|
filterItemId: string;
|
|
32
32
|
};
|
|
33
|
-
declare const selectedFilterOptionsAtom:
|
|
33
|
+
declare const selectedFilterOptionsAtom: jotai52.PrimitiveAtom<SelectedChatSearchFilterOption[]> & {
|
|
34
34
|
init: SelectedChatSearchFilterOption[];
|
|
35
35
|
};
|
|
36
|
-
declare const additiveDynamicFiltersAtom:
|
|
36
|
+
declare const additiveDynamicFiltersAtom: jotai52.Atom<boolean>;
|
|
37
37
|
declare const createChatSearchFilterOption: (filterId: string, filterItemId: string, displayName: string) => SelectedChatSearchFilterOption;
|
|
38
|
-
declare const chatSearchParamsAtom:
|
|
38
|
+
declare const chatSearchParamsAtom: jotai52.WritableAtom<{
|
|
39
39
|
id: string | null;
|
|
40
40
|
query: string | null;
|
|
41
41
|
}, [value: {
|
|
42
42
|
id: string | null;
|
|
43
43
|
query: string | null;
|
|
44
44
|
}], void>;
|
|
45
|
-
declare const chatSearchQueryAtom:
|
|
46
|
-
declare const chatSearchIdAtom:
|
|
47
|
-
declare const ChatSearchTurnAtom:
|
|
45
|
+
declare const chatSearchQueryAtom: jotai52.WritableAtom<string | null, [value: string | null], void>;
|
|
46
|
+
declare const chatSearchIdAtom: jotai52.WritableAtom<string | null, [value: string | null], void>;
|
|
47
|
+
declare const ChatSearchTurnAtom: jotai52.Atom<{
|
|
48
48
|
productList: {
|
|
49
49
|
averageRating?: number | undefined;
|
|
50
50
|
colors?: string[] | undefined;
|
|
@@ -74,7 +74,7 @@ declare const ChatSearchTurnAtom: jotai60.Atom<{
|
|
|
74
74
|
filterList: string[];
|
|
75
75
|
messages: Message[];
|
|
76
76
|
} | null>;
|
|
77
|
-
declare const chatSearchProducts:
|
|
77
|
+
declare const chatSearchProducts: jotai52.Atom<{
|
|
78
78
|
averageRating?: number | undefined;
|
|
79
79
|
colors?: string[] | undefined;
|
|
80
80
|
description?: string | undefined;
|
|
@@ -97,19 +97,19 @@ declare const chatSearchProducts: jotai60.Atom<{
|
|
|
97
97
|
title: string;
|
|
98
98
|
url: string;
|
|
99
99
|
}[]>;
|
|
100
|
-
declare const chatSearchFiltersAtom:
|
|
100
|
+
declare const chatSearchFiltersAtom: jotai52.Atom<ChatSearchFilter[]>;
|
|
101
101
|
declare const setSearchParams: (query: string) => void;
|
|
102
|
-
declare const getSearchParamsAtom:
|
|
102
|
+
declare const getSearchParamsAtom: jotai52.Atom<{
|
|
103
103
|
es: string | null;
|
|
104
104
|
esq: string | null;
|
|
105
105
|
}>;
|
|
106
|
-
declare const initiateChatSearchAtom:
|
|
106
|
+
declare const initiateChatSearchAtom: jotai52.WritableAtom<null, [query: string], void> & {
|
|
107
107
|
init: null;
|
|
108
108
|
};
|
|
109
|
-
declare const handleSearchResultsAtom:
|
|
109
|
+
declare const handleSearchResultsAtom: jotai52.WritableAtom<null, [message: Message | undefined], void> & {
|
|
110
110
|
init: null;
|
|
111
111
|
};
|
|
112
|
-
declare const setChatSearchParamsAtom:
|
|
112
|
+
declare const setChatSearchParamsAtom: jotai52.WritableAtom<null, [query: string], void> & {
|
|
113
113
|
init: null;
|
|
114
114
|
};
|
|
115
115
|
//#endregion
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { MessageRole, MessageType } from "../../application/models/message.js";
|
|
2
2
|
import "../../application/models/index.js";
|
|
3
|
+
import { newOrgConfigAtom } from "../org/newOrgConfigAtom.js";
|
|
3
4
|
import { messagesAtom, replyEventCategoryAtom, userHasRepliedAtom, userQueryAtom } from "../chat/chatState.js";
|
|
4
5
|
import { queueUserEventAtom } from "../chat/messageQueue.js";
|
|
5
6
|
import "../chat/index.js";
|
|
6
|
-
import { newOrgConfigAtom } from "../org/newOrgConfigAtom.js";
|
|
7
7
|
import "../org/index.js";
|
|
8
8
|
import { ProductFilters } from "./productFilters.js";
|
|
9
9
|
import { ProductSorting } from "./types.js";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
const require_rolldown_runtime = require('../../_virtual/rolldown_runtime.cjs');
|
|
2
2
|
const require_newOrgConfigAtom = require('../org/newOrgConfigAtom.cjs');
|
|
3
|
+
const require_searchServiceAdapter = require('./searchServiceAdapter.cjs');
|
|
3
4
|
require('../org/index.cjs');
|
|
4
5
|
const require_productFilters = require('./productFilters.cjs');
|
|
5
6
|
const require_atoms_search_types = require('./types.cjs');
|
|
6
7
|
const require_productSorter = require('./productSorter.cjs');
|
|
7
|
-
const require_searchServiceAdapter = require('./searchServiceAdapter.cjs');
|
|
8
8
|
let jotai = require("jotai");
|
|
9
9
|
|
|
10
10
|
//#region src/atoms/search/searchAPI.ts
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { SearchParams, SearchResult } from "../../application/models/api/search.cjs";
|
|
2
2
|
import { ChatSearchFilter, ProductSorting } from "./types.cjs";
|
|
3
|
-
import * as
|
|
3
|
+
import * as jotai23 from "jotai";
|
|
4
4
|
|
|
5
5
|
//#region src/atoms/search/searchAPI.d.ts
|
|
6
6
|
type SelectedFilterOption = {
|
|
@@ -15,28 +15,28 @@ interface SearchState {
|
|
|
15
15
|
error: string | null;
|
|
16
16
|
lastQuery: string | null;
|
|
17
17
|
}
|
|
18
|
-
declare const searchAtom:
|
|
18
|
+
declare const searchAtom: jotai23.PrimitiveAtom<SearchState> & {
|
|
19
19
|
init: SearchState;
|
|
20
20
|
};
|
|
21
|
-
declare const searchProductSortingAtom:
|
|
21
|
+
declare const searchProductSortingAtom: jotai23.PrimitiveAtom<ProductSorting> & {
|
|
22
22
|
init: ProductSorting;
|
|
23
23
|
};
|
|
24
|
-
declare const searchSelectedFiltersAtom:
|
|
24
|
+
declare const searchSelectedFiltersAtom: jotai23.PrimitiveAtom<SelectedFilterOption[]> & {
|
|
25
25
|
init: SelectedFilterOption[];
|
|
26
26
|
};
|
|
27
27
|
declare const createFilterOption: (filterId: string, filterItemId: string, displayName: string) => SelectedFilterOption;
|
|
28
|
-
declare const searchParamsAtom:
|
|
28
|
+
declare const searchParamsAtom: jotai23.WritableAtom<{
|
|
29
29
|
id: string | null;
|
|
30
30
|
query: string | null;
|
|
31
31
|
}, [value: {
|
|
32
32
|
id: string | null;
|
|
33
33
|
query: string | null;
|
|
34
34
|
}], void>;
|
|
35
|
-
declare const internalSearchSystemStateAtom:
|
|
35
|
+
declare const internalSearchSystemStateAtom: jotai23.PrimitiveAtom<boolean> & {
|
|
36
36
|
init: boolean;
|
|
37
37
|
};
|
|
38
|
-
declare const searchSystemAtom:
|
|
39
|
-
declare const filteredSearchProductsAtom:
|
|
38
|
+
declare const searchSystemAtom: jotai23.WritableAtom<boolean, [value: boolean], void>;
|
|
39
|
+
declare const filteredSearchProductsAtom: jotai23.Atom<{
|
|
40
40
|
averageRating?: number | undefined;
|
|
41
41
|
colors?: string[] | undefined;
|
|
42
42
|
description?: string | undefined;
|
|
@@ -59,17 +59,17 @@ declare const filteredSearchProductsAtom: jotai22.Atom<{
|
|
|
59
59
|
title: string;
|
|
60
60
|
url: string;
|
|
61
61
|
}[]>;
|
|
62
|
-
declare const searchFiltersAtom:
|
|
63
|
-
declare const addSearchFilterAtom:
|
|
62
|
+
declare const searchFiltersAtom: jotai23.Atom<ChatSearchFilter[]>;
|
|
63
|
+
declare const addSearchFilterAtom: jotai23.WritableAtom<null, [filter: SelectedFilterOption], void> & {
|
|
64
64
|
init: null;
|
|
65
65
|
};
|
|
66
|
-
declare const removeSearchFilterAtom:
|
|
66
|
+
declare const removeSearchFilterAtom: jotai23.WritableAtom<null, [filterId: string], void> & {
|
|
67
67
|
init: null;
|
|
68
68
|
};
|
|
69
|
-
declare const clearSearchFiltersAtom:
|
|
69
|
+
declare const clearSearchFiltersAtom: jotai23.WritableAtom<null, [], void> & {
|
|
70
70
|
init: null;
|
|
71
71
|
};
|
|
72
|
-
declare const performSearchAtom:
|
|
72
|
+
declare const performSearchAtom: jotai23.WritableAtom<null, [params: SearchParams, allowRedirect?: unknown], Promise<void>> & {
|
|
73
73
|
init: null;
|
|
74
74
|
};
|
|
75
75
|
//#endregion
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { SearchParams, SearchResult } from "../../application/models/api/search.js";
|
|
2
2
|
import { ChatSearchFilter, ProductSorting } from "./types.js";
|
|
3
|
-
import * as
|
|
3
|
+
import * as jotai40 from "jotai";
|
|
4
4
|
|
|
5
5
|
//#region src/atoms/search/searchAPI.d.ts
|
|
6
6
|
type SelectedFilterOption = {
|
|
@@ -15,28 +15,28 @@ interface SearchState {
|
|
|
15
15
|
error: string | null;
|
|
16
16
|
lastQuery: string | null;
|
|
17
17
|
}
|
|
18
|
-
declare const searchAtom:
|
|
18
|
+
declare const searchAtom: jotai40.PrimitiveAtom<SearchState> & {
|
|
19
19
|
init: SearchState;
|
|
20
20
|
};
|
|
21
|
-
declare const searchProductSortingAtom:
|
|
21
|
+
declare const searchProductSortingAtom: jotai40.PrimitiveAtom<ProductSorting> & {
|
|
22
22
|
init: ProductSorting;
|
|
23
23
|
};
|
|
24
|
-
declare const searchSelectedFiltersAtom:
|
|
24
|
+
declare const searchSelectedFiltersAtom: jotai40.PrimitiveAtom<SelectedFilterOption[]> & {
|
|
25
25
|
init: SelectedFilterOption[];
|
|
26
26
|
};
|
|
27
27
|
declare const createFilterOption: (filterId: string, filterItemId: string, displayName: string) => SelectedFilterOption;
|
|
28
|
-
declare const searchParamsAtom:
|
|
28
|
+
declare const searchParamsAtom: jotai40.WritableAtom<{
|
|
29
29
|
id: string | null;
|
|
30
30
|
query: string | null;
|
|
31
31
|
}, [value: {
|
|
32
32
|
id: string | null;
|
|
33
33
|
query: string | null;
|
|
34
34
|
}], void>;
|
|
35
|
-
declare const internalSearchSystemStateAtom:
|
|
35
|
+
declare const internalSearchSystemStateAtom: jotai40.PrimitiveAtom<boolean> & {
|
|
36
36
|
init: boolean;
|
|
37
37
|
};
|
|
38
|
-
declare const searchSystemAtom:
|
|
39
|
-
declare const filteredSearchProductsAtom:
|
|
38
|
+
declare const searchSystemAtom: jotai40.WritableAtom<boolean, [value: boolean], void>;
|
|
39
|
+
declare const filteredSearchProductsAtom: jotai40.Atom<{
|
|
40
40
|
averageRating?: number | undefined;
|
|
41
41
|
colors?: string[] | undefined;
|
|
42
42
|
description?: string | undefined;
|
|
@@ -59,17 +59,17 @@ declare const filteredSearchProductsAtom: jotai48.Atom<{
|
|
|
59
59
|
title: string;
|
|
60
60
|
url: string;
|
|
61
61
|
}[]>;
|
|
62
|
-
declare const searchFiltersAtom:
|
|
63
|
-
declare const addSearchFilterAtom:
|
|
62
|
+
declare const searchFiltersAtom: jotai40.Atom<ChatSearchFilter[]>;
|
|
63
|
+
declare const addSearchFilterAtom: jotai40.WritableAtom<null, [filter: SelectedFilterOption], void> & {
|
|
64
64
|
init: null;
|
|
65
65
|
};
|
|
66
|
-
declare const removeSearchFilterAtom:
|
|
66
|
+
declare const removeSearchFilterAtom: jotai40.WritableAtom<null, [filterId: string], void> & {
|
|
67
67
|
init: null;
|
|
68
68
|
};
|
|
69
|
-
declare const clearSearchFiltersAtom:
|
|
69
|
+
declare const clearSearchFiltersAtom: jotai40.WritableAtom<null, [], void> & {
|
|
70
70
|
init: null;
|
|
71
71
|
};
|
|
72
|
-
declare const performSearchAtom:
|
|
72
|
+
declare const performSearchAtom: jotai40.WritableAtom<null, [params: SearchParams, allowRedirect?: unknown], Promise<void>> & {
|
|
73
73
|
init: null;
|
|
74
74
|
};
|
|
75
75
|
//#endregion
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { newOrgConfigAtom } from "../org/newOrgConfigAtom.js";
|
|
2
|
+
import { getSearchServiceFunction } from "./searchServiceAdapter.js";
|
|
2
3
|
import "../org/index.js";
|
|
3
4
|
import { ProductFilters } from "./productFilters.js";
|
|
4
5
|
import { ProductSorting } from "./types.js";
|
|
5
6
|
import { ProductSorter } from "./productSorter.js";
|
|
6
|
-
import { getSearchServiceFunction } from "./searchServiceAdapter.js";
|
|
7
7
|
import { atom } from "jotai";
|
|
8
8
|
|
|
9
9
|
//#region src/atoms/search/searchAPI.ts
|
|
@@ -57,4 +57,4 @@ interface ProductRetrievalParams {
|
|
|
57
57
|
}
|
|
58
58
|
//#endregion
|
|
59
59
|
export { ChatSearchFilter, ChatSearchFilterItem, ChatSearchSortModalProps, ChatSearchSortOverrides, ChatSearchSortProps, ChatSearchStateType, ProductRetrievalParams, ProductRetrievalResult, ProductSorting, ProductSortingNames, SortOption };
|
|
60
|
-
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidHlwZXMuZC5jdHMiLCJuYW1lcyI6W10sInNvdXJjZXMiOlsiLi4vLi4vLi4vc3JjL2F0b21zL3NlYXJjaC90eXBlcy5kLnRzIl0sInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IFNlYXJjaFJlc3BvbnNlUHJvZHVjdEF0dHJpYnV0ZXMgfSBmcm9tICdzcmMvYXBwbGljYXRpb24vbW9kZWxzL2FwaS9yZXNwb25zZSc7XG5leHBvcnQgZGVjbGFyZSBlbnVtIFByb2R1Y3RTb3J0aW5nIHtcbiAgICBGRUFUVVJFRCA9IFwiZmVhdHVyZWRcIixcbiAgICBQUklDRV9BU0MgPSBcInByaWNlX2FzY1wiLFxuICAgIFBSSUNFX0RFU0MgPSBcInByaWNlX2Rlc2NcIlxufVxuZXhwb3J0IGRlY2xhcmUgY29uc3QgUHJvZHVjdFNvcnRpbmdOYW1lczoge1x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UFBVyxtQkFBaUIsQ0FBQSxXQUFBLHFCQUFBO0FBQzVCLElBQUEsdUJBQUEsQ0FBQSxJQUFBO0FBQ0EsSUFBVyxzQkFBc0IsQ0FBQyxXQUFRLGVBQUE7QUFDMUMsSUFBVywyQkFBUyxDQUFBLFdBQUEsb0JBQUE7QUFDcEIsSUFBVyxhQUFVO0NBQUE7T0FBQTtPQUFBO0NBQUE7QUFDckIsSUFBVywwQkFBVyxDQUFBLElBQUE7QUFDdEIsSUFBQyx5QkFBQSxDQUFBLFdBQUEsZ0NBQUE7QUFDRCxJQUFXLHlCQUF5QixDQUFDLElBQUkifQ==
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { WidgetWrapperVariant } from "@envive-ai/react-toolkit-v3/WidgetWrapper";
|
|
2
|
-
import * as
|
|
2
|
+
import * as jotai22 from "jotai";
|
|
3
3
|
|
|
4
4
|
//#region src/atoms/widget/chatPreviewLoading.d.ts
|
|
5
5
|
/**
|
|
@@ -17,7 +17,7 @@ type ChatPreviewLoadingData = {
|
|
|
17
17
|
/**
|
|
18
18
|
* Atom to read ChatPreviewLoading data for a specific widgetConfigId.
|
|
19
19
|
*/
|
|
20
|
-
declare const chatPreviewLoadingDataAtom:
|
|
20
|
+
declare const chatPreviewLoadingDataAtom: jotai22.WritableAtom<Record<string, ChatPreviewLoadingData>, [update: {
|
|
21
21
|
widgetConfigId: string;
|
|
22
22
|
data: ChatPreviewLoadingData;
|
|
23
23
|
}], void>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as jotai22 from "jotai";
|
|
2
2
|
import { WidgetWrapperVariant } from "@envive-ai/react-toolkit-v3/WidgetWrapper";
|
|
3
3
|
|
|
4
4
|
//#region src/atoms/widget/chatPreviewLoading.d.ts
|
|
@@ -17,7 +17,7 @@ type ChatPreviewLoadingData = {
|
|
|
17
17
|
/**
|
|
18
18
|
* Atom to read ChatPreviewLoading data for a specific widgetConfigId.
|
|
19
19
|
*/
|
|
20
|
-
declare const chatPreviewLoadingDataAtom:
|
|
20
|
+
declare const chatPreviewLoadingDataAtom: jotai22.WritableAtom<Record<string, ChatPreviewLoadingData>, [update: {
|
|
21
21
|
widgetConfigId: string;
|
|
22
22
|
data: ChatPreviewLoadingData;
|
|
23
23
|
}], void>;
|
|
@@ -22,7 +22,7 @@ const AmplitudeProvider = ({ externalAmplitudeService, children }) => {
|
|
|
22
22
|
const env = (0, jotai.useAtomValue)(require_enviveConfig.envAtom);
|
|
23
23
|
const contextSource = (0, jotai.useAtomValue)(require_enviveConfig.contextSourceAtom);
|
|
24
24
|
const { getItem } = require_localStorageContext.useLocalStorage();
|
|
25
|
-
const { featureOverrides, variantUrlOverride, variantInfoOverride, show, orgShortName, featureGates } = require_enviveConfigContext.useEnviveConfig();
|
|
25
|
+
const { featureOverrides, variantUrlOverride, variantInfoOverride, show, orgId, orgShortName, featureGates } = require_enviveConfigContext.useEnviveConfig();
|
|
26
26
|
const { featureFlagService } = require_featureFlagServiceContext.useFeatureFlagService();
|
|
27
27
|
const [service, setService] = (0, react.useState)(null);
|
|
28
28
|
const isReady = Boolean(userId && service && service.isReady);
|
|
@@ -38,9 +38,10 @@ const AmplitudeProvider = ({ externalAmplitudeService, children }) => {
|
|
|
38
38
|
env: env || "",
|
|
39
39
|
contextSource: contextSource || "",
|
|
40
40
|
orgShortName: orgShortName || "",
|
|
41
|
+
orgId: orgId || "",
|
|
41
42
|
featureFlagService,
|
|
42
43
|
orgGaConfig,
|
|
43
|
-
show,
|
|
44
|
+
show: show ?? false,
|
|
44
45
|
getLocalStorageItem: getItem
|
|
45
46
|
}));
|
|
46
47
|
else setService(null);
|
|
@@ -59,7 +60,8 @@ const AmplitudeProvider = ({ externalAmplitudeService, children }) => {
|
|
|
59
60
|
show,
|
|
60
61
|
featureGates,
|
|
61
62
|
getItem,
|
|
62
|
-
externalAmplitudeService
|
|
63
|
+
externalAmplitudeService,
|
|
64
|
+
orgId
|
|
63
65
|
]);
|
|
64
66
|
const value = (0, react.useMemo)(() => ({
|
|
65
67
|
trackEvent: async (params) => {
|
|
@@ -85,4 +87,4 @@ const useAmplitude = () => {
|
|
|
85
87
|
//#endregion
|
|
86
88
|
exports.AmplitudeProvider = AmplitudeProvider;
|
|
87
89
|
exports.useAmplitude = useAmplitude;
|
|
88
|
-
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYW1wbGl0dWRlQ29udGV4dC5janMiLCJuYW1lcyI6WyJBbXBsaXR1ZGVQcm92aWRlcjogUmVhY3QuRkM8e1xuICBleHRlcm5hbEFtcGxpdHVkZVNlcnZpY2U/OiBBbXBsaXR1ZGVTZXJ2aWNlO1xuICBjaGlsZHJlbjogUmVhY3QuUmVhY3ROb2RlO1xufT4iLCJ1c2VySWRBdG9tIiwiYW1wbGl0dWRlQXBpS2V5QXRvbSIsImRhdGFSZXNpZGVuY3lBdG9tIiwib3JnQW5hbHl0aWNzR29vZ2xlQW5hbHl0aWNzQ29uZmlnQXRvbSIsImVudkF0b20iLCJjb250ZXh0U291cmNlQXRvbSIsInVzZUxvY2FsU3RvcmFnZSIsInVzZUVudml2ZUNvbmZpZyIsInVzZUZlYXR1cmVGbGFnU2VydmljZSIsIkFtcGxpdHVkZVNlcnZpY2UiXSwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvY29udGV4dHMvYW1wbGl0dWRlQ29udGV4dC9hbXBsaXR1ZGVDb250ZXh0LnRzeCJdLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgUmVhY3QsIHsgY3JlYXRlQ29udGV4dCwgdXNlQ29udGV4dCwgdXNlRWZmZWN0LCB1c2VNZW1vLCB1c2VTdGF0ZSB9IGZyb20gJ3JlYWN0JztcbmltcG9ydCB7IHVzZUF0b21WYWx1ZSB9IGZyb20gJ2pvdGFpJztcbmltcG9ydCB7XG4gIGFtcGxpdHVkZUFwaUtleUF0b20sXG4gIGNvbnRleHRTb3VyY2VBdG9tLFx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E0QixNQUFNOztFQUcvQyxHQUNELENBQUMsU0FBUyxRQUFRLENBQ25CO0FBRUQsS0FBSSxDQUFDLFFBQ0gsUUFBTztBQUdULFFBQU8sMkNBQUMsaUJBQWlCO0VBQWdCO0VBQVE7R0FBcUM7O0FBR3hGLE1BQWEscUJBQXFCO0NBQ2hDLE1BQU0sZ0NBQXFCLGlCQUFpQjtBQUM1QyxLQUFJLENBQUMsUUFDSCxPQUFNLElBQUksTUFBTSxxREFBcUQ7QUFFdkUsUUFBTyJ9
|
|
@@ -20,7 +20,7 @@ const AmplitudeProvider = ({ externalAmplitudeService, children }) => {
|
|
|
20
20
|
const env = useAtomValue(envAtom);
|
|
21
21
|
const contextSource = useAtomValue(contextSourceAtom);
|
|
22
22
|
const { getItem } = useLocalStorage();
|
|
23
|
-
const { featureOverrides, variantUrlOverride, variantInfoOverride, show, orgShortName, featureGates } = useEnviveConfig();
|
|
23
|
+
const { featureOverrides, variantUrlOverride, variantInfoOverride, show, orgId, orgShortName, featureGates } = useEnviveConfig();
|
|
24
24
|
const { featureFlagService } = useFeatureFlagService();
|
|
25
25
|
const [service, setService] = useState(null);
|
|
26
26
|
const isReady = Boolean(userId && service && service.isReady);
|
|
@@ -36,9 +36,10 @@ const AmplitudeProvider = ({ externalAmplitudeService, children }) => {
|
|
|
36
36
|
env: env || "",
|
|
37
37
|
contextSource: contextSource || "",
|
|
38
38
|
orgShortName: orgShortName || "",
|
|
39
|
+
orgId: orgId || "",
|
|
39
40
|
featureFlagService,
|
|
40
41
|
orgGaConfig,
|
|
41
|
-
show,
|
|
42
|
+
show: show ?? false,
|
|
42
43
|
getLocalStorageItem: getItem
|
|
43
44
|
}));
|
|
44
45
|
else setService(null);
|
|
@@ -57,7 +58,8 @@ const AmplitudeProvider = ({ externalAmplitudeService, children }) => {
|
|
|
57
58
|
show,
|
|
58
59
|
featureGates,
|
|
59
60
|
getItem,
|
|
60
|
-
externalAmplitudeService
|
|
61
|
+
externalAmplitudeService,
|
|
62
|
+
orgId
|
|
61
63
|
]);
|
|
62
64
|
const value = useMemo(() => ({
|
|
63
65
|
trackEvent: async (params) => {
|
|
@@ -82,4 +84,4 @@ const useAmplitude = () => {
|
|
|
82
84
|
|
|
83
85
|
//#endregion
|
|
84
86
|
export { AmplitudeProvider, useAmplitude };
|
|
85
|
-
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYW1wbGl0dWRlQ29udGV4dC5qcyIsIm5hbWVzIjpbIkFtcGxpdHVkZVByb3ZpZGVyOiBSZWFjdC5GQzx7XG4gIGV4dGVybmFsQW1wbGl0dWRlU2VydmljZT86IEFtcGxpdHVkZVNlcnZpY2U7XG4gIGNoaWxkcmVuOiBSZWFjdC5SZWFjdE5vZGU7XG59PiJdLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9jb250ZXh0cy9hbXBsaXR1ZGVDb250ZXh0L2FtcGxpdHVkZUNvbnRleHQudHN4Il0sInNvdXJjZXNDb250ZW50IjpbImltcG9ydCBSZWFjdCwgeyBjcmVhdGVDb250ZXh0LCB1c2VDb250ZXh0LCB1c2VFZmZlY3QsIHVzZU1lbW8sIHVzZVN0YXRlIH0gZnJvbSAncmVhY3QnO1xuaW1wb3J0IHsgdXNlQXRvbVZhbHVlIH0gZnJvbSAnam90YWknO1xuaW1wb3J0IHtcbiAgYW1wbGl0dWRlQXBpS2V5QXRvbSxcbiAgY29udGV4dFNvdXJjZUF0b20sXG4gIGRhdGFSZXNpZGVuY3lBdG9tLFxuICBlbnZBdG9tLFxufSBmcm9tICdzcmMvYXRvbXMvZW52aXZlL2Vudml2ZUNvbmZpZyc7XG5pbXBvcnQgeyB1c2VMb2NhbFN0b3JhZ2UgfSBmcm9tICdzcmMvY29udGV4dHMvbG9jYWxTdG9yYWdlQ29udGV4dCc7XG5pbXBvcnQgeyBvcmdBbmFseXRpY3NHb29nbGVBbmFseXRpY3NDb25maWdBdG9tIH0gZnJvbSAnc3JjL2F0b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