@envive-ai/react-hooks 0.1.0 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/adapters/amplitude/index.cjs +14 -0
- package/dist/adapters/amplitude/index.d.cts +4 -0
- package/dist/adapters/amplitude/index.d.ts +4 -0
- package/dist/adapters/amplitude/index.js +12 -0
- package/dist/api-B2euFL-5.cjs +268 -0
- package/dist/api-CxGedDxj.cjs +5057 -0
- package/dist/api-NJEaveju.js +4113 -0
- package/dist/api-XRr_lAG6.js +189 -0
- package/dist/application/config/index.cjs +34 -0
- package/dist/application/config/index.d.cts +14 -0
- package/dist/application/config/index.d.ts +14 -0
- package/dist/application/config/index.js +32 -0
- package/dist/application/models/graphql/index.cjs +13 -0
- package/dist/application/models/graphql/index.d.cts +2 -0
- package/dist/application/models/graphql/index.d.ts +2 -0
- package/dist/application/models/graphql/index.js +12 -0
- package/dist/application/models/guards/api/index.cjs +15 -0
- package/dist/application/models/guards/api/index.d.cts +3 -0
- package/dist/application/models/guards/api/index.d.ts +3 -0
- package/dist/application/models/guards/api/index.js +4 -0
- package/dist/application/models/index.cjs +72 -0
- package/dist/application/models/index.d.cts +10 -0
- package/dist/application/models/index.d.ts +10 -0
- package/dist/application/models/index.js +12 -0
- package/dist/application/models/utilityTypes/index.cjs +1 -0
- package/dist/application/models/utilityTypes/index.d.cts +2 -0
- package/dist/application/models/utilityTypes/index.d.ts +2 -0
- package/dist/application/models/utilityTypes/index.js +3 -0
- package/dist/application/models/variantInfo/index.cjs +1 -0
- package/dist/application/models/variantInfo/index.d.cts +2 -0
- package/dist/application/models/variantInfo/index.d.ts +2 -0
- package/dist/application/models/variantInfo/index.js +3 -0
- package/dist/application/service/customerService/index.cjs +4 -0
- package/dist/application/service/customerService/index.d.cts +3 -0
- package/dist/application/service/customerService/index.d.ts +3 -0
- package/dist/application/service/customerService/index.js +4 -0
- package/dist/application/service/index.cjs +761 -0
- package/dist/application/service/index.d.cts +407 -0
- package/dist/application/service/index.d.ts +407 -0
- package/dist/application/service/index.js +727 -0
- package/dist/application/utils/index.cjs +38 -0
- package/dist/application/utils/index.d.cts +254 -0
- package/dist/application/utils/index.d.ts +254 -0
- package/dist/application/utils/index.js +12 -0
- package/dist/atomStore-B3tsg6mF.cjs +0 -0
- package/dist/atomStore-BFtpknLM.js +31 -0
- package/dist/atomStore-CeJm9Llb.cjs +57 -0
- package/dist/atomStore-FSZd_20F.js +1 -0
- package/dist/atoms/app/index.cjs +17 -0
- package/dist/atoms/app/index.d.cts +33 -0
- package/dist/atoms/app/index.d.ts +33 -0
- package/dist/atoms/app/index.js +12 -0
- package/dist/atoms/atomStore/index.cjs +7 -0
- package/dist/atoms/atomStore/index.d.cts +23 -0
- package/dist/atoms/atomStore/index.d.ts +23 -0
- package/dist/atoms/atomStore/index.js +4 -0
- package/dist/atoms/chat/index.cjs +41 -0
- package/dist/atoms/chat/index.d.cts +159 -0
- package/dist/atoms/chat/index.d.ts +159 -0
- package/dist/atoms/chat/index.js +12 -0
- package/dist/atoms/globalSearch/index.cjs +6 -0
- package/dist/atoms/globalSearch/index.d.cts +23 -0
- package/dist/atoms/globalSearch/index.d.ts +23 -0
- package/dist/atoms/globalSearch/index.js +3 -0
- package/dist/atoms/org/index.cjs +41 -0
- package/dist/atoms/org/index.d.cts +93 -0
- package/dist/atoms/org/index.d.ts +93 -0
- package/dist/atoms/org/index.js +13 -0
- package/dist/atoms/search/index.cjs +44 -0
- package/dist/atoms/search/index.d.cts +11 -0
- package/dist/atoms/search/index.d.ts +11 -0
- package/dist/atoms/search/index.js +14 -0
- package/dist/{bandolier-Ble8jEa8.js → bandolier-C7PAIw02.js} +16 -7
- package/dist/{bandolier-Bm2xAt_j.cjs → bandolier-oMkFDJMF.cjs} +55 -46
- package/dist/{carpe-Da7b-LCW.cjs → carpe-C0ccKuR9.cjs} +34 -25
- package/dist/{carpe-W13mhRRP.js → carpe-DFc78_lJ.js} +16 -7
- package/dist/chat-CCgyDehy.cjs +151 -0
- package/dist/chat-Dk6KPb1K.js +25 -0
- package/dist/components-CScS7Ii-.cjs +28 -0
- package/dist/components-DAQxVIn9.js +10 -0
- package/dist/config/locators/components/chat/index.cjs +23 -0
- package/dist/config/locators/components/chat/index.d.cts +2 -0
- package/dist/config/locators/components/chat/index.d.ts +2 -0
- package/dist/config/locators/components/chat/index.js +3 -0
- package/dist/config/locators/components/chat/variants/index.cjs +28 -0
- package/dist/config/locators/components/chat/variants/index.d.cts +15 -0
- package/dist/config/locators/components/chat/variants/index.d.ts +15 -0
- package/dist/config/locators/components/chat/variants/index.js +16 -0
- package/dist/config/locators/components/index.cjs +5 -0
- package/dist/config/locators/components/index.d.cts +2 -0
- package/dist/config/locators/components/index.d.ts +2 -0
- package/dist/config/locators/components/index.js +3 -0
- package/dist/config/locators/components/search/index.cjs +12 -0
- package/dist/config/locators/components/search/index.d.cts +7 -0
- package/dist/config/locators/components/search/index.d.ts +7 -0
- package/dist/config/locators/components/search/index.js +8 -0
- package/dist/config/locators/index.cjs +47 -0
- package/dist/config/locators/index.d.cts +24 -0
- package/dist/config/locators/index.d.ts +24 -0
- package/dist/config/locators/index.js +6 -0
- package/dist/contexts/index.cjs +19 -3
- package/dist/contexts/index.d.cts +16 -22
- package/dist/contexts/index.d.ts +19 -26
- package/dist/contexts/index.js +15 -4
- package/dist/contexts-DO75-Kmx.js +7152 -0
- package/dist/contexts-iAzSvZjb.cjs +7331 -0
- package/dist/{coterie-DOWcJAYv.js → coterie-BGT8hqFR.js} +18 -7
- package/dist/{coterie-3y0D9ko4.cjs → coterie-Cp9FAJTQ.cjs} +25 -14
- package/dist/customerService-CUyZzowx.js +22 -0
- package/dist/customerService-DqPw_XKf.cjs +35 -0
- package/dist/custservice-types-D8Npo-5Z.js +22 -0
- package/dist/custservice-types-E9_OSaZ7.cjs +34 -0
- package/dist/{default-D_KPZdPJ.cjs → default-BAXPatxf.cjs} +1 -1
- package/dist/default-BR3225LZ.js +4 -0
- package/dist/default-DR6YjE9B.cjs +4 -0
- package/dist/{default-C2fEZKXk.js → default-wf_IORgo.js} +1 -1
- package/dist/divIds-BWvq-i6I.js +22 -0
- package/dist/{divIds-DnZNd7rA.cjs → divIds-CFyAjjp3.cjs} +6 -99
- package/dist/{dreamlandBaby-DCIsuU9R.cjs → dreamlandBaby-BzuMvUFS.cjs} +27 -18
- package/dist/{dreamlandBaby-DvSaZGrz.js → dreamlandBaby-DZvM81LQ.js} +16 -7
- package/dist/embedded-BlXJUbik.cjs +130 -0
- package/dist/embedded-C1jvFj3v.js +22 -0
- package/dist/events/index.cjs +4 -0
- package/dist/events/index.d.cts +45 -0
- package/dist/events/index.d.ts +45 -0
- package/dist/events/index.js +3 -0
- package/dist/events-ClCDFK7t.js +77 -0
- package/dist/events-Da7gpmGv.cjs +89 -0
- package/dist/featureFlagService-CroFRxvD.d.cts +17 -0
- package/dist/featureFlagService-NkJ2fuEj.d.ts +17 -0
- package/dist/featureGates-BMWXU0dS.d.ts +90 -0
- package/dist/featureGates-N_gyHCTn.d.cts +90 -0
- package/dist/{fiveCbd-CkOlVby_.cjs → fiveCbd-DE-tDY3d.cjs} +31 -22
- package/dist/{fiveCbd-B1SESMCO.js → fiveCbd-HNBPqPtX.js} +16 -7
- package/dist/{forLoveAndLemons-DmwYZIk0.js → forLoveAndLemons-BKmJJ9pq.js} +13 -5
- package/dist/{forLoveAndLemons-CfYPMnKS.cjs → forLoveAndLemons-BeVEBOiu.cjs} +17 -9
- package/dist/frontendConfig-KeNqU1wa.d.cts +790 -0
- package/dist/frontendConfig-cPvCTWm6.d.ts +790 -0
- package/dist/globalSearch-BC0rOX3E.js +13 -0
- package/dist/globalSearch-hxbXekus.cjs +38 -0
- package/dist/{greenpan-BtOi45lf.js → greenpan-BX1viAZB.js} +16 -7
- package/dist/{greenpan-Bsl3ir59.cjs → greenpan-chd3aa5I.cjs} +29 -20
- package/dist/{grooveLife-6_dtYsRk.js → grooveLife-CHot3rZw.js} +17 -8
- package/dist/{grooveLife-Cmm1PSCL.cjs → grooveLife-DEob7rK0.cjs} +28 -19
- package/dist/{homegrownCannabis-CO0uY_mp.cjs → homegrownCannabis-CoIjcehi.cjs} +27 -16
- package/dist/{homegrownCannabis-C-kw-74X.js → homegrownCannabis-CwkS1qDA.js} +17 -6
- package/dist/hooks/index.cjs +26 -3
- package/dist/hooks/index.d.cts +220 -299
- package/dist/hooks/index.d.ts +220 -299
- package/dist/hooks/index.js +15 -4
- package/dist/index-BdNKc2ix.d.cts +8 -0
- package/dist/index-BkhvV8RZ.d.cts +202 -0
- package/dist/index-BrXuc_Ck.d.cts +24 -0
- package/dist/{chatElementDisplayLocation-CX8fuNao.d.cts → index-C4zjAR1c.d.cts} +18 -30
- package/dist/index-CGB6CAmr.d.ts +6 -0
- package/dist/index-CIco0cCQ.d.ts +183 -0
- package/dist/index-COG1kOZG.d.ts +749 -0
- package/dist/index-CVxe7FpL.d.cts +6 -0
- package/dist/index-Cn1SeI5y.d.cts +183 -0
- package/dist/index-Cqg6ltII.d.ts +38 -0
- package/dist/index-CzMrMKx-.d.ts +202 -0
- package/dist/index-DE_7Q8qK.d.ts +94 -0
- package/dist/index-Da0UzyI9.d.ts +24 -0
- package/dist/index-DbWWcYax.d.cts +749 -0
- package/dist/index-DtoVXd6O.d.cts +97 -0
- package/dist/index-JClBRnSX.d.cts +94 -0
- package/dist/index-ghzD_356.d.ts +8 -0
- package/dist/index-hdbCEjYy.d.cts +38 -0
- package/dist/index-luJrHgPN.d.ts +97 -0
- package/dist/{chatElementDisplayLocation-CwptS9tx.d.ts → index-tfRj22E1.d.ts} +18 -30
- package/dist/interceptors/index.cjs +14 -0
- package/dist/interceptors/index.d.cts +25 -0
- package/dist/interceptors/index.d.ts +25 -0
- package/dist/interceptors/index.js +13 -0
- package/dist/{jackArcher-CLVmwwpI.js → jackArcher-BA-pkB4A.js} +16 -7
- package/dist/{jackArcher-DdYTIzAV.cjs → jackArcher-bewC0q1T.cjs} +33 -24
- package/dist/{jordanCraig-_u3-w4Hp.cjs → jordanCraig-B5k9nlAw.cjs} +76 -67
- package/dist/{jordanCraig-Am-Oor-O.js → jordanCraig-BsQ1mYbt.js} +16 -7
- package/dist/{kindredBravely-eWp-ud_E.js → kindredBravely-BxYkCpGY.js} +15 -6
- package/dist/{kindredBravely-CWovIDSc.cjs → kindredBravely-DsN0fo3s.cjs} +26 -17
- package/dist/{kutFromTheKloth-Q589bAOC.cjs → kutFromTheKloth-BQTCu3ct.cjs} +27 -18
- package/dist/{kutFromTheKloth-BMV4BuGQ.js → kutFromTheKloth-bukOQM3P.js} +16 -7
- package/dist/{larryAndSerges-BMUlTgI-.js → larryAndSerges-D1ecaT5a.js} +14 -5
- package/dist/{larryAndSerges-CEau764j.cjs → larryAndSerges-bj7fgy9b.cjs} +21 -12
- package/dist/{leapsAndRebounds-DHAtRTJD.cjs → leapsAndRebounds-BfneG_0c.cjs} +29 -20
- package/dist/{leapsAndRebounds-DGMzPO7T.js → leapsAndRebounds-DhNpZETg.js} +16 -7
- package/dist/locators-C2DX_nX6.js +1 -0
- package/dist/locators-CUpyd9Wt.cjs +0 -0
- package/dist/{longevityrx-jH2JLhNH.js → longevityrx-CnoGcw0w.js} +16 -7
- package/dist/{longevityrx-CZW8Hxzi.cjs → longevityrx-D0goIuX0.cjs} +24 -15
- package/dist/{lookOptic-CA6RwLbG.cjs → lookOptic-C4afLPZP.cjs} +24 -15
- package/dist/{lookOptic-BGXP5P_V.js → lookOptic-uJWIKpER.js} +16 -7
- package/dist/{mantraBrand-DByNqpnL.cjs → mantraBrand-8JUlYtCE.cjs} +45 -36
- package/dist/{mantraBrand-Cm9_PBCT.js → mantraBrand-DuwKHM26.js} +17 -8
- package/dist/{medterra-B0wxj_PV.js → medterra-BQec8rzn.js} +16 -7
- package/dist/{medterra-DnPN2ksU.cjs → medterra-DH067P-V.cjs} +36 -27
- package/dist/{modells-Bmz8Ag5M.js → modells-DAgLE2xo.js} +16 -7
- package/dist/{modells-CoYgkLSp.cjs → modells-DUFnLmAz.cjs} +30 -21
- package/dist/nodeSelector-DpKXszfU.d.ts +30 -0
- package/dist/nodeSelector-vKB44CDB.d.cts +30 -0
- package/dist/org-C11APG3v.js +63 -0
- package/dist/org-CnHL2I9B.cjs +106 -0
- package/dist/{pressedFloral-DjBiSoUl.cjs → pressedFloral-DVZVfOSQ.cjs} +35 -26
- package/dist/{pressedFloral-DSKs_oVG.js → pressedFloral-MdbuoRyA.js} +16 -7
- package/dist/search-CvHb1M3S.js +542 -0
- package/dist/search-bSYdOBhY.cjs +743 -0
- package/dist/search-filter-types-BsJjrxk0.d.ts +101 -0
- package/dist/search-filter-types-CqaGK3nM.d.cts +101 -0
- package/dist/{skinPerfection-B_3xzVNS.cjs → skinPerfection-BcEWICQN.cjs} +24 -15
- package/dist/{skinPerfection-IDrBuAPt.js → skinPerfection-bGiYxq1i.js} +16 -7
- package/dist/{snapSupplements-BStTsdOZ.cjs → snapSupplements-BXSXTjqF.cjs} +24 -15
- package/dist/{snapSupplements-BJk5T5ba.js → snapSupplements-D7hHhdC9.js} +16 -7
- package/dist/{spanx-BYg0LE7R.js → spanx-5-0yX3iK.js} +18 -9
- package/dist/{spanx-LwU1zSzq.cjs → spanx-lUzP6Lva.cjs} +30 -21
- package/dist/{spanxStaging-CfSmuKYB.js → spanxStaging-HglCMJag.js} +18 -9
- package/dist/{spanxStaging-OZLV9qix.cjs → spanxStaging-hreMR0MS.cjs} +34 -25
- package/dist/suggestionBarV2-types-B0RbMStE.js +9 -0
- package/dist/suggestionBarV2-types-DG3Ekk44.cjs +15 -0
- package/dist/{supergoop-CIlrHND_.js → supergoop-C9DDT3lY.js} +17 -7
- package/dist/{supergoop-BqPXDnKk.cjs → supergoop-CkjtuRck.cjs} +28 -18
- package/dist/test-types-C9b_OdfO.d.ts +39 -0
- package/dist/test-types-CpKCxk8U.d.cts +39 -0
- package/dist/types/index.cjs +6 -0
- package/dist/types/index.d.cts +3 -0
- package/dist/types/index.d.ts +3 -0
- package/dist/types/index.js +4 -0
- package/dist/types-BE4faOO_.d.cts +32 -0
- package/dist/{types-C4T5UOIW.cjs → types-BUjohkXp.cjs} +58 -58
- package/dist/{types-CYNvLeSA.js → types-BVsTRyxL.js} +58 -58
- package/dist/types-TD8g7LnH.d.ts +32 -0
- package/dist/{uniqueVintage-B30mOqbH.cjs → uniqueVintage-DIMGtYAU.cjs} +46 -37
- package/dist/{uniqueVintage-CFueJOhO.js → uniqueVintage-DPWA5Ed6.js} +16 -7
- package/dist/useMessageInterceptor-B-P_rw73.cjs +72 -0
- package/dist/useMessageInterceptor-C2RZM-fo.js +57 -0
- package/dist/utilityTypes-BVikejDo.js +1 -0
- package/dist/utilityTypes-C4h2wgAK.cjs +0 -0
- package/dist/variant-BGjOVpY3.d.cts +12 -0
- package/dist/variant-XITncuI3.d.ts +12 -0
- package/dist/variantInfo-CNRTY0gH.cjs +0 -0
- package/dist/variantInfo-CzhR5W6h.js +1 -0
- package/dist/{venaCbd-T0CqVD4k.js → venaCbd-B-znfAsl.js} +16 -7
- package/dist/{venaCbd-DHGZy49P.cjs → venaCbd-BOwOtpOz.cjs} +29 -20
- package/dist/{westonJonBoucher-BdMzs_Yg.cjs → westonJonBoucher-CraTzRVt.cjs} +29 -20
- package/dist/{westonJonBoucher-b4TCQ4ev.js → westonJonBoucher-DCRagGu3.js} +16 -7
- package/dist/{wineEnthusiast-BqR0i_54.js → wineEnthusiast-Bv7umajk.js} +16 -7
- package/dist/{wineEnthusiast-BLGlOjgr.cjs → wineEnthusiast-sVuATrq6.cjs} +28 -19
- package/dist/{wolfMattress-CyyO-LoC.js → wolfMattress-BUH-Rhov.js} +17 -6
- package/dist/{wolfMattress-DNGZOivg.cjs → wolfMattress-DpVHIEnJ.cjs} +29 -18
- package/dist/{wolfTactical-BmXYlFjr.cjs → wolfTactical-BcvF_sy-.cjs} +28 -19
- package/dist/{wolfTactical-3Mm2fvVF.js → wolfTactical-Q14A1fpw.js} +16 -7
- package/package.json +101 -3
- package/src/adapters/amplitude/amplitudeAdapter.ts +1 -1
- package/src/adapters/spiffy/commerce/api.ts +1 -1
- package/src/adapters/spiffy/commerce/graphql.ts +61 -37
- package/src/application/config/index.ts +1 -0
- package/src/application/models/index.ts +102 -17
- package/src/application/models/supportedOrgs.ts +89 -65
- package/src/application/service/index.ts +32 -0
- package/src/application/service/pageVariantService.ts +201 -114
- package/src/application/service/searchService.ts +1 -1
- package/src/application/service/windowFrontendConfigService.ts +40 -18
- package/src/application/utils/index.ts +22 -3
- package/src/atoms/app/variant.ts +48 -29
- package/src/atoms/atomStore/index.ts +1 -0
- package/src/atoms/chat/messageQueue.ts +34 -17
- package/src/atoms/chat/performanceMetrics.ts +51 -38
- package/src/atoms/chat/renderedWidgetRefs.ts +14 -15
- package/src/atoms/globalSearch/index.ts +1 -0
- package/src/atoms/org/org.ts +1 -3
- package/src/atoms/org/orgUIConfig.ts +31 -24
- package/src/contexts/chatContext.tsx +124 -72
- package/src/events/registerAnalyticsListeners.ts +13 -9
- package/src/hooks/useFileUpload.ts +9 -7
- package/src/hooks/useSearch.tsx +4 -7
- package/src/initialize.ts +2 -2
- package/src/interceptors/index.ts +3 -0
- package/src/main.tsx +11 -26
- package/src/types/index.ts +4 -0
- package/dist/GridInsertionService-CEYo9pGj.js +0 -22
- package/dist/GridInsertionService-CS_bnPh0.cjs +0 -28
- package/dist/contexts-BRjfVq_k.js +0 -5064
- package/dist/contexts-BYArqZtK.cjs +0 -5164
- package/dist/custservice-types-CFIFwZ-r.js +0 -10
- package/dist/custservice-types-CkfxZiHY.cjs +0 -16
- package/dist/default-CBUq6Q6G.cjs +0 -4
- package/dist/default-CGIFZK6m.js +0 -4
- package/dist/divIds-Bss-btao.js +0 -49
- package/dist/models-DHdb7QWn.js +0 -51
- package/dist/models-ixxUsGL_.cjs +0 -69
- package/dist/suggestionBarV2-types-BllzwsBD.js +0 -34
- package/dist/suggestionBarV2-types-CaovchMP.cjs +0 -46
- package/src/atoms/index.ts +0 -5
- package/src/index.ts +0 -31
- package/src/main.ts +0 -85
- /package/dist/{cdnService-zQfKk3Eb.js → cdnService-DvDSpfVJ.js} +0 -0
- /package/dist/{cdnService-CZ-aXcY6.cjs → cdnService-dJU3sHpF.cjs} +0 -0
- /package/dist/{entrypoints-YLQsbBRD.js → entrypoints-CmmOszXO.js} +0 -0
- /package/dist/{entrypoints-D_JUvkgy.cjs → entrypoints-fowCLUT2.cjs} +0 -0
- /package/dist/{socialProofClasses-CrQBWdSA.cjs → socialProofClasses-BYLiEXpU.cjs} +0 -0
- /package/dist/{socialProofClasses-Bhv2Vulz.js → socialProofClasses-CkJufEGb.js} +0 -0
- /package/src/atoms/{atomStore.ts → atomStore/atomStore.ts} +0 -0
- /package/src/atoms/{globalSearch.ts → globalSearch/globalSearch.ts} +0 -0
|
@@ -1,3 +1,28 @@
|
|
|
1
|
+
//#region src/application/models/colorsConfig.ts
|
|
2
|
+
var ColorNames = /* @__PURE__ */ function(ColorNames$1) {
|
|
3
|
+
ColorNames$1["TextPrimary"] = "text-primary";
|
|
4
|
+
ColorNames$1["TextSecondary"] = "text-secondary";
|
|
5
|
+
ColorNames$1["TextAccent"] = "text-accent";
|
|
6
|
+
ColorNames$1["TextLink"] = "text-link";
|
|
7
|
+
ColorNames$1["TextLight"] = "text-light";
|
|
8
|
+
ColorNames$1["BackgroundPrimary"] = "background-primary";
|
|
9
|
+
ColorNames$1["BackgroundSecondary"] = "background-secondary";
|
|
10
|
+
ColorNames$1["BackgroundSecondaryDark"] = "background-secondary-dark";
|
|
11
|
+
ColorNames$1["BackgroundTertiary"] = "background-tertiary";
|
|
12
|
+
ColorNames$1["BackgroundDark"] = "background-dark";
|
|
13
|
+
ColorNames$1["BackgroundLight"] = "background-light";
|
|
14
|
+
ColorNames$1["BackgroundSaturated"] = "background-saturated";
|
|
15
|
+
ColorNames$1["BorderLight"] = "border-light";
|
|
16
|
+
ColorNames$1["BorderMedium"] = "border-medium";
|
|
17
|
+
ColorNames$1["BorderDark"] = "border-dark";
|
|
18
|
+
ColorNames$1["BorderOutline"] = "border-outline";
|
|
19
|
+
ColorNames$1["AccentPrimary"] = "accent-primary";
|
|
20
|
+
ColorNames$1["AccentSecondary"] = "accent-secondary";
|
|
21
|
+
return ColorNames$1;
|
|
22
|
+
}(ColorNames || {});
|
|
23
|
+
const colorVar = (color) => `var(--spiffy-colors-${color})`;
|
|
24
|
+
|
|
25
|
+
//#endregion
|
|
1
26
|
//#region src/application/models/orgsEnum.ts
|
|
2
27
|
const OrgShortName = {
|
|
3
28
|
Coterie: "coterie",
|
|
@@ -39,67 +64,42 @@ const OrgShortName = {
|
|
|
39
64
|
//#region src/application/models/supportedOrgs.ts
|
|
40
65
|
const getOrgInfo = async (orgShortName) => {
|
|
41
66
|
switch (orgShortName) {
|
|
42
|
-
case OrgShortName.Bandolier: return import("./bandolier-
|
|
43
|
-
case OrgShortName.Carpe: return import("./carpe-
|
|
44
|
-
case OrgShortName.Coterie: return import("./coterie-
|
|
45
|
-
case OrgShortName.DreamlandBaby: return import("./dreamlandBaby-
|
|
46
|
-
case OrgShortName.ForLoveAndLemons: return import("./forLoveAndLemons-
|
|
47
|
-
case OrgShortName.Greenpan: return import("./greenpan-
|
|
48
|
-
case OrgShortName.GrooveLife: return import("./grooveLife-
|
|
49
|
-
case OrgShortName.JackArcher: return import("./jackArcher-
|
|
50
|
-
case OrgShortName.JordanCraig: return import("./jordanCraig-
|
|
51
|
-
case OrgShortName.KutFromTheKloth: return import("./kutFromTheKloth-
|
|
52
|
-
case OrgShortName.LarryAndSerges: return import("./larryAndSerges-
|
|
53
|
-
case OrgShortName.LeapsAndRebounds: return import("./leapsAndRebounds-
|
|
54
|
-
case OrgShortName.MantraBrand: return import("./mantraBrand-
|
|
55
|
-
case OrgShortName.Spanx: return import("./spanx-
|
|
56
|
-
case OrgShortName.SpanxStaging: return import("./spanxStaging-
|
|
57
|
-
case OrgShortName.Supergoop: return import("./supergoop-
|
|
58
|
-
case OrgShortName.UniqueVintage: return import("./uniqueVintage-
|
|
59
|
-
case OrgShortName.WestonJonBoucher: return import("./westonJonBoucher-
|
|
60
|
-
case OrgShortName.WolfMattress: return import("./wolfMattress-
|
|
61
|
-
case OrgShortName.WolfTactical: return import("./wolfTactical-
|
|
62
|
-
case OrgShortName.SkinPerfection: return import("./skinPerfection-
|
|
63
|
-
case OrgShortName.LookOptic: return import("./lookOptic-
|
|
64
|
-
case OrgShortName.FiveCbd: return import("./fiveCbd-
|
|
65
|
-
case OrgShortName.SnapSupplements: return import("./snapSupplements-
|
|
66
|
-
case OrgShortName.Longevityrx: return import("./longevityrx-
|
|
67
|
-
case OrgShortName.VenaCbd: return import("./venaCbd-
|
|
68
|
-
case OrgShortName.Medterra: return import("./medterra-
|
|
69
|
-
case OrgShortName.Modells: return import("./modells-
|
|
70
|
-
case OrgShortName.PressedFloral: return import("./pressedFloral-
|
|
71
|
-
case OrgShortName.KindredBravely: return import("./kindredBravely-
|
|
72
|
-
case OrgShortName.WineEnthusiast: return import("./wineEnthusiast-
|
|
73
|
-
case OrgShortName.HomegrownCannabis: return import("./homegrownCannabis-
|
|
74
|
-
default: return import("./default-
|
|
67
|
+
case OrgShortName.Bandolier: return import("./bandolier-C7PAIw02.js").then((module) => module.bandolierOrgInfo);
|
|
68
|
+
case OrgShortName.Carpe: return import("./carpe-DFc78_lJ.js").then((module) => module.carpeOrgInfo);
|
|
69
|
+
case OrgShortName.Coterie: return import("./coterie-BGT8hqFR.js").then((module) => module.coterieOrgInfo);
|
|
70
|
+
case OrgShortName.DreamlandBaby: return import("./dreamlandBaby-DZvM81LQ.js").then((module) => module.dreamlandBabyOrgInfo);
|
|
71
|
+
case OrgShortName.ForLoveAndLemons: return import("./forLoveAndLemons-BKmJJ9pq.js").then((module) => module.forLoveAndLemonsOrgInfo);
|
|
72
|
+
case OrgShortName.Greenpan: return import("./greenpan-BX1viAZB.js").then((module) => module.greenpanOrgInfo);
|
|
73
|
+
case OrgShortName.GrooveLife: return import("./grooveLife-CHot3rZw.js").then((module) => module.grooveLifeOrgInfo);
|
|
74
|
+
case OrgShortName.JackArcher: return import("./jackArcher-BA-pkB4A.js").then((module) => module.jackArcherOrgInfo);
|
|
75
|
+
case OrgShortName.JordanCraig: return import("./jordanCraig-BsQ1mYbt.js").then((module) => module.jordanCraigOrgInfo);
|
|
76
|
+
case OrgShortName.KutFromTheKloth: return import("./kutFromTheKloth-bukOQM3P.js").then((module) => module.kutFromTheKlothOrgInfo);
|
|
77
|
+
case OrgShortName.LarryAndSerges: return import("./larryAndSerges-D1ecaT5a.js").then((module) => module.larryAndSergesOrgInfo);
|
|
78
|
+
case OrgShortName.LeapsAndRebounds: return import("./leapsAndRebounds-DhNpZETg.js").then((module) => module.leapsAndReboundsOrgInfo);
|
|
79
|
+
case OrgShortName.MantraBrand: return import("./mantraBrand-DuwKHM26.js").then((module) => module.mantraBrandOrgInfo);
|
|
80
|
+
case OrgShortName.Spanx: return import("./spanx-5-0yX3iK.js").then((module) => module.spanxOrgInfo);
|
|
81
|
+
case OrgShortName.SpanxStaging: return import("./spanxStaging-HglCMJag.js").then((module) => module.spanxOrgInfo);
|
|
82
|
+
case OrgShortName.Supergoop: return import("./supergoop-C9DDT3lY.js").then((module) => module.supergoopOrgInfo);
|
|
83
|
+
case OrgShortName.UniqueVintage: return import("./uniqueVintage-DPWA5Ed6.js").then((module) => module.uniqueVintageOrgInfo);
|
|
84
|
+
case OrgShortName.WestonJonBoucher: return import("./westonJonBoucher-DCRagGu3.js").then((module) => module.westonJonBoucherOrgInfo);
|
|
85
|
+
case OrgShortName.WolfMattress: return import("./wolfMattress-BUH-Rhov.js").then((module) => module.wolfMattressOrgInfo);
|
|
86
|
+
case OrgShortName.WolfTactical: return import("./wolfTactical-Q14A1fpw.js").then((module) => module.wolfTacticalOrgInfo);
|
|
87
|
+
case OrgShortName.SkinPerfection: return import("./skinPerfection-bGiYxq1i.js").then((module) => module.skinPerfectionOrgInfo);
|
|
88
|
+
case OrgShortName.LookOptic: return import("./lookOptic-uJWIKpER.js").then((module) => module.lookOpticOrgInfo);
|
|
89
|
+
case OrgShortName.FiveCbd: return import("./fiveCbd-HNBPqPtX.js").then((module) => module.fiveCbdOrgInfo);
|
|
90
|
+
case OrgShortName.SnapSupplements: return import("./snapSupplements-D7hHhdC9.js").then((module) => module.snapSupplementsOrgInfo);
|
|
91
|
+
case OrgShortName.Longevityrx: return import("./longevityrx-CnoGcw0w.js").then((module) => module.longevityrxOrgInfo);
|
|
92
|
+
case OrgShortName.VenaCbd: return import("./venaCbd-B-znfAsl.js").then((module) => module.venaCbdOrgInfo);
|
|
93
|
+
case OrgShortName.Medterra: return import("./medterra-BQec8rzn.js").then((module) => module.medterraOrgInfo);
|
|
94
|
+
case OrgShortName.Modells: return import("./modells-DAgLE2xo.js").then((module) => module.modellsOrgInfo);
|
|
95
|
+
case OrgShortName.PressedFloral: return import("./pressedFloral-MdbuoRyA.js").then((module) => module.pressedFloralOrgInfo);
|
|
96
|
+
case OrgShortName.KindredBravely: return import("./kindredBravely-BxYkCpGY.js").then((module) => module.kindredBravelyOrgInfo);
|
|
97
|
+
case OrgShortName.WineEnthusiast: return import("./wineEnthusiast-Bv7umajk.js").then((module) => module.wineEnthusiastOrgInfo);
|
|
98
|
+
case OrgShortName.HomegrownCannabis: return import("./homegrownCannabis-CwkS1qDA.js").then((module) => module.homegrownCannabisOrgInfo);
|
|
99
|
+
default: return import("./default-BR3225LZ.js").then((module) => module.defaultOrgInfo);
|
|
75
100
|
}
|
|
76
101
|
};
|
|
77
102
|
|
|
78
|
-
//#endregion
|
|
79
|
-
//#region src/application/models/colorsConfig.ts
|
|
80
|
-
var ColorNames = /* @__PURE__ */ function(ColorNames$1) {
|
|
81
|
-
ColorNames$1["TextPrimary"] = "text-primary";
|
|
82
|
-
ColorNames$1["TextSecondary"] = "text-secondary";
|
|
83
|
-
ColorNames$1["TextAccent"] = "text-accent";
|
|
84
|
-
ColorNames$1["TextLink"] = "text-link";
|
|
85
|
-
ColorNames$1["TextLight"] = "text-light";
|
|
86
|
-
ColorNames$1["BackgroundPrimary"] = "background-primary";
|
|
87
|
-
ColorNames$1["BackgroundSecondary"] = "background-secondary";
|
|
88
|
-
ColorNames$1["BackgroundSecondaryDark"] = "background-secondary-dark";
|
|
89
|
-
ColorNames$1["BackgroundTertiary"] = "background-tertiary";
|
|
90
|
-
ColorNames$1["BackgroundDark"] = "background-dark";
|
|
91
|
-
ColorNames$1["BackgroundLight"] = "background-light";
|
|
92
|
-
ColorNames$1["BackgroundSaturated"] = "background-saturated";
|
|
93
|
-
ColorNames$1["BorderLight"] = "border-light";
|
|
94
|
-
ColorNames$1["BorderMedium"] = "border-medium";
|
|
95
|
-
ColorNames$1["BorderDark"] = "border-dark";
|
|
96
|
-
ColorNames$1["BorderOutline"] = "border-outline";
|
|
97
|
-
ColorNames$1["AccentPrimary"] = "accent-primary";
|
|
98
|
-
ColorNames$1["AccentSecondary"] = "accent-secondary";
|
|
99
|
-
return ColorNames$1;
|
|
100
|
-
}(ColorNames || {});
|
|
101
|
-
const colorVar = (color) => `var(--spiffy-colors-${color})`;
|
|
102
|
-
|
|
103
103
|
//#endregion
|
|
104
104
|
//#region src/contexts/types.ts
|
|
105
105
|
var CategoryExtractorType = /* @__PURE__ */ function(CategoryExtractorType$1) {
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { CustomerServiceProvider } from "@spiffy-ai/commerce-api-client";
|
|
2
|
+
|
|
3
|
+
//#region src/application/service/customerService/types.d.ts
|
|
4
|
+
declare enum CustomerServiceType {
|
|
5
|
+
shopify = "shopify",
|
|
6
|
+
gorgias = "gorgias",
|
|
7
|
+
kustomer = "kustomer",
|
|
8
|
+
groove = "groove",
|
|
9
|
+
tidio = "tidio",
|
|
10
|
+
zowie = "zowie",
|
|
11
|
+
redo = "redo",
|
|
12
|
+
gladly = "gladly",
|
|
13
|
+
richpanel = "richpanel",
|
|
14
|
+
zendesk = "zendesk",
|
|
15
|
+
unsupported = "unsupported",
|
|
16
|
+
}
|
|
17
|
+
declare enum CustomerServiceIntegrationMode {
|
|
18
|
+
none = "none",
|
|
19
|
+
simple = "simple",
|
|
20
|
+
full = "full",
|
|
21
|
+
}
|
|
22
|
+
interface CustomerServiceIntegration {
|
|
23
|
+
provider: CustomerServiceProvider;
|
|
24
|
+
supportedIntegrationModes: CustomerServiceIntegrationMode[];
|
|
25
|
+
allowFileUpload?: boolean;
|
|
26
|
+
maxfileUploadSize?: number;
|
|
27
|
+
onSwitchToAgent: () => void;
|
|
28
|
+
isEnabled: () => boolean;
|
|
29
|
+
isBusinessHours: (apiKey?: string, apiEndpoint?: string) => Promise<boolean>;
|
|
30
|
+
}
|
|
31
|
+
//#endregion
|
|
32
|
+
export { CustomerServiceIntegration, CustomerServiceIntegrationMode, CustomerServiceType };
|
|
@@ -1,13 +1,22 @@
|
|
|
1
1
|
const require_chunk = require('./chunk-CUT6urMc.cjs');
|
|
2
2
|
require('./logger-Dln20ans.cjs');
|
|
3
|
-
|
|
4
|
-
const
|
|
3
|
+
require('./api-B2euFL-5.cjs');
|
|
4
|
+
const require_api$1 = require('./api-CxGedDxj.cjs');
|
|
5
|
+
const require_types = require('./types-BUjohkXp.cjs');
|
|
5
6
|
require('./enviveConfigContext-Dfr2VH6u.cjs');
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
7
|
+
require('./atomStore-CeJm9Llb.cjs');
|
|
8
|
+
require('./customerService-DqPw_XKf.cjs');
|
|
9
|
+
require('./utilityTypes-C4h2wgAK.cjs');
|
|
10
|
+
require('./variantInfo-CNRTY0gH.cjs');
|
|
11
|
+
require('./events-Da7gpmGv.cjs');
|
|
12
|
+
const require_suggestionBarV2_types = require('./suggestionBarV2-types-DG3Ekk44.cjs');
|
|
13
|
+
const require_divIds = require('./divIds-CFyAjjp3.cjs');
|
|
14
|
+
const require_cdnService = require('./cdnService-dJU3sHpF.cjs');
|
|
15
|
+
require('./chat-CCgyDehy.cjs');
|
|
16
|
+
require('./components-CScS7Ii-.cjs');
|
|
17
|
+
const require_embedded = require('./embedded-BlXJUbik.cjs');
|
|
18
|
+
require('./locators-CUpyd9Wt.cjs');
|
|
19
|
+
const require_default = require('./default-BAXPatxf.cjs');
|
|
11
20
|
let __spiffy_ai_commerce_api_client = require("@spiffy-ai/commerce-api-client");
|
|
12
21
|
__spiffy_ai_commerce_api_client = require_chunk.__toESM(__spiffy_ai_commerce_api_client);
|
|
13
22
|
|
|
@@ -375,7 +384,7 @@ const uniqueVintagePageConfig = () => ({
|
|
|
375
384
|
variantType: "plp",
|
|
376
385
|
variantTests: [{ testType: require_types.PageVariantTestType.ShopifyPLP }, {
|
|
377
386
|
testType: require_types.PageVariantTestType.FeatureGate,
|
|
378
|
-
featureGate:
|
|
387
|
+
featureGate: require_api$1.FeatureGates.IsGlobalSearchEnabled
|
|
379
388
|
}],
|
|
380
389
|
plpIdExtractor: "shopify-collection-id",
|
|
381
390
|
widgetMounting: [
|
|
@@ -398,7 +407,7 @@ const uniqueVintagePageConfig = () => ({
|
|
|
398
407
|
variantType: "plp",
|
|
399
408
|
variantTests: [{
|
|
400
409
|
testType: require_types.PageVariantTestType.FeatureGate,
|
|
401
|
-
featureGate:
|
|
410
|
+
featureGate: require_api$1.FeatureGates.IsNewFeatureEnabled
|
|
402
411
|
}, { testType: require_types.PageVariantTestType.ShopifyPLP }],
|
|
403
412
|
plpIdExtractor: "shopify-collection-id",
|
|
404
413
|
widgetMounting: [{
|
|
@@ -431,7 +440,7 @@ const uniqueVintagePageConfig = () => ({
|
|
|
431
440
|
},
|
|
432
441
|
{
|
|
433
442
|
testType: require_types.PageVariantTestType.FeatureGate,
|
|
434
|
-
featureGate:
|
|
443
|
+
featureGate: require_api$1.FeatureGates.IsGlobalSearchEnabled
|
|
435
444
|
}
|
|
436
445
|
],
|
|
437
446
|
productIdExtractor: "shopify-product-id",
|
|
@@ -469,7 +478,7 @@ const uniqueVintagePageConfig = () => ({
|
|
|
469
478
|
},
|
|
470
479
|
{
|
|
471
480
|
testType: require_types.PageVariantTestType.FeatureGate,
|
|
472
|
-
featureGate:
|
|
481
|
+
featureGate: require_api$1.FeatureGates.IsGlobalSearchEnabled
|
|
473
482
|
}
|
|
474
483
|
],
|
|
475
484
|
productIdExtractor: "shopify-product-id",
|
|
@@ -511,7 +520,7 @@ const uniqueVintagePageConfig = () => ({
|
|
|
511
520
|
},
|
|
512
521
|
{
|
|
513
522
|
testType: require_types.PageVariantTestType.FeatureGate,
|
|
514
|
-
featureGate:
|
|
523
|
+
featureGate: require_api$1.FeatureGates.IsGlobalSearchEnabled
|
|
515
524
|
}
|
|
516
525
|
],
|
|
517
526
|
productIdExtractor: "shopify-product-id",
|
|
@@ -549,7 +558,7 @@ const uniqueVintagePageConfig = () => ({
|
|
|
549
558
|
},
|
|
550
559
|
{
|
|
551
560
|
testType: require_types.PageVariantTestType.FeatureGate,
|
|
552
|
-
featureGate:
|
|
561
|
+
featureGate: require_api$1.FeatureGates.IsGlobalSearchEnabled
|
|
553
562
|
}
|
|
554
563
|
],
|
|
555
564
|
productIdExtractor: "shopify-product-id",
|
|
@@ -591,7 +600,7 @@ const uniqueVintagePageConfig = () => ({
|
|
|
591
600
|
},
|
|
592
601
|
{
|
|
593
602
|
testType: require_types.PageVariantTestType.FeatureGate,
|
|
594
|
-
featureGate:
|
|
603
|
+
featureGate: require_api$1.FeatureGates.IsGlobalSearchEnabled
|
|
595
604
|
}
|
|
596
605
|
],
|
|
597
606
|
productIdExtractor: "shopify-product-id",
|
|
@@ -629,7 +638,7 @@ const uniqueVintagePageConfig = () => ({
|
|
|
629
638
|
},
|
|
630
639
|
{
|
|
631
640
|
testType: require_types.PageVariantTestType.FeatureGate,
|
|
632
|
-
featureGate:
|
|
641
|
+
featureGate: require_api$1.FeatureGates.IsGlobalSearchEnabled
|
|
633
642
|
}
|
|
634
643
|
],
|
|
635
644
|
productIdExtractor: "shopify-product-id",
|
|
@@ -661,7 +670,7 @@ const uniqueVintagePageConfig = () => ({
|
|
|
661
670
|
variantType: "pdp",
|
|
662
671
|
variantTests: [{ testType: require_types.PageVariantTestType.ShopifyPDP }, {
|
|
663
672
|
testType: require_types.PageVariantTestType.FeatureGate,
|
|
664
|
-
featureGate:
|
|
673
|
+
featureGate: require_api$1.FeatureGates.IsGlobalSearchEnabled
|
|
665
674
|
}],
|
|
666
675
|
productIdExtractor: "shopify-product-id",
|
|
667
676
|
widgetMounting: [
|
|
@@ -915,7 +924,7 @@ const uniqueVintagePageConfig = () => ({
|
|
|
915
924
|
widgetConfigId: "topSuggestionsBar",
|
|
916
925
|
contentId: "spiffy-top-suggestion-bar-contents",
|
|
917
926
|
type: require_types.WidgetType.SuggestionBarV2,
|
|
918
|
-
metricDisplayLocation:
|
|
927
|
+
metricDisplayLocation: require_api$1.ChatElementDisplayLocation.TOP_REVIEWS_SNIPPET,
|
|
919
928
|
location: require_suggestionBarV2_types.SuggestionBarLocationForMetrics.SUGGESTION_BAR_TOP,
|
|
920
929
|
variant: "primary",
|
|
921
930
|
hoverVariant: "secondaryDark",
|
|
@@ -934,7 +943,7 @@ const uniqueVintagePageConfig = () => ({
|
|
|
934
943
|
widgetConfigId: "topSuggestionsBarDressesHasReviews",
|
|
935
944
|
contentId: "spiffy-top-suggestion-bar-contents",
|
|
936
945
|
type: require_types.WidgetType.SuggestionBarV2,
|
|
937
|
-
metricDisplayLocation:
|
|
946
|
+
metricDisplayLocation: require_api$1.ChatElementDisplayLocation.TOP_REVIEWS_SNIPPET,
|
|
938
947
|
location: require_suggestionBarV2_types.SuggestionBarLocationForMetrics.SUGGESTION_BAR_TOP,
|
|
939
948
|
variant: "primary",
|
|
940
949
|
hoverVariant: "secondaryDark",
|
|
@@ -952,7 +961,7 @@ const uniqueVintagePageConfig = () => ({
|
|
|
952
961
|
widgetConfigId: "topSuggestionsBarDressesNoReviews",
|
|
953
962
|
contentId: "spiffy-top-suggestion-bar-contents",
|
|
954
963
|
type: require_types.WidgetType.SuggestionBarV2,
|
|
955
|
-
metricDisplayLocation:
|
|
964
|
+
metricDisplayLocation: require_api$1.ChatElementDisplayLocation.TOP_REVIEWS_SNIPPET,
|
|
956
965
|
location: require_suggestionBarV2_types.SuggestionBarLocationForMetrics.SUGGESTION_BAR_TOP,
|
|
957
966
|
variant: "primary",
|
|
958
967
|
hoverVariant: "secondaryDark",
|
|
@@ -970,7 +979,7 @@ const uniqueVintagePageConfig = () => ({
|
|
|
970
979
|
widgetConfigId: "topSuggestionsBarSwimwearHasReviews",
|
|
971
980
|
contentId: "spiffy-top-suggestion-bar-contents",
|
|
972
981
|
type: require_types.WidgetType.SuggestionBarV2,
|
|
973
|
-
metricDisplayLocation:
|
|
982
|
+
metricDisplayLocation: require_api$1.ChatElementDisplayLocation.TOP_REVIEWS_SNIPPET,
|
|
974
983
|
location: require_suggestionBarV2_types.SuggestionBarLocationForMetrics.SUGGESTION_BAR_TOP,
|
|
975
984
|
variant: "primary",
|
|
976
985
|
hoverVariant: "secondaryDark",
|
|
@@ -988,7 +997,7 @@ const uniqueVintagePageConfig = () => ({
|
|
|
988
997
|
widgetConfigId: "topSuggestionsBarSwimwearNoReviews",
|
|
989
998
|
contentId: "spiffy-top-suggestion-bar-contents",
|
|
990
999
|
type: require_types.WidgetType.SuggestionBarV2,
|
|
991
|
-
metricDisplayLocation:
|
|
1000
|
+
metricDisplayLocation: require_api$1.ChatElementDisplayLocation.TOP_REVIEWS_SNIPPET,
|
|
992
1001
|
location: require_suggestionBarV2_types.SuggestionBarLocationForMetrics.SUGGESTION_BAR_TOP,
|
|
993
1002
|
variant: "primary",
|
|
994
1003
|
hoverVariant: "secondaryDark",
|
|
@@ -1006,7 +1015,7 @@ const uniqueVintagePageConfig = () => ({
|
|
|
1006
1015
|
widgetConfigId: "topSuggestionsBarShoesHasReviews",
|
|
1007
1016
|
contentId: "spiffy-top-suggestion-bar-contents",
|
|
1008
1017
|
type: require_types.WidgetType.SuggestionBarV2,
|
|
1009
|
-
metricDisplayLocation:
|
|
1018
|
+
metricDisplayLocation: require_api$1.ChatElementDisplayLocation.TOP_REVIEWS_SNIPPET,
|
|
1010
1019
|
location: require_suggestionBarV2_types.SuggestionBarLocationForMetrics.SUGGESTION_BAR_TOP,
|
|
1011
1020
|
variant: "primary",
|
|
1012
1021
|
hoverVariant: "secondaryDark",
|
|
@@ -1024,7 +1033,7 @@ const uniqueVintagePageConfig = () => ({
|
|
|
1024
1033
|
widgetConfigId: "topSuggestionsBarShoesNoReviews",
|
|
1025
1034
|
contentId: "spiffy-top-suggestion-bar-contents",
|
|
1026
1035
|
type: require_types.WidgetType.SuggestionBarV2,
|
|
1027
|
-
metricDisplayLocation:
|
|
1036
|
+
metricDisplayLocation: require_api$1.ChatElementDisplayLocation.TOP_REVIEWS_SNIPPET,
|
|
1028
1037
|
location: require_suggestionBarV2_types.SuggestionBarLocationForMetrics.SUGGESTION_BAR_TOP,
|
|
1029
1038
|
variant: "primary",
|
|
1030
1039
|
hoverVariant: "secondaryDark",
|
|
@@ -1087,7 +1096,7 @@ const uniqueVintagePageConfig = () => ({
|
|
|
1087
1096
|
widgetConfigId: "bottomSuggestionsBar",
|
|
1088
1097
|
contentId: "spiffy-bottom-suggestion-bar-contents",
|
|
1089
1098
|
type: require_types.WidgetType.SuggestionBarV2,
|
|
1090
|
-
metricDisplayLocation:
|
|
1099
|
+
metricDisplayLocation: require_api$1.ChatElementDisplayLocation.BOTTOM_REVIEWS_SNIPPET,
|
|
1091
1100
|
location: require_suggestionBarV2_types.SuggestionBarLocationForMetrics.SUGGESTION_BAR_BOTTOM,
|
|
1092
1101
|
variant: "dark",
|
|
1093
1102
|
hoverVariant: "secondaryDark",
|
|
@@ -1108,10 +1117,10 @@ const uniqueVintagePageConfig = () => ({
|
|
|
1108
1117
|
globalSearchEntryPoint: {
|
|
1109
1118
|
mountingConfigId: "globalSearchEntryPoint",
|
|
1110
1119
|
containerId: require_divIds.GLOBAL_SEARCH_ENTRYPOINT_ID,
|
|
1111
|
-
testId:
|
|
1120
|
+
testId: require_embedded.GLOBAL_SEARCH_ENTRYPOINT_TESTID,
|
|
1112
1121
|
insertionPoint: {
|
|
1113
1122
|
selector: ".header__search.header__search--desktop",
|
|
1114
|
-
insertionType:
|
|
1123
|
+
insertionType: require_api$1.DOMInsertionType.AFTER
|
|
1115
1124
|
},
|
|
1116
1125
|
suppressionSelector: ".search-modal__content.search-modal__content-bottom",
|
|
1117
1126
|
className: "global-entry-desktop",
|
|
@@ -1124,10 +1133,10 @@ const uniqueVintagePageConfig = () => ({
|
|
|
1124
1133
|
globalSearchEntryPointMobile: {
|
|
1125
1134
|
mountingConfigId: "globalSearchEntryPoint",
|
|
1126
1135
|
containerId: require_divIds.MOBILE_GLOBAL_SEARCH_ENTRYPOINT_ID,
|
|
1127
|
-
testId:
|
|
1136
|
+
testId: require_embedded.GLOBAL_SEARCH_ENTRYPOINT_TESTID,
|
|
1128
1137
|
insertionPoint: {
|
|
1129
1138
|
selector: "sticky-header.header-wrapper:has(.mobile-search)",
|
|
1130
|
-
insertionType:
|
|
1139
|
+
insertionType: require_api$1.DOMInsertionType.AFTER
|
|
1131
1140
|
},
|
|
1132
1141
|
suppressionSelector: ".mobile-search .search-modal__form",
|
|
1133
1142
|
className: "global-entry-mobile",
|
|
@@ -1141,20 +1150,20 @@ const uniqueVintagePageConfig = () => ({
|
|
|
1141
1150
|
chatPreviewPLP: {
|
|
1142
1151
|
mountingConfigId: "chatPreviewPLP",
|
|
1143
1152
|
containerId: require_divIds.CHAT_PREVIEW_CONTAINER_ID,
|
|
1144
|
-
testId:
|
|
1153
|
+
testId: require_embedded.CHAT_PREVIEW_TESTID,
|
|
1145
1154
|
insertionPoint: {
|
|
1146
1155
|
selector: ".collection .product-grid",
|
|
1147
|
-
insertionType:
|
|
1156
|
+
insertionType: require_api$1.DOMInsertionType.AFTER
|
|
1148
1157
|
},
|
|
1149
|
-
gridInsertionType:
|
|
1158
|
+
gridInsertionType: require_api$1.GridInsertionType.ROW_2
|
|
1150
1159
|
},
|
|
1151
1160
|
chatPreviewPDP: {
|
|
1152
1161
|
mountingConfigId: "chatPreviewPDP",
|
|
1153
1162
|
containerId: require_divIds.CHAT_PREVIEW_CONTAINER_ID,
|
|
1154
|
-
testId:
|
|
1163
|
+
testId: require_embedded.CHAT_PREVIEW_TESTID,
|
|
1155
1164
|
insertionPoint: {
|
|
1156
1165
|
selector: ".product__accordion",
|
|
1157
|
-
insertionType:
|
|
1166
|
+
insertionType: require_api$1.DOMInsertionType.BEFORE
|
|
1158
1167
|
},
|
|
1159
1168
|
style: {
|
|
1160
1169
|
marginTop: "16px",
|
|
@@ -1164,10 +1173,10 @@ const uniqueVintagePageConfig = () => ({
|
|
|
1164
1173
|
topSuggestionBarPDP: {
|
|
1165
1174
|
mountingConfigId: "topSuggestionBarPDP",
|
|
1166
1175
|
containerId: require_divIds.TOP_SUGGESTION_BAR_PDP_ID,
|
|
1167
|
-
testId:
|
|
1176
|
+
testId: require_embedded.TOP_SUGGESTION_BAR_TESTID,
|
|
1168
1177
|
insertionPoint: {
|
|
1169
1178
|
selector: "div:has(> .main_price)",
|
|
1170
|
-
insertionType:
|
|
1179
|
+
insertionType: require_api$1.DOMInsertionType.AFTER
|
|
1171
1180
|
},
|
|
1172
1181
|
style: {
|
|
1173
1182
|
marginTop: "16px",
|
|
@@ -1177,10 +1186,10 @@ const uniqueVintagePageConfig = () => ({
|
|
|
1177
1186
|
bottomSuggestionBarPDP: {
|
|
1178
1187
|
mountingConfigId: "bottomSuggestionBarPDP",
|
|
1179
1188
|
containerId: require_divIds.BOTTOM_REVIEWS_BAR_ID,
|
|
1180
|
-
testId:
|
|
1189
|
+
testId: require_embedded.BOTTOM_SUGGESTION_BAR_TESTID,
|
|
1181
1190
|
insertionPoint: {
|
|
1182
1191
|
selector: ".junip-product-review-summary-wrapper + div.junip-separator",
|
|
1183
|
-
insertionType:
|
|
1192
|
+
insertionType: require_api$1.DOMInsertionType.ADJACENT_AFTER_END,
|
|
1184
1193
|
selectionIndex: 0
|
|
1185
1194
|
},
|
|
1186
1195
|
style: {
|
|
@@ -1,12 +1,21 @@
|
|
|
1
1
|
import "./logger-pdEEY8T2.js";
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
2
|
+
import "./api-XRr_lAG6.js";
|
|
3
|
+
import { ChatElementDisplayLocation, DOMInsertionType, FeatureGates, GridInsertionType } from "./api-NJEaveju.js";
|
|
4
|
+
import { CategoryExtractorType, ColorNames, CustomerServiceIntegrationMode, CustomerServiceType, OrgShortName, PageVariantTestType, WidgetType, colorVar } from "./types-BVsTRyxL.js";
|
|
4
5
|
import "./enviveConfigContext-CUGLpPGU.js";
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
6
|
+
import "./atomStore-BFtpknLM.js";
|
|
7
|
+
import "./customerService-CUyZzowx.js";
|
|
8
|
+
import "./utilityTypes-BVikejDo.js";
|
|
9
|
+
import "./variantInfo-CzhR5W6h.js";
|
|
10
|
+
import "./events-ClCDFK7t.js";
|
|
11
|
+
import { SuggestionBarLocationForMetrics } from "./suggestionBarV2-types-B0RbMStE.js";
|
|
12
|
+
import { BOTTOM_REVIEWS_BAR_ID, CHAT_PREVIEW_CONTAINER_ID, GLOBAL_SEARCH_ENTRYPOINT_ID, MOBILE_GLOBAL_SEARCH_ENTRYPOINT_ID, TOP_SUGGESTION_BAR_PDP_ID } from "./divIds-BWvq-i6I.js";
|
|
13
|
+
import { CdnService } from "./cdnService-DvDSpfVJ.js";
|
|
14
|
+
import "./chat-Dk6KPb1K.js";
|
|
15
|
+
import "./components-DAQxVIn9.js";
|
|
16
|
+
import { BOTTOM_SUGGESTION_BAR_TESTID, CHAT_PREVIEW_TESTID, GLOBAL_SEARCH_ENTRYPOINT_TESTID, TOP_SUGGESTION_BAR_TESTID } from "./embedded-C1jvFj3v.js";
|
|
17
|
+
import "./locators-C2DX_nX6.js";
|
|
18
|
+
import { defaultOrgUIConfig } from "./default-wf_IORgo.js";
|
|
10
19
|
import { PageVisitCategory } from "@spiffy-ai/commerce-api-client";
|
|
11
20
|
|
|
12
21
|
//#region src/merchants/uniqueVintage/uniqueVintage.ts
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
const require_chunk = require('./chunk-CUT6urMc.cjs');
|
|
2
|
+
const require_api = require('./api-CxGedDxj.cjs');
|
|
3
|
+
let __spiffy_ai_commerce_api_client = require("@spiffy-ai/commerce-api-client");
|
|
4
|
+
__spiffy_ai_commerce_api_client = require_chunk.__toESM(__spiffy_ai_commerce_api_client);
|
|
5
|
+
let jotai = require("jotai");
|
|
6
|
+
jotai = require_chunk.__toESM(jotai);
|
|
7
|
+
let react = require("react");
|
|
8
|
+
react = require_chunk.__toESM(react);
|
|
9
|
+
|
|
10
|
+
//#region src/interceptors/useFormEscalation.ts
|
|
11
|
+
const useFormEscalation = () => {
|
|
12
|
+
const handleFormSubmitted = (0, jotai.useSetAtom)(require_api.handleFormSubmittedAtom);
|
|
13
|
+
const customerServiceIntegration = (0, jotai.useAtomValue)(require_api.orgCustomerServiceService);
|
|
14
|
+
const apiKey = (0, jotai.useAtomValue)(require_api.apiKeyAtom);
|
|
15
|
+
const apiEndpoint = (0, jotai.useAtomValue)(require_api.endpointURLAtom);
|
|
16
|
+
const blockExecution = () => true;
|
|
17
|
+
const execute = async (response) => {
|
|
18
|
+
if (response.category === __spiffy_ai_commerce_api_client.ResponseCategory.Form && response.attributes.formCategory?.formType === __spiffy_ai_commerce_api_client.FormType.Escalation) {
|
|
19
|
+
const isEnabled = customerServiceIntegration.isEnabled();
|
|
20
|
+
const isBusinessHours = await customerServiceIntegration.isBusinessHours(apiKey, apiEndpoint);
|
|
21
|
+
handleFormSubmitted({
|
|
22
|
+
formResponseId: response.id,
|
|
23
|
+
formType: __spiffy_ai_commerce_api_client.FormType.Escalation,
|
|
24
|
+
filledSchema: {
|
|
25
|
+
is_in_business_hours: isBusinessHours,
|
|
26
|
+
is_integration_enabled: isEnabled
|
|
27
|
+
}
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
};
|
|
31
|
+
return {
|
|
32
|
+
execute,
|
|
33
|
+
blockExecution
|
|
34
|
+
};
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
//#endregion
|
|
38
|
+
//#region src/interceptors/useMessageInterceptor.ts
|
|
39
|
+
const useMessageInterceptor = () => {
|
|
40
|
+
const formEscalation = useFormEscalation();
|
|
41
|
+
const interceptorMap = (0, react.useMemo)(() => {
|
|
42
|
+
const interceptors = /* @__PURE__ */ new Map();
|
|
43
|
+
interceptors.set(__spiffy_ai_commerce_api_client.FormType.Escalation, formEscalation);
|
|
44
|
+
return interceptors;
|
|
45
|
+
}, []);
|
|
46
|
+
const intercept = (response) => {
|
|
47
|
+
if (response?.category === __spiffy_ai_commerce_api_client.ResponseCategory.Form) {
|
|
48
|
+
const formType = response.attributes.formCategory?.formType;
|
|
49
|
+
if (formType) {
|
|
50
|
+
const interceptor = interceptorMap.get(formType);
|
|
51
|
+
interceptor?.execute(response);
|
|
52
|
+
return interceptor?.blockExecution();
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
return false;
|
|
56
|
+
};
|
|
57
|
+
return { intercept };
|
|
58
|
+
};
|
|
59
|
+
|
|
60
|
+
//#endregion
|
|
61
|
+
Object.defineProperty(exports, 'useFormEscalation', {
|
|
62
|
+
enumerable: true,
|
|
63
|
+
get: function () {
|
|
64
|
+
return useFormEscalation;
|
|
65
|
+
}
|
|
66
|
+
});
|
|
67
|
+
Object.defineProperty(exports, 'useMessageInterceptor', {
|
|
68
|
+
enumerable: true,
|
|
69
|
+
get: function () {
|
|
70
|
+
return useMessageInterceptor;
|
|
71
|
+
}
|
|
72
|
+
});
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { apiKeyAtom, endpointURLAtom, handleFormSubmittedAtom, orgCustomerServiceService } from "./api-NJEaveju.js";
|
|
2
|
+
import { FormType, ResponseCategory } from "@spiffy-ai/commerce-api-client";
|
|
3
|
+
import { useAtomValue, useSetAtom } from "jotai";
|
|
4
|
+
import { useMemo } from "react";
|
|
5
|
+
|
|
6
|
+
//#region src/interceptors/useFormEscalation.ts
|
|
7
|
+
const useFormEscalation = () => {
|
|
8
|
+
const handleFormSubmitted = useSetAtom(handleFormSubmittedAtom);
|
|
9
|
+
const customerServiceIntegration = useAtomValue(orgCustomerServiceService);
|
|
10
|
+
const apiKey = useAtomValue(apiKeyAtom);
|
|
11
|
+
const apiEndpoint = useAtomValue(endpointURLAtom);
|
|
12
|
+
const blockExecution = () => true;
|
|
13
|
+
const execute = async (response) => {
|
|
14
|
+
if (response.category === ResponseCategory.Form && response.attributes.formCategory?.formType === FormType.Escalation) {
|
|
15
|
+
const isEnabled = customerServiceIntegration.isEnabled();
|
|
16
|
+
const isBusinessHours = await customerServiceIntegration.isBusinessHours(apiKey, apiEndpoint);
|
|
17
|
+
handleFormSubmitted({
|
|
18
|
+
formResponseId: response.id,
|
|
19
|
+
formType: FormType.Escalation,
|
|
20
|
+
filledSchema: {
|
|
21
|
+
is_in_business_hours: isBusinessHours,
|
|
22
|
+
is_integration_enabled: isEnabled
|
|
23
|
+
}
|
|
24
|
+
});
|
|
25
|
+
}
|
|
26
|
+
};
|
|
27
|
+
return {
|
|
28
|
+
execute,
|
|
29
|
+
blockExecution
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
//#endregion
|
|
34
|
+
//#region src/interceptors/useMessageInterceptor.ts
|
|
35
|
+
const useMessageInterceptor = () => {
|
|
36
|
+
const formEscalation = useFormEscalation();
|
|
37
|
+
const interceptorMap = useMemo(() => {
|
|
38
|
+
const interceptors = /* @__PURE__ */ new Map();
|
|
39
|
+
interceptors.set(FormType.Escalation, formEscalation);
|
|
40
|
+
return interceptors;
|
|
41
|
+
}, []);
|
|
42
|
+
const intercept = (response) => {
|
|
43
|
+
if (response?.category === ResponseCategory.Form) {
|
|
44
|
+
const formType = response.attributes.formCategory?.formType;
|
|
45
|
+
if (formType) {
|
|
46
|
+
const interceptor = interceptorMap.get(formType);
|
|
47
|
+
interceptor?.execute(response);
|
|
48
|
+
return interceptor?.blockExecution();
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
return false;
|
|
52
|
+
};
|
|
53
|
+
return { intercept };
|
|
54
|
+
};
|
|
55
|
+
|
|
56
|
+
//#endregion
|
|
57
|
+
export { useFormEscalation, useMessageInterceptor };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { };
|
|
File without changes
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { VariantInfo } from "./index-hdbCEjYy.cjs";
|
|
2
|
+
import { PageVisitCategory, SupportedEventResponse } from "@spiffy-ai/commerce-api-client";
|
|
3
|
+
import * as jotai33 from "jotai";
|
|
4
|
+
|
|
5
|
+
//#region src/atoms/app/variant.d.ts
|
|
6
|
+
interface SupportedEvent extends Pick<SupportedEventResponse, "supported" | "ready" | "category" | "collections" | "top_category"> {
|
|
7
|
+
numberOfReviews: number | undefined;
|
|
8
|
+
merchant_tags?: string[];
|
|
9
|
+
}
|
|
10
|
+
declare const variantInfoAtom: jotai33.WritableAtom<VariantInfo, [newVariant: VariantInfo], void>;
|
|
11
|
+
//#endregion
|
|
12
|
+
export { SupportedEvent, variantInfoAtom };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { VariantInfo } from "./index-Cqg6ltII.js";
|
|
2
|
+
import { PageVisitCategory, SupportedEventResponse } from "@spiffy-ai/commerce-api-client";
|
|
3
|
+
import * as jotai5 from "jotai";
|
|
4
|
+
|
|
5
|
+
//#region src/atoms/app/variant.d.ts
|
|
6
|
+
interface SupportedEvent extends Pick<SupportedEventResponse, "supported" | "ready" | "category" | "collections" | "top_category"> {
|
|
7
|
+
numberOfReviews: number | undefined;
|
|
8
|
+
merchant_tags?: string[];
|
|
9
|
+
}
|
|
10
|
+
declare const variantInfoAtom: jotai5.WritableAtom<VariantInfo, [newVariant: VariantInfo], void>;
|
|
11
|
+
//#endregion
|
|
12
|
+
export { SupportedEvent, variantInfoAtom };
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { };
|