@envive-ai/react-hooks 0.3.8 → 0.3.10
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/_virtual/rolldown_runtime.cjs +0 -2
- 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/variantInfo/variantInfo.cjs +2 -2
- package/dist/application/models/variantInfo/variantInfo.d.cts +2 -2
- package/dist/application/models/variantInfo/variantInfo.d.ts +2 -2
- package/dist/application/models/variantInfo/variantInfo.js +2 -2
- package/dist/application/utils/widgetTextRequestToApiRequest.cjs +2 -1
- package/dist/application/utils/widgetTextRequestToApiRequest.js +2 -1
- package/dist/atoms/app/index.d.cts +7 -7
- package/dist/atoms/app/index.d.ts +7 -7
- 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 +17 -17
- package/dist/atoms/chat/chatState.d.ts +18 -18
- package/dist/atoms/chat/form.d.cts +2 -2
- package/dist/atoms/chat/form.d.ts +2 -2
- package/dist/atoms/chat/index.cjs +7 -1
- package/dist/atoms/chat/index.d.cts +5 -4
- package/dist/atoms/chat/index.d.ts +5 -4
- package/dist/atoms/chat/index.js +3 -2
- package/dist/atoms/chat/lastMessage.d.cts +2 -2
- package/dist/atoms/chat/lastMessage.d.ts +2 -2
- package/dist/atoms/chat/messageQueue.cjs +1 -0
- package/dist/atoms/chat/messageQueue.d.cts +31 -0
- package/dist/atoms/chat/messageQueue.d.ts +31 -0
- package/dist/atoms/chat/messageQueue.js +1 -1
- 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.d.cts +2 -2
- package/dist/atoms/chat/replies.d.ts +3 -3
- 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.ts +1 -1
- package/dist/atoms/search/utils.d.cts +1 -1
- package/dist/atoms/search/utils.d.ts +1 -1
- package/dist/atoms/widget/chatPreviewLoading.d.cts +2 -2
- package/dist/atoms/widget/chatPreviewLoading.d.ts +2 -2
- package/dist/contexts/enviveContext/WindowChatToggleBinder.cjs +66 -0
- package/dist/contexts/enviveContext/WindowChatToggleBinder.js +65 -0
- package/dist/contexts/enviveContext/enviveContext.cjs +5 -4
- package/dist/contexts/enviveContext/enviveContext.js +6 -5
- package/dist/contexts/enviveContext/types.d.cts +1 -1
- package/dist/contexts/enviveContext/types.d.ts +1 -1
- package/dist/contexts/graphqlContext/graphqlContext.cjs +6 -7
- package/dist/contexts/graphqlContext/graphqlContext.js +2 -3
- package/dist/contexts/graphqlContext/mockV3Config.cjs +57 -61
- package/dist/contexts/graphqlContext/mockV3Config.js +14 -19
- package/dist/contexts/newOrgConfigContext/newOrgConfigContext.cjs +1 -1
- package/dist/contexts/newOrgConfigContext/newOrgConfigContext.js +1 -1
- package/dist/contexts/pageContext/mapping.cjs +9 -1
- package/dist/contexts/pageContext/mapping.js +9 -1
- package/dist/contexts/pageContext/pageContext.cjs +8 -3
- package/dist/contexts/pageContext/pageContext.d.cts +2 -1
- package/dist/contexts/pageContext/pageContext.d.ts +2 -1
- package/dist/contexts/pageContext/pageContext.js +8 -3
- package/dist/contexts/pageContext/types.d.cts +11 -3
- package/dist/contexts/pageContext/types.d.ts +11 -3
- package/dist/contexts/salesAgentContext/chatAPI.cjs +13 -5
- package/dist/contexts/salesAgentContext/chatAPI.d.cts +4 -3
- package/dist/contexts/salesAgentContext/chatAPI.d.ts +4 -3
- package/dist/contexts/salesAgentContext/chatAPI.js +13 -5
- package/dist/contexts/salesAgentContext/salesAgentContext.cjs +7 -3
- package/dist/contexts/salesAgentContext/salesAgentContext.js +8 -4
- package/dist/contexts/salesAgentContext/salesAgentService.cjs +1 -1
- package/dist/contexts/salesAgentContext/salesAgentService.js +1 -1
- package/dist/contexts/searchContext/searchContext.cjs +1 -1
- package/dist/contexts/searchContext/searchContext.js +1 -1
- package/dist/contexts/systemSettingsContext/systemSettingsContext.d.cts +2 -2
- package/dist/contexts/types.d.cts +1 -1
- package/dist/contexts/types.d.ts +1 -1
- package/dist/contexts/typesV3.cjs +1 -1
- package/dist/contexts/typesV3.d.cts +9 -4
- package/dist/contexts/typesV3.d.ts +11 -6
- package/dist/contexts/typesV3.js +1 -1
- package/dist/contexts/widgetConfigContext/widgetConfigContext.cjs +2 -1
- package/dist/contexts/widgetConfigContext/widgetConfigContext.js +2 -1
- package/dist/hooks/GrabAndScroll/useGrabAndScroll.d.cts +2 -2
- package/dist/hooks/Search/useSearch.cjs +2 -2
- package/dist/hooks/Search/useSearch.js +2 -2
- package/dist/hooks/Search/useSearchInput.cjs +1 -1
- package/dist/hooks/Search/useSearchInput.js +1 -1
- package/dist/hooks/utils.d.cts +1 -1
- package/dist/services/amplitudeService/amplitudeService.cjs +41 -1
- package/dist/services/amplitudeService/amplitudeService.d.cts +2 -1
- package/dist/services/amplitudeService/amplitudeService.d.ts +2 -1
- package/dist/services/amplitudeService/amplitudeService.js +41 -1
- package/package.json +1 -1
- package/src/application/models/chatElementDisplayLocationV3.ts +2 -0
- package/src/application/models/variantInfo/variantInfo.ts +1 -1
- package/src/application/utils/widgetTextRequestToApiRequest.ts +2 -0
- package/src/atoms/chat/index.ts +1 -0
- package/src/contexts/enviveContext/WindowChatToggleBinder.tsx +66 -0
- package/src/contexts/enviveContext/enviveContext.tsx +3 -1
- package/src/contexts/graphqlContext/mockV3Config.ts +4 -0
- package/src/contexts/pageContext/mapping.ts +16 -1
- package/src/contexts/pageContext/pageContext.tsx +12 -3
- package/src/contexts/pageContext/types.ts +16 -1
- package/src/contexts/salesAgentContext/chatAPI.ts +16 -4
- package/src/contexts/salesAgentContext/salesAgentContext.tsx +8 -3
- package/src/contexts/typesV3.ts +9 -2
- package/src/contexts/widgetConfigContext/widgetConfigContext.tsx +4 -0
- package/src/services/amplitudeService/amplitudeService.ts +56 -0
- package/dist/_virtual/rolldown_runtime.js +0 -29
- package/dist/node_modules/classnames/index.cjs +0 -52
- package/dist/node_modules/classnames/index.js +0 -49
- package/dist/packages/components-v3/dist/ChatHeader/ChatHeader.cjs +0 -2
- package/dist/packages/components-v3/dist/ChatHeader/ChatHeader.js +0 -4
- package/dist/packages/components-v3/dist/ChatHeader/components/CloseButton.cjs +0 -16
- package/dist/packages/components-v3/dist/ChatHeader/components/CloseButton.js +0 -17
- package/dist/packages/components-v3/dist/ChatHeader/components/Handle.cjs +0 -6
- package/dist/packages/components-v3/dist/ChatHeader/components/Handle.js +0 -8
- package/dist/packages/components-v3/dist/ChatHeader/components/Layout.cjs +0 -4
- package/dist/packages/components-v3/dist/ChatHeader/components/Layout.js +0 -6
- package/dist/packages/components-v3/dist/ChatHeader/components/Logo.cjs +0 -3
- package/dist/packages/components-v3/dist/ChatHeader/components/Logo.js +0 -5
- package/dist/packages/components-v3/dist/ChatHeader/components/Toggle.cjs +0 -7
- package/dist/packages/components-v3/dist/ChatHeader/components/Toggle.js +0 -9
- package/dist/packages/components-v3/dist/ChatHeader/components/ToggleItem.cjs +0 -6
- package/dist/packages/components-v3/dist/ChatHeader/components/ToggleItem.js +0 -8
- package/dist/packages/components-v3/dist/ChatHeader/components/index.cjs +0 -6
- package/dist/packages/components-v3/dist/ChatHeader/components/index.js +0 -8
- package/dist/packages/components-v3/dist/ChatHeader/hooks/useGetCloseButtonProperties.cjs +0 -22
- package/dist/packages/components-v3/dist/ChatHeader/hooks/useGetCloseButtonProperties.js +0 -23
- package/dist/packages/components-v3/dist/ChatHeader/hooks/useGetHandleProperties.cjs +0 -58
- package/dist/packages/components-v3/dist/ChatHeader/hooks/useGetHandleProperties.js +0 -59
- package/dist/packages/components-v3/dist/ChatHeader/hooks/useGetLayoutProperties.cjs +0 -8
- package/dist/packages/components-v3/dist/ChatHeader/hooks/useGetLayoutProperties.js +0 -9
- package/dist/packages/components-v3/dist/ChatHeader/hooks/useGetToggleOptionProperties.cjs +0 -1
- package/dist/packages/components-v3/dist/ChatHeader/hooks/useGetToggleOptionProperties.js +0 -3
- package/dist/packages/components-v3/dist/ChatHeader/hooks/useGetToggleProperties.cjs +0 -12
- package/dist/packages/components-v3/dist/ChatHeader/hooks/useGetToggleProperties.js +0 -13
- package/dist/packages/components-v3/dist/ChatHeader/index.cjs +0 -2
- package/dist/packages/components-v3/dist/ChatHeader/index.js +0 -4
- package/dist/packages/components-v3/dist/ChatHeader/types/index.cjs +0 -11
- package/dist/packages/components-v3/dist/ChatHeader/types/index.js +0 -10
- package/dist/packages/components-v3/dist/ChatPreviewLoading/components/Skeleton.cjs +0 -1
- package/dist/packages/components-v3/dist/ChatPreviewLoading/components/Skeleton.js +0 -3
- package/dist/packages/components-v3/dist/Container/Container.cjs +0 -27
- package/dist/packages/components-v3/dist/Container/Container.js +0 -27
- package/dist/packages/components-v3/dist/Container/hooks/useGetCenterContentProperties.cjs +0 -14
- package/dist/packages/components-v3/dist/Container/hooks/useGetCenterContentProperties.js +0 -13
- package/dist/packages/components-v3/dist/Container/hooks/useGetFluidProperties.cjs +0 -14
- package/dist/packages/components-v3/dist/Container/hooks/useGetFluidProperties.js +0 -13
- package/dist/packages/components-v3/dist/Container/index.cjs +0 -1
- package/dist/packages/components-v3/dist/Container/index.js +0 -3
- package/dist/packages/components-v3/dist/DesignTokens/components/utils.cjs +0 -16
- package/dist/packages/components-v3/dist/DesignTokens/components/utils.js +0 -15
- package/dist/packages/components-v3/dist/FloatingButton/FloatingButton.cjs +0 -2
- package/dist/packages/components-v3/dist/FloatingButton/FloatingButton.js +0 -4
- package/dist/packages/components-v3/dist/FloatingButton/components/Button.cjs +0 -9
- package/dist/packages/components-v3/dist/FloatingButton/components/Button.js +0 -10
- package/dist/packages/components-v3/dist/FloatingButton/components/Container.cjs +0 -9
- package/dist/packages/components-v3/dist/FloatingButton/components/Container.js +0 -10
- package/dist/packages/components-v3/dist/FloatingButton/components/Icon.cjs +0 -3
- package/dist/packages/components-v3/dist/FloatingButton/components/Icon.js +0 -5
- package/dist/packages/components-v3/dist/FloatingButton/components/Wrapper.cjs +0 -9
- package/dist/packages/components-v3/dist/FloatingButton/components/Wrapper.js +0 -10
- package/dist/packages/components-v3/dist/FloatingButton/components/index.cjs +0 -4
- package/dist/packages/components-v3/dist/FloatingButton/components/index.js +0 -6
- package/dist/packages/components-v3/dist/FloatingButton/index.cjs +0 -2
- package/dist/packages/components-v3/dist/FloatingButton/index.js +0 -4
- package/dist/packages/components-v3/dist/FloatingButton/types/types.cjs +0 -17
- package/dist/packages/components-v3/dist/FloatingButton/types/types.js +0 -16
- package/dist/packages/components-v3/dist/Image/Image.cjs +0 -16
- package/dist/packages/components-v3/dist/Image/Image.js +0 -17
- package/dist/packages/components-v3/dist/Image/hooks/useGetAccessibilityProperties.cjs +0 -1
- package/dist/packages/components-v3/dist/Image/hooks/useGetAccessibilityProperties.js +0 -3
- package/dist/packages/components-v3/dist/Image/hooks/useGetAspectRatioProperties.cjs +0 -1
- package/dist/packages/components-v3/dist/Image/hooks/useGetAspectRatioProperties.js +0 -3
- package/dist/packages/components-v3/dist/Image/hooks/useGetObjectFitProperties.cjs +0 -1
- package/dist/packages/components-v3/dist/Image/hooks/useGetObjectFitProperties.js +0 -3
- package/dist/packages/components-v3/dist/Image/hooks/useGetRoundedProperties.cjs +0 -1
- package/dist/packages/components-v3/dist/Image/hooks/useGetRoundedProperties.js +0 -3
- package/dist/packages/components-v3/dist/Image/hooks/useGetSkeletonProperties.cjs +0 -1
- package/dist/packages/components-v3/dist/Image/hooks/useGetSkeletonProperties.js +0 -3
- package/dist/packages/components-v3/dist/Image/hooks/useGetWidthProperties.cjs +0 -1
- package/dist/packages/components-v3/dist/Image/hooks/useGetWidthProperties.js +0 -3
- package/dist/packages/components-v3/dist/Image/hooks/useHandleImageLoading.cjs +0 -1
- package/dist/packages/components-v3/dist/Image/hooks/useHandleImageLoading.js +0 -3
- package/dist/packages/components-v3/dist/ImageGallery/ImageGallery.cjs +0 -2
- package/dist/packages/components-v3/dist/ImageGallery/ImageGallery.js +0 -4
- package/dist/packages/components-v3/dist/ImageGallery/components/ImageItem.cjs +0 -2
- package/dist/packages/components-v3/dist/ImageGallery/components/ImageItem.js +0 -4
- package/dist/packages/components-v3/dist/ImageGallery/components/Layout.cjs +0 -15
- package/dist/packages/components-v3/dist/ImageGallery/components/Layout.js +0 -16
- package/dist/packages/components-v3/dist/ImageGallery/components/NormalLayout.cjs +0 -4
- package/dist/packages/components-v3/dist/ImageGallery/components/NormalLayout.js +0 -4
- package/dist/packages/components-v3/dist/ImageGallery/components/OverlappedLayout.cjs +0 -1
- package/dist/packages/components-v3/dist/ImageGallery/components/OverlappedLayout.js +0 -3
- package/dist/packages/components-v3/dist/ImageGallery/components/index.cjs +0 -4
- package/dist/packages/components-v3/dist/ImageGallery/components/index.js +0 -6
- package/dist/packages/components-v3/dist/ImageGallery/hooks/useGetContainerProperties.cjs +0 -1
- package/dist/packages/components-v3/dist/ImageGallery/hooks/useGetContainerProperties.js +0 -3
- package/dist/packages/components-v3/dist/ImageGallery/index.cjs +0 -2
- package/dist/packages/components-v3/dist/ImageGallery/index.js +0 -4
- package/dist/packages/components-v3/dist/ImageGallery/types/types.cjs +0 -13
- package/dist/packages/components-v3/dist/ImageGallery/types/types.js +0 -12
- package/dist/packages/components-v3/dist/PromptButton/PromptButton.cjs +0 -48
- package/dist/packages/components-v3/dist/PromptButton/PromptButton.js +0 -48
- package/dist/packages/components-v3/dist/PromptButton/components/Icon.cjs +0 -11
- package/dist/packages/components-v3/dist/PromptButton/components/Icon.js +0 -10
- package/dist/packages/components-v3/dist/PromptButton/components/Label.cjs +0 -20
- package/dist/packages/components-v3/dist/PromptButton/components/Label.js +0 -19
- package/dist/packages/components-v3/dist/PromptButton/components/Layout.cjs +0 -40
- package/dist/packages/components-v3/dist/PromptButton/components/Layout.js +0 -40
- package/dist/packages/components-v3/dist/PromptButton/components/Loading.cjs +0 -13
- package/dist/packages/components-v3/dist/PromptButton/components/Loading.js +0 -13
- package/dist/packages/components-v3/dist/PromptButton/components/index.cjs +0 -16
- package/dist/packages/components-v3/dist/PromptButton/components/index.js +0 -16
- package/dist/packages/components-v3/dist/PromptButton/hooks/useGetBackgroundColorsProperties.cjs +0 -18
- package/dist/packages/components-v3/dist/PromptButton/hooks/useGetBackgroundColorsProperties.js +0 -18
- package/dist/packages/components-v3/dist/PromptButton/hooks/useGetBoldTextProperties.cjs +0 -13
- package/dist/packages/components-v3/dist/PromptButton/hooks/useGetBoldTextProperties.js +0 -12
- package/dist/packages/components-v3/dist/PromptButton/hooks/useGetBorderColorsProperties.cjs +0 -18
- package/dist/packages/components-v3/dist/PromptButton/hooks/useGetBorderColorsProperties.js +0 -18
- package/dist/packages/components-v3/dist/PromptButton/hooks/useGetIconColorsProperties.cjs +0 -32
- package/dist/packages/components-v3/dist/PromptButton/hooks/useGetIconColorsProperties.js +0 -32
- package/dist/packages/components-v3/dist/PromptButton/hooks/useGetLayoutBaseProperties.cjs +0 -16
- package/dist/packages/components-v3/dist/PromptButton/hooks/useGetLayoutBaseProperties.js +0 -16
- package/dist/packages/components-v3/dist/PromptButton/hooks/useGetTextColorsProperties.cjs +0 -19
- package/dist/packages/components-v3/dist/PromptButton/hooks/useGetTextColorsProperties.js +0 -19
- package/dist/packages/components-v3/dist/PromptButton/hooks/useGetVariantColorsProperties.cjs +0 -29
- package/dist/packages/components-v3/dist/PromptButton/hooks/useGetVariantColorsProperties.js +0 -29
- package/dist/packages/components-v3/dist/PromptButton/index.cjs +0 -2
- package/dist/packages/components-v3/dist/PromptButton/index.js +0 -4
- package/dist/packages/components-v3/dist/PromptButton/types/index.cjs +0 -13
- package/dist/packages/components-v3/dist/PromptButton/types/index.js +0 -12
- package/dist/packages/components-v3/dist/PromptButton/utils/functions.cjs +0 -10
- package/dist/packages/components-v3/dist/PromptButton/utils/functions.js +0 -10
- package/dist/packages/components-v3/dist/PromptCarousel/PromptCarousel.cjs +0 -12
- package/dist/packages/components-v3/dist/PromptCarousel/PromptCarousel.js +0 -14
- package/dist/packages/components-v3/dist/PromptCarousel/components/BlockScrollContainer.cjs +0 -9
- package/dist/packages/components-v3/dist/PromptCarousel/components/BlockScrollContainer.js +0 -10
- package/dist/packages/components-v3/dist/PromptCarousel/components/ButtonContainerRow.cjs +0 -11
- package/dist/packages/components-v3/dist/PromptCarousel/components/ButtonContainerRow.js +0 -12
- package/dist/packages/components-v3/dist/PromptCarousel/components/CarouselContentWithBlockScroll.cjs +0 -4
- package/dist/packages/components-v3/dist/PromptCarousel/components/CarouselContentWithBlockScroll.js +0 -6
- package/dist/packages/components-v3/dist/PromptCarousel/components/CarouselContentWithRowScroll.cjs +0 -4
- package/dist/packages/components-v3/dist/PromptCarousel/components/CarouselContentWithRowScroll.js +0 -6
- package/dist/packages/components-v3/dist/PromptCarousel/components/index.cjs +0 -3
- package/dist/packages/components-v3/dist/PromptCarousel/components/index.js +0 -5
- package/dist/packages/components-v3/dist/PromptCarousel/hooks/index.cjs +0 -5
- package/dist/packages/components-v3/dist/PromptCarousel/hooks/index.js +0 -7
- package/dist/packages/components-v3/dist/PromptCarousel/hooks/useButtonScrollPosition.cjs +0 -1
- package/dist/packages/components-v3/dist/PromptCarousel/hooks/useButtonScrollPosition.js +0 -3
- package/dist/packages/components-v3/dist/PromptCarousel/hooks/useCarouselAnimation.cjs +0 -3
- package/dist/packages/components-v3/dist/PromptCarousel/hooks/useCarouselAnimation.js +0 -5
- package/dist/packages/components-v3/dist/PromptCarousel/hooks/useCarouselButtons.cjs +0 -1
- package/dist/packages/components-v3/dist/PromptCarousel/hooks/useCarouselButtons.js +0 -3
- package/dist/packages/components-v3/dist/PromptCarousel/hooks/useCarouselRefs.cjs +0 -1
- package/dist/packages/components-v3/dist/PromptCarousel/hooks/useCarouselRefs.js +0 -3
- package/dist/packages/components-v3/dist/PromptCarousel/hooks/useHorizontalScrollAnimation.cjs +0 -1
- package/dist/packages/components-v3/dist/PromptCarousel/hooks/useHorizontalScrollAnimation.js +0 -3
- package/dist/packages/components-v3/dist/PromptCarousel/index.cjs +0 -2
- package/dist/packages/components-v3/dist/PromptCarousel/index.js +0 -4
- package/dist/packages/components-v3/dist/PromptCarousel/types/types.cjs +0 -19
- package/dist/packages/components-v3/dist/PromptCarousel/types/types.js +0 -17
- package/dist/packages/components-v3/dist/SocialProof/SocialProof.cjs +0 -10
- package/dist/packages/components-v3/dist/SocialProof/SocialProof.js +0 -12
- package/dist/packages/components-v3/dist/SocialProof/components/Headline.cjs +0 -53
- package/dist/packages/components-v3/dist/SocialProof/components/Headline.js +0 -54
- package/dist/packages/components-v3/dist/SocialProof/components/ImageGallery.cjs +0 -5
- package/dist/packages/components-v3/dist/SocialProof/components/ImageGallery.js +0 -7
- package/dist/packages/components-v3/dist/SocialProof/components/LayoutFourGrid.cjs +0 -6
- package/dist/packages/components-v3/dist/SocialProof/components/LayoutFourGrid.js +0 -8
- package/dist/packages/components-v3/dist/SocialProof/components/LayoutFourHorizontal.cjs +0 -16
- package/dist/packages/components-v3/dist/SocialProof/components/LayoutFourHorizontal.js +0 -17
- package/dist/packages/components-v3/dist/SocialProof/components/LayoutSingle.cjs +0 -8
- package/dist/packages/components-v3/dist/SocialProof/components/LayoutSingle.js +0 -10
- package/dist/packages/components-v3/dist/SocialProof/components/Skeleton.cjs +0 -1
- package/dist/packages/components-v3/dist/SocialProof/components/Skeleton.js +0 -3
- package/dist/packages/components-v3/dist/SocialProof/components/Subheadline.cjs +0 -8
- package/dist/packages/components-v3/dist/SocialProof/components/Subheadline.js +0 -10
- package/dist/packages/components-v3/dist/SocialProof/components/Textfield.cjs +0 -3
- package/dist/packages/components-v3/dist/SocialProof/components/Textfield.js +0 -5
- package/dist/packages/components-v3/dist/SocialProof/components/index.cjs +0 -8
- package/dist/packages/components-v3/dist/SocialProof/components/index.js +0 -10
- package/dist/packages/components-v3/dist/SocialProof/hooks/index.cjs +0 -1
- package/dist/packages/components-v3/dist/SocialProof/hooks/index.js +0 -3
- package/dist/packages/components-v3/dist/SocialProof/hooks/useSocialProofCount.cjs +0 -1
- package/dist/packages/components-v3/dist/SocialProof/hooks/useSocialProofCount.js +0 -3
- package/dist/packages/components-v3/dist/SocialProof/index.cjs +0 -4
- package/dist/packages/components-v3/dist/SocialProof/index.js +0 -6
- package/dist/packages/components-v3/dist/SocialProof/types/types.cjs +0 -11
- package/dist/packages/components-v3/dist/SocialProof/types/types.js +0 -10
- package/dist/packages/components-v3/dist/SocialProof/utils/functions.cjs +0 -1
- package/dist/packages/components-v3/dist/SocialProof/utils/functions.js +0 -3
- package/dist/packages/components-v3/dist/Stack/Stack.cjs +0 -36
- package/dist/packages/components-v3/dist/Stack/Stack.js +0 -36
- package/dist/packages/components-v3/dist/Stack/hooks/useFormatStackChildren.cjs +0 -27
- package/dist/packages/components-v3/dist/Stack/hooks/useFormatStackChildren.js +0 -26
- package/dist/packages/components-v3/dist/Stack/hooks/useGetAlignProperties.cjs +0 -20
- package/dist/packages/components-v3/dist/Stack/hooks/useGetAlignProperties.js +0 -19
- package/dist/packages/components-v3/dist/Stack/hooks/useGetDirectionProperties.cjs +0 -19
- package/dist/packages/components-v3/dist/Stack/hooks/useGetDirectionProperties.js +0 -18
- package/dist/packages/components-v3/dist/Stack/hooks/useGetGapProperties.cjs +0 -16
- package/dist/packages/components-v3/dist/Stack/hooks/useGetGapProperties.js +0 -15
- package/dist/packages/components-v3/dist/Stack/hooks/useGetJustifyProperties.cjs +0 -21
- package/dist/packages/components-v3/dist/Stack/hooks/useGetJustifyProperties.js +0 -20
- package/dist/packages/components-v3/dist/Stack/hooks/useGetStyleProperties.cjs +0 -38
- package/dist/packages/components-v3/dist/Stack/hooks/useGetStyleProperties.js +0 -38
- package/dist/packages/components-v3/dist/Stack/hooks/useGetWrapProperties.cjs +0 -13
- package/dist/packages/components-v3/dist/Stack/hooks/useGetWrapProperties.js +0 -12
- package/dist/packages/components-v3/dist/Stack/index.cjs +0 -1
- package/dist/packages/components-v3/dist/Stack/index.js +0 -3
- package/dist/packages/components-v3/dist/Stack/utils/constants.cjs +0 -42
- package/dist/packages/components-v3/dist/Stack/utils/constants.js +0 -41
- package/dist/packages/components-v3/dist/Title/Title.cjs +0 -11
- package/dist/packages/components-v3/dist/Title/Title.js +0 -12
- package/dist/packages/components-v3/dist/Title/components/Image.cjs +0 -2
- package/dist/packages/components-v3/dist/Title/components/Image.js +0 -4
- package/dist/packages/components-v3/dist/Title/components/Label.cjs +0 -3
- package/dist/packages/components-v3/dist/Title/components/Label.js +0 -5
- package/dist/packages/components-v3/dist/Title/components/Layout.cjs +0 -11
- package/dist/packages/components-v3/dist/Title/components/Layout.js +0 -12
- package/dist/packages/components-v3/dist/Title/components/index.cjs +0 -3
- package/dist/packages/components-v3/dist/Title/components/index.js +0 -5
- package/dist/packages/components-v3/dist/Title/index.cjs +0 -1
- package/dist/packages/components-v3/dist/Title/index.js +0 -3
- package/dist/packages/components-v3/dist/Tokens/index.cjs +0 -11
- package/dist/packages/components-v3/dist/Tokens/index.js +0 -13
- package/dist/packages/components-v3/dist/Typography/Typography.cjs +0 -43
- package/dist/packages/components-v3/dist/Typography/Typography.js +0 -43
- package/dist/packages/components-v3/dist/Typography/hooks/useGetAccessibilityAttributes.cjs +0 -31
- package/dist/packages/components-v3/dist/Typography/hooks/useGetAccessibilityAttributes.js +0 -30
- package/dist/packages/components-v3/dist/Typography/hooks/useGetAlignProperties.cjs +0 -20
- package/dist/packages/components-v3/dist/Typography/hooks/useGetAlignProperties.js +0 -19
- package/dist/packages/components-v3/dist/Typography/hooks/useGetColorProperties.cjs +0 -21
- package/dist/packages/components-v3/dist/Typography/hooks/useGetColorProperties.js +0 -20
- package/dist/packages/components-v3/dist/Typography/hooks/useGetNoWrapProperties.cjs +0 -13
- package/dist/packages/components-v3/dist/Typography/hooks/useGetNoWrapProperties.js +0 -12
- package/dist/packages/components-v3/dist/Typography/hooks/useGetNumberOfLinesProperties.cjs +0 -22
- package/dist/packages/components-v3/dist/Typography/hooks/useGetNumberOfLinesProperties.js +0 -21
- package/dist/packages/components-v3/dist/Typography/hooks/useGetVariantProperties.cjs +0 -62
- package/dist/packages/components-v3/dist/Typography/hooks/useGetVariantProperties.js +0 -61
- package/dist/packages/components-v3/dist/Typography/index.cjs +0 -2
- package/dist/packages/components-v3/dist/Typography/index.js +0 -4
- package/dist/packages/components-v3/dist/Typography/types/index.cjs +0 -47
- package/dist/packages/components-v3/dist/Typography/types/index.js +0 -44
- package/dist/packages/components-v3/dist/Typography/utils/utils.cjs +0 -12
- package/dist/packages/components-v3/dist/Typography/utils/utils.js +0 -10
- package/dist/packages/components-v3/dist/WelcomeMessage/WelcomeMessage.cjs +0 -2
- package/dist/packages/components-v3/dist/WelcomeMessage/WelcomeMessage.js +0 -4
- package/dist/packages/components-v3/dist/WelcomeMessage/components/Container.cjs +0 -14
- package/dist/packages/components-v3/dist/WelcomeMessage/components/Container.js +0 -15
- package/dist/packages/components-v3/dist/WelcomeMessage/components/SparkleIcon.cjs +0 -3
- package/dist/packages/components-v3/dist/WelcomeMessage/components/SparkleIcon.js +0 -5
- package/dist/packages/components-v3/dist/WelcomeMessage/components/Text.cjs +0 -3
- package/dist/packages/components-v3/dist/WelcomeMessage/components/Text.js +0 -5
- package/dist/packages/components-v3/dist/WelcomeMessage/components/Title.cjs +0 -3
- package/dist/packages/components-v3/dist/WelcomeMessage/components/Title.js +0 -5
- package/dist/packages/components-v3/dist/WelcomeMessage/components/index.cjs +0 -4
- package/dist/packages/components-v3/dist/WelcomeMessage/components/index.js +0 -6
- package/dist/packages/components-v3/dist/WelcomeMessage/hooks/useGetContainerProperties.cjs +0 -1
- package/dist/packages/components-v3/dist/WelcomeMessage/hooks/useGetContainerProperties.js +0 -3
- package/dist/packages/components-v3/dist/WelcomeMessage/hooks/useGetSparkleIconProperties.cjs +0 -1
- package/dist/packages/components-v3/dist/WelcomeMessage/hooks/useGetSparkleIconProperties.js +0 -3
- package/dist/packages/components-v3/dist/WelcomeMessage/index.cjs +0 -2
- package/dist/packages/components-v3/dist/WelcomeMessage/index.js +0 -4
- package/dist/packages/components-v3/dist/WelcomeMessage/types/types.cjs +0 -14
- package/dist/packages/components-v3/dist/WelcomeMessage/types/types.js +0 -14
- package/dist/packages/components-v3/dist/WidgetTextField/WidgetTextField.cjs +0 -2
- package/dist/packages/components-v3/dist/WidgetTextField/WidgetTextField.js +0 -4
- package/dist/packages/components-v3/dist/WidgetTextField/components/Container.cjs +0 -14
- package/dist/packages/components-v3/dist/WidgetTextField/components/Container.js +0 -15
- package/dist/packages/components-v3/dist/WidgetTextField/components/FakeTextInput.cjs +0 -3
- package/dist/packages/components-v3/dist/WidgetTextField/components/FakeTextInput.js +0 -5
- package/dist/packages/components-v3/dist/WidgetTextField/components/Icon.cjs +0 -7
- package/dist/packages/components-v3/dist/WidgetTextField/components/Icon.js +0 -9
- package/dist/packages/components-v3/dist/WidgetTextField/components/Skeleton.cjs +0 -10
- package/dist/packages/components-v3/dist/WidgetTextField/components/Skeleton.js +0 -11
- package/dist/packages/components-v3/dist/WidgetTextField/components/index.cjs +0 -4
- package/dist/packages/components-v3/dist/WidgetTextField/components/index.js +0 -6
- package/dist/packages/components-v3/dist/WidgetTextField/hooks/useGetContainerProperties.cjs +0 -1
- package/dist/packages/components-v3/dist/WidgetTextField/hooks/useGetContainerProperties.js +0 -3
- package/dist/packages/components-v3/dist/WidgetTextField/index.cjs +0 -1
- package/dist/packages/components-v3/dist/WidgetTextField/index.js +0 -3
- package/dist/packages/components-v3/dist/WidgetWrapper/WidgetWrapper.cjs +0 -12
- package/dist/packages/components-v3/dist/WidgetWrapper/WidgetWrapper.js +0 -13
- package/dist/packages/components-v3/dist/WidgetWrapper/hooks/useGetWrapperProperties.cjs +0 -1
- package/dist/packages/components-v3/dist/WidgetWrapper/hooks/useGetWrapperProperties.js +0 -3
- package/dist/packages/components-v3/dist/WidgetWrapper/index.cjs +0 -2
- package/dist/packages/components-v3/dist/WidgetWrapper/index.js +0 -4
- package/dist/packages/components-v3/dist/WidgetWrapper/types/types.cjs +0 -13
- package/dist/packages/components-v3/dist/WidgetWrapper/types/types.js +0 -12
- package/dist/packages/components-v3/dist/WidgetWrapperWithTitle/WidgetWrapperWithTitle.cjs +0 -8
- package/dist/packages/components-v3/dist/WidgetWrapperWithTitle/WidgetWrapperWithTitle.js +0 -10
- package/dist/packages/components-v3/dist/packages/components-v3/src/models/colorsConfig.cjs +0 -26
- package/dist/packages/components-v3/dist/packages/components-v3/src/models/colorsConfig.js +0 -25
- package/dist/packages/components-v3/dist/packages/components-v3/tokens/aspectRatio/aspectRatio.cjs +0 -16
- package/dist/packages/components-v3/dist/packages/components-v3/tokens/aspectRatio/aspectRatio.js +0 -17
- package/dist/packages/components-v3/dist/packages/components-v3/tokens/breakpoints/breakpoints.cjs +0 -25
- package/dist/packages/components-v3/dist/packages/components-v3/tokens/breakpoints/breakpoints.js +0 -23
- package/dist/packages/components-v3/dist/packages/components-v3/tokens/colors/colors.cjs +0 -51
- package/dist/packages/components-v3/dist/packages/components-v3/tokens/colors/colors.js +0 -51
- package/dist/packages/components-v3/dist/packages/components-v3/tokens/radius/radius.cjs +0 -64
- package/dist/packages/components-v3/dist/packages/components-v3/tokens/radius/radius.js +0 -65
- package/dist/packages/components-v3/dist/packages/components-v3/tokens/theme/theme.cjs +0 -18
- package/dist/packages/components-v3/dist/packages/components-v3/tokens/theme/theme.js +0 -16
- package/dist/packages/components-v3/dist/packages/components-v3/tokens/typography/fontFamily.cjs +0 -25
- package/dist/packages/components-v3/dist/packages/components-v3/tokens/typography/fontFamily.js +0 -25
- package/dist/packages/components-v3/dist/packages/components-v3/tokens/typography/fontSize.cjs +0 -37
- package/dist/packages/components-v3/dist/packages/components-v3/tokens/typography/fontSize.js +0 -38
- package/dist/packages/components-v3/dist/packages/components-v3/tokens/typography/fontWeight.cjs +0 -17
- package/dist/packages/components-v3/dist/packages/components-v3/tokens/typography/fontWeight.js +0 -18
- package/dist/packages/components-v3/dist/packages/components-v3/tokens/typography/letterSpacing.cjs +0 -15
- package/dist/packages/components-v3/dist/packages/components-v3/tokens/typography/letterSpacing.js +0 -16
- package/dist/packages/components-v3/dist/packages/components-v3/tokens/typography/lineHeight.cjs +0 -31
- package/dist/packages/components-v3/dist/packages/components-v3/tokens/typography/lineHeight.js +0 -32
- package/dist/packages/components-v3/dist/packages/components-v3/tokens/typography/typography.cjs +0 -5
- package/dist/packages/components-v3/dist/packages/components-v3/tokens/typography/typography.js +0 -7
- package/dist/packages/components-v3/dist/packages/components-v3/tokens/utils.cjs +0 -7
- package/dist/packages/components-v3/dist/packages/components-v3/tokens/utils.js +0 -6
- package/dist/packages/components-v3/dist/utils/CustomIcon.cjs +0 -2
- package/dist/packages/components-v3/dist/utils/CustomIcon.js +0 -4
- package/dist/packages/components-v3/dist/utils/resolveTheme.cjs +0 -13
- package/dist/packages/components-v3/dist/utils/resolveTheme.js +0 -13
- package/dist/packages/components-v3/dist/utils/useCheckIsMobile.cjs +0 -1
- package/dist/packages/components-v3/dist/utils/useCheckIsMobile.js +0 -3
- package/dist/packages/components-v3/dist/utils/useGetContentSize.cjs +0 -1
- package/dist/packages/components-v3/dist/utils/useGetContentSize.js +0 -3
- package/dist/packages/components-v3/dist/utils/useResponsiveValue.cjs +0 -57
- package/dist/packages/components-v3/dist/utils/useResponsiveValue.js +0 -56
- package/dist/packages/icons/dist/FourPointStar.cjs +0 -23
- package/dist/packages/icons/dist/FourPointStar.js +0 -23
- package/dist/packages/icons/dist/IconCloseRounded.cjs +0 -22
- package/dist/packages/icons/dist/IconCloseRounded.js +0 -22
- package/dist/packages/icons/dist/IconCloseSharp.cjs +0 -31
- package/dist/packages/icons/dist/IconCloseSharp.js +0 -31
- package/dist/packages/icons/dist/IconCloseTransparent.cjs +0 -24
- package/dist/packages/icons/dist/IconCloseTransparent.js +0 -24
- package/dist/packages/icons/dist/MagnifyingGlass.cjs +0 -8
- package/dist/packages/icons/dist/MagnifyingGlass.js +0 -9
- package/dist/packages/icons/dist/MagnifyingThin.cjs +0 -8
- package/dist/packages/icons/dist/MagnifyingThin.js +0 -9
- package/dist/packages/icons/dist/SendMinimalist.cjs +0 -8
- package/dist/packages/icons/dist/SendMinimalist.js +0 -9
- package/dist/packages/icons/dist/SendModern.cjs +0 -8
- package/dist/packages/icons/dist/SendModern.js +0 -9
- package/dist/packages/icons/dist/SendStandard.cjs +0 -8
- package/dist/packages/icons/dist/SendStandard.js +0 -9
- package/dist/packages/icons/dist/Sparkles.cjs +0 -8
- package/dist/packages/icons/dist/Sparkles.js +0 -9
- package/dist/packages/icons/dist/_virtual/rolldown_runtime.cjs +0 -28
- package/dist/packages/icons/dist/_virtual/rolldown_runtime.js +0 -26
- package/dist/packages/icons/dist/node_modules/react/cjs/react-jsx-runtime.development.cjs +0 -697
- package/dist/packages/icons/dist/node_modules/react/cjs/react-jsx-runtime.development.js +0 -697
- package/dist/packages/icons/dist/node_modules/react/cjs/react-jsx-runtime.production.min.cjs +0 -44
- package/dist/packages/icons/dist/node_modules/react/cjs/react-jsx-runtime.production.min.js +0 -44
- package/dist/packages/icons/dist/node_modules/react/cjs/react.development.cjs +0 -1529
- package/dist/packages/icons/dist/node_modules/react/cjs/react.development.js +0 -1529
- package/dist/packages/icons/dist/node_modules/react/cjs/react.production.min.cjs +0 -330
- package/dist/packages/icons/dist/node_modules/react/cjs/react.production.min.js +0 -330
- package/dist/packages/icons/dist/node_modules/react/index.cjs +0 -14
- package/dist/packages/icons/dist/node_modules/react/index.js +0 -14
- package/dist/packages/icons/dist/node_modules/react/jsx-runtime.cjs +0 -14
- package/dist/packages/icons/dist/node_modules/react/jsx-runtime.js +0 -14
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { GraphQlConfigValues } from "../../contexts/graphqlContext/graphqlContext.cjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as jotai91 from "jotai";
|
|
3
3
|
|
|
4
4
|
//#region src/atoms/org/newOrgConfigAtom.d.ts
|
|
5
|
-
declare const newOrgConfigAtom:
|
|
5
|
+
declare const newOrgConfigAtom: jotai91.PrimitiveAtom<GraphQlConfigValues | null> & {
|
|
6
6
|
init: GraphQlConfigValues | null;
|
|
7
7
|
};
|
|
8
8
|
//#endregion
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { GraphQlConfigValues } from "../../contexts/graphqlContext/graphqlContext.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as jotai81 from "jotai";
|
|
3
3
|
|
|
4
4
|
//#region src/atoms/org/newOrgConfigAtom.d.ts
|
|
5
|
-
declare const newOrgConfigAtom:
|
|
5
|
+
declare const newOrgConfigAtom: jotai81.PrimitiveAtom<GraphQlConfigValues | null> & {
|
|
6
6
|
init: GraphQlConfigValues | null;
|
|
7
7
|
};
|
|
8
8
|
//#endregion
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { OrgAnalyticsAmplitudeConfig, OrgAnalyticsConfig, OrgAnalyticsCustomerServiceConfig, OrgAnalyticsGoogleAnalyticsConfig } from "../../application/models/api/orgAnalyticsConfig.cjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as jotai92 from "jotai";
|
|
3
3
|
|
|
4
4
|
//#region src/atoms/org/orgAnalyticsConfig.d.ts
|
|
5
|
-
declare const orgAnalyticsConfigAtom:
|
|
6
|
-
declare const orgAnalyticsAmplitudeConfigAtom:
|
|
7
|
-
declare const orgAnalyticsCustomerServiceConfigAtom:
|
|
8
|
-
declare const orgAnalyticsGoogleAnalyticsConfigAtom:
|
|
5
|
+
declare const orgAnalyticsConfigAtom: jotai92.WritableAtom<OrgAnalyticsConfig | undefined, [value: OrgAnalyticsConfig], void>;
|
|
6
|
+
declare const orgAnalyticsAmplitudeConfigAtom: jotai92.Atom<OrgAnalyticsAmplitudeConfig | undefined>;
|
|
7
|
+
declare const orgAnalyticsCustomerServiceConfigAtom: jotai92.Atom<OrgAnalyticsCustomerServiceConfig | undefined>;
|
|
8
|
+
declare const orgAnalyticsGoogleAnalyticsConfigAtom: jotai92.Atom<OrgAnalyticsGoogleAnalyticsConfig | undefined>;
|
|
9
9
|
//#endregion
|
|
10
10
|
export { orgAnalyticsAmplitudeConfigAtom, orgAnalyticsConfigAtom, orgAnalyticsCustomerServiceConfigAtom, orgAnalyticsGoogleAnalyticsConfigAtom };
|
|
11
11
|
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoib3JnQW5hbHl0aWNzQ29uZmlnLmQuY3RzIiwibmFtZXMiOltdLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3N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F5QjtDQUFDO09BQVc7T0FBMEI7T0FBMEIsUUFBUTtDQUFPO0FBQ25ILElBQVcsa0NBQWtDO0NBQUM7T0FBVztPQUFtQyxRQUFRO0NBQUs7QUFDekcsSUFBVyx3Q0FBd0M7Q0FBQztPQUFXO09BQXlDLFFBQVE7Q0FBSyJ9
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { OrgAnalyticsAmplitudeConfig, OrgAnalyticsConfig, OrgAnalyticsCustomerServiceConfig, OrgAnalyticsGoogleAnalyticsConfig } from "../../application/models/api/orgAnalyticsConfig.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as jotai77 from "jotai";
|
|
3
3
|
|
|
4
4
|
//#region src/atoms/org/orgAnalyticsConfig.d.ts
|
|
5
|
-
declare const orgAnalyticsConfigAtom:
|
|
6
|
-
declare const orgAnalyticsAmplitudeConfigAtom:
|
|
7
|
-
declare const orgAnalyticsCustomerServiceConfigAtom:
|
|
8
|
-
declare const orgAnalyticsGoogleAnalyticsConfigAtom:
|
|
5
|
+
declare const orgAnalyticsConfigAtom: jotai77.WritableAtom<OrgAnalyticsConfig | undefined, [value: OrgAnalyticsConfig], void>;
|
|
6
|
+
declare const orgAnalyticsAmplitudeConfigAtom: jotai77.Atom<OrgAnalyticsAmplitudeConfig | undefined>;
|
|
7
|
+
declare const orgAnalyticsCustomerServiceConfigAtom: jotai77.Atom<OrgAnalyticsCustomerServiceConfig | undefined>;
|
|
8
|
+
declare const orgAnalyticsGoogleAnalyticsConfigAtom: jotai77.Atom<OrgAnalyticsGoogleAnalyticsConfig | undefined>;
|
|
9
9
|
//#endregion
|
|
10
10
|
export { orgAnalyticsAmplitudeConfigAtom, orgAnalyticsConfigAtom, orgAnalyticsCustomerServiceConfigAtom, orgAnalyticsGoogleAnalyticsConfigAtom };
|
|
11
11
|
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoib3JnQW5hbHl0aWNzQ29uZmlnLmQudHM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biJdLCJtYXBwaW5ncyI6Ijs7OztBQUVBLElBQVcseUJBQXlCO0NBQUM7T0FBVztPQUEwQjtPQUEwQixRQUFRO0NBQU87QUFDbkgsSUFBVyxrQ0FBa0M7Q0FBQztPQUFXO09BQW1DLFFBQVE7Q0FBSztBQUN6RyxJQUFXLHdDQUF3QztDQUFDO09BQVc7T0FBeUMsUUFBUTtDQUFLIn0=
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
const require_rolldown_runtime = require('../../_virtual/rolldown_runtime.cjs');
|
|
2
2
|
const require_message = require('../../application/models/message.cjs');
|
|
3
3
|
require('../../application/models/index.cjs');
|
|
4
|
-
const require_newOrgConfigAtom = require('../org/newOrgConfigAtom.cjs');
|
|
5
4
|
const require_atoms_chat_chatState = require('../chat/chatState.cjs');
|
|
6
5
|
const require_messageQueue = require('../chat/messageQueue.cjs');
|
|
7
6
|
require('../chat/index.cjs');
|
|
7
|
+
const require_newOrgConfigAtom = require('../org/newOrgConfigAtom.cjs');
|
|
8
8
|
require('../org/index.cjs');
|
|
9
9
|
const require_productFilters = require('./productFilters.cjs');
|
|
10
10
|
const require_atoms_search_types = require('./types.cjs');
|
|
@@ -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 jotai38 from "jotai";
|
|
5
5
|
|
|
6
6
|
//#region src/atoms/search/chatSearch.d.ts
|
|
7
|
-
declare const chatSearchStateAtom:
|
|
7
|
+
declare const chatSearchStateAtom: jotai38.PrimitiveAtom<ChatSearchStateType> & {
|
|
8
8
|
init: ChatSearchStateType;
|
|
9
9
|
};
|
|
10
|
-
declare const chatSearchHasProductsAtom:
|
|
10
|
+
declare const chatSearchHasProductsAtom: jotai38.PrimitiveAtom<boolean> & {
|
|
11
11
|
init: boolean;
|
|
12
12
|
};
|
|
13
|
-
declare const chatSearchProductSortingAtom:
|
|
13
|
+
declare const chatSearchProductSortingAtom: jotai38.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: jotai38.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: jotai38.PrimitiveAtom<SelectedChatSearchFilterOption[]> & {
|
|
34
34
|
init: SelectedChatSearchFilterOption[];
|
|
35
35
|
};
|
|
36
|
-
declare const additiveDynamicFiltersAtom:
|
|
36
|
+
declare const additiveDynamicFiltersAtom: jotai38.Atom<boolean>;
|
|
37
37
|
declare const createChatSearchFilterOption: (filterId: string, filterItemId: string, displayName: string) => SelectedChatSearchFilterOption;
|
|
38
|
-
declare const chatSearchParamsAtom:
|
|
38
|
+
declare const chatSearchParamsAtom: jotai38.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: jotai38.WritableAtom<string | null, [value: string | null], void>;
|
|
46
|
+
declare const chatSearchIdAtom: jotai38.WritableAtom<string | null, [value: string | null], void>;
|
|
47
|
+
declare const ChatSearchTurnAtom: jotai38.Atom<{
|
|
48
48
|
productList: {
|
|
49
49
|
averageRating?: number | undefined;
|
|
50
50
|
colors?: string[] | undefined;
|
|
@@ -74,7 +74,7 @@ declare const ChatSearchTurnAtom: jotai35.Atom<{
|
|
|
74
74
|
filterList: string[];
|
|
75
75
|
messages: Message[];
|
|
76
76
|
} | null>;
|
|
77
|
-
declare const chatSearchProducts:
|
|
77
|
+
declare const chatSearchProducts: jotai38.Atom<{
|
|
78
78
|
averageRating?: number | undefined;
|
|
79
79
|
colors?: string[] | undefined;
|
|
80
80
|
description?: string | undefined;
|
|
@@ -97,19 +97,19 @@ declare const chatSearchProducts: jotai35.Atom<{
|
|
|
97
97
|
title: string;
|
|
98
98
|
url: string;
|
|
99
99
|
}[]>;
|
|
100
|
-
declare const chatSearchFiltersAtom:
|
|
100
|
+
declare const chatSearchFiltersAtom: jotai38.Atom<ChatSearchFilter[]>;
|
|
101
101
|
declare const setSearchParams: (query: string) => void;
|
|
102
|
-
declare const getSearchParamsAtom:
|
|
102
|
+
declare const getSearchParamsAtom: jotai38.Atom<{
|
|
103
103
|
es: string | null;
|
|
104
104
|
esq: string | null;
|
|
105
105
|
}>;
|
|
106
|
-
declare const initiateChatSearchAtom:
|
|
106
|
+
declare const initiateChatSearchAtom: jotai38.WritableAtom<null, [query: string], void> & {
|
|
107
107
|
init: null;
|
|
108
108
|
};
|
|
109
|
-
declare const handleSearchResultsAtom:
|
|
109
|
+
declare const handleSearchResultsAtom: jotai38.WritableAtom<null, [message: Message | undefined], void> & {
|
|
110
110
|
init: null;
|
|
111
111
|
};
|
|
112
|
-
declare const setChatSearchParamsAtom:
|
|
112
|
+
declare const setChatSearchParamsAtom: jotai38.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 jotai41 from "jotai";
|
|
5
5
|
|
|
6
6
|
//#region src/atoms/search/chatSearch.d.ts
|
|
7
|
-
declare const chatSearchStateAtom:
|
|
7
|
+
declare const chatSearchStateAtom: jotai41.PrimitiveAtom<ChatSearchStateType> & {
|
|
8
8
|
init: ChatSearchStateType;
|
|
9
9
|
};
|
|
10
|
-
declare const chatSearchHasProductsAtom:
|
|
10
|
+
declare const chatSearchHasProductsAtom: jotai41.PrimitiveAtom<boolean> & {
|
|
11
11
|
init: boolean;
|
|
12
12
|
};
|
|
13
|
-
declare const chatSearchProductSortingAtom:
|
|
13
|
+
declare const chatSearchProductSortingAtom: jotai41.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: jotai41.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: jotai41.PrimitiveAtom<SelectedChatSearchFilterOption[]> & {
|
|
34
34
|
init: SelectedChatSearchFilterOption[];
|
|
35
35
|
};
|
|
36
|
-
declare const additiveDynamicFiltersAtom:
|
|
36
|
+
declare const additiveDynamicFiltersAtom: jotai41.Atom<boolean>;
|
|
37
37
|
declare const createChatSearchFilterOption: (filterId: string, filterItemId: string, displayName: string) => SelectedChatSearchFilterOption;
|
|
38
|
-
declare const chatSearchParamsAtom:
|
|
38
|
+
declare const chatSearchParamsAtom: jotai41.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: jotai41.WritableAtom<string | null, [value: string | null], void>;
|
|
46
|
+
declare const chatSearchIdAtom: jotai41.WritableAtom<string | null, [value: string | null], void>;
|
|
47
|
+
declare const ChatSearchTurnAtom: jotai41.Atom<{
|
|
48
48
|
productList: {
|
|
49
49
|
averageRating?: number | undefined;
|
|
50
50
|
colors?: string[] | undefined;
|
|
@@ -74,7 +74,7 @@ declare const ChatSearchTurnAtom: jotai52.Atom<{
|
|
|
74
74
|
filterList: string[];
|
|
75
75
|
messages: Message[];
|
|
76
76
|
} | null>;
|
|
77
|
-
declare const chatSearchProducts:
|
|
77
|
+
declare const chatSearchProducts: jotai41.Atom<{
|
|
78
78
|
averageRating?: number | undefined;
|
|
79
79
|
colors?: string[] | undefined;
|
|
80
80
|
description?: string | undefined;
|
|
@@ -97,19 +97,19 @@ declare const chatSearchProducts: jotai52.Atom<{
|
|
|
97
97
|
title: string;
|
|
98
98
|
url: string;
|
|
99
99
|
}[]>;
|
|
100
|
-
declare const chatSearchFiltersAtom:
|
|
100
|
+
declare const chatSearchFiltersAtom: jotai41.Atom<ChatSearchFilter[]>;
|
|
101
101
|
declare const setSearchParams: (query: string) => void;
|
|
102
|
-
declare const getSearchParamsAtom:
|
|
102
|
+
declare const getSearchParamsAtom: jotai41.Atom<{
|
|
103
103
|
es: string | null;
|
|
104
104
|
esq: string | null;
|
|
105
105
|
}>;
|
|
106
|
-
declare const initiateChatSearchAtom:
|
|
106
|
+
declare const initiateChatSearchAtom: jotai41.WritableAtom<null, [query: string], void> & {
|
|
107
107
|
init: null;
|
|
108
108
|
};
|
|
109
|
-
declare const handleSearchResultsAtom:
|
|
109
|
+
declare const handleSearchResultsAtom: jotai41.WritableAtom<null, [message: Message | undefined], void> & {
|
|
110
110
|
init: null;
|
|
111
111
|
};
|
|
112
|
-
declare const setChatSearchParamsAtom:
|
|
112
|
+
declare const setChatSearchParamsAtom: jotai41.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";
|
|
4
3
|
import { messagesAtom, replyEventCategoryAtom, userHasRepliedAtom, userQueryAtom } from "../chat/chatState.js";
|
|
5
4
|
import { queueUserEventAtom } from "../chat/messageQueue.js";
|
|
6
5
|
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');
|
|
4
3
|
require('../org/index.cjs');
|
|
5
4
|
const require_productFilters = require('./productFilters.cjs');
|
|
6
5
|
const require_atoms_search_types = require('./types.cjs');
|
|
7
6
|
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 jotai26 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: jotai26.PrimitiveAtom<SearchState> & {
|
|
19
19
|
init: SearchState;
|
|
20
20
|
};
|
|
21
|
-
declare const searchProductSortingAtom:
|
|
21
|
+
declare const searchProductSortingAtom: jotai26.PrimitiveAtom<ProductSorting> & {
|
|
22
22
|
init: ProductSorting;
|
|
23
23
|
};
|
|
24
|
-
declare const searchSelectedFiltersAtom:
|
|
24
|
+
declare const searchSelectedFiltersAtom: jotai26.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: jotai26.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: jotai26.PrimitiveAtom<boolean> & {
|
|
36
36
|
init: boolean;
|
|
37
37
|
};
|
|
38
|
-
declare const searchSystemAtom:
|
|
39
|
-
declare const filteredSearchProductsAtom:
|
|
38
|
+
declare const searchSystemAtom: jotai26.WritableAtom<boolean, [value: boolean], void>;
|
|
39
|
+
declare const filteredSearchProductsAtom: jotai26.Atom<{
|
|
40
40
|
averageRating?: number | undefined;
|
|
41
41
|
colors?: string[] | undefined;
|
|
42
42
|
description?: string | undefined;
|
|
@@ -59,17 +59,17 @@ declare const filteredSearchProductsAtom: jotai23.Atom<{
|
|
|
59
59
|
title: string;
|
|
60
60
|
url: string;
|
|
61
61
|
}[]>;
|
|
62
|
-
declare const searchFiltersAtom:
|
|
63
|
-
declare const addSearchFilterAtom:
|
|
62
|
+
declare const searchFiltersAtom: jotai26.Atom<ChatSearchFilter[]>;
|
|
63
|
+
declare const addSearchFilterAtom: jotai26.WritableAtom<null, [filter: SelectedFilterOption], void> & {
|
|
64
64
|
init: null;
|
|
65
65
|
};
|
|
66
|
-
declare const removeSearchFilterAtom:
|
|
66
|
+
declare const removeSearchFilterAtom: jotai26.WritableAtom<null, [filterId: string], void> & {
|
|
67
67
|
init: null;
|
|
68
68
|
};
|
|
69
|
-
declare const clearSearchFiltersAtom:
|
|
69
|
+
declare const clearSearchFiltersAtom: jotai26.WritableAtom<null, [], void> & {
|
|
70
70
|
init: null;
|
|
71
71
|
};
|
|
72
|
-
declare const performSearchAtom:
|
|
72
|
+
declare const performSearchAtom: jotai26.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 jotai57 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: jotai57.PrimitiveAtom<SearchState> & {
|
|
19
19
|
init: SearchState;
|
|
20
20
|
};
|
|
21
|
-
declare const searchProductSortingAtom:
|
|
21
|
+
declare const searchProductSortingAtom: jotai57.PrimitiveAtom<ProductSorting> & {
|
|
22
22
|
init: ProductSorting;
|
|
23
23
|
};
|
|
24
|
-
declare const searchSelectedFiltersAtom:
|
|
24
|
+
declare const searchSelectedFiltersAtom: jotai57.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: jotai57.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: jotai57.PrimitiveAtom<boolean> & {
|
|
36
36
|
init: boolean;
|
|
37
37
|
};
|
|
38
|
-
declare const searchSystemAtom:
|
|
39
|
-
declare const filteredSearchProductsAtom:
|
|
38
|
+
declare const searchSystemAtom: jotai57.WritableAtom<boolean, [value: boolean], void>;
|
|
39
|
+
declare const filteredSearchProductsAtom: jotai57.Atom<{
|
|
40
40
|
averageRating?: number | undefined;
|
|
41
41
|
colors?: string[] | undefined;
|
|
42
42
|
description?: string | undefined;
|
|
@@ -59,17 +59,17 @@ declare const filteredSearchProductsAtom: jotai40.Atom<{
|
|
|
59
59
|
title: string;
|
|
60
60
|
url: string;
|
|
61
61
|
}[]>;
|
|
62
|
-
declare const searchFiltersAtom:
|
|
63
|
-
declare const addSearchFilterAtom:
|
|
62
|
+
declare const searchFiltersAtom: jotai57.Atom<ChatSearchFilter[]>;
|
|
63
|
+
declare const addSearchFilterAtom: jotai57.WritableAtom<null, [filter: SelectedFilterOption], void> & {
|
|
64
64
|
init: null;
|
|
65
65
|
};
|
|
66
|
-
declare const removeSearchFilterAtom:
|
|
66
|
+
declare const removeSearchFilterAtom: jotai57.WritableAtom<null, [filterId: string], void> & {
|
|
67
67
|
init: null;
|
|
68
68
|
};
|
|
69
|
-
declare const clearSearchFiltersAtom:
|
|
69
|
+
declare const clearSearchFiltersAtom: jotai57.WritableAtom<null, [], void> & {
|
|
70
70
|
init: null;
|
|
71
71
|
};
|
|
72
|
-
declare const performSearchAtom:
|
|
72
|
+
declare const performSearchAtom: jotai57.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";
|
|
3
2
|
import "../org/index.js";
|
|
4
3
|
import { ProductFilters } from "./productFilters.js";
|
|
5
4
|
import { ProductSorting } from "./types.js";
|
|
6
5
|
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,eyJ2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HQge1xuICAgIHByb2R1Y3RzOiBTZWFyY2hSZXNwb25zZVByb2R1Y3RBdHRyaWJ1dGVzWydhdHRyaWJ1dGVzJ11bXTtcbiAgICB0b3RhbFByb2R1Y3RDb3VudDogbnVtYmVyO1xufVxuZXhwb3J0IGludGVyZmFjZSBQcm9kdWN0UmV0cmlldmFsUGFyYW1zIHtcbiAgICBwcm9kdWN0SWRzOiBzdHJpbmdbXTtcbn1cbiJdLCJtYXBwaW5ncyI6Ijs7O0FBQ0EsSUFBVyxpQkFBaUIsQ0FBQyxHQUFHO0FBQ2hDLElBQVcsc0JBQWMsQ0FBQSxHQUFBO0FBQ3pCLElBQVcsc0JBQWdCLENBQUEsR0FBQTtBQUMzQixJQUFXLG1CQUFpQixDQUFBLFVBQUEscUJBQUE7QUFDNUIsSUFBQSx1QkFBQSxDQUFBLEdBQUE7QUFDQSxJQUFXLHNCQUFzQixDQUFDLFVBQVEsZUFBQTtBQUMxQyxJQUFXLDJCQUFTLENBQUEsVUFBQSxvQkFBQTtBQUNwQixJQUFXLGFBQVU7Q0FBQTtPQUFBO09BQUE7Q0FBQTtBQUNyQixJQUFXLDBCQUFXLENBQUEsR0FBQTtBQUN0QixJQUFDLHlCQUFBLENBQUEsVUFBQSxnQ0FBQTtBQUNELElBQVcseUJBQXlCLENBQUMsR0FBRyJ9
|
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
declare const formatFilterDisplayName: (displayName: string) => string;
|
|
3
3
|
//#endregion
|
|
4
4
|
export { formatFilterDisplayName };
|
|
5
|
-
//# sourceMappingURL=data:application/json;charset=utf-8;base64,
|
|
5
|
+
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidXRpbHMuZC5jdHMiLCJuYW1lcyI6W10sInNvdXJjZXMiOlsiLi4vLi4vLi4vc3JjL2F0b21zL3NlYXJjaC91dGlscy5kLnRzIl0sInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCBkZWNsYXJlIGNvbnN0IGZvcm1hdEZpbHRlckRpc3BsYXlOYW1lOiAoZGlzcGxheU5hbWU6IHN0cmluZykgPT4gc3RyaW5nO1xuIl0sIm1hcHBpbmdzIjoiO0FBQUEsSUFBVywwQkFBMEIsQ0FBQyxHQUFHIn0=
|
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
declare const formatFilterDisplayName: (displayName: string) => string;
|
|
3
3
|
//#endregion
|
|
4
4
|
export { formatFilterDisplayName };
|
|
5
|
-
//# sourceMappingURL=data:application/json;charset=utf-8;base64,
|
|
5
|
+
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidXRpbHMuZC50cyIsIm5hbWVzIjpbXSwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvYXRvbXMvc2VhcmNoL3V0aWxzLmQudHMiXSwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0IGRlY2xhcmUgY29uc3QgZm9ybWF0RmlsdGVyRGlzcGxheU5hbWU6IChkaXNwbGF5TmFtZTogc3RyaW5nKSA9PiBzdHJpbmc7XG4iXSwibWFwcGluZ3MiOiI7QUFBQSxJQUFXLDBCQUEwQixDQUFDLEdBQUcifQ==
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { WidgetWrapperVariant } from "@envive-ai/react-toolkit-v3/WidgetWrapper";
|
|
2
|
-
import * as
|
|
2
|
+
import * as jotai82 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: jotai82.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 jotai36 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: jotai36.WritableAtom<Record<string, ChatPreviewLoadingData>, [update: {
|
|
21
21
|
widgetConfigId: string;
|
|
22
22
|
data: ChatPreviewLoadingData;
|
|
23
23
|
}], void>;
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
const require_rolldown_runtime = require('../../_virtual/rolldown_runtime.cjs');
|
|
2
|
+
const require_chatElementDisplayLocationV3 = require('../../application/models/chatElementDisplayLocationV3.cjs');
|
|
3
|
+
const require_logger = require('../../application/logging/logger.cjs');
|
|
4
|
+
const require_enviveConfigContext = require('../enviveConfigContext/enviveConfigContext.cjs');
|
|
5
|
+
const require_salesAgentContext = require('../salesAgentContext/salesAgentContext.cjs');
|
|
6
|
+
const require_useChatToggle = require('../../hooks/ChatToggle/useChatToggle.cjs');
|
|
7
|
+
require('../../hooks/ChatToggle/index.cjs');
|
|
8
|
+
let react = require("react");
|
|
9
|
+
|
|
10
|
+
//#region src/contexts/enviveContext/WindowChatToggleBinder.tsx
|
|
11
|
+
const attachedPrefixes = /* @__PURE__ */ new Set();
|
|
12
|
+
const WindowChatToggleBinder = () => {
|
|
13
|
+
const triggerLocation = require_chatElementDisplayLocationV3.ChatElementDisplayLocationV3.WINDOW_API_CALL;
|
|
14
|
+
const hook = require_useChatToggle.useChatToggle();
|
|
15
|
+
const { onTypedMessageSubmitted } = require_salesAgentContext.useSalesAgent();
|
|
16
|
+
const { identifyingPrefix } = require_enviveConfigContext.useEnviveConfig();
|
|
17
|
+
const openChatRef = (0, react.useRef)(() => {});
|
|
18
|
+
const closeChatRef = (0, react.useRef)(() => {});
|
|
19
|
+
const toggleChatRef = (0, react.useRef)(() => {});
|
|
20
|
+
const isOpenRef = (0, react.useRef)(hook.isOpen);
|
|
21
|
+
const openChatWithPromptRef = (0, react.useRef)(() => {});
|
|
22
|
+
(0, react.useEffect)(() => {
|
|
23
|
+
openChatRef.current = (triggerId) => hook.openChat(triggerLocation, triggerId);
|
|
24
|
+
closeChatRef.current = (triggerId) => hook.closeChat(triggerLocation, triggerId);
|
|
25
|
+
toggleChatRef.current = (triggerId) => hook.toggle(triggerLocation, triggerId);
|
|
26
|
+
isOpenRef.current = hook.isOpen;
|
|
27
|
+
openChatWithPromptRef.current = (prompt, triggerId) => {
|
|
28
|
+
onTypedMessageSubmitted({
|
|
29
|
+
query: prompt,
|
|
30
|
+
userTyped: false
|
|
31
|
+
});
|
|
32
|
+
hook.openChat(triggerLocation, triggerId);
|
|
33
|
+
};
|
|
34
|
+
}, [
|
|
35
|
+
hook,
|
|
36
|
+
onTypedMessageSubmitted,
|
|
37
|
+
triggerLocation
|
|
38
|
+
]);
|
|
39
|
+
(0, react.useEffect)(() => {
|
|
40
|
+
if (!identifyingPrefix || attachedPrefixes.has(identifyingPrefix)) return;
|
|
41
|
+
try {
|
|
42
|
+
const win = window;
|
|
43
|
+
if (!win[identifyingPrefix]) win[identifyingPrefix] = {};
|
|
44
|
+
const api = win[identifyingPrefix];
|
|
45
|
+
api.openChat = (triggerId) => openChatRef.current?.(triggerId);
|
|
46
|
+
api.closeChat = (triggerId) => closeChatRef.current?.(triggerId);
|
|
47
|
+
api.toggleChat = (triggerId) => toggleChatRef.current?.(triggerId);
|
|
48
|
+
api.getChatIsOpen = () => !!isOpenRef.current;
|
|
49
|
+
api.openChatWithPrompt = (prompt, triggerId) => openChatWithPromptRef.current?.(prompt, triggerId);
|
|
50
|
+
attachedPrefixes.add(identifyingPrefix);
|
|
51
|
+
const spiffyAlias = "spiffy";
|
|
52
|
+
if (!attachedPrefixes.has(spiffyAlias)) {
|
|
53
|
+
win[spiffyAlias] = api;
|
|
54
|
+
attachedPrefixes.add(spiffyAlias);
|
|
55
|
+
}
|
|
56
|
+
require_logger.default.logDebug(`[envive-ai] Chat toggle attached at window["${identifyingPrefix}"] and window["${spiffyAlias}"]`);
|
|
57
|
+
} catch (e) {
|
|
58
|
+
require_logger.default.logError("[envive-ai] Failed to attach Chat toggle functions", e);
|
|
59
|
+
}
|
|
60
|
+
}, [identifyingPrefix]);
|
|
61
|
+
return null;
|
|
62
|
+
};
|
|
63
|
+
|
|
64
|
+
//#endregion
|
|
65
|
+
exports.WindowChatToggleBinder = WindowChatToggleBinder;
|
|
66
|
+
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiV2luZG93Q2hhdFRvZ2dsZUJpbmRlci5janMiLCJuYW1lcyI6WyJDaGF0RWxlbWVudERpc3BsYXlMb2NhdGlvblYzIiwidXNlQ2hhdFRvZ2dsZSIsInVzZVNhbGVzQWdlbnQiLCJ1c2VFbnZpdmVDb25maWciXSwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvY29udGV4dHMvZW52aXZlQ29udGV4dC9XaW5kb3dDaGF0VG9nZ2xlQmluZGVyLnRzeCJdLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyB1c2VFZmZlY3QsIHVzZVJlZiB9IGZyb20gJ3JlYWN0JztcbmltcG9ydCB7IENoYXRFbGVtZW50RGlzcGxheUxvY2F0aW9uVjMgfSBmcm9tICdzcmMvYXBwbGljYXRpb24vbW9kZWxzL2NoYXRFbGVtZW50RGlzcGxheUxvY2F0aW9uVjMnO1xuaW1wb3J0IExvZ2dlciBmcm9tICdzcmMvYXBwbGljYXRpb24vbG9nZ2luZy9sb2dn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