@envive-ai/react-hooks 0.1.1 → 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-DpF-HUG_.js → bandolier-C7PAIw02.js} +17 -7
- package/dist/{bandolier-3rHPPhkF.cjs → bandolier-oMkFDJMF.cjs} +56 -46
- package/dist/{carpe-BG7Q_KCG.cjs → carpe-C0ccKuR9.cjs} +35 -25
- package/dist/{carpe-DLuc07V7.js → carpe-DFc78_lJ.js} +17 -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 +15 -4
- package/dist/contexts/index.d.cts +9 -1
- package/dist/contexts/index.d.ts +12 -4
- package/dist/contexts/index.js +15 -4
- package/dist/{contexts-Dq7tO_0y.js → contexts-DO75-Kmx.js} +19 -4326
- package/dist/{contexts-C4Iz162H.cjs → contexts-iAzSvZjb.cjs} +188 -4488
- package/dist/{coterie-FybYN_xE.js → coterie-BGT8hqFR.js} +18 -7
- package/dist/{coterie-DUdvJvAs.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-CKyjzyLc.cjs → default-BAXPatxf.cjs} +1 -1
- package/dist/default-BR3225LZ.js +4 -0
- package/dist/default-DR6YjE9B.cjs +4 -0
- package/dist/{default-CL94oJfj.js → default-wf_IORgo.js} +1 -1
- package/dist/divIds-BWvq-i6I.js +22 -0
- package/dist/{divIds-BOqjn3bE.cjs → divIds-CFyAjjp3.cjs} +6 -79
- package/dist/{dreamlandBaby-C8yzW4Nl.cjs → dreamlandBaby-BzuMvUFS.cjs} +28 -18
- package/dist/{dreamlandBaby-WXcbsTXO.js → dreamlandBaby-DZvM81LQ.js} +17 -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-CZYzZPl3.cjs → fiveCbd-DE-tDY3d.cjs} +32 -22
- package/dist/{fiveCbd-kl6CoxoF.js → fiveCbd-HNBPqPtX.js} +17 -7
- package/dist/{forLoveAndLemons-BD2qh-6B.js → forLoveAndLemons-BKmJJ9pq.js} +13 -5
- package/dist/{forLoveAndLemons-BNu-PfFB.cjs → forLoveAndLemons-BeVEBOiu.cjs} +17 -9
- package/dist/{types-DGoFEos_.d.cts → frontendConfig-KeNqU1wa.d.cts} +39 -275
- package/dist/{types-D4vlfTd0.d.ts → frontendConfig-cPvCTWm6.d.ts} +39 -275
- package/dist/globalSearch-BC0rOX3E.js +13 -0
- package/dist/globalSearch-hxbXekus.cjs +38 -0
- package/dist/{greenpan-LDDXZTsh.js → greenpan-BX1viAZB.js} +17 -7
- package/dist/{greenpan-D6fDmjU8.cjs → greenpan-chd3aa5I.cjs} +30 -20
- package/dist/{grooveLife-D-1qfxwj.js → grooveLife-CHot3rZw.js} +18 -8
- package/dist/{grooveLife-CcylXabB.cjs → grooveLife-DEob7rK0.cjs} +29 -19
- package/dist/{homegrownCannabis-BEZzwFlm.cjs → homegrownCannabis-CoIjcehi.cjs} +27 -16
- package/dist/{homegrownCannabis-BScZhy9v.js → homegrownCannabis-CwkS1qDA.js} +17 -6
- package/dist/hooks/index.cjs +15 -4
- package/dist/hooks/index.d.cts +15 -305
- package/dist/hooks/index.d.ts +15 -306
- 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/index-C4zjAR1c.d.cts +227 -0
- 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/index-tfRj22E1.d.ts +227 -0
- 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-cJJVulZ9.js → jackArcher-BA-pkB4A.js} +17 -7
- package/dist/{jackArcher-BwMClqMP.cjs → jackArcher-bewC0q1T.cjs} +34 -24
- package/dist/{jordanCraig-DGsCO2o1.cjs → jordanCraig-B5k9nlAw.cjs} +77 -67
- package/dist/{jordanCraig-DNDMT0hn.js → jordanCraig-BsQ1mYbt.js} +17 -7
- package/dist/{kindredBravely-ROyesnVk.js → kindredBravely-BxYkCpGY.js} +16 -6
- package/dist/{kindredBravely-wV2XT1r_.cjs → kindredBravely-DsN0fo3s.cjs} +27 -17
- package/dist/{kutFromTheKloth-B6GR8tO9.cjs → kutFromTheKloth-BQTCu3ct.cjs} +28 -18
- package/dist/{kutFromTheKloth-BCUOHegv.js → kutFromTheKloth-bukOQM3P.js} +17 -7
- package/dist/{larryAndSerges-CqS02fnX.js → larryAndSerges-D1ecaT5a.js} +14 -5
- package/dist/{larryAndSerges-CIqB9tKz.cjs → larryAndSerges-bj7fgy9b.cjs} +21 -12
- package/dist/{leapsAndRebounds-CFj9F_z1.cjs → leapsAndRebounds-BfneG_0c.cjs} +30 -20
- package/dist/{leapsAndRebounds-j4YqSvNb.js → leapsAndRebounds-DhNpZETg.js} +17 -7
- package/dist/locators-C2DX_nX6.js +1 -0
- package/dist/locators-CUpyd9Wt.cjs +0 -0
- package/dist/logger-Dln20ans.cjs +25 -0
- package/dist/logger-pdEEY8T2.js +19 -0
- package/dist/{longevityrx-9sUQZCVZ.js → longevityrx-CnoGcw0w.js} +17 -7
- package/dist/{longevityrx-C-Yc5LPR.cjs → longevityrx-D0goIuX0.cjs} +25 -15
- package/dist/{lookOptic-dbaaorhR.cjs → lookOptic-C4afLPZP.cjs} +25 -15
- package/dist/{lookOptic-CQryypdM.js → lookOptic-uJWIKpER.js} +17 -7
- package/dist/{mantraBrand-D5MTZ6Mj.cjs → mantraBrand-8JUlYtCE.cjs} +46 -36
- package/dist/{mantraBrand-CifBQtHp.js → mantraBrand-DuwKHM26.js} +18 -8
- package/dist/{medterra-DhENCf-m.js → medterra-BQec8rzn.js} +17 -7
- package/dist/{medterra-BCrXdmFE.cjs → medterra-DH067P-V.cjs} +37 -27
- package/dist/{modells-aQrV10D7.js → modells-DAgLE2xo.js} +17 -7
- package/dist/{modells-C_P_894S.cjs → modells-DUFnLmAz.cjs} +31 -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-DErfwwl0.cjs → pressedFloral-DVZVfOSQ.cjs} +36 -26
- package/dist/{pressedFloral-D-amnTQK.js → pressedFloral-MdbuoRyA.js} +17 -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-DF6nQXjh.cjs → skinPerfection-BcEWICQN.cjs} +25 -15
- package/dist/{skinPerfection-DRVPJp3h.js → skinPerfection-bGiYxq1i.js} +17 -7
- package/dist/{snapSupplements-CLZjItJi.cjs → snapSupplements-BXSXTjqF.cjs} +25 -15
- package/dist/{snapSupplements-Yxs4jgC-.js → snapSupplements-D7hHhdC9.js} +17 -7
- package/dist/{spanx-DVDyAyFC.js → spanx-5-0yX3iK.js} +19 -9
- package/dist/{spanx-Cpbot5J5.cjs → spanx-lUzP6Lva.cjs} +31 -21
- package/dist/{spanxStaging-DAiFEMRU.js → spanxStaging-HglCMJag.js} +19 -9
- package/dist/{spanxStaging-DbaVonN6.cjs → spanxStaging-hreMR0MS.cjs} +35 -25
- package/dist/suggestionBarV2-types-B0RbMStE.js +9 -0
- package/dist/suggestionBarV2-types-DG3Ekk44.cjs +15 -0
- package/dist/{supergoop-C4McrZPT.js → supergoop-C9DDT3lY.js} +18 -7
- package/dist/{supergoop-B5VQlsoe.cjs → supergoop-CkjtuRck.cjs} +29 -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-QJObznro.cjs → types-BUjohkXp.cjs} +58 -58
- package/dist/{types-DZzSQ5a6.js → types-BVsTRyxL.js} +58 -58
- package/dist/types-TD8g7LnH.d.ts +32 -0
- package/dist/{uniqueVintage-BLp_UtBR.cjs → uniqueVintage-DIMGtYAU.cjs} +47 -37
- package/dist/{uniqueVintage-CS4TgOJW.js → uniqueVintage-DPWA5Ed6.js} +17 -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-DfnFV7Qp.js → venaCbd-B-znfAsl.js} +17 -7
- package/dist/{venaCbd-BxmadOeJ.cjs → venaCbd-BOwOtpOz.cjs} +30 -20
- package/dist/{westonJonBoucher-BZdusJgo.cjs → westonJonBoucher-CraTzRVt.cjs} +30 -20
- package/dist/{westonJonBoucher-C0FE4Wup.js → westonJonBoucher-DCRagGu3.js} +17 -7
- package/dist/{wineEnthusiast-CmhNg47M.js → wineEnthusiast-Bv7umajk.js} +17 -7
- package/dist/{wineEnthusiast-DQxdV8Yg.cjs → wineEnthusiast-sVuATrq6.cjs} +29 -19
- package/dist/{wolfMattress-vMvqmwgI.js → wolfMattress-BUH-Rhov.js} +17 -6
- package/dist/{wolfMattress-CqyOUgPB.cjs → wolfMattress-DpVHIEnJ.cjs} +29 -18
- package/dist/{wolfTactical-q3TVDP85.cjs → wolfTactical-BcvF_sy-.cjs} +29 -19
- package/dist/{wolfTactical-DvqxZtoA.js → wolfTactical-Q14A1fpw.js} +17 -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 +3 -3
- package/src/initialize.ts +1 -1
- package/src/interceptors/index.ts +3 -0
- package/src/main.tsx +1 -1
- package/src/types/index.ts +4 -0
- package/dist/GridInsertionService-C00upKLB.js +0 -40
- package/dist/GridInsertionService-CMJVhD6q.cjs +0 -52
- package/dist/custservice-types-BgjGHCtD.cjs +0 -16
- package/dist/custservice-types-V6FWABp4.js +0 -10
- package/dist/default-DMtAjA62.cjs +0 -4
- package/dist/default-zcmT2032.js +0 -4
- package/dist/divIds-Cfp3v_rG.js +0 -35
- package/dist/domInsertionService-BtzuH2Sc.js +0 -65
- package/dist/domInsertionService-Cb9814oM.cjs +0 -89
- package/dist/suggestionBarV2-types-XHYD3j8E.cjs +0 -46
- package/dist/suggestionBarV2-types-aiQmVx5m.js +0 -34
- package/src/atoms/index.ts +0 -5
- package/src/index.ts +0 -31
- /package/dist/{cdnService-CAyO3axV.js → cdnService-DvDSpfVJ.js} +0 -0
- /package/dist/{cdnService-DIF1i7VC.cjs → cdnService-dJU3sHpF.cjs} +0 -0
- /package/dist/{entrypoints-RmIbdYxh.js → entrypoints-CmmOszXO.js} +0 -0
- /package/dist/{entrypoints-C8JwiMYA.cjs → entrypoints-fowCLUT2.cjs} +0 -0
- /package/dist/{socialProofClasses-CaA83vI4.cjs → socialProofClasses-BYLiEXpU.cjs} +0 -0
- /package/dist/{socialProofClasses-KB7zOMmg.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,12 +1,22 @@
|
|
|
1
1
|
const require_chunk = require('./chunk-CUT6urMc.cjs');
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
const
|
|
2
|
+
require('./logger-Dln20ans.cjs');
|
|
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
|
-
|
|
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');
|
|
10
20
|
let __spiffy_ai_commerce_api_client = require("@spiffy-ai/commerce-api-client");
|
|
11
21
|
__spiffy_ai_commerce_api_client = require_chunk.__toESM(__spiffy_ai_commerce_api_client);
|
|
12
22
|
|
|
@@ -374,7 +384,7 @@ const uniqueVintagePageConfig = () => ({
|
|
|
374
384
|
variantType: "plp",
|
|
375
385
|
variantTests: [{ testType: require_types.PageVariantTestType.ShopifyPLP }, {
|
|
376
386
|
testType: require_types.PageVariantTestType.FeatureGate,
|
|
377
|
-
featureGate:
|
|
387
|
+
featureGate: require_api$1.FeatureGates.IsGlobalSearchEnabled
|
|
378
388
|
}],
|
|
379
389
|
plpIdExtractor: "shopify-collection-id",
|
|
380
390
|
widgetMounting: [
|
|
@@ -397,7 +407,7 @@ const uniqueVintagePageConfig = () => ({
|
|
|
397
407
|
variantType: "plp",
|
|
398
408
|
variantTests: [{
|
|
399
409
|
testType: require_types.PageVariantTestType.FeatureGate,
|
|
400
|
-
featureGate:
|
|
410
|
+
featureGate: require_api$1.FeatureGates.IsNewFeatureEnabled
|
|
401
411
|
}, { testType: require_types.PageVariantTestType.ShopifyPLP }],
|
|
402
412
|
plpIdExtractor: "shopify-collection-id",
|
|
403
413
|
widgetMounting: [{
|
|
@@ -430,7 +440,7 @@ const uniqueVintagePageConfig = () => ({
|
|
|
430
440
|
},
|
|
431
441
|
{
|
|
432
442
|
testType: require_types.PageVariantTestType.FeatureGate,
|
|
433
|
-
featureGate:
|
|
443
|
+
featureGate: require_api$1.FeatureGates.IsGlobalSearchEnabled
|
|
434
444
|
}
|
|
435
445
|
],
|
|
436
446
|
productIdExtractor: "shopify-product-id",
|
|
@@ -468,7 +478,7 @@ const uniqueVintagePageConfig = () => ({
|
|
|
468
478
|
},
|
|
469
479
|
{
|
|
470
480
|
testType: require_types.PageVariantTestType.FeatureGate,
|
|
471
|
-
featureGate:
|
|
481
|
+
featureGate: require_api$1.FeatureGates.IsGlobalSearchEnabled
|
|
472
482
|
}
|
|
473
483
|
],
|
|
474
484
|
productIdExtractor: "shopify-product-id",
|
|
@@ -510,7 +520,7 @@ const uniqueVintagePageConfig = () => ({
|
|
|
510
520
|
},
|
|
511
521
|
{
|
|
512
522
|
testType: require_types.PageVariantTestType.FeatureGate,
|
|
513
|
-
featureGate:
|
|
523
|
+
featureGate: require_api$1.FeatureGates.IsGlobalSearchEnabled
|
|
514
524
|
}
|
|
515
525
|
],
|
|
516
526
|
productIdExtractor: "shopify-product-id",
|
|
@@ -548,7 +558,7 @@ const uniqueVintagePageConfig = () => ({
|
|
|
548
558
|
},
|
|
549
559
|
{
|
|
550
560
|
testType: require_types.PageVariantTestType.FeatureGate,
|
|
551
|
-
featureGate:
|
|
561
|
+
featureGate: require_api$1.FeatureGates.IsGlobalSearchEnabled
|
|
552
562
|
}
|
|
553
563
|
],
|
|
554
564
|
productIdExtractor: "shopify-product-id",
|
|
@@ -590,7 +600,7 @@ const uniqueVintagePageConfig = () => ({
|
|
|
590
600
|
},
|
|
591
601
|
{
|
|
592
602
|
testType: require_types.PageVariantTestType.FeatureGate,
|
|
593
|
-
featureGate:
|
|
603
|
+
featureGate: require_api$1.FeatureGates.IsGlobalSearchEnabled
|
|
594
604
|
}
|
|
595
605
|
],
|
|
596
606
|
productIdExtractor: "shopify-product-id",
|
|
@@ -628,7 +638,7 @@ const uniqueVintagePageConfig = () => ({
|
|
|
628
638
|
},
|
|
629
639
|
{
|
|
630
640
|
testType: require_types.PageVariantTestType.FeatureGate,
|
|
631
|
-
featureGate:
|
|
641
|
+
featureGate: require_api$1.FeatureGates.IsGlobalSearchEnabled
|
|
632
642
|
}
|
|
633
643
|
],
|
|
634
644
|
productIdExtractor: "shopify-product-id",
|
|
@@ -660,7 +670,7 @@ const uniqueVintagePageConfig = () => ({
|
|
|
660
670
|
variantType: "pdp",
|
|
661
671
|
variantTests: [{ testType: require_types.PageVariantTestType.ShopifyPDP }, {
|
|
662
672
|
testType: require_types.PageVariantTestType.FeatureGate,
|
|
663
|
-
featureGate:
|
|
673
|
+
featureGate: require_api$1.FeatureGates.IsGlobalSearchEnabled
|
|
664
674
|
}],
|
|
665
675
|
productIdExtractor: "shopify-product-id",
|
|
666
676
|
widgetMounting: [
|
|
@@ -914,7 +924,7 @@ const uniqueVintagePageConfig = () => ({
|
|
|
914
924
|
widgetConfigId: "topSuggestionsBar",
|
|
915
925
|
contentId: "spiffy-top-suggestion-bar-contents",
|
|
916
926
|
type: require_types.WidgetType.SuggestionBarV2,
|
|
917
|
-
metricDisplayLocation:
|
|
927
|
+
metricDisplayLocation: require_api$1.ChatElementDisplayLocation.TOP_REVIEWS_SNIPPET,
|
|
918
928
|
location: require_suggestionBarV2_types.SuggestionBarLocationForMetrics.SUGGESTION_BAR_TOP,
|
|
919
929
|
variant: "primary",
|
|
920
930
|
hoverVariant: "secondaryDark",
|
|
@@ -933,7 +943,7 @@ const uniqueVintagePageConfig = () => ({
|
|
|
933
943
|
widgetConfigId: "topSuggestionsBarDressesHasReviews",
|
|
934
944
|
contentId: "spiffy-top-suggestion-bar-contents",
|
|
935
945
|
type: require_types.WidgetType.SuggestionBarV2,
|
|
936
|
-
metricDisplayLocation:
|
|
946
|
+
metricDisplayLocation: require_api$1.ChatElementDisplayLocation.TOP_REVIEWS_SNIPPET,
|
|
937
947
|
location: require_suggestionBarV2_types.SuggestionBarLocationForMetrics.SUGGESTION_BAR_TOP,
|
|
938
948
|
variant: "primary",
|
|
939
949
|
hoverVariant: "secondaryDark",
|
|
@@ -951,7 +961,7 @@ const uniqueVintagePageConfig = () => ({
|
|
|
951
961
|
widgetConfigId: "topSuggestionsBarDressesNoReviews",
|
|
952
962
|
contentId: "spiffy-top-suggestion-bar-contents",
|
|
953
963
|
type: require_types.WidgetType.SuggestionBarV2,
|
|
954
|
-
metricDisplayLocation:
|
|
964
|
+
metricDisplayLocation: require_api$1.ChatElementDisplayLocation.TOP_REVIEWS_SNIPPET,
|
|
955
965
|
location: require_suggestionBarV2_types.SuggestionBarLocationForMetrics.SUGGESTION_BAR_TOP,
|
|
956
966
|
variant: "primary",
|
|
957
967
|
hoverVariant: "secondaryDark",
|
|
@@ -969,7 +979,7 @@ const uniqueVintagePageConfig = () => ({
|
|
|
969
979
|
widgetConfigId: "topSuggestionsBarSwimwearHasReviews",
|
|
970
980
|
contentId: "spiffy-top-suggestion-bar-contents",
|
|
971
981
|
type: require_types.WidgetType.SuggestionBarV2,
|
|
972
|
-
metricDisplayLocation:
|
|
982
|
+
metricDisplayLocation: require_api$1.ChatElementDisplayLocation.TOP_REVIEWS_SNIPPET,
|
|
973
983
|
location: require_suggestionBarV2_types.SuggestionBarLocationForMetrics.SUGGESTION_BAR_TOP,
|
|
974
984
|
variant: "primary",
|
|
975
985
|
hoverVariant: "secondaryDark",
|
|
@@ -987,7 +997,7 @@ const uniqueVintagePageConfig = () => ({
|
|
|
987
997
|
widgetConfigId: "topSuggestionsBarSwimwearNoReviews",
|
|
988
998
|
contentId: "spiffy-top-suggestion-bar-contents",
|
|
989
999
|
type: require_types.WidgetType.SuggestionBarV2,
|
|
990
|
-
metricDisplayLocation:
|
|
1000
|
+
metricDisplayLocation: require_api$1.ChatElementDisplayLocation.TOP_REVIEWS_SNIPPET,
|
|
991
1001
|
location: require_suggestionBarV2_types.SuggestionBarLocationForMetrics.SUGGESTION_BAR_TOP,
|
|
992
1002
|
variant: "primary",
|
|
993
1003
|
hoverVariant: "secondaryDark",
|
|
@@ -1005,7 +1015,7 @@ const uniqueVintagePageConfig = () => ({
|
|
|
1005
1015
|
widgetConfigId: "topSuggestionsBarShoesHasReviews",
|
|
1006
1016
|
contentId: "spiffy-top-suggestion-bar-contents",
|
|
1007
1017
|
type: require_types.WidgetType.SuggestionBarV2,
|
|
1008
|
-
metricDisplayLocation:
|
|
1018
|
+
metricDisplayLocation: require_api$1.ChatElementDisplayLocation.TOP_REVIEWS_SNIPPET,
|
|
1009
1019
|
location: require_suggestionBarV2_types.SuggestionBarLocationForMetrics.SUGGESTION_BAR_TOP,
|
|
1010
1020
|
variant: "primary",
|
|
1011
1021
|
hoverVariant: "secondaryDark",
|
|
@@ -1023,7 +1033,7 @@ const uniqueVintagePageConfig = () => ({
|
|
|
1023
1033
|
widgetConfigId: "topSuggestionsBarShoesNoReviews",
|
|
1024
1034
|
contentId: "spiffy-top-suggestion-bar-contents",
|
|
1025
1035
|
type: require_types.WidgetType.SuggestionBarV2,
|
|
1026
|
-
metricDisplayLocation:
|
|
1036
|
+
metricDisplayLocation: require_api$1.ChatElementDisplayLocation.TOP_REVIEWS_SNIPPET,
|
|
1027
1037
|
location: require_suggestionBarV2_types.SuggestionBarLocationForMetrics.SUGGESTION_BAR_TOP,
|
|
1028
1038
|
variant: "primary",
|
|
1029
1039
|
hoverVariant: "secondaryDark",
|
|
@@ -1086,7 +1096,7 @@ const uniqueVintagePageConfig = () => ({
|
|
|
1086
1096
|
widgetConfigId: "bottomSuggestionsBar",
|
|
1087
1097
|
contentId: "spiffy-bottom-suggestion-bar-contents",
|
|
1088
1098
|
type: require_types.WidgetType.SuggestionBarV2,
|
|
1089
|
-
metricDisplayLocation:
|
|
1099
|
+
metricDisplayLocation: require_api$1.ChatElementDisplayLocation.BOTTOM_REVIEWS_SNIPPET,
|
|
1090
1100
|
location: require_suggestionBarV2_types.SuggestionBarLocationForMetrics.SUGGESTION_BAR_BOTTOM,
|
|
1091
1101
|
variant: "dark",
|
|
1092
1102
|
hoverVariant: "secondaryDark",
|
|
@@ -1107,10 +1117,10 @@ const uniqueVintagePageConfig = () => ({
|
|
|
1107
1117
|
globalSearchEntryPoint: {
|
|
1108
1118
|
mountingConfigId: "globalSearchEntryPoint",
|
|
1109
1119
|
containerId: require_divIds.GLOBAL_SEARCH_ENTRYPOINT_ID,
|
|
1110
|
-
testId:
|
|
1120
|
+
testId: require_embedded.GLOBAL_SEARCH_ENTRYPOINT_TESTID,
|
|
1111
1121
|
insertionPoint: {
|
|
1112
1122
|
selector: ".header__search.header__search--desktop",
|
|
1113
|
-
insertionType:
|
|
1123
|
+
insertionType: require_api$1.DOMInsertionType.AFTER
|
|
1114
1124
|
},
|
|
1115
1125
|
suppressionSelector: ".search-modal__content.search-modal__content-bottom",
|
|
1116
1126
|
className: "global-entry-desktop",
|
|
@@ -1123,10 +1133,10 @@ const uniqueVintagePageConfig = () => ({
|
|
|
1123
1133
|
globalSearchEntryPointMobile: {
|
|
1124
1134
|
mountingConfigId: "globalSearchEntryPoint",
|
|
1125
1135
|
containerId: require_divIds.MOBILE_GLOBAL_SEARCH_ENTRYPOINT_ID,
|
|
1126
|
-
testId:
|
|
1136
|
+
testId: require_embedded.GLOBAL_SEARCH_ENTRYPOINT_TESTID,
|
|
1127
1137
|
insertionPoint: {
|
|
1128
1138
|
selector: "sticky-header.header-wrapper:has(.mobile-search)",
|
|
1129
|
-
insertionType:
|
|
1139
|
+
insertionType: require_api$1.DOMInsertionType.AFTER
|
|
1130
1140
|
},
|
|
1131
1141
|
suppressionSelector: ".mobile-search .search-modal__form",
|
|
1132
1142
|
className: "global-entry-mobile",
|
|
@@ -1140,20 +1150,20 @@ const uniqueVintagePageConfig = () => ({
|
|
|
1140
1150
|
chatPreviewPLP: {
|
|
1141
1151
|
mountingConfigId: "chatPreviewPLP",
|
|
1142
1152
|
containerId: require_divIds.CHAT_PREVIEW_CONTAINER_ID,
|
|
1143
|
-
testId:
|
|
1153
|
+
testId: require_embedded.CHAT_PREVIEW_TESTID,
|
|
1144
1154
|
insertionPoint: {
|
|
1145
1155
|
selector: ".collection .product-grid",
|
|
1146
|
-
insertionType:
|
|
1156
|
+
insertionType: require_api$1.DOMInsertionType.AFTER
|
|
1147
1157
|
},
|
|
1148
|
-
gridInsertionType:
|
|
1158
|
+
gridInsertionType: require_api$1.GridInsertionType.ROW_2
|
|
1149
1159
|
},
|
|
1150
1160
|
chatPreviewPDP: {
|
|
1151
1161
|
mountingConfigId: "chatPreviewPDP",
|
|
1152
1162
|
containerId: require_divIds.CHAT_PREVIEW_CONTAINER_ID,
|
|
1153
|
-
testId:
|
|
1163
|
+
testId: require_embedded.CHAT_PREVIEW_TESTID,
|
|
1154
1164
|
insertionPoint: {
|
|
1155
1165
|
selector: ".product__accordion",
|
|
1156
|
-
insertionType:
|
|
1166
|
+
insertionType: require_api$1.DOMInsertionType.BEFORE
|
|
1157
1167
|
},
|
|
1158
1168
|
style: {
|
|
1159
1169
|
marginTop: "16px",
|
|
@@ -1163,10 +1173,10 @@ const uniqueVintagePageConfig = () => ({
|
|
|
1163
1173
|
topSuggestionBarPDP: {
|
|
1164
1174
|
mountingConfigId: "topSuggestionBarPDP",
|
|
1165
1175
|
containerId: require_divIds.TOP_SUGGESTION_BAR_PDP_ID,
|
|
1166
|
-
testId:
|
|
1176
|
+
testId: require_embedded.TOP_SUGGESTION_BAR_TESTID,
|
|
1167
1177
|
insertionPoint: {
|
|
1168
1178
|
selector: "div:has(> .main_price)",
|
|
1169
|
-
insertionType:
|
|
1179
|
+
insertionType: require_api$1.DOMInsertionType.AFTER
|
|
1170
1180
|
},
|
|
1171
1181
|
style: {
|
|
1172
1182
|
marginTop: "16px",
|
|
@@ -1176,10 +1186,10 @@ const uniqueVintagePageConfig = () => ({
|
|
|
1176
1186
|
bottomSuggestionBarPDP: {
|
|
1177
1187
|
mountingConfigId: "bottomSuggestionBarPDP",
|
|
1178
1188
|
containerId: require_divIds.BOTTOM_REVIEWS_BAR_ID,
|
|
1179
|
-
testId:
|
|
1189
|
+
testId: require_embedded.BOTTOM_SUGGESTION_BAR_TESTID,
|
|
1180
1190
|
insertionPoint: {
|
|
1181
1191
|
selector: ".junip-product-review-summary-wrapper + div.junip-separator",
|
|
1182
|
-
insertionType:
|
|
1192
|
+
insertionType: require_api$1.DOMInsertionType.ADJACENT_AFTER_END,
|
|
1183
1193
|
selectionIndex: 0
|
|
1184
1194
|
},
|
|
1185
1195
|
style: {
|
|
@@ -1,11 +1,21 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
1
|
+
import "./logger-pdEEY8T2.js";
|
|
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
|
|
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";
|
|
9
19
|
import { PageVisitCategory } from "@spiffy-ai/commerce-api-client";
|
|
10
20
|
|
|
11
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 { };
|