@envive-ai/react-hooks 0.1.6 → 0.1.7
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/NewOrgConfig-C5YL4Y62.cjs +20 -0
- package/dist/NewOrgConfig-CRyIfb_l.js +15 -0
- package/dist/SystemSettingsContext-Cb9YHln8.cjs +20 -0
- package/dist/SystemSettingsContext-D3mmGGcv.js +13 -0
- package/dist/TrackComponentVisibleEvent-C7c_rHFW.cjs +59 -0
- package/dist/TrackComponentVisibleEvent-DXTEBjGM.js +52 -0
- package/dist/amplitudeContext-CB_F-nJY.d.cts +52 -0
- package/dist/amplitudeContext-Cak6ijMq.js +287 -0
- package/dist/amplitudeContext-DFYBDc0h.d.ts +52 -0
- package/dist/amplitudeContext-sTEsPaVG.cjs +309 -0
- package/dist/api-DSFlctlc.cjs +269 -0
- package/dist/api-JTNjuOfc.js +190 -0
- package/dist/{app-CjsQ2_n-.js → app-D_upYeqF.js} +6 -6
- package/dist/{app-CnKRZ9RW.cjs → app-KXTMPa4s.cjs} +8 -8
- package/dist/application/models/graphql/index.cjs +2 -1
- package/dist/application/models/graphql/index.d.ts +1 -1
- package/dist/application/models/graphql/index.js +2 -1
- package/dist/application/models/guards/api/index.cjs +2 -1
- package/dist/application/models/guards/api/index.d.ts +2 -2
- package/dist/application/models/guards/api/index.js +2 -1
- package/dist/application/models/index.cjs +11 -9
- package/dist/application/models/index.d.cts +8 -4
- package/dist/application/models/index.d.ts +11 -7
- package/dist/application/models/index.js +10 -7
- package/dist/application/models/utilityTypes/index.cjs +1 -1
- package/dist/application/models/utilityTypes/index.d.ts +1 -1
- package/dist/application/models/utilityTypes/index.js +1 -1
- package/dist/application/models/variantInfo/index.cjs +1 -1
- package/dist/application/models/variantInfo/index.d.cts +1 -1
- package/dist/application/models/variantInfo/index.d.ts +1 -1
- package/dist/application/models/variantInfo/index.js +1 -1
- package/dist/application/utils/index.cjs +28 -22
- package/dist/application/utils/index.d.cts +12 -8
- package/dist/application/utils/index.d.ts +16 -12
- package/dist/application/utils/index.js +19 -13
- package/dist/{atomStore-B4jIaDPd.cjs → atomStore-DEZyFCNz.cjs} +1 -1
- package/dist/{atomStore-D8pjE1vL.js → atomStore-DnPEioF4.js} +1 -1
- package/dist/atoms/app/index.cjs +13 -9
- package/dist/atoms/app/index.d.cts +15 -11
- package/dist/atoms/app/index.d.ts +18 -14
- package/dist/atoms/app/index.js +13 -9
- package/dist/atoms/atomStore/index.cjs +2 -2
- package/dist/atoms/atomStore/index.d.cts +1 -1
- package/dist/atoms/atomStore/index.js +2 -2
- package/dist/atoms/chat/index.cjs +34 -28
- package/dist/atoms/chat/index.d.cts +35 -31
- package/dist/atoms/chat/index.d.ts +38 -34
- package/dist/atoms/chat/index.js +20 -14
- package/dist/atoms/globalSearch/index.cjs +1 -1
- package/dist/atoms/globalSearch/index.d.cts +5 -5
- package/dist/atoms/globalSearch/index.d.ts +5 -5
- package/dist/atoms/globalSearch/index.js +1 -1
- package/dist/atoms/org/index.cjs +6 -14
- package/dist/atoms/org/index.d.cts +27 -32
- package/dist/atoms/org/index.d.ts +30 -35
- package/dist/atoms/org/index.js +5 -11
- package/dist/atoms/search/index.cjs +44 -34
- package/dist/atoms/search/index.d.cts +9 -4
- package/dist/atoms/search/index.d.ts +12 -7
- package/dist/atoms/search/index.js +26 -16
- package/dist/atoms/search/types.cjs +5 -0
- package/dist/atoms/search/types.d.cts +2 -0
- package/dist/atoms/search/types.d.ts +2 -0
- package/dist/atoms/search/types.js +3 -0
- package/dist/cdnContext-BMjVfBft.cjs +53 -0
- package/dist/cdnContext-DgsJ00Tb.js +38 -0
- package/dist/{chat-CV6MXeID.js → chat-B4lkFIxz.js} +1 -1
- package/dist/chat-D1Eat8Ih.cjs +394 -0
- package/dist/chat-DPJGdUkz.js +258 -0
- package/dist/{chat-BubCW1as.cjs → chat-zA-K4tR_.cjs} +1 -1
- package/dist/chatElementDisplayLocation-9SW40Dd3.d.cts +25 -0
- package/dist/chatElementDisplayLocation-C1tRM5OD.d.ts +25 -0
- package/dist/chatSearch-B5jMnCYX.js +315 -0
- package/dist/chatSearch-DWMiyWN0.cjs +444 -0
- package/dist/chatState-BisPJd5g.cjs +120 -0
- package/dist/chatState-BrmBYY8l.js +34 -0
- package/dist/commerce-api-CxDIfeME.cjs +318 -0
- package/dist/commerce-api-DagLj3D_.js +311 -0
- package/dist/{components-B4T3Uzth.js → components-B1edduHz.js} +1 -1
- package/dist/{components-Cw9WjA6g.cjs → components-g0G58Kat.cjs} +1 -1
- package/dist/config/locators/components/chat/index.cjs +1 -1
- package/dist/config/locators/components/chat/index.d.cts +1 -1
- package/dist/config/locators/components/chat/index.d.ts +1 -1
- package/dist/config/locators/components/chat/index.js +1 -1
- package/dist/config/locators/components/chat/variants/index.d.cts +1 -1
- package/dist/config/locators/components/chat/variants/index.d.ts +1 -1
- package/dist/config/locators/components/index.cjs +1 -1
- package/dist/config/locators/components/index.d.cts +1 -1
- package/dist/config/locators/components/index.d.ts +1 -1
- package/dist/config/locators/components/index.js +1 -1
- package/dist/config/locators/components/search/index.d.cts +1 -1
- package/dist/config/locators/components/search/index.d.ts +1 -1
- package/dist/config/locators/index.cjs +42 -22
- package/dist/config/locators/index.d.cts +2 -2
- package/dist/config/locators/index.d.ts +3 -3
- package/dist/config/locators/index.js +25 -5
- package/dist/contexts/amplitudeContext/index.cjs +21 -0
- package/dist/contexts/amplitudeContext/index.d.cts +2 -0
- package/dist/contexts/amplitudeContext/index.d.ts +2 -0
- package/dist/contexts/amplitudeContext/index.js +19 -0
- package/dist/contexts/cdnContext/index.cjs +7 -0
- package/dist/contexts/cdnContext/index.d.cts +15 -0
- package/dist/contexts/cdnContext/index.d.ts +15 -0
- package/dist/contexts/cdnContext/index.js +6 -0
- package/dist/contexts/chatContext/index.cjs +329 -0
- package/dist/contexts/chatContext/index.d.cts +15 -0
- package/dist/contexts/chatContext/index.d.ts +15 -0
- package/dist/contexts/chatContext/index.js +322 -0
- package/dist/contexts/enviveConfigContext/index.cjs +7 -0
- package/dist/contexts/enviveConfigContext/index.d.cts +30 -0
- package/dist/contexts/enviveConfigContext/index.d.ts +30 -0
- package/dist/contexts/enviveConfigContext/index.js +6 -0
- package/dist/contexts/enviveCssContext/index.cjs +65 -0
- package/dist/contexts/enviveCssContext/index.d.cts +10 -0
- package/dist/contexts/enviveCssContext/index.d.ts +10 -0
- package/dist/contexts/enviveCssContext/index.js +62 -0
- package/dist/contexts/featureFlagContext/index.cjs +107 -0
- package/dist/contexts/featureFlagContext/index.d.cts +20 -0
- package/dist/contexts/featureFlagContext/index.d.ts +20 -0
- package/dist/contexts/featureFlagContext/index.js +103 -0
- package/dist/contexts/featureFlagServiceContext/index.cjs +6 -0
- package/dist/contexts/featureFlagServiceContext/index.d.cts +5 -0
- package/dist/contexts/featureFlagServiceContext/index.d.ts +5 -0
- package/dist/contexts/featureFlagServiceContext/index.js +5 -0
- package/dist/contexts/graphqlContext/index.cjs +15 -0
- package/dist/contexts/graphqlContext/index.d.cts +12 -0
- package/dist/contexts/graphqlContext/index.d.ts +12 -0
- package/dist/contexts/graphqlContext/index.js +14 -0
- package/dist/contexts/localStorageContext/index.cjs +6 -0
- package/dist/contexts/localStorageContext/index.d.cts +30 -0
- package/dist/contexts/localStorageContext/index.d.ts +30 -0
- package/dist/contexts/localStorageContext/index.js +4 -0
- package/dist/contexts/newOrgConfigContext/index.cjs +19 -0
- package/dist/contexts/newOrgConfigContext/index.d.cts +30 -0
- package/dist/contexts/newOrgConfigContext/index.d.ts +30 -0
- package/dist/contexts/newOrgConfigContext/index.js +18 -0
- package/dist/contexts/searchContext/index.cjs +23 -0
- package/dist/contexts/searchContext/index.d.cts +16 -0
- package/dist/contexts/searchContext/index.d.ts +16 -0
- package/dist/contexts/searchContext/index.js +22 -0
- package/dist/contexts/sessionStorageContext/index.cjs +5 -0
- package/dist/contexts/sessionStorageContext/index.d.cts +15 -0
- package/dist/contexts/sessionStorageContext/index.d.ts +15 -0
- package/dist/contexts/sessionStorageContext/index.js +4 -0
- package/dist/contexts/shopifyUrlContext/index.cjs +5 -0
- package/dist/contexts/shopifyUrlContext/index.d.cts +20 -0
- package/dist/contexts/shopifyUrlContext/index.d.ts +20 -0
- package/dist/contexts/shopifyUrlContext/index.js +4 -0
- package/dist/contexts/systemSettingsContext/index.cjs +8 -0
- package/dist/contexts/systemSettingsContext/index.d.cts +36 -0
- package/dist/contexts/systemSettingsContext/index.d.ts +36 -0
- package/dist/contexts/systemSettingsContext/index.js +6 -0
- package/dist/contexts/types.cjs +7 -0
- package/dist/contexts/types.d.cts +4 -0
- package/dist/contexts/types.d.ts +4 -0
- package/dist/contexts/types.js +3 -0
- package/dist/contexts/userIdentityContext/index.cjs +26 -0
- package/dist/contexts/userIdentityContext/index.d.cts +2 -0
- package/dist/contexts/userIdentityContext/index.d.ts +2 -0
- package/dist/contexts/userIdentityContext/index.js +25 -0
- package/dist/domObserver-B6cRGTny.js +285 -0
- package/dist/domObserver-DQZwhPrc.cjs +304 -0
- package/dist/enviveConfig-BJZ4zTJo.js +62 -0
- package/dist/enviveConfig-DdBrcGSQ.cjs +130 -0
- package/dist/enviveConfigContext-78orE_uH.cjs +60 -0
- package/dist/enviveConfigContext-jBCCWQH9.js +45 -0
- package/dist/events/index.cjs +1 -1
- package/dist/events/index.d.ts +1 -1
- package/dist/events/index.js +1 -1
- package/dist/{events-BrLpaNxh.js → events-BHJJjPDN.js} +1 -1
- package/dist/{events-DwT6cEwI.cjs → events-B_fJZf9E.cjs} +1 -1
- package/dist/featureFlagServiceContext-ChL7DJ53.cjs +56 -0
- package/dist/featureFlagServiceContext-D1PzHsEs.d.ts +23 -0
- package/dist/featureFlagServiceContext-DQwlCTde.d.cts +23 -0
- package/dist/featureFlagServiceContext-DzFfmb1Z.js +42 -0
- package/dist/featureGates-Blx10fwB.js +27 -0
- package/dist/featureGates-DcZNrUma.cjs +33 -0
- package/dist/frontendConfig-DrvrQSm8.d.ts +857 -0
- package/dist/frontendConfig-wg41mBok.d.cts +857 -0
- package/dist/{globalSearch-BFvEg53C.cjs → globalSearch-Bnjlxtr5.cjs} +1 -1
- package/dist/{globalSearch-B6THR7Jx.js → globalSearch-CRWUqnjq.js} +1 -1
- package/dist/graphql-B9HhDXYt.cjs +53 -0
- package/dist/graphql-W7GMIHUu.js +36 -0
- package/dist/graphqlConfig-Bn-HLHsh.cjs +39 -0
- package/dist/graphqlConfig-DtZm_YaH.js +14 -0
- package/dist/graphqlContext-BJg7B--J.js +96 -0
- package/dist/graphqlContext-DI-_VRmb.cjs +111 -0
- package/dist/hooks/AmplitudeOperations/index.cjs +21 -0
- package/dist/hooks/AmplitudeOperations/index.d.cts +12 -0
- package/dist/hooks/AmplitudeOperations/index.d.ts +12 -0
- package/dist/hooks/AmplitudeOperations/index.js +21 -0
- package/dist/hooks/AppDetails/index.cjs +18 -0
- package/dist/hooks/AppDetails/index.d.cts +26 -0
- package/dist/hooks/AppDetails/index.d.ts +26 -0
- package/dist/hooks/AppDetails/index.js +18 -0
- package/dist/hooks/BlockBackButton/index.cjs +29 -0
- package/dist/hooks/BlockBackButton/index.d.cts +5 -0
- package/dist/hooks/BlockBackButton/index.d.ts +5 -0
- package/dist/hooks/BlockBackButton/index.js +27 -0
- package/dist/hooks/CdnOperations/index.cjs +24 -0
- package/dist/hooks/CdnOperations/index.d.cts +7 -0
- package/dist/hooks/CdnOperations/index.d.ts +7 -0
- package/dist/hooks/CdnOperations/index.js +22 -0
- package/dist/hooks/ChatToggle/index.cjs +63 -0
- package/dist/hooks/ChatToggle/index.d.cts +12 -0
- package/dist/hooks/ChatToggle/index.d.ts +12 -0
- package/dist/hooks/ChatToggle/index.js +61 -0
- package/dist/hooks/ChatToggleAnalytics/index.cjs +37 -0
- package/dist/hooks/ChatToggleAnalytics/index.d.cts +9 -0
- package/dist/hooks/ChatToggleAnalytics/index.d.ts +9 -0
- package/dist/hooks/ChatToggleAnalytics/index.js +35 -0
- package/dist/hooks/CustomerSupportHandoff/index.cjs +36 -0
- package/dist/hooks/CustomerSupportHandoff/index.d.cts +16 -0
- package/dist/hooks/CustomerSupportHandoff/index.d.ts +16 -0
- package/dist/hooks/CustomerSupportHandoff/index.js +34 -0
- package/dist/hooks/Debounce/index.cjs +3 -0
- package/dist/hooks/Debounce/index.d.cts +5 -0
- package/dist/hooks/Debounce/index.d.ts +5 -0
- package/dist/hooks/Debounce/index.js +3 -0
- package/dist/hooks/ElementObserver/index.cjs +179 -0
- package/dist/hooks/ElementObserver/index.d.cts +29 -0
- package/dist/hooks/ElementObserver/index.d.ts +29 -0
- package/dist/hooks/ElementObserver/index.js +177 -0
- package/dist/hooks/GrabAndScroll/index.cjs +99 -0
- package/dist/hooks/GrabAndScroll/index.d.cts +14 -0
- package/dist/hooks/GrabAndScroll/index.d.ts +14 -0
- package/dist/hooks/GrabAndScroll/index.js +97 -0
- package/dist/hooks/GraphQLConfig/index.cjs +16 -0
- package/dist/hooks/GraphQLConfig/index.d.cts +15 -0
- package/dist/hooks/GraphQLConfig/index.d.ts +15 -0
- package/dist/hooks/GraphQLConfig/index.js +15 -0
- package/dist/hooks/IdentifyUser/index.cjs +59 -0
- package/dist/hooks/IdentifyUser/index.d.cts +10 -0
- package/dist/hooks/IdentifyUser/index.d.ts +10 -0
- package/dist/hooks/IdentifyUser/index.js +57 -0
- package/dist/hooks/ImageResolver/index.cjs +54 -0
- package/dist/hooks/ImageResolver/index.d.cts +7 -0
- package/dist/hooks/ImageResolver/index.d.ts +7 -0
- package/dist/hooks/ImageResolver/index.js +52 -0
- package/dist/hooks/Intersection/index.cjs +3 -0
- package/dist/hooks/Intersection/index.d.cts +7 -0
- package/dist/hooks/Intersection/index.d.ts +7 -0
- package/dist/hooks/Intersection/index.js +3 -0
- package/dist/hooks/IsSmallScreen/index.cjs +22 -0
- package/dist/hooks/IsSmallScreen/index.d.cts +5 -0
- package/dist/hooks/IsSmallScreen/index.d.ts +5 -0
- package/dist/hooks/IsSmallScreen/index.js +20 -0
- package/dist/hooks/LocalStorageOperations/index.cjs +79 -0
- package/dist/hooks/LocalStorageOperations/index.d.cts +17 -0
- package/dist/hooks/LocalStorageOperations/index.d.ts +17 -0
- package/dist/hooks/LocalStorageOperations/index.js +74 -0
- package/dist/hooks/MessageFilter/index.cjs +53 -0
- package/dist/hooks/MessageFilter/index.d.cts +29 -0
- package/dist/hooks/MessageFilter/index.d.ts +29 -0
- package/dist/hooks/MessageFilter/index.js +53 -0
- package/dist/hooks/MessageScrollObserver/index.cjs +36 -0
- package/dist/hooks/MessageScrollObserver/index.d.cts +5 -0
- package/dist/hooks/MessageScrollObserver/index.d.ts +5 -0
- package/dist/hooks/MessageScrollObserver/index.js +34 -0
- package/dist/hooks/NewOrgConfig/index.cjs +19 -0
- package/dist/hooks/NewOrgConfig/index.d.cts +22 -0
- package/dist/hooks/NewOrgConfig/index.d.ts +22 -0
- package/dist/hooks/NewOrgConfig/index.js +19 -0
- package/dist/hooks/Search/index.cjs +324 -0
- package/dist/hooks/Search/index.d.cts +66 -0
- package/dist/hooks/Search/index.d.ts +66 -0
- package/dist/hooks/Search/index.js +321 -0
- package/dist/hooks/SearchOperations/index.cjs +101 -0
- package/dist/hooks/SearchOperations/index.d.cts +22 -0
- package/dist/hooks/SearchOperations/index.d.ts +22 -0
- package/dist/hooks/SearchOperations/index.js +98 -0
- package/dist/hooks/SessionStorageOperations/index.cjs +30 -0
- package/dist/hooks/SessionStorageOperations/index.d.cts +8 -0
- package/dist/hooks/SessionStorageOperations/index.d.ts +8 -0
- package/dist/hooks/SessionStorageOperations/index.js +28 -0
- package/dist/hooks/ShopifyUrlOperations/index.cjs +53 -0
- package/dist/hooks/ShopifyUrlOperations/index.d.cts +23 -0
- package/dist/hooks/ShopifyUrlOperations/index.d.ts +23 -0
- package/dist/hooks/ShopifyUrlOperations/index.js +49 -0
- package/dist/hooks/SnapCalculator/index.cjs +29 -0
- package/dist/hooks/SnapCalculator/index.d.cts +12 -0
- package/dist/hooks/SnapCalculator/index.d.ts +12 -0
- package/dist/hooks/SnapCalculator/index.js +27 -0
- package/dist/hooks/SystemSettingsContext/index.cjs +7 -0
- package/dist/hooks/SystemSettingsContext/index.d.cts +22 -0
- package/dist/hooks/SystemSettingsContext/index.d.ts +22 -0
- package/dist/hooks/SystemSettingsContext/index.js +7 -0
- package/dist/hooks/TrackComponentVisibleEvent/index.cjs +21 -0
- package/dist/hooks/TrackComponentVisibleEvent/index.d.cts +18 -0
- package/dist/hooks/TrackComponentVisibleEvent/index.d.ts +18 -0
- package/dist/hooks/TrackComponentVisibleEvent/index.js +21 -0
- package/dist/hooks/UpdateAnalyticsProps/index.cjs +61 -0
- package/dist/hooks/UpdateAnalyticsProps/index.d.cts +9 -0
- package/dist/hooks/UpdateAnalyticsProps/index.d.ts +9 -0
- package/dist/hooks/UpdateAnalyticsProps/index.js +58 -0
- package/dist/index-BCLaqnc2.d.cts +689 -0
- package/dist/{index-ylUiJvnr.d.ts → index-BS7-_CW4.d.ts} +1 -1
- package/dist/index-Bmub8e38.d.cts +1 -1
- package/dist/index-Bs0QtkSu.d.ts +689 -0
- package/dist/index-CESxqFso.d.cts +1 -1
- package/dist/index-CKeS9dud.d.ts +28 -0
- package/dist/index-CiWEYzXl.d.cts +1 -1
- package/dist/index-CyXULMyI.d.cts +186 -0
- package/dist/index-Cz10TYQA.d.cts +28 -0
- package/dist/{index-B0NW9KTj.d.cts → index-D46Rd0io.d.cts} +1 -1
- package/dist/{index-C6KdON7d.d.ts → index-D8ThXrqI.d.ts} +1 -1
- package/dist/{index-PGF8BvxQ.d.ts → index-D9VegTU-.d.ts} +1 -1
- package/dist/{index-DOii3C6b.d.ts → index-DBqgBV9N.d.ts} +1 -1
- package/dist/{index-Cqg6ltII.d.ts → index-DNUKSg6R.d.ts} +1 -1
- package/dist/{index-BDPWBU3h.d.cts → index-DO0s5KNA.d.cts} +1 -1
- package/dist/{index-CcIG01PJ.d.ts → index-DuyZQOE1.d.ts} +2 -2
- package/dist/{index-Byb45OPg.d.cts → index-REhT-Pls.d.cts} +1 -1
- package/dist/index-fKJB9EFb.d.ts +186 -0
- package/dist/interceptors/index.cjs +2 -1
- package/dist/interceptors/index.d.cts +9 -10
- package/dist/interceptors/index.d.ts +12 -13
- package/dist/interceptors/index.js +2 -1
- package/dist/interceptors/types.cjs +1 -0
- package/dist/interceptors/types.d.cts +12 -0
- package/dist/interceptors/types.d.ts +12 -0
- package/dist/interceptors/types.js +3 -0
- package/dist/localStorageContext-6OrGDFid.js +95 -0
- package/dist/localStorageContext-Bld0OWmG.cjs +115 -0
- package/dist/logger-CSL2jqI9.cjs +26 -0
- package/dist/logger-D5MFf3nW.js +20 -0
- package/dist/{models-BkXg5eIP.cjs → models-Dn8Emdzc.js} +219 -458
- package/dist/models-ZpQcRZQK.cjs +1536 -0
- package/dist/newOrgConfigAtom--tewb_G0.js +8 -0
- package/dist/newOrgConfigAtom-DkSi45_Q.cjs +15 -0
- package/dist/newOrgConfigContext-B3aeblfE.cjs +68 -0
- package/dist/newOrgConfigContext-B5mzHKTG.js +53 -0
- package/dist/{nodeSelector-BxrS2S_k.d.ts → nodeSelector-DybpVr-i.d.ts} +1 -1
- package/dist/{nodeSelector-Dm4S-10n.d.cts → nodeSelector-XsUa5vNH.d.cts} +1 -1
- package/dist/org-B2uRkPt3.js +12 -0
- package/dist/org-ClUxpHPZ.cjs +43 -0
- package/dist/{orgAnalyticsConfig-BJ2A1RZ-.cjs → orgAnalyticsConfig-CuWXijsr.cjs} +1 -1
- package/dist/{orgAnalyticsConfig-ClrFy2qH.js → orgAnalyticsConfig-DOceTdNp.js} +1 -1
- package/dist/search-BIomqYy6.d.ts +20 -0
- package/dist/search-B_Hg-Es2.d.cts +20 -0
- package/dist/search-Bn4x-3TG.js +126 -0
- package/dist/search-DsQm_pAi.cjs +205 -0
- package/dist/{search-filter-types-fZf91Pdw.d.ts → search-filter-types-B5xcaEit.d.ts} +1 -1
- package/dist/{search-filter-types-DosbseF3.d.cts → search-filter-types-Byd0lEUa.d.cts} +1 -1
- package/dist/searchContext-Cn-pCoDy.cjs +145 -0
- package/dist/searchContext-fQDGSvUF.js +129 -0
- package/dist/searchServiceAdapter-BSPZOg1r.js +16 -0
- package/dist/searchServiceAdapter-DrjFCiw8.cjs +34 -0
- package/dist/sessionStorageContext-C5MUl2zf.js +52 -0
- package/dist/sessionStorageContext-CXE7iHtP.cjs +66 -0
- package/dist/shopifyUrlContext-7ppKx1jJ.cjs +75 -0
- package/dist/shopifyUrlContext-BSYWsoX9.js +61 -0
- package/dist/spiffyWidgets-CdxRcXhW.d.ts +20 -0
- package/dist/spiffyWidgets-DxGuuuCG.d.cts +20 -0
- package/dist/systemSettingsContext-BdAe_3Ll.cjs +60 -0
- package/dist/systemSettingsContext-Cjyo2o3N.js +39 -0
- package/dist/{test-types-CgVJtwUr.d.cts → test-types-DQB1JqOf.d.cts} +1 -1
- package/dist/{test-types-C9b_OdfO.d.ts → test-types-ZuRAYwox.d.ts} +1 -1
- package/dist/types/index.cjs +33 -5
- package/dist/types/index.d.cts +2 -2
- package/dist/types/index.d.ts +2 -2
- package/dist/types/index.js +30 -3
- package/dist/types-BCz-hOvv.d.ts +51 -0
- package/dist/types-BwNrLPSZ.cjs +106 -0
- package/dist/types-D3uOF0Oy.js +76 -0
- package/dist/types-DIk0FLwd.js +30 -0
- package/dist/types-DNLkuGWZ.cjs +48 -0
- package/dist/types-DzwBmZHy.d.cts +10 -0
- package/dist/types-Eip78dWv.d.cts +51 -0
- package/dist/types-YvACLe2e.d.ts +10 -0
- package/dist/types.d.cts +15 -0
- package/dist/types.d.ts +15 -0
- package/dist/unsupportedProductExceptions--t7AQFou.js +20 -0
- package/dist/unsupportedProductExceptions-Dak4AD-t.cjs +32 -0
- package/dist/urlsParser-BV5yF8sa.cjs +78 -0
- package/dist/urlsParser-DUgV_Qy9.js +42 -0
- package/dist/useAmplitudeOperations-C6Osqkso.js +34 -0
- package/dist/useAmplitudeOperations-Cco_B3A5.cjs +41 -0
- package/dist/useAppDetails-CGqtN6sJ.cjs +38 -0
- package/dist/useAppDetails-DwX2Rhed.js +30 -0
- package/dist/useDebounce-BJqnCBcl.cjs +26 -0
- package/dist/useDebounce-Ce31ph7m.js +19 -0
- package/dist/useGraphQLConfig-ByOZb3oZ.js +63 -0
- package/dist/useGraphQLConfig-DItL4BgM.cjs +76 -0
- package/dist/useIntersection-Czeo04jt.js +21 -0
- package/dist/useIntersection-DnZNLcnu.cjs +28 -0
- package/dist/{useMessageInterceptor-B87e3yu3.cjs → useMessageInterceptor-C9p9No1n.cjs} +3 -3
- package/dist/{useMessageInterceptor-Bb7YRaWk.js → useMessageInterceptor-tntd2rvB.js} +2 -2
- package/dist/userIdentityContext-C1HzZFb2.cjs +125 -0
- package/dist/userIdentityContext-CDfosvOO.js +109 -0
- package/dist/userIdentityContext-DBXoLrFu.d.cts +20 -0
- package/dist/userIdentityContext-W1OWF3cG.d.ts +20 -0
- package/dist/utilityTypes-CWJZb9BZ.js +1 -0
- package/dist/utilityTypes-YGiMSyV7.cjs +0 -0
- package/dist/utils-BA5HXmkL.cjs +74 -0
- package/dist/utils-BTDw2aMx.cjs +715 -0
- package/dist/utils-C7S9YiFp.js +54 -0
- package/dist/utils-CF13DfA1.js +606 -0
- package/dist/variantInfo-58JLeDJb.js +1 -0
- package/dist/variantInfo-DRFLcGc7.cjs +0 -0
- package/package.json +179 -7
- package/src/application/models/index.ts +0 -1
- package/src/application/utils/analyticsUtils.ts +1 -1
- package/src/atoms/amplitude/amplitudeTrackEventAtom.ts +1 -1
- package/src/atoms/app/index.ts +1 -1
- package/src/atoms/chat/chatState.ts +1 -1
- package/src/atoms/chat/replies.ts +1 -1
- package/src/atoms/org/graphqlConfig.ts +1 -39
- package/src/atoms/org/index.ts +0 -1
- package/src/atoms/org/newOrgConfigAtom.ts +2 -6
- package/src/contexts/{amplitudeContext.tsx → amplitudeContext/amplitudeContext.tsx} +1 -2
- package/src/contexts/amplitudeContext/index.ts +1 -0
- package/src/contexts/{cdnContext.tsx → cdnContext/cdnContext.tsx} +1 -1
- package/src/contexts/cdnContext/index.ts +1 -0
- package/src/contexts/{chatContext.tsx → chatContext/chatContext.tsx} +3 -3
- package/src/contexts/chatContext/index.ts +1 -0
- package/src/contexts/{enviveConfigContext.tsx → enviveConfigContext/enviveConfigContext.tsx} +1 -1
- package/src/contexts/enviveConfigContext/index.ts +1 -0
- package/src/contexts/{enviveCssContext.tsx → enviveCssContext/enviveCssContext.tsx} +1 -1
- package/src/contexts/enviveCssContext/index.ts +1 -0
- package/src/contexts/{featureFlagContext.tsx → featureFlagContext/featureFlagContext.tsx} +1 -1
- package/src/contexts/featureFlagContext/index.ts +1 -0
- package/src/contexts/featureFlagServiceContext/index.ts +1 -0
- package/src/contexts/graphqlContext/index.ts +1 -0
- package/src/contexts/localStorageContext/index.ts +1 -0
- package/src/contexts/{localStorageContext.tsx → localStorageContext/localStorageContext.tsx} +2 -2
- package/src/contexts/newOrgConfigContext/index.ts +1 -0
- package/src/contexts/newOrgConfigContext/newOrgConfigContext.tsx +70 -0
- package/src/contexts/searchContext/index.ts +1 -0
- package/src/contexts/{searchContext.tsx → searchContext/searchContext.tsx} +5 -5
- package/src/contexts/sessionStorageContext/index.ts +1 -0
- package/src/contexts/{sessionStorageContext.tsx → sessionStorageContext/sessionStorageContext.tsx} +1 -1
- package/src/contexts/shopifyUrlContext/index.ts +1 -0
- package/src/contexts/systemSettingsContext/index.ts +1 -0
- package/src/contexts/userIdentityContext/index.ts +1 -0
- package/src/events/registerAnalyticsListeners.ts +2 -2
- package/src/favicon.ico +0 -0
- package/src/hooks/AmplitudeOperations/index.ts +1 -0
- package/src/hooks/{useAmplitudeOperations.ts → AmplitudeOperations/useAmplitudeOperations.ts} +1 -1
- package/src/hooks/AppDetails/index.ts +1 -0
- package/src/hooks/{useAppDetails.ts → AppDetails/useAppDetails.ts} +1 -3
- package/src/hooks/BlockBackButton/index.ts +1 -0
- package/src/hooks/CdnOperations/index.ts +1 -0
- package/src/hooks/{useCdnOperations.ts → CdnOperations/useCdnOperations.ts} +1 -1
- package/src/hooks/ChatToggle/index.ts +1 -0
- package/src/hooks/{useChatToggle.ts → ChatToggle/useChatToggle.ts} +1 -1
- package/src/hooks/ChatToggleAnalytics/index.ts +1 -0
- package/src/hooks/{useChatToggleAnalytics.ts → ChatToggleAnalytics/useChatToggleAnalytics.ts} +1 -1
- package/src/hooks/CustomerSupportHandoff/index.ts +1 -0
- package/src/hooks/Debounce/index.ts +1 -0
- package/src/hooks/ElementObserver/index.ts +1 -0
- package/src/hooks/GrabAndScroll/index.ts +1 -0
- package/src/hooks/GraphQLConfig/index.ts +1 -0
- package/src/hooks/{useGraphQLConfig.ts → GraphQLConfig/useGraphQLConfig.ts} +1 -1
- package/src/hooks/IdentifyUser/index.ts +1 -0
- package/src/hooks/{useIdentifyUser.ts → IdentifyUser/useIdentifyUser.ts} +1 -1
- package/src/hooks/ImageResolver/index.ts +1 -0
- package/src/hooks/Intersection/index.ts +1 -0
- package/src/hooks/IsSmallScreen/index.ts +1 -0
- package/src/hooks/LocalStorageOperations/index.ts +1 -0
- package/src/hooks/{useLocalStorageOperations.ts → LocalStorageOperations/useLocalStorageOperations.ts} +2 -2
- package/src/hooks/MessageFilter/index.ts +1 -0
- package/src/hooks/MessageScrollObserver/index.ts +1 -0
- package/src/hooks/NewOrgConfig/index.ts +1 -0
- package/src/hooks/{useNewOrgConfig.ts → NewOrgConfig/useNewOrgConfig.ts} +1 -1
- package/src/hooks/Search/index.ts +1 -0
- package/src/hooks/{useSearch.tsx → Search/useSearch.tsx} +5 -4
- package/src/hooks/SearchOperations/index.ts +1 -0
- package/src/hooks/SessionStorageOperations/index.ts +1 -0
- package/src/hooks/{useSessionStorageOperations.ts → SessionStorageOperations/useSessionStorageOperations.ts} +1 -1
- package/src/hooks/ShopifyUrlOperations/index.ts +1 -0
- package/src/hooks/{useShopifyUrlOperations.ts → ShopifyUrlOperations/useShopifyUrlOperations.ts} +1 -1
- package/src/hooks/SnapCalculator/index.ts +1 -0
- package/src/hooks/SystemSettingsContext/index.ts +1 -0
- package/src/hooks/SystemSettingsContext/useSystemSettingsContext.ts +14 -0
- package/src/hooks/TrackComponentVisibleEvent/index.ts +1 -0
- package/src/hooks/{useTrackComponentVisibleEvent.ts → TrackComponentVisibleEvent/useTrackComponentVisibleEvent.ts} +2 -2
- package/src/hooks/UpdateAnalyticsProps/index.ts +1 -0
- package/src/hooks/{useUpdateAnalyticsProps.ts → UpdateAnalyticsProps/useUpdateAnalyticsProps.ts} +1 -1
- package/dist/amplitudeContext-CHzas7Cf.d.cts +0 -52
- package/dist/amplitudeContext-D-7fmVh1.cjs +0 -356
- package/dist/amplitudeContext-hY3caPC6.js +0 -322
- package/dist/amplitudeContext-tJ4y-SzX.d.ts +0 -52
- package/dist/api-DjeZXxl_.js +0 -207
- package/dist/api-_JaUnIUj.cjs +0 -292
- package/dist/bandolier-DYEz4-8C.js +0 -1229
- package/dist/bandolier-o_-xrbOV.cjs +0 -1229
- package/dist/carpe-CsG5jCcl.cjs +0 -607
- package/dist/carpe-DONk00bZ.js +0 -605
- package/dist/cdnUtils-32v8bDX9.cjs +0 -16
- package/dist/cdnUtils-E4tLBt2g.js +0 -11
- package/dist/chat-CO7cRkaq.cjs +0 -506
- package/dist/chat-hcRc4RRd.js +0 -285
- package/dist/contexts/index.cjs +0 -57
- package/dist/contexts/index.d.cts +0 -10
- package/dist/contexts/index.d.ts +0 -10
- package/dist/contexts/index.js +0 -23
- package/dist/contexts-B4ihTBsV.cjs +0 -2980
- package/dist/contexts-DGlr7M1o.js +0 -2596
- package/dist/coterie-CKB93qfz.cjs +0 -239
- package/dist/coterie-DHcj2fRE.js +0 -239
- package/dist/custservice-types-Dy0kc9TW.cjs +0 -35
- package/dist/custservice-types-mnIunabv.js +0 -23
- package/dist/default-BnB4p0Se.cjs +0 -234
- package/dist/default-D6f5Dyt7.js +0 -199
- package/dist/default-ZKkE5zT4.cjs +0 -4
- package/dist/default-legGZJwI.js +0 -4
- package/dist/divIds-2dJlU3z8.cjs +0 -117
- package/dist/divIds-BUrN2vY-.js +0 -21
- package/dist/dreamlandBaby-BiRYYFav.js +0 -346
- package/dist/dreamlandBaby-zuvmfzfD.cjs +0 -346
- package/dist/embedded-BJLWIriJ.js +0 -23
- package/dist/embedded-Dl79TJLC.cjs +0 -131
- package/dist/entrypoints-Bs3pn6EV.js +0 -7
- package/dist/entrypoints-Dqi5pzWH.cjs +0 -19
- package/dist/enviveConfig-BccuzS2a.cjs +0 -240
- package/dist/enviveConfig-CzhTz8Aa.js +0 -152
- package/dist/fiveCbd-DwTTwC2j.cjs +0 -613
- package/dist/fiveCbd-Dz2NouOF.js +0 -613
- package/dist/forLoveAndLemons-DqSdyD6S.js +0 -665
- package/dist/forLoveAndLemons-Ud6mPrV3.cjs +0 -667
- package/dist/graphql-BNW60InJ.cjs +0 -128
- package/dist/graphql-CjB8wHzm.js +0 -74
- package/dist/graphqlConfig-CYt6tWII.js +0 -30
- package/dist/graphqlConfig-DicykC-o.cjs +0 -61
- package/dist/greenpan-B_EbPkSP.js +0 -397
- package/dist/greenpan-kPE4fJgd.cjs +0 -397
- package/dist/grooveLife-Ckuir319.js +0 -342
- package/dist/grooveLife-DKSEQp1F.cjs +0 -342
- package/dist/homegrownCannabis-BVPa2pqe.js +0 -410
- package/dist/homegrownCannabis-BwIAkxuA.cjs +0 -410
- package/dist/hooks/index.cjs +0 -63
- package/dist/hooks/index.d.cts +0 -314
- package/dist/hooks/index.d.ts +0 -314
- package/dist/hooks/index.js +0 -23
- package/dist/index-BMPtlgac.d.ts +0 -191
- package/dist/index-C7pGDl1A.d.ts +0 -1609
- package/dist/index-C9lgsCWp.d.cts +0 -203
- package/dist/index-Cc-wBCn6.d.ts +0 -203
- package/dist/index-DTu2X-YS.d.cts +0 -1609
- package/dist/index-OEifcBsm.d.cts +0 -191
- package/dist/jackArcher-B39OEIj6.cjs +0 -727
- package/dist/jackArcher-BwkWGybC.js +0 -727
- package/dist/jordanCraig-CxRH_jLi.js +0 -1786
- package/dist/jordanCraig-RwmWw-jM.cjs +0 -1786
- package/dist/kindredBravely-D78VwL20.cjs +0 -490
- package/dist/kindredBravely-DQDpAzdl.js +0 -490
- package/dist/kutFromTheKloth-TcXQkIti.js +0 -369
- package/dist/kutFromTheKloth-dXRrNti0.cjs +0 -369
- package/dist/larryAndSerges-Bh5XEXsZ.js +0 -262
- package/dist/larryAndSerges-COdBzOzu.cjs +0 -262
- package/dist/leapsAndRebounds-BbXnqkl5.cjs +0 -360
- package/dist/leapsAndRebounds-mjCaH1k-.js +0 -360
- package/dist/longevityrx-DdV3v26F.cjs +0 -320
- package/dist/longevityrx-DfPDfvAt.js +0 -320
- package/dist/lookOptic-DgXFGBPP.cjs +0 -282
- package/dist/lookOptic-FgVW1afF.js +0 -282
- package/dist/mantraBrand-C5gVm3rk.cjs +0 -750
- package/dist/mantraBrand-uV8HCDR8.js +0 -750
- package/dist/medterra-BtDpr1Hw.cjs +0 -583
- package/dist/medterra-DgzE7-mj.js +0 -583
- package/dist/modells-CJjsxOIR.js +0 -484
- package/dist/modells-Ck5KbRFj.cjs +0 -484
- package/dist/models-UZ6HszfZ.js +0 -1281
- package/dist/org-C2RrBVQR.cjs +0 -81
- package/dist/org-xMytX--e.js +0 -38
- package/dist/pressedFloral-Bteoboms.js +0 -661
- package/dist/pressedFloral-CexgV-xy.cjs +0 -661
- package/dist/search-BMOAmrmY.js +0 -459
- package/dist/search-Df0Ifneg.cjs +0 -672
- package/dist/skinPerfection-BGzq9lq-.cjs +0 -334
- package/dist/skinPerfection-BlvcEcUE.js +0 -334
- package/dist/snapSupplements-CbbGzAgO.cjs +0 -285
- package/dist/snapSupplements-kcsPAOm9.js +0 -285
- package/dist/socialProofClasses-Db8gzsfi.cjs +0 -40
- package/dist/socialProofClasses-kwDvwLOZ.js +0 -10
- package/dist/spanx-B4WFA_rI.js +0 -661
- package/dist/spanx-BWoE4F8b.cjs +0 -663
- package/dist/spanxStaging-BOrOjhXn.js +0 -845
- package/dist/spanxStaging-BfdfIug4.cjs +0 -848
- package/dist/suggestionBarV2-types-IMMOmCir.js +0 -10
- package/dist/suggestionBarV2-types-nnGNgFvR.cjs +0 -16
- package/dist/supergoop-22dd5_BS.js +0 -323
- package/dist/supergoop-B-a4cku2.cjs +0 -323
- package/dist/types--pr1GQQx.js +0 -154
- package/dist/types-BVSyY3Hk.cjs +0 -196
- package/dist/uniqueVintage-CJXiNNe7.js +0 -1211
- package/dist/uniqueVintage-D0jzJWlo.cjs +0 -1213
- package/dist/userIdentityContext-BPqvVIg0.d.cts +0 -20
- package/dist/userIdentityContext-wbCRmlzp.d.ts +0 -20
- package/dist/utils-C9ZSCx12.js +0 -888
- package/dist/utils-D5HO61hG.cjs +0 -1016
- package/dist/venaCbd-Bhhu_qUf.cjs +0 -365
- package/dist/venaCbd-CanovPS_.js +0 -365
- package/dist/westonJonBoucher-BC0x1ktI.cjs +0 -422
- package/dist/westonJonBoucher-BUu1_wP1.js +0 -422
- package/dist/wineEnthusiast-BlCryfil.cjs +0 -940
- package/dist/wineEnthusiast-Ck1x5iJq.js +0 -940
- package/dist/wolfMattress-D9Mjq-HP.js +0 -372
- package/dist/wolfMattress-JssghhC-.cjs +0 -372
- package/dist/wolfTactical-C6exYhL7.cjs +0 -349
- package/dist/wolfTactical-CnV3KQdI.js +0 -349
- package/src/application/models/supportedOrgs.ts +0 -161
- package/src/atoms/org/orgPageConfig.ts +0 -42
- package/src/contexts/index.ts +0 -16
- package/src/contexts/newOrgConfigContext.tsx +0 -104
- package/src/contexts/orgConfigContext.tsx +0 -106
- package/src/hooks/index.ts +0 -27
- package/src/hooks/useSystemSettingsContext.ts +0 -12
- package/src/merchants/bandolier/bandolier.ts +0 -1371
- package/src/merchants/carpe/carpe.ts +0 -653
- package/src/merchants/coterie/coterie.ts +0 -277
- package/src/merchants/default.ts +0 -196
- package/src/merchants/dreamlandBaby/dreamlandBaby.ts +0 -381
- package/src/merchants/fiveCbd/fiveCbd.ts +0 -691
- package/src/merchants/forLoveAndLemons/forLoveAndLemons.ts +0 -751
- package/src/merchants/greenpan/greenpan.ts +0 -434
- package/src/merchants/grooveLife/grooveLife.ts +0 -392
- package/src/merchants/homegrownCannabis/homegrownCannabis.ts +0 -474
- package/src/merchants/init-merchant.sh +0 -53
- package/src/merchants/jackArcher/jackArcher.ts +0 -989
- package/src/merchants/jordanCraig/jordanCraig.ts +0 -1927
- package/src/merchants/kindredBravely/kindredBravely.ts +0 -538
- package/src/merchants/kutFromTheKloth/kutFromTheKloth.ts +0 -421
- package/src/merchants/larryAndSerges/larryAndSerges.ts +0 -318
- package/src/merchants/leapsAndRebounds/leapsAndRebounds.ts +0 -424
- package/src/merchants/longevityrx/longevityrx.ts +0 -374
- package/src/merchants/lookOptic/lookOptic.ts +0 -323
- package/src/merchants/mantraBrand/mantraBrand.ts +0 -844
- package/src/merchants/medterra/medterra.ts +0 -673
- package/src/merchants/modells/modells.ts +0 -543
- package/src/merchants/pressedFloral/pressedFloral.ts +0 -728
- package/src/merchants/skinPerfection/skinPerfection.ts +0 -385
- package/src/merchants/snapSupplements/snapSupplements.ts +0 -328
- package/src/merchants/spanx/spanx.ts +0 -810
- package/src/merchants/spanx/spanxStaging.ts +0 -936
- package/src/merchants/supergoop/supergoop.ts +0 -375
- package/src/merchants/uniqueVintage/uniqueVintage.ts +0 -1314
- package/src/merchants/venaCbd/venaCbd.ts +0 -407
- package/src/merchants/westonJonBoucher/westonJonBoucher.ts +0 -473
- package/src/merchants/wineEnthusiast/wineEnthusiast.ts +0 -990
- package/src/merchants/wolfMattress/wolfMattress.ts +0 -411
- package/src/merchants/wolfTactical/wolfTactical.ts +0 -383
- /package/dist/{atomStore-KSoFS3Jj.cjs → AmplitudeOperations-CgIVPUlr.cjs} +0 -0
- /package/dist/{atomStore-CZnUUsrr.js → AmplitudeOperations-YpyaR7Mp.js} +0 -0
- /package/dist/{locators-fBXS_pxP.js → atomStore-C2OI76yN.js} +0 -0
- /package/dist/{locators-0YYZu9n4.cjs → atomStore-DWmT1six.cjs} +0 -0
- /package/dist/{utilityTypes-8sETsYPk.js → types-DQoXDiso.js} +0 -0
- /package/dist/{utilityTypes-COShxVir.cjs → types-o3zWarRp.cjs} +0 -0
- /package/dist/{variantInfo-orXoPBCU.cjs → types.cjs} +0 -0
- /package/dist/{variantInfo-DbVxA1yE.js → types.js} +0 -0
- /package/src/contexts/{featureFlagServiceContext.tsx → featureFlagServiceContext/featureFlagServiceContext.tsx} +0 -0
- /package/src/contexts/{graphqlContext.tsx → graphqlContext/graphqlContext.tsx} +0 -0
- /package/src/contexts/{shopifyUrlContext.tsx → shopifyUrlContext/shopifyUrlContext.tsx} +0 -0
- /package/src/contexts/{systemSettingsContext.tsx → systemSettingsContext/systemSettingsContext.tsx} +0 -0
- /package/src/contexts/{userIdentityContext.tsx → userIdentityContext/userIdentityContext.tsx} +0 -0
- /package/src/hooks/{useBlockBackButton.ts → BlockBackButton/useBlockBackButton.ts} +0 -0
- /package/src/hooks/{useCustomerSupportHandoff.ts → CustomerSupportHandoff/useCustomerSupportHandoff.ts} +0 -0
- /package/src/hooks/{useDebounce.ts → Debounce/useDebounce.ts} +0 -0
- /package/src/hooks/{useElementObserver.ts → ElementObserver/useElementObserver.ts} +0 -0
- /package/src/hooks/{useGrabAndScroll.ts → GrabAndScroll/useGrabAndScroll.ts} +0 -0
- /package/src/hooks/{useImageResolver.ts → ImageResolver/useImageResolver.ts} +0 -0
- /package/src/hooks/{useIntersection.ts → Intersection/useIntersection.ts} +0 -0
- /package/src/hooks/{useIsSmallScreen.ts → IsSmallScreen/useIsSmallScreen.ts} +0 -0
- /package/src/hooks/{useMessageFilter.ts → MessageFilter/useMessageFilter.ts} +0 -0
- /package/src/hooks/{useMessageScrollObserver.ts → MessageScrollObserver/useMessageScrollObserver.ts} +0 -0
- /package/src/hooks/{useSearchOperations.ts → SearchOperations/useSearchOperations.ts} +0 -0
- /package/src/hooks/{useSnapCalculator.ts → SnapCalculator/useSnapCalculator.ts} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { };
|
|
File without changes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@envive-ai/react-hooks",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.7",
|
|
4
4
|
"description": "React hooks for connecting to Envive AI services.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|
|
@@ -104,6 +104,10 @@
|
|
|
104
104
|
"import": "./dist/atoms/search/index.js",
|
|
105
105
|
"require": "./dist/atoms/search/index.cjs"
|
|
106
106
|
},
|
|
107
|
+
"./atoms/search/types": {
|
|
108
|
+
"import": "./dist/atoms/search/types.js",
|
|
109
|
+
"require": "./dist/atoms/search/types.cjs"
|
|
110
|
+
},
|
|
107
111
|
"./config/locators": {
|
|
108
112
|
"import": "./dist/config/locators/index.js",
|
|
109
113
|
"require": "./dist/config/locators/index.cjs"
|
|
@@ -124,22 +128,190 @@
|
|
|
124
128
|
"import": "./dist/config/locators/components/search/index.js",
|
|
125
129
|
"require": "./dist/config/locators/components/search/index.cjs"
|
|
126
130
|
},
|
|
127
|
-
"./contexts": {
|
|
128
|
-
"import": "./dist/contexts/index.js",
|
|
129
|
-
"require": "./dist/contexts/index.cjs"
|
|
131
|
+
"./contexts/amplitudeContext": {
|
|
132
|
+
"import": "./dist/contexts/amplitudeContext/index.js",
|
|
133
|
+
"require": "./dist/contexts/amplitudeContext/index.cjs"
|
|
134
|
+
},
|
|
135
|
+
"./contexts/cdnContext": {
|
|
136
|
+
"import": "./dist/contexts/cdnContext/index.js",
|
|
137
|
+
"require": "./dist/contexts/cdnContext/index.cjs"
|
|
138
|
+
},
|
|
139
|
+
"./contexts/chatContext": {
|
|
140
|
+
"import": "./dist/contexts/chatContext/index.js",
|
|
141
|
+
"require": "./dist/contexts/chatContext/index.cjs"
|
|
142
|
+
},
|
|
143
|
+
"./contexts/enviveConfigContext": {
|
|
144
|
+
"import": "./dist/contexts/enviveConfigContext/index.js",
|
|
145
|
+
"require": "./dist/contexts/enviveConfigContext/index.cjs"
|
|
146
|
+
},
|
|
147
|
+
"./contexts/enviveCssContext": {
|
|
148
|
+
"import": "./dist/contexts/enviveCssContext/index.js",
|
|
149
|
+
"require": "./dist/contexts/enviveCssContext/index.cjs"
|
|
150
|
+
},
|
|
151
|
+
"./contexts/featureFlagContext": {
|
|
152
|
+
"import": "./dist/contexts/featureFlagContext/index.js",
|
|
153
|
+
"require": "./dist/contexts/featureFlagContext/index.cjs"
|
|
154
|
+
},
|
|
155
|
+
"./contexts/featureFlagServiceContext": {
|
|
156
|
+
"import": "./dist/contexts/featureFlagServiceContext/index.js",
|
|
157
|
+
"require": "./dist/contexts/featureFlagServiceContext/index.cjs"
|
|
158
|
+
},
|
|
159
|
+
"./contexts/graphqlContext": {
|
|
160
|
+
"import": "./dist/contexts/graphqlContext/index.js",
|
|
161
|
+
"require": "./dist/contexts/graphqlContext/index.cjs"
|
|
162
|
+
},
|
|
163
|
+
"./contexts/localStorageContext": {
|
|
164
|
+
"import": "./dist/contexts/localStorageContext/index.js",
|
|
165
|
+
"require": "./dist/contexts/localStorageContext/index.cjs"
|
|
166
|
+
},
|
|
167
|
+
"./contexts/newOrgConfigContext": {
|
|
168
|
+
"import": "./dist/contexts/newOrgConfigContext/index.js",
|
|
169
|
+
"require": "./dist/contexts/newOrgConfigContext/index.cjs"
|
|
170
|
+
},
|
|
171
|
+
"./contexts/searchContext": {
|
|
172
|
+
"import": "./dist/contexts/searchContext/index.js",
|
|
173
|
+
"require": "./dist/contexts/searchContext/index.cjs"
|
|
174
|
+
},
|
|
175
|
+
"./contexts/sessionStorageContext": {
|
|
176
|
+
"import": "./dist/contexts/sessionStorageContext/index.js",
|
|
177
|
+
"require": "./dist/contexts/sessionStorageContext/index.cjs"
|
|
178
|
+
},
|
|
179
|
+
"./contexts/shopifyUrlContext": {
|
|
180
|
+
"import": "./dist/contexts/shopifyUrlContext/index.js",
|
|
181
|
+
"require": "./dist/contexts/shopifyUrlContext/index.cjs"
|
|
182
|
+
},
|
|
183
|
+
"./contexts/systemSettingsContext": {
|
|
184
|
+
"import": "./dist/contexts/systemSettingsContext/index.js",
|
|
185
|
+
"require": "./dist/contexts/systemSettingsContext/index.cjs"
|
|
186
|
+
},
|
|
187
|
+
"./contexts/types": {
|
|
188
|
+
"import": "./dist/contexts/types.js",
|
|
189
|
+
"require": "./dist/contexts/types.cjs"
|
|
190
|
+
},
|
|
191
|
+
"./contexts/userIdentityContext": {
|
|
192
|
+
"import": "./dist/contexts/userIdentityContext/index.js",
|
|
193
|
+
"require": "./dist/contexts/userIdentityContext/index.cjs"
|
|
130
194
|
},
|
|
131
195
|
"./events": {
|
|
132
196
|
"import": "./dist/events/index.js",
|
|
133
197
|
"require": "./dist/events/index.cjs"
|
|
134
198
|
},
|
|
135
|
-
"./hooks": {
|
|
136
|
-
"import": "./dist/hooks/index.js",
|
|
137
|
-
"require": "./dist/hooks/index.cjs"
|
|
199
|
+
"./hooks/AmplitudeOperations": {
|
|
200
|
+
"import": "./dist/hooks/AmplitudeOperations/index.js",
|
|
201
|
+
"require": "./dist/hooks/AmplitudeOperations/index.cjs"
|
|
202
|
+
},
|
|
203
|
+
"./hooks/AppDetails": {
|
|
204
|
+
"import": "./dist/hooks/AppDetails/index.js",
|
|
205
|
+
"require": "./dist/hooks/AppDetails/index.cjs"
|
|
206
|
+
},
|
|
207
|
+
"./hooks/BlockBackButton": {
|
|
208
|
+
"import": "./dist/hooks/BlockBackButton/index.js",
|
|
209
|
+
"require": "./dist/hooks/BlockBackButton/index.cjs"
|
|
210
|
+
},
|
|
211
|
+
"./hooks/CdnOperations": {
|
|
212
|
+
"import": "./dist/hooks/CdnOperations/index.js",
|
|
213
|
+
"require": "./dist/hooks/CdnOperations/index.cjs"
|
|
214
|
+
},
|
|
215
|
+
"./hooks/ChatToggle": {
|
|
216
|
+
"import": "./dist/hooks/ChatToggle/index.js",
|
|
217
|
+
"require": "./dist/hooks/ChatToggle/index.cjs"
|
|
218
|
+
},
|
|
219
|
+
"./hooks/ChatToggleAnalytics": {
|
|
220
|
+
"import": "./dist/hooks/ChatToggleAnalytics/index.js",
|
|
221
|
+
"require": "./dist/hooks/ChatToggleAnalytics/index.cjs"
|
|
222
|
+
},
|
|
223
|
+
"./hooks/CustomerSupportHandoff": {
|
|
224
|
+
"import": "./dist/hooks/CustomerSupportHandoff/index.js",
|
|
225
|
+
"require": "./dist/hooks/CustomerSupportHandoff/index.cjs"
|
|
226
|
+
},
|
|
227
|
+
"./hooks/Debounce": {
|
|
228
|
+
"import": "./dist/hooks/Debounce/index.js",
|
|
229
|
+
"require": "./dist/hooks/Debounce/index.cjs"
|
|
230
|
+
},
|
|
231
|
+
"./hooks/ElementObserver": {
|
|
232
|
+
"import": "./dist/hooks/ElementObserver/index.js",
|
|
233
|
+
"require": "./dist/hooks/ElementObserver/index.cjs"
|
|
234
|
+
},
|
|
235
|
+
"./hooks/GrabAndScroll": {
|
|
236
|
+
"import": "./dist/hooks/GrabAndScroll/index.js",
|
|
237
|
+
"require": "./dist/hooks/GrabAndScroll/index.cjs"
|
|
238
|
+
},
|
|
239
|
+
"./hooks/GraphQLConfig": {
|
|
240
|
+
"import": "./dist/hooks/GraphQLConfig/index.js",
|
|
241
|
+
"require": "./dist/hooks/GraphQLConfig/index.cjs"
|
|
242
|
+
},
|
|
243
|
+
"./hooks/IdentifyUser": {
|
|
244
|
+
"import": "./dist/hooks/IdentifyUser/index.js",
|
|
245
|
+
"require": "./dist/hooks/IdentifyUser/index.cjs"
|
|
246
|
+
},
|
|
247
|
+
"./hooks/ImageResolver": {
|
|
248
|
+
"import": "./dist/hooks/ImageResolver/index.js",
|
|
249
|
+
"require": "./dist/hooks/ImageResolver/index.cjs"
|
|
250
|
+
},
|
|
251
|
+
"./hooks/Intersection": {
|
|
252
|
+
"import": "./dist/hooks/Intersection/index.js",
|
|
253
|
+
"require": "./dist/hooks/Intersection/index.cjs"
|
|
254
|
+
},
|
|
255
|
+
"./hooks/IsSmallScreen": {
|
|
256
|
+
"import": "./dist/hooks/IsSmallScreen/index.js",
|
|
257
|
+
"require": "./dist/hooks/IsSmallScreen/index.cjs"
|
|
258
|
+
},
|
|
259
|
+
"./hooks/LocalStorageOperations": {
|
|
260
|
+
"import": "./dist/hooks/LocalStorageOperations/index.js",
|
|
261
|
+
"require": "./dist/hooks/LocalStorageOperations/index.cjs"
|
|
262
|
+
},
|
|
263
|
+
"./hooks/MessageFilter": {
|
|
264
|
+
"import": "./dist/hooks/MessageFilter/index.js",
|
|
265
|
+
"require": "./dist/hooks/MessageFilter/index.cjs"
|
|
266
|
+
},
|
|
267
|
+
"./hooks/MessageScrollObserver": {
|
|
268
|
+
"import": "./dist/hooks/MessageScrollObserver/index.js",
|
|
269
|
+
"require": "./dist/hooks/MessageScrollObserver/index.cjs"
|
|
270
|
+
},
|
|
271
|
+
"./hooks/NewOrgConfig": {
|
|
272
|
+
"import": "./dist/hooks/NewOrgConfig/index.js",
|
|
273
|
+
"require": "./dist/hooks/NewOrgConfig/index.cjs"
|
|
274
|
+
},
|
|
275
|
+
"./hooks/Search": {
|
|
276
|
+
"import": "./dist/hooks/Search/index.js",
|
|
277
|
+
"require": "./dist/hooks/Search/index.cjs"
|
|
278
|
+
},
|
|
279
|
+
"./hooks/SearchOperations": {
|
|
280
|
+
"import": "./dist/hooks/SearchOperations/index.js",
|
|
281
|
+
"require": "./dist/hooks/SearchOperations/index.cjs"
|
|
282
|
+
},
|
|
283
|
+
"./hooks/SessionStorageOperations": {
|
|
284
|
+
"import": "./dist/hooks/SessionStorageOperations/index.js",
|
|
285
|
+
"require": "./dist/hooks/SessionStorageOperations/index.cjs"
|
|
286
|
+
},
|
|
287
|
+
"./hooks/ShopifyUrlOperations": {
|
|
288
|
+
"import": "./dist/hooks/ShopifyUrlOperations/index.js",
|
|
289
|
+
"require": "./dist/hooks/ShopifyUrlOperations/index.cjs"
|
|
290
|
+
},
|
|
291
|
+
"./hooks/SnapCalculator": {
|
|
292
|
+
"import": "./dist/hooks/SnapCalculator/index.js",
|
|
293
|
+
"require": "./dist/hooks/SnapCalculator/index.cjs"
|
|
294
|
+
},
|
|
295
|
+
"./hooks/SystemSettingsContext": {
|
|
296
|
+
"import": "./dist/hooks/SystemSettingsContext/index.js",
|
|
297
|
+
"require": "./dist/hooks/SystemSettingsContext/index.cjs"
|
|
298
|
+
},
|
|
299
|
+
"./hooks/TrackComponentVisibleEvent": {
|
|
300
|
+
"import": "./dist/hooks/TrackComponentVisibleEvent/index.js",
|
|
301
|
+
"require": "./dist/hooks/TrackComponentVisibleEvent/index.cjs"
|
|
302
|
+
},
|
|
303
|
+
"./hooks/UpdateAnalyticsProps": {
|
|
304
|
+
"import": "./dist/hooks/UpdateAnalyticsProps/index.js",
|
|
305
|
+
"require": "./dist/hooks/UpdateAnalyticsProps/index.cjs"
|
|
138
306
|
},
|
|
139
307
|
"./interceptors": {
|
|
140
308
|
"import": "./dist/interceptors/index.js",
|
|
141
309
|
"require": "./dist/interceptors/index.cjs"
|
|
142
310
|
},
|
|
311
|
+
"./interceptors/types": {
|
|
312
|
+
"import": "./dist/interceptors/types.js",
|
|
313
|
+
"require": "./dist/interceptors/types.cjs"
|
|
314
|
+
},
|
|
143
315
|
"./types": {
|
|
144
316
|
"import": "./dist/types/index.js",
|
|
145
317
|
"require": "./dist/types/index.cjs"
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
isBaseEcommerceEvent,
|
|
6
6
|
BaseEcommerceEvent,
|
|
7
7
|
} from "src/application/models";
|
|
8
|
-
import { SpiffyMetricsEventName } from "src/contexts/amplitudeContext";
|
|
8
|
+
import { SpiffyMetricsEventName } from "src/contexts/amplitudeContext/amplitudeContext";
|
|
9
9
|
|
|
10
10
|
declare global {
|
|
11
11
|
interface Window {
|
package/src/atoms/app/index.ts
CHANGED
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
import { atom } from "jotai";
|
|
6
6
|
import { atomWithStorage } from "jotai/utils";
|
|
7
7
|
import { VariantInfo } from "src/application/models";
|
|
8
|
-
import { UserIdentityContextType } from "src/contexts/userIdentityContext";
|
|
8
|
+
import { UserIdentityContextType } from "src/contexts/userIdentityContext/userIdentityContext";
|
|
9
9
|
import { variantInfoAtom } from "src/atoms/app/variant";
|
|
10
10
|
import { v4 as uuid } from "uuid";
|
|
11
11
|
import { contextSourceAtom } from "../envive/enviveConfig";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { UserEventCategory } from "@spiffy-ai/commerce-api-client/dist/models/UserEventCategory";
|
|
2
2
|
import { atom } from "jotai";
|
|
3
|
-
import { SpiffyMetricsEventName } from "src/contexts/amplitudeContext";
|
|
3
|
+
import { SpiffyMetricsEventName } from "src/contexts/amplitudeContext/amplitudeContext";
|
|
4
4
|
import {
|
|
5
5
|
FormSubmittedAttributes,
|
|
6
6
|
Message,
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
} from "src/atoms/chat";
|
|
9
9
|
import { UserEventCategory } from "@spiffy-ai/commerce-api-client";
|
|
10
10
|
import { queueUserEventAtom } from "./messageQueue";
|
|
11
|
-
import { SpiffyMetricsEventName } from "src/contexts/amplitudeContext";
|
|
11
|
+
import { SpiffyMetricsEventName } from "src/contexts/amplitudeContext/amplitudeContext";
|
|
12
12
|
import { amplitudeTrackEventAtom } from "src/atoms/amplitude/amplitudeTrackEventAtom";
|
|
13
13
|
|
|
14
14
|
type HandleReplyParams = {
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { atom } from "jotai";
|
|
2
2
|
import { ColorMapping } from "src/application/models/colorsConfig";
|
|
3
3
|
import { FrontendConfig } from "src/application/models/frontendConfig";
|
|
4
|
-
import { getOrgInfo } from "src/application/models/supportedOrgs";
|
|
5
4
|
import { orgShortNameAtom } from "../envive/enviveConfig";
|
|
6
|
-
import { FeatureFlagContextType } from "src/contexts/featureFlagServiceContext"; // Import FeatureFlagContextType from new context
|
|
5
|
+
import { FeatureFlagContextType } from "src/contexts/featureFlagServiceContext/featureFlagServiceContext"; // Import FeatureFlagContextType from new context
|
|
7
6
|
|
|
8
7
|
export const internalGraphQLColorsConfigAtom = atom<ColorMapping | undefined>(
|
|
9
8
|
undefined
|
|
@@ -17,43 +16,6 @@ export const featureFlagServiceAtom = atom<FeatureFlagContextType | undefined>(
|
|
|
17
16
|
undefined
|
|
18
17
|
); // New atom for FeatureFlagService
|
|
19
18
|
|
|
20
|
-
export const colorsConfigAtom = atom(
|
|
21
|
-
async (get) => {
|
|
22
|
-
const colors = get(internalGraphQLColorsConfigAtom);
|
|
23
|
-
const orgShortName = get(orgShortNameAtom);
|
|
24
|
-
if (!orgShortName) {
|
|
25
|
-
return colors;
|
|
26
|
-
}
|
|
27
|
-
const orgInfo = await getOrgInfo(orgShortName);
|
|
28
|
-
const orgUIConfigColors = orgInfo.orgColors();
|
|
29
|
-
|
|
30
|
-
// If we have GraphQL colors, merge them with org colors (GraphQL takes priority)
|
|
31
|
-
if (
|
|
32
|
-
colors &&
|
|
33
|
-
orgUIConfigColors &&
|
|
34
|
-
Object.keys(orgUIConfigColors).length > 0
|
|
35
|
-
) {
|
|
36
|
-
return { ...orgUIConfigColors, ...colors } as ColorMapping;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
// If we have GraphQL colors but no org colors, return GraphQL colors
|
|
40
|
-
if (colors) {
|
|
41
|
-
return colors;
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
// If we have org colors but no GraphQL colors, return org colors
|
|
45
|
-
if (orgUIConfigColors && Object.keys(orgUIConfigColors).length > 0) {
|
|
46
|
-
return orgUIConfigColors as ColorMapping;
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
// Fallback to undefined if neither are available
|
|
50
|
-
return undefined;
|
|
51
|
-
},
|
|
52
|
-
(_, set, value: ColorMapping | undefined) => {
|
|
53
|
-
set(internalGraphQLColorsConfigAtom, value);
|
|
54
|
-
}
|
|
55
|
-
);
|
|
56
|
-
|
|
57
19
|
export const frontendConfigAtom = atom(
|
|
58
20
|
(get) => get(internalGraphQLFrontendConfigAtom),
|
|
59
21
|
(_, set, value: FrontendConfig | undefined) => {
|
package/src/atoms/org/index.ts
CHANGED
|
@@ -1,8 +1,4 @@
|
|
|
1
1
|
import { atom } from "jotai";
|
|
2
|
-
import {
|
|
3
|
-
import { GraphQlConfigValues } from "src/contexts";
|
|
4
|
-
import { NewOrgConfigContextType } from "src/contexts/newOrgConfigContext";
|
|
2
|
+
import { GraphQlConfigValues } from "src/contexts/graphqlContext";
|
|
5
3
|
|
|
6
|
-
export const newOrgConfigAtom = atom<
|
|
7
|
-
(GraphQlConfigValues & BasicOrgInfoType) | null
|
|
8
|
-
>(null);
|
|
4
|
+
export const newOrgConfigAtom = atom<GraphQlConfigValues | null>(null);
|
|
@@ -30,8 +30,7 @@ import type {
|
|
|
30
30
|
Event,
|
|
31
31
|
ServerZoneType,
|
|
32
32
|
} from "@amplitude/analytics-types";
|
|
33
|
-
import { useEnviveConfig } from "src/contexts/enviveConfigContext";
|
|
34
|
-
import { OrgConfigFeatureGate } from "src/application/models/api/orgConfigResults";
|
|
33
|
+
import { useEnviveConfig } from "src/contexts/enviveConfigContext/enviveConfigContext";
|
|
35
34
|
|
|
36
35
|
export enum SpiffyMetricsEventName {
|
|
37
36
|
BundleLoaded = "Bundle Loaded",
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./amplitudeContext";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { createContext, useContext, useCallback, useMemo } from "react";
|
|
2
2
|
import { useAtomValue } from "jotai";
|
|
3
|
-
import { cdnUrlAtom } from "
|
|
3
|
+
import { cdnUrlAtom } from "../../atoms/envive/enviveConfig";
|
|
4
4
|
|
|
5
5
|
interface CdnContextType {
|
|
6
6
|
cdnUrl: string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./cdnContext";
|
|
@@ -19,7 +19,7 @@ import {
|
|
|
19
19
|
NextMessageRequest,
|
|
20
20
|
Response,
|
|
21
21
|
} from "src/application/models";
|
|
22
|
-
import { SpiffyMetricsEventName } from "src/contexts/amplitudeContext";
|
|
22
|
+
import { SpiffyMetricsEventName } from "src/contexts/amplitudeContext/amplitudeContext";
|
|
23
23
|
import { messageFromResponse } from "src/application/utils";
|
|
24
24
|
import { chatIdAtom, userIdAtom, variantInfoAtom } from "src/atoms/app";
|
|
25
25
|
import {
|
|
@@ -40,7 +40,6 @@ import {
|
|
|
40
40
|
handleSearchResultsAtom,
|
|
41
41
|
chatSearchIsLoadingAtom,
|
|
42
42
|
} from "src/atoms/search/chatSearch";
|
|
43
|
-
import { useSystemSettingsContext } from "src/hooks";
|
|
44
43
|
import { createAppLoadedEvent, createVisitUserEvent } from "src/hooks/utils";
|
|
45
44
|
import { useMessageInterceptor } from "src/interceptors/useMessageInterceptor";
|
|
46
45
|
import { supportedEventAtom } from "src/atoms/app/variant";
|
|
@@ -53,7 +52,8 @@ import {
|
|
|
53
52
|
userEventQueueAtom,
|
|
54
53
|
userQueueEventCountAtom,
|
|
55
54
|
} from "src/atoms/chat/messageQueue";
|
|
56
|
-
import { useAmplitudeTracking } from "src/hooks/useAmplitudeOperations";
|
|
55
|
+
import { useAmplitudeTracking } from "src/hooks/AmplitudeOperations/useAmplitudeOperations";
|
|
56
|
+
import { useSystemSettingsContext } from "src/hooks/SystemSettingsContext";
|
|
57
57
|
|
|
58
58
|
/**
|
|
59
59
|
* Record the chat assistant response in Amplitude
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./chatContext";
|
package/src/contexts/{enviveConfigContext.tsx → enviveConfigContext/enviveConfigContext.tsx}
RENAMED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import React, { createContext, useContext, ReactNode, useEffect } from "react";
|
|
2
2
|
import { useSetAtom, useAtomValue } from "jotai";
|
|
3
|
-
import type { EnviveConfig } from "./types";
|
|
4
3
|
import { enviveConfigAtom } from "src/atoms/envive/enviveConfig";
|
|
5
4
|
import Logger from "src/application/logging/logger";
|
|
6
5
|
import { OrgConfigFeatureGate } from "src/application/models/api/orgConfigResults";
|
|
6
|
+
import { EnviveConfig } from "../types";
|
|
7
7
|
|
|
8
8
|
const EnviveConfigContext = createContext<EnviveConfig | undefined>(undefined);
|
|
9
9
|
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./enviveConfigContext";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./enviveCssContext";
|
|
@@ -4,7 +4,7 @@ import { StatsigFeatureGate } from "@spiffy-ai/commerce-api-client";
|
|
|
4
4
|
import { FeatureGates } from "src/application/models/featureGates";
|
|
5
5
|
import { useSessionStorage } from "src/contexts/sessionStorageContext";
|
|
6
6
|
import { OrgConfigFeatureGate } from "src/application/models/api/orgConfigResults";
|
|
7
|
-
import { useEnviveConfig } from "src/contexts/enviveConfigContext";
|
|
7
|
+
import { useEnviveConfig } from "src/contexts/enviveConfigContext/enviveConfigContext";
|
|
8
8
|
|
|
9
9
|
const FEATURE_FLAGS_STORAGE_KEY = "spiffy-feature-flags";
|
|
10
10
|
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./featureFlagContext";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./featureFlagServiceContext";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./graphqlContext";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./localStorageContext";
|
package/src/contexts/{localStorageContext.tsx → localStorageContext/localStorageContext.tsx}
RENAMED
|
@@ -5,8 +5,8 @@ import React, {
|
|
|
5
5
|
useMemo,
|
|
6
6
|
useEffect,
|
|
7
7
|
} from "react";
|
|
8
|
-
import Logger from "
|
|
9
|
-
import { LocalStorageEventListener } from "
|
|
8
|
+
import Logger from "src/application/logging/logger";
|
|
9
|
+
import { LocalStorageEventListener } from "src/application/models/localStorageEventListener";
|
|
10
10
|
|
|
11
11
|
export enum LocalStorageKeys {
|
|
12
12
|
ChatId = "v1-spiffy-chat-session-id",
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./newOrgConfigContext";
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import React, { createContext, useContext, ReactNode, useMemo } from "react";
|
|
2
|
+
import { useAtomValue, useSetAtom } from "jotai";
|
|
3
|
+
import { useColorsAndFrontendConfig } from "src/hooks/GraphQLConfig/useGraphQLConfig";
|
|
4
|
+
import { orgShortNameAtom } from "src/atoms/envive/enviveConfig";
|
|
5
|
+
import { newOrgConfigAtom } from "src/atoms/org/newOrgConfigAtom"; // Import newOrgConfigAtom
|
|
6
|
+
import { OrgConfigFeatureGate } from "src/application/models/api/orgConfigResults"; // Import OrgConfigFeatureGate
|
|
7
|
+
import { FeatureFlagServiceProvider } from "src/contexts/featureFlagServiceContext/featureFlagServiceContext"; // Import FeatureFlagServiceProvider
|
|
8
|
+
import {
|
|
9
|
+
ColorsConfigResponse,
|
|
10
|
+
FrontendConfigResponse,
|
|
11
|
+
} from "../graphqlContext";
|
|
12
|
+
|
|
13
|
+
export interface NewOrgConfigContextType {
|
|
14
|
+
combinedConfig?: {
|
|
15
|
+
colorsConfig?: ColorsConfigResponse;
|
|
16
|
+
frontendConfig?: FrontendConfigResponse;
|
|
17
|
+
} | null;
|
|
18
|
+
loading: boolean;
|
|
19
|
+
error: Error | null;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
const NewOrgConfigContext = createContext<NewOrgConfigContextType | undefined>(
|
|
23
|
+
undefined
|
|
24
|
+
);
|
|
25
|
+
|
|
26
|
+
interface NewOrgConfigProviderProps {
|
|
27
|
+
children: ReactNode;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
export const NewOrgConfigProvider: React.FC<NewOrgConfigProviderProps> = ({
|
|
31
|
+
children,
|
|
32
|
+
}) => {
|
|
33
|
+
const orgShortName = useAtomValue(orgShortNameAtom);
|
|
34
|
+
const setNewOrgConfig = useSetAtom(newOrgConfigAtom);
|
|
35
|
+
|
|
36
|
+
const { data: newConfig, loading, error } = useColorsAndFrontendConfig();
|
|
37
|
+
|
|
38
|
+
const contextValue = useMemo(() => {
|
|
39
|
+
if (!orgShortName || loading) {
|
|
40
|
+
return { newConfig, loading: true, error: null };
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
if (error) {
|
|
44
|
+
return { newConfig, loading: false, error };
|
|
45
|
+
}
|
|
46
|
+
setNewOrgConfig(newConfig);
|
|
47
|
+
return { newConfig, loading: false, error: null };
|
|
48
|
+
}, [orgShortName, loading, error]);
|
|
49
|
+
|
|
50
|
+
// TODO: Provide actual featureGates when available in combinedConfig
|
|
51
|
+
const featureGates: OrgConfigFeatureGate[] = [];
|
|
52
|
+
|
|
53
|
+
return (
|
|
54
|
+
<NewOrgConfigContext.Provider value={contextValue}>
|
|
55
|
+
<FeatureFlagServiceProvider featureGates={featureGates}>
|
|
56
|
+
{children}
|
|
57
|
+
</FeatureFlagServiceProvider>
|
|
58
|
+
</NewOrgConfigContext.Provider>
|
|
59
|
+
);
|
|
60
|
+
};
|
|
61
|
+
|
|
62
|
+
export const useNewOrgConfigContext = () => {
|
|
63
|
+
const context = useContext(NewOrgConfigContext);
|
|
64
|
+
if (context === undefined) {
|
|
65
|
+
throw new Error(
|
|
66
|
+
"useNewOrgConfigContext must be used within a NewOrgConfigProvider"
|
|
67
|
+
);
|
|
68
|
+
}
|
|
69
|
+
return context;
|
|
70
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./searchContext";
|
|
@@ -14,15 +14,15 @@ import {
|
|
|
14
14
|
} from "@spiffy-ai/commerce-api-client";
|
|
15
15
|
import { baseUrlAtom } from "src/atoms/envive/enviveConfig";
|
|
16
16
|
import Logger from "src/application/logging/logger";
|
|
17
|
-
import { useAppDetails } from "src/hooks/useAppDetails";
|
|
18
|
-
import { useEnviveConfig } from "src/contexts/enviveConfigContext";
|
|
17
|
+
import { useAppDetails } from "src/hooks/AppDetails/useAppDetails";
|
|
18
|
+
import { useEnviveConfig } from "src/contexts/enviveConfigContext/enviveConfigContext";
|
|
19
19
|
import { SessionRestartRequired } from "src/types/exceptions/sessionExceptions";
|
|
20
20
|
import { UnsupportedProductException } from "src/types/exceptions/unsupportedProductExceptions";
|
|
21
|
-
import {
|
|
21
|
+
import { SearchParams, SearchResult } from "src/application/models/api/search";
|
|
22
22
|
import {
|
|
23
|
-
setSearchServiceFunction,
|
|
24
23
|
clearSearchServiceFunction,
|
|
25
|
-
|
|
24
|
+
setSearchServiceFunction,
|
|
25
|
+
} from "src/atoms/search/searchServiceAdapter";
|
|
26
26
|
|
|
27
27
|
const transformProductResponses = (products: SearchResult["products"]) =>
|
|
28
28
|
products.map((data) => ({
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./sessionStorageContext";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./shopifyUrlContext";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./systemSettingsContext";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./userIdentityContext";
|
|
@@ -4,8 +4,8 @@ import {
|
|
|
4
4
|
performanceMetricsAtom,
|
|
5
5
|
resetPerformanceMetricsAtom,
|
|
6
6
|
} from "src/atoms/chat";
|
|
7
|
-
import { SpiffyMetricsEventName } from "src/contexts/amplitudeContext";
|
|
8
|
-
import { useAmplitudeTracking } from "src/hooks/useAmplitudeOperations";
|
|
7
|
+
import { SpiffyMetricsEventName } from "src/contexts/amplitudeContext/amplitudeContext";
|
|
8
|
+
import { useAmplitudeTracking } from "src/hooks/AmplitudeOperations/useAmplitudeOperations";
|
|
9
9
|
import { useEffect } from "react";
|
|
10
10
|
|
|
11
11
|
export const useRegisterAnalyticsListeners = () => {
|
package/src/favicon.ico
ADDED
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./useAmplitudeOperations";
|
package/src/hooks/{useAmplitudeOperations.ts → AmplitudeOperations/useAmplitudeOperations.ts}
RENAMED
|
@@ -2,7 +2,7 @@ import { useState, useCallback } from "react";
|
|
|
2
2
|
import {
|
|
3
3
|
SpiffyMetricsEventName,
|
|
4
4
|
useAmplitude,
|
|
5
|
-
} from "src/contexts/amplitudeContext";
|
|
5
|
+
} from "src/contexts/amplitudeContext/amplitudeContext";
|
|
6
6
|
|
|
7
7
|
export const useAmplitudeTracking = () => {
|
|
8
8
|
const { trackEvent, isReady } = useAmplitude();
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./useAppDetails";
|