@envive-ai/react-hooks 0.1.1 → 0.1.3
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-BtzLHcfU.cjs +268 -0
- package/dist/api-kpPTZhV9.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-BNQyGmU_.cjs +57 -0
- package/dist/atomStore-FSZd_20F.js +1 -0
- package/dist/atomStore-TnLPtYns.js +31 -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-3rHPPhkF.cjs → bandolier-CQrxBHsk.cjs} +57 -47
- package/dist/{bandolier-DpF-HUG_.js → bandolier-Di9DpZ8e.js} +18 -8
- package/dist/{carpe-BG7Q_KCG.cjs → carpe-3NJOR-Rj.cjs} +36 -26
- package/dist/{carpe-DLuc07V7.js → carpe-DmWKaIQq.js} +18 -8
- package/dist/{cdnService-CAyO3axV.js → cdnService-BNreZjqy.js} +1 -1
- package/dist/{cdnService-DIF1i7VC.cjs → cdnService-vLxePdrU.cjs} +1 -1
- package/dist/chat-CCQMmhc1.cjs +5057 -0
- package/dist/chat-CCgyDehy.cjs +151 -0
- package/dist/chat-Dk6KPb1K.js +25 -0
- package/dist/chat-H6YcCS4I.js +4113 -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 +21 -10
- package/dist/contexts/index.d.cts +12 -4
- package/dist/contexts/index.d.ts +12 -4
- package/dist/contexts/index.js +16 -5
- package/dist/{coterie-DUdvJvAs.cjs → coterie-D0UFsFC5.cjs} +26 -15
- package/dist/{coterie-FybYN_xE.js → coterie-JblRmIZL.js} +19 -8
- package/dist/customerService-C4wc0glQ.js +22 -0
- package/dist/customerService-zsDlp7g2.cjs +35 -0
- package/dist/custservice-types-D8Npo-5Z.js +22 -0
- package/dist/custservice-types-E9_OSaZ7.cjs +34 -0
- package/dist/default-C5ZTV8HA.cjs +4 -0
- package/dist/{default-CL94oJfj.js → default-DPv8m-eQ.js} +1 -1
- package/dist/{default-CKyjzyLc.cjs → default-DRKBosow.cjs} +1 -1
- package/dist/default-ao0vRl0W.js +4 -0
- package/dist/divIds-BWvq-i6I.js +22 -0
- package/dist/{divIds-BOqjn3bE.cjs → divIds-CFyAjjp3.cjs} +6 -79
- package/dist/{dreamlandBaby-WXcbsTXO.js → dreamlandBaby-CyS8oW8X.js} +18 -8
- package/dist/{dreamlandBaby-C8yzW4Nl.cjs → dreamlandBaby-y7kSvwH2.cjs} +29 -19
- 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-DgFzlVJR.js +77 -0
- package/dist/events-bH-24eRW.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-CXVuIBiZ.cjs} +33 -23
- package/dist/{fiveCbd-kl6CoxoF.js → fiveCbd-Cyc3-Ab9.js} +18 -8
- package/dist/{forLoveAndLemons-BNu-PfFB.cjs → forLoveAndLemons-CxQS0USq.cjs} +18 -10
- package/dist/{forLoveAndLemons-BD2qh-6B.js → forLoveAndLemons-D8mcgmdk.js} +14 -6
- 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-JM6SHcqO.js} +18 -8
- package/dist/{greenpan-D6fDmjU8.cjs → greenpan-eIzyxVsn.cjs} +31 -21
- package/dist/{grooveLife-D-1qfxwj.js → grooveLife-BmsUc2cD.js} +19 -9
- package/dist/{grooveLife-CcylXabB.cjs → grooveLife-KdTizVUn.cjs} +30 -20
- package/dist/{homegrownCannabis-BEZzwFlm.cjs → homegrownCannabis-C0GDai4r.cjs} +28 -17
- package/dist/{homegrownCannabis-BScZhy9v.js → homegrownCannabis-a9udocBT.js} +18 -7
- package/dist/hooks/index.cjs +38 -27
- package/dist/hooks/index.d.cts +20 -310
- package/dist/hooks/index.d.ts +16 -307
- package/dist/hooks/index.js +16 -5
- package/dist/{contexts-C4Iz162H.cjs → hooks-DjOa7ihH.cjs} +300 -4600
- package/dist/{contexts-Dq7tO_0y.js → hooks-fneW8SWw.js} +121 -4428
- package/dist/index-BQErGgfM.d.cts +202 -0
- package/dist/index-BdNKc2ix.d.cts +8 -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-CnqHN_jz.d.ts +202 -0
- package/dist/index-Cqg6ltII.d.ts +38 -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-BwMClqMP.cjs → jackArcher-B6OJ0N3a.cjs} +35 -25
- package/dist/{jackArcher-cJJVulZ9.js → jackArcher-B9fe4Hv8.js} +18 -8
- package/dist/{jordanCraig-DGsCO2o1.cjs → jordanCraig-0CB_m_ts.cjs} +78 -68
- package/dist/{jordanCraig-DNDMT0hn.js → jordanCraig-DNm1iw1L.js} +18 -8
- package/dist/{kindredBravely-ROyesnVk.js → kindredBravely-CZgt7DJA.js} +17 -7
- package/dist/{kindredBravely-wV2XT1r_.cjs → kindredBravely-KvYPbckZ.cjs} +28 -18
- package/dist/{kutFromTheKloth-B6GR8tO9.cjs → kutFromTheKloth-BxgtWZs9.cjs} +29 -19
- package/dist/{kutFromTheKloth-BCUOHegv.js → kutFromTheKloth-SmteSZjk.js} +18 -8
- package/dist/{larryAndSerges-CIqB9tKz.cjs → larryAndSerges-6O_u3L90.cjs} +21 -12
- package/dist/{larryAndSerges-CqS02fnX.js → larryAndSerges-DO-zG8ES.js} +14 -5
- package/dist/{leapsAndRebounds-j4YqSvNb.js → leapsAndRebounds-BK62AmXw.js} +18 -8
- package/dist/{leapsAndRebounds-CFj9F_z1.cjs → leapsAndRebounds-gPsWVUmQ.cjs} +31 -21
- package/dist/locators-C2DX_nX6.js +1 -0
- package/dist/locators-CUpyd9Wt.cjs +0 -0
- package/dist/logger-Be0NyKaY.cjs +25 -0
- package/dist/logger-BexDfK3W.js +19 -0
- package/dist/{longevityrx-C-Yc5LPR.cjs → longevityrx-DjKbwJo3.cjs} +26 -16
- package/dist/{longevityrx-9sUQZCVZ.js → longevityrx-eq5TeUcy.js} +18 -8
- package/dist/{lookOptic-dbaaorhR.cjs → lookOptic-BPPqms_j.cjs} +26 -16
- package/dist/{lookOptic-CQryypdM.js → lookOptic-jRpBXQCN.js} +18 -8
- package/dist/{mantraBrand-CifBQtHp.js → mantraBrand-BZOZfkUK.js} +19 -9
- package/dist/{mantraBrand-D5MTZ6Mj.cjs → mantraBrand-Cp8zptkj.cjs} +47 -37
- package/dist/{medterra-BCrXdmFE.cjs → medterra-BHYCBgvQ.cjs} +38 -28
- package/dist/{medterra-DhENCf-m.js → medterra-CShe6CLY.js} +18 -8
- package/dist/{modells-C_P_894S.cjs → modells-DE7-gmjK.cjs} +32 -22
- package/dist/{modells-aQrV10D7.js → modells-DFyJxNwT.js} +18 -8
- package/dist/nodeSelector-DpKXszfU.d.ts +30 -0
- package/dist/nodeSelector-vKB44CDB.d.cts +30 -0
- package/dist/org-Bkn6fl6I.cjs +106 -0
- package/dist/org-CX8HFbc9.js +63 -0
- package/dist/{pressedFloral-DErfwwl0.cjs → pressedFloral-BMkCVs8c.cjs} +37 -27
- package/dist/{pressedFloral-D-amnTQK.js → pressedFloral-aK9br-LF.js} +18 -8
- package/dist/search-DtIFZeMA.cjs +743 -0
- package/dist/search-eWwg8pNn.js +542 -0
- package/dist/search-filter-types-ByJnFPc4.d.cts +101 -0
- package/dist/search-filter-types-DPgeG8FS.d.ts +101 -0
- package/dist/{skinPerfection-DRVPJp3h.js → skinPerfection-B9G6yLM2.js} +18 -8
- package/dist/{skinPerfection-DF6nQXjh.cjs → skinPerfection-BBC1q65Z.cjs} +26 -16
- package/dist/{snapSupplements-CLZjItJi.cjs → snapSupplements-D7hx6Kgj.cjs} +26 -16
- package/dist/{snapSupplements-Yxs4jgC-.js → snapSupplements-DKvJl__T.js} +18 -8
- package/dist/{spanx-Cpbot5J5.cjs → spanx-D-ZKkxjM.cjs} +32 -22
- package/dist/{spanx-DVDyAyFC.js → spanx-yl7YfVrf.js} +20 -10
- package/dist/{spanxStaging-DbaVonN6.cjs → spanxStaging-CXeIg6zI.cjs} +36 -26
- package/dist/{spanxStaging-DAiFEMRU.js → spanxStaging-DzGXL9wD.js} +20 -10
- package/dist/suggestionBarV2-types-B0RbMStE.js +9 -0
- package/dist/suggestionBarV2-types-DG3Ekk44.cjs +15 -0
- package/dist/{supergoop-B5VQlsoe.cjs → supergoop-CSpDPOpl.cjs} +29 -18
- package/dist/{supergoop-C4McrZPT.js → supergoop-D0UkuRiA.js} +18 -7
- 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-DZzSQ5a6.js → types-C3S1H4hl.js} +58 -58
- package/dist/types-TD8g7LnH.d.ts +32 -0
- package/dist/{types-QJObznro.cjs → types-lcjuhDBt.cjs} +58 -58
- package/dist/{uniqueVintage-BLp_UtBR.cjs → uniqueVintage-DygVpCqU.cjs} +48 -38
- package/dist/{uniqueVintage-CS4TgOJW.js → uniqueVintage-_n0FZFVj.js} +18 -8
- package/dist/useMessageInterceptor-BP6gzo8a.js +57 -0
- package/dist/useMessageInterceptor-BnUG2Pzt.cjs +72 -0
- package/dist/utilityTypes-DMdsI0DG.cjs +0 -0
- package/dist/utilityTypes-UWdNHElu.js +1 -0
- package/dist/variant-DH4zusMi.d.cts +12 -0
- package/dist/variant-DTEqSBHd.d.ts +12 -0
- package/dist/variantInfo-BTvC6CQh.js +1 -0
- package/dist/variantInfo-Cz2YXraO.cjs +0 -0
- package/dist/{venaCbd-DfnFV7Qp.js → venaCbd-BS0dvdBm.js} +18 -8
- package/dist/{venaCbd-BxmadOeJ.cjs → venaCbd-Pqg0bj-P.cjs} +31 -21
- package/dist/{westonJonBoucher-C0FE4Wup.js → westonJonBoucher-CLw8Hy6u.js} +18 -8
- package/dist/{westonJonBoucher-BZdusJgo.cjs → westonJonBoucher-CeA0jwxe.cjs} +31 -21
- package/dist/{wineEnthusiast-CmhNg47M.js → wineEnthusiast-M9P18d1w.js} +18 -8
- package/dist/{wineEnthusiast-DQxdV8Yg.cjs → wineEnthusiast-gHBaQMbe.cjs} +30 -20
- package/dist/{wolfMattress-vMvqmwgI.js → wolfMattress-BQHjoQYu.js} +18 -7
- package/dist/{wolfMattress-CqyOUgPB.cjs → wolfMattress-CdmN-Evm.cjs} +30 -19
- package/dist/{wolfTactical-DvqxZtoA.js → wolfTactical-Cc2ZLBRh.js} +18 -8
- package/dist/{wolfTactical-q3TVDP85.cjs → wolfTactical-dObnPgAG.cjs} +30 -20
- 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/contexts/systemSettingsContext.tsx +21 -8
- package/src/events/registerAnalyticsListeners.ts +13 -9
- package/src/hooks/useFileUpload.ts +9 -7
- package/src/hooks/useSearch.tsx +9 -6
- 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/src/types/search-filter-types.ts +7 -7
- 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/{entrypoints-RmIbdYxh.js → entrypoints-CmmOszXO.js} +0 -0
- /package/dist/{entrypoints-C8JwiMYA.cjs → entrypoints-fowCLUT2.cjs} +0 -0
- /package/dist/{enviveConfigContext-Dfr2VH6u.cjs → enviveConfigContext-Bs8kepnO.cjs} +0 -0
- /package/dist/{enviveConfigContext-CUGLpPGU.js → enviveConfigContext-CWVdVWKW.js} +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,11 +1,21 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
const
|
|
4
|
-
require('./
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
1
|
+
require('./events-bH-24eRW.cjs');
|
|
2
|
+
require('./logger-Be0NyKaY.cjs');
|
|
3
|
+
const require_chat = require('./chat-CCQMmhc1.cjs');
|
|
4
|
+
const require_types = require('./types-lcjuhDBt.cjs');
|
|
5
|
+
require('./enviveConfigContext-Bs8kepnO.cjs');
|
|
6
|
+
require('./atomStore-BNQyGmU_.cjs');
|
|
7
|
+
require('./api-BtzLHcfU.cjs');
|
|
8
|
+
require('./customerService-zsDlp7g2.cjs');
|
|
9
|
+
require('./utilityTypes-DMdsI0DG.cjs');
|
|
10
|
+
require('./variantInfo-Cz2YXraO.cjs');
|
|
11
|
+
const require_suggestionBarV2_types = require('./suggestionBarV2-types-DG3Ekk44.cjs');
|
|
12
|
+
const require_divIds = require('./divIds-CFyAjjp3.cjs');
|
|
13
|
+
const require_cdnService = require('./cdnService-vLxePdrU.cjs');
|
|
14
|
+
require('./chat-CCgyDehy.cjs');
|
|
15
|
+
require('./components-CScS7Ii-.cjs');
|
|
16
|
+
const require_embedded = require('./embedded-BlXJUbik.cjs');
|
|
17
|
+
require('./locators-CUpyd9Wt.cjs');
|
|
18
|
+
const require_default = require('./default-DRKBosow.cjs');
|
|
9
19
|
|
|
10
20
|
//#region src/merchants/modells/modells.ts
|
|
11
21
|
const modellsColors = {
|
|
@@ -242,7 +252,7 @@ const modellsPageConfig = () => ({
|
|
|
242
252
|
type: require_types.WidgetType.SuggestionBarV2,
|
|
243
253
|
widgetConfigId: "topSuggestionBarHats",
|
|
244
254
|
contentId: "spiffy-top-suggestion-bar-contents",
|
|
245
|
-
metricDisplayLocation:
|
|
255
|
+
metricDisplayLocation: require_chat.ChatElementDisplayLocation.TOP_REVIEWS_SNIPPET,
|
|
246
256
|
location: require_suggestionBarV2_types.SuggestionBarLocationForMetrics.SUGGESTION_BAR_TOP,
|
|
247
257
|
variant: "secondary",
|
|
248
258
|
buttonBorderRadius: "md",
|
|
@@ -260,7 +270,7 @@ const modellsPageConfig = () => ({
|
|
|
260
270
|
type: require_types.WidgetType.SuggestionBarV2,
|
|
261
271
|
widgetConfigId: "topSuggestionBarFanShop",
|
|
262
272
|
contentId: "spiffy-top-suggestion-bar-contents",
|
|
263
|
-
metricDisplayLocation:
|
|
273
|
+
metricDisplayLocation: require_chat.ChatElementDisplayLocation.TOP_REVIEWS_SNIPPET,
|
|
264
274
|
location: require_suggestionBarV2_types.SuggestionBarLocationForMetrics.SUGGESTION_BAR_TOP,
|
|
265
275
|
variant: "secondary",
|
|
266
276
|
buttonBorderRadius: "md",
|
|
@@ -279,7 +289,7 @@ const modellsPageConfig = () => ({
|
|
|
279
289
|
type: require_types.WidgetType.SuggestionBarV2,
|
|
280
290
|
widgetConfigId: "topSuggestionBarCamping",
|
|
281
291
|
contentId: "spiffy-top-suggestion-bar-contents",
|
|
282
|
-
metricDisplayLocation:
|
|
292
|
+
metricDisplayLocation: require_chat.ChatElementDisplayLocation.TOP_REVIEWS_SNIPPET,
|
|
283
293
|
location: require_suggestionBarV2_types.SuggestionBarLocationForMetrics.SUGGESTION_BAR_TOP,
|
|
284
294
|
variant: "secondary",
|
|
285
295
|
buttonBorderRadius: "md",
|
|
@@ -297,7 +307,7 @@ const modellsPageConfig = () => ({
|
|
|
297
307
|
type: require_types.WidgetType.SuggestionBarV2,
|
|
298
308
|
widgetConfigId: "topSuggestionBarSupplements",
|
|
299
309
|
contentId: "spiffy-top-suggestion-bar-contents",
|
|
300
|
-
metricDisplayLocation:
|
|
310
|
+
metricDisplayLocation: require_chat.ChatElementDisplayLocation.TOP_REVIEWS_SNIPPET,
|
|
301
311
|
location: require_suggestionBarV2_types.SuggestionBarLocationForMetrics.SUGGESTION_BAR_TOP,
|
|
302
312
|
variant: "secondary",
|
|
303
313
|
buttonBorderRadius: "md",
|
|
@@ -315,7 +325,7 @@ const modellsPageConfig = () => ({
|
|
|
315
325
|
type: require_types.WidgetType.SuggestionBarV2,
|
|
316
326
|
widgetConfigId: "topSuggestionBarGolf",
|
|
317
327
|
contentId: "spiffy-top-suggestion-bar-contents",
|
|
318
|
-
metricDisplayLocation:
|
|
328
|
+
metricDisplayLocation: require_chat.ChatElementDisplayLocation.TOP_REVIEWS_SNIPPET,
|
|
319
329
|
location: require_suggestionBarV2_types.SuggestionBarLocationForMetrics.SUGGESTION_BAR_TOP,
|
|
320
330
|
variant: "secondary",
|
|
321
331
|
buttonBorderRadius: "md",
|
|
@@ -333,7 +343,7 @@ const modellsPageConfig = () => ({
|
|
|
333
343
|
type: require_types.WidgetType.SuggestionBarV2,
|
|
334
344
|
widgetConfigId: "topSuggestionBarDrinkware",
|
|
335
345
|
contentId: "spiffy-top-suggestion-bar-contents",
|
|
336
|
-
metricDisplayLocation:
|
|
346
|
+
metricDisplayLocation: require_chat.ChatElementDisplayLocation.TOP_REVIEWS_SNIPPET,
|
|
337
347
|
location: require_suggestionBarV2_types.SuggestionBarLocationForMetrics.SUGGESTION_BAR_TOP,
|
|
338
348
|
variant: "secondary",
|
|
339
349
|
buttonBorderRadius: "md",
|
|
@@ -352,7 +362,7 @@ const modellsPageConfig = () => ({
|
|
|
352
362
|
type: require_types.WidgetType.SuggestionBarV2,
|
|
353
363
|
widgetConfigId: "topSuggestionBar",
|
|
354
364
|
contentId: "spiffy-top-suggestion-bar-contents",
|
|
355
|
-
metricDisplayLocation:
|
|
365
|
+
metricDisplayLocation: require_chat.ChatElementDisplayLocation.TOP_REVIEWS_SNIPPET,
|
|
356
366
|
location: require_suggestionBarV2_types.SuggestionBarLocationForMetrics.SUGGESTION_BAR_TOP,
|
|
357
367
|
variant: "secondary",
|
|
358
368
|
buttonBorderRadius: "md",
|
|
@@ -426,12 +436,12 @@ const modellsPageConfig = () => ({
|
|
|
426
436
|
chatPreviewPLP: {
|
|
427
437
|
mountingConfigId: "chatPreviewPLP",
|
|
428
438
|
containerId: require_divIds.CHAT_PREVIEW_CONTAINER_ID,
|
|
429
|
-
testId:
|
|
439
|
+
testId: require_embedded.CHAT_PREVIEW_TESTID,
|
|
430
440
|
insertionPoint: {
|
|
431
441
|
selector: "#product-grid",
|
|
432
|
-
insertionType:
|
|
442
|
+
insertionType: require_chat.DOMInsertionType.AFTER
|
|
433
443
|
},
|
|
434
|
-
gridInsertionType:
|
|
444
|
+
gridInsertionType: require_chat.GridInsertionType.FIXED_4,
|
|
435
445
|
style: {
|
|
436
446
|
paddingBottom: "8px",
|
|
437
447
|
borderTop: `solid 1px ${modellsColors[require_types.ColorNames.BorderLight]}`,
|
|
@@ -443,19 +453,19 @@ const modellsPageConfig = () => ({
|
|
|
443
453
|
chatPreviewPDP: {
|
|
444
454
|
mountingConfigId: "chatPreviewPDP",
|
|
445
455
|
containerId: require_divIds.CHAT_PREVIEW_CONTAINER_ID,
|
|
446
|
-
testId:
|
|
456
|
+
testId: require_embedded.CHAT_PREVIEW_TESTID,
|
|
447
457
|
insertionPoint: {
|
|
448
458
|
selector: ".product__description",
|
|
449
|
-
insertionType:
|
|
459
|
+
insertionType: require_chat.DOMInsertionType.APPEND_CHILD
|
|
450
460
|
}
|
|
451
461
|
},
|
|
452
462
|
topSuggestionBarPDP: {
|
|
453
463
|
mountingConfigId: "topSuggestionBarPDP",
|
|
454
464
|
containerId: require_divIds.TOP_SUGGESTION_BAR_PDP_ID,
|
|
455
|
-
testId:
|
|
465
|
+
testId: require_embedded.TOP_SUGGESTION_BAR_TESTID,
|
|
456
466
|
insertionPoint: {
|
|
457
467
|
selector: ".main__price",
|
|
458
|
-
insertionType:
|
|
468
|
+
insertionType: require_chat.DOMInsertionType.AFTER
|
|
459
469
|
}
|
|
460
470
|
}
|
|
461
471
|
}
|
|
@@ -1,11 +1,21 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import "./
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
1
|
+
import "./events-DgFzlVJR.js";
|
|
2
|
+
import "./logger-BexDfK3W.js";
|
|
3
|
+
import { ChatElementDisplayLocation, DOMInsertionType, GridInsertionType } from "./chat-H6YcCS4I.js";
|
|
4
|
+
import { ColorNames, OrgShortName, PageVariantTestType, WidgetType } from "./types-C3S1H4hl.js";
|
|
5
|
+
import "./enviveConfigContext-CWVdVWKW.js";
|
|
6
|
+
import "./atomStore-TnLPtYns.js";
|
|
7
|
+
import "./api-kpPTZhV9.js";
|
|
8
|
+
import "./customerService-C4wc0glQ.js";
|
|
9
|
+
import "./utilityTypes-UWdNHElu.js";
|
|
10
|
+
import "./variantInfo-BTvC6CQh.js";
|
|
11
|
+
import { SuggestionBarLocationForMetrics } from "./suggestionBarV2-types-B0RbMStE.js";
|
|
12
|
+
import { CHAT_PREVIEW_CONTAINER_ID, TOP_SUGGESTION_BAR_PDP_ID } from "./divIds-BWvq-i6I.js";
|
|
13
|
+
import { CdnService } from "./cdnService-BNreZjqy.js";
|
|
14
|
+
import "./chat-Dk6KPb1K.js";
|
|
15
|
+
import "./components-DAQxVIn9.js";
|
|
16
|
+
import { CHAT_PREVIEW_TESTID, TOP_SUGGESTION_BAR_TESTID } from "./embedded-C1jvFj3v.js";
|
|
17
|
+
import "./locators-C2DX_nX6.js";
|
|
18
|
+
import { defaultOrgUIConfig } from "./default-DPv8m-eQ.js";
|
|
9
19
|
|
|
10
20
|
//#region src/merchants/modells/modells.ts
|
|
11
21
|
const modellsColors = {
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
//#region src/application/utils/mouseEventTypes.d.ts
|
|
2
|
+
type MouseEventTypes = 'click' | 'dblclick' | 'mouseup' | 'mousedown';
|
|
3
|
+
//#endregion
|
|
4
|
+
//#region src/application/utils/nodeSelector.d.ts
|
|
5
|
+
declare abstract class NodeSelector {
|
|
6
|
+
private pattern;
|
|
7
|
+
private root;
|
|
8
|
+
constructor(pattern: string);
|
|
9
|
+
getPattern(): string;
|
|
10
|
+
setRoot(root: Document): void;
|
|
11
|
+
getRoot(): Document;
|
|
12
|
+
abstract parse(): Node | null;
|
|
13
|
+
}
|
|
14
|
+
declare class ChainSelector extends NodeSelector {
|
|
15
|
+
parse(): Node | null;
|
|
16
|
+
}
|
|
17
|
+
declare class Empty extends NodeSelector {
|
|
18
|
+
constructor();
|
|
19
|
+
parse(): Node | null;
|
|
20
|
+
}
|
|
21
|
+
declare class SelectorFactory {
|
|
22
|
+
static parse(composedSelector?: string): NodeSelector;
|
|
23
|
+
static check(selector?: NodeSelector): NodeSelector;
|
|
24
|
+
static chain(pattern?: string): Empty | ChainSelector;
|
|
25
|
+
static id(pattern?: string): NodeSelector;
|
|
26
|
+
static query(pattern?: string): NodeSelector;
|
|
27
|
+
static xpath(pattern?: string): NodeSelector;
|
|
28
|
+
}
|
|
29
|
+
//#endregion
|
|
30
|
+
export { MouseEventTypes, NodeSelector, SelectorFactory };
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
//#region src/application/utils/mouseEventTypes.d.ts
|
|
2
|
+
type MouseEventTypes = 'click' | 'dblclick' | 'mouseup' | 'mousedown';
|
|
3
|
+
//#endregion
|
|
4
|
+
//#region src/application/utils/nodeSelector.d.ts
|
|
5
|
+
declare abstract class NodeSelector {
|
|
6
|
+
private pattern;
|
|
7
|
+
private root;
|
|
8
|
+
constructor(pattern: string);
|
|
9
|
+
getPattern(): string;
|
|
10
|
+
setRoot(root: Document): void;
|
|
11
|
+
getRoot(): Document;
|
|
12
|
+
abstract parse(): Node | null;
|
|
13
|
+
}
|
|
14
|
+
declare class ChainSelector extends NodeSelector {
|
|
15
|
+
parse(): Node | null;
|
|
16
|
+
}
|
|
17
|
+
declare class Empty extends NodeSelector {
|
|
18
|
+
constructor();
|
|
19
|
+
parse(): Node | null;
|
|
20
|
+
}
|
|
21
|
+
declare class SelectorFactory {
|
|
22
|
+
static parse(composedSelector?: string): NodeSelector;
|
|
23
|
+
static check(selector?: NodeSelector): NodeSelector;
|
|
24
|
+
static chain(pattern?: string): Empty | ChainSelector;
|
|
25
|
+
static id(pattern?: string): NodeSelector;
|
|
26
|
+
static query(pattern?: string): NodeSelector;
|
|
27
|
+
static xpath(pattern?: string): NodeSelector;
|
|
28
|
+
}
|
|
29
|
+
//#endregion
|
|
30
|
+
export { MouseEventTypes, NodeSelector, SelectorFactory };
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
const require_chunk = require('./chunk-CUT6urMc.cjs');
|
|
2
|
+
const require_chat = require('./chat-CCQMmhc1.cjs');
|
|
3
|
+
const require_types = require('./types-lcjuhDBt.cjs');
|
|
4
|
+
let jotai = require("jotai");
|
|
5
|
+
jotai = require_chunk.__toESM(jotai);
|
|
6
|
+
|
|
7
|
+
//#region src/atoms/org/orgPageConfig.ts
|
|
8
|
+
const internalInjectedPageVariantsAtom = (0, jotai.atom)([]);
|
|
9
|
+
const orgPageConfigAtom = (0, jotai.atom)(async (get) => {
|
|
10
|
+
const orgConfig = get(require_chat.orgConfigAtom);
|
|
11
|
+
const orgInfo = await require_types.getOrgInfo(orgConfig.org.org.shortName);
|
|
12
|
+
const frontendConfig = get(require_chat.frontendConfigAtom);
|
|
13
|
+
const injectedPageVariants = get(internalInjectedPageVariantsAtom);
|
|
14
|
+
const OverridenOrgPageConfig = { ...orgInfo.orgPageConfig() };
|
|
15
|
+
if (frontendConfig?.mountingConfigs) OverridenOrgPageConfig.mountingConfigs = frontendConfig.mountingConfigs;
|
|
16
|
+
if (frontendConfig?.widgetConfigs) OverridenOrgPageConfig.widgetConfigs = frontendConfig.widgetConfigs;
|
|
17
|
+
if (frontendConfig?.pageVariants) OverridenOrgPageConfig.pageVariants = frontendConfig.pageVariants;
|
|
18
|
+
if (injectedPageVariants.length > 0) OverridenOrgPageConfig.pageVariants = [...injectedPageVariants];
|
|
19
|
+
return OverridenOrgPageConfig;
|
|
20
|
+
}, (_, set, pageVariants) => {
|
|
21
|
+
set(internalInjectedPageVariantsAtom, pageVariants);
|
|
22
|
+
});
|
|
23
|
+
|
|
24
|
+
//#endregion
|
|
25
|
+
//#region src/atoms/org/customerService.ts
|
|
26
|
+
const isBusinessHoursAtom = (0, jotai.atom)(true);
|
|
27
|
+
const isCustomerServiceOpenAtom = (0, jotai.atom)(false);
|
|
28
|
+
const customerServiceResponseAtom = (0, jotai.atom)();
|
|
29
|
+
const customerServiceChatStateAtom = (0, jotai.atom)();
|
|
30
|
+
const customerServiceAttachment = (0, jotai.atom)();
|
|
31
|
+
|
|
32
|
+
//#endregion
|
|
33
|
+
//#region src/atoms/org/merchantCss.ts
|
|
34
|
+
const orgMerchantCssAtom = (0, jotai.atom)(async (get) => {
|
|
35
|
+
const orgUIConfig = get(require_chat.orgUIConfigAtom);
|
|
36
|
+
const colors = await get(require_chat.colorsConfigAtom);
|
|
37
|
+
const merchantThemeCss = colors ? `
|
|
38
|
+
|
|
39
|
+
* {
|
|
40
|
+
--spiffy-colors-text-primary: ${colors[require_types.ColorNames.TextPrimary]};
|
|
41
|
+
--spiffy-colors-text-secondary: ${colors[require_types.ColorNames.TextSecondary]};
|
|
42
|
+
--spiffy-colors-text-accent: ${colors[require_types.ColorNames.TextAccent]};
|
|
43
|
+
--spiffy-colors-text-link: ${colors[require_types.ColorNames.TextLink]};
|
|
44
|
+
--spiffy-colors-text-light: ${colors[require_types.ColorNames.TextLight]};
|
|
45
|
+
--spiffy-colors-background-primary: ${colors[require_types.ColorNames.BackgroundPrimary]};
|
|
46
|
+
--spiffy-colors-background-secondary: ${colors[require_types.ColorNames.BackgroundSecondary]};
|
|
47
|
+
--spiffy-colors-background-secondary-dark: ${colors[require_types.ColorNames.BackgroundSecondaryDark]};
|
|
48
|
+
--spiffy-colors-background-tertiary: ${colors[require_types.ColorNames.BackgroundTertiary]};
|
|
49
|
+
--spiffy-colors-background-dark: ${colors[require_types.ColorNames.BackgroundDark]};
|
|
50
|
+
--spiffy-colors-background-light: ${colors[require_types.ColorNames.BackgroundLight]};
|
|
51
|
+
--spiffy-colors-background-saturated: ${colors[require_types.ColorNames.BackgroundSaturated]};
|
|
52
|
+
--spiffy-colors-border-light: ${colors[require_types.ColorNames.BorderLight]};
|
|
53
|
+
--spiffy-colors-border-medium: ${colors[require_types.ColorNames.BorderMedium]};
|
|
54
|
+
--spiffy-colors-border-dark: ${colors[require_types.ColorNames.BorderDark]};
|
|
55
|
+
--spiffy-colors-border-outline: ${colors[require_types.ColorNames.BorderOutline]};
|
|
56
|
+
--spiffy-colors-accent-primary: ${colors[require_types.ColorNames.AccentPrimary]};
|
|
57
|
+
--spiffy-colors-accent-secondary: ${colors[require_types.ColorNames.AccentSecondary]};
|
|
58
|
+
}` : `
|
|
59
|
+
* {}`;
|
|
60
|
+
const merchantOverrideCss = orgUIConfig?.merchantOverrideCss;
|
|
61
|
+
return `${merchantThemeCss} ${merchantOverrideCss}`;
|
|
62
|
+
});
|
|
63
|
+
|
|
64
|
+
//#endregion
|
|
65
|
+
Object.defineProperty(exports, 'customerServiceAttachment', {
|
|
66
|
+
enumerable: true,
|
|
67
|
+
get: function () {
|
|
68
|
+
return customerServiceAttachment;
|
|
69
|
+
}
|
|
70
|
+
});
|
|
71
|
+
Object.defineProperty(exports, 'customerServiceChatStateAtom', {
|
|
72
|
+
enumerable: true,
|
|
73
|
+
get: function () {
|
|
74
|
+
return customerServiceChatStateAtom;
|
|
75
|
+
}
|
|
76
|
+
});
|
|
77
|
+
Object.defineProperty(exports, 'customerServiceResponseAtom', {
|
|
78
|
+
enumerable: true,
|
|
79
|
+
get: function () {
|
|
80
|
+
return customerServiceResponseAtom;
|
|
81
|
+
}
|
|
82
|
+
});
|
|
83
|
+
Object.defineProperty(exports, 'isBusinessHoursAtom', {
|
|
84
|
+
enumerable: true,
|
|
85
|
+
get: function () {
|
|
86
|
+
return isBusinessHoursAtom;
|
|
87
|
+
}
|
|
88
|
+
});
|
|
89
|
+
Object.defineProperty(exports, 'isCustomerServiceOpenAtom', {
|
|
90
|
+
enumerable: true,
|
|
91
|
+
get: function () {
|
|
92
|
+
return isCustomerServiceOpenAtom;
|
|
93
|
+
}
|
|
94
|
+
});
|
|
95
|
+
Object.defineProperty(exports, 'orgMerchantCssAtom', {
|
|
96
|
+
enumerable: true,
|
|
97
|
+
get: function () {
|
|
98
|
+
return orgMerchantCssAtom;
|
|
99
|
+
}
|
|
100
|
+
});
|
|
101
|
+
Object.defineProperty(exports, 'orgPageConfigAtom', {
|
|
102
|
+
enumerable: true,
|
|
103
|
+
get: function () {
|
|
104
|
+
return orgPageConfigAtom;
|
|
105
|
+
}
|
|
106
|
+
});
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { colorsConfigAtom, frontendConfigAtom, orgConfigAtom, orgUIConfigAtom } from "./chat-H6YcCS4I.js";
|
|
2
|
+
import { ColorNames, getOrgInfo } from "./types-C3S1H4hl.js";
|
|
3
|
+
import { atom } from "jotai";
|
|
4
|
+
|
|
5
|
+
//#region src/atoms/org/orgPageConfig.ts
|
|
6
|
+
const internalInjectedPageVariantsAtom = atom([]);
|
|
7
|
+
const orgPageConfigAtom = atom(async (get) => {
|
|
8
|
+
const orgConfig = get(orgConfigAtom);
|
|
9
|
+
const orgInfo = await getOrgInfo(orgConfig.org.org.shortName);
|
|
10
|
+
const frontendConfig = get(frontendConfigAtom);
|
|
11
|
+
const injectedPageVariants = get(internalInjectedPageVariantsAtom);
|
|
12
|
+
const OverridenOrgPageConfig = { ...orgInfo.orgPageConfig() };
|
|
13
|
+
if (frontendConfig?.mountingConfigs) OverridenOrgPageConfig.mountingConfigs = frontendConfig.mountingConfigs;
|
|
14
|
+
if (frontendConfig?.widgetConfigs) OverridenOrgPageConfig.widgetConfigs = frontendConfig.widgetConfigs;
|
|
15
|
+
if (frontendConfig?.pageVariants) OverridenOrgPageConfig.pageVariants = frontendConfig.pageVariants;
|
|
16
|
+
if (injectedPageVariants.length > 0) OverridenOrgPageConfig.pageVariants = [...injectedPageVariants];
|
|
17
|
+
return OverridenOrgPageConfig;
|
|
18
|
+
}, (_, set, pageVariants) => {
|
|
19
|
+
set(internalInjectedPageVariantsAtom, pageVariants);
|
|
20
|
+
});
|
|
21
|
+
|
|
22
|
+
//#endregion
|
|
23
|
+
//#region src/atoms/org/customerService.ts
|
|
24
|
+
const isBusinessHoursAtom = atom(true);
|
|
25
|
+
const isCustomerServiceOpenAtom = atom(false);
|
|
26
|
+
const customerServiceResponseAtom = atom();
|
|
27
|
+
const customerServiceChatStateAtom = atom();
|
|
28
|
+
const customerServiceAttachment = atom();
|
|
29
|
+
|
|
30
|
+
//#endregion
|
|
31
|
+
//#region src/atoms/org/merchantCss.ts
|
|
32
|
+
const orgMerchantCssAtom = atom(async (get) => {
|
|
33
|
+
const orgUIConfig = get(orgUIConfigAtom);
|
|
34
|
+
const colors = await get(colorsConfigAtom);
|
|
35
|
+
const merchantThemeCss = colors ? `
|
|
36
|
+
|
|
37
|
+
* {
|
|
38
|
+
--spiffy-colors-text-primary: ${colors[ColorNames.TextPrimary]};
|
|
39
|
+
--spiffy-colors-text-secondary: ${colors[ColorNames.TextSecondary]};
|
|
40
|
+
--spiffy-colors-text-accent: ${colors[ColorNames.TextAccent]};
|
|
41
|
+
--spiffy-colors-text-link: ${colors[ColorNames.TextLink]};
|
|
42
|
+
--spiffy-colors-text-light: ${colors[ColorNames.TextLight]};
|
|
43
|
+
--spiffy-colors-background-primary: ${colors[ColorNames.BackgroundPrimary]};
|
|
44
|
+
--spiffy-colors-background-secondary: ${colors[ColorNames.BackgroundSecondary]};
|
|
45
|
+
--spiffy-colors-background-secondary-dark: ${colors[ColorNames.BackgroundSecondaryDark]};
|
|
46
|
+
--spiffy-colors-background-tertiary: ${colors[ColorNames.BackgroundTertiary]};
|
|
47
|
+
--spiffy-colors-background-dark: ${colors[ColorNames.BackgroundDark]};
|
|
48
|
+
--spiffy-colors-background-light: ${colors[ColorNames.BackgroundLight]};
|
|
49
|
+
--spiffy-colors-background-saturated: ${colors[ColorNames.BackgroundSaturated]};
|
|
50
|
+
--spiffy-colors-border-light: ${colors[ColorNames.BorderLight]};
|
|
51
|
+
--spiffy-colors-border-medium: ${colors[ColorNames.BorderMedium]};
|
|
52
|
+
--spiffy-colors-border-dark: ${colors[ColorNames.BorderDark]};
|
|
53
|
+
--spiffy-colors-border-outline: ${colors[ColorNames.BorderOutline]};
|
|
54
|
+
--spiffy-colors-accent-primary: ${colors[ColorNames.AccentPrimary]};
|
|
55
|
+
--spiffy-colors-accent-secondary: ${colors[ColorNames.AccentSecondary]};
|
|
56
|
+
}` : `
|
|
57
|
+
* {}`;
|
|
58
|
+
const merchantOverrideCss = orgUIConfig?.merchantOverrideCss;
|
|
59
|
+
return `${merchantThemeCss} ${merchantOverrideCss}`;
|
|
60
|
+
});
|
|
61
|
+
|
|
62
|
+
//#endregion
|
|
63
|
+
export { customerServiceAttachment, customerServiceChatStateAtom, customerServiceResponseAtom, isBusinessHoursAtom, isCustomerServiceOpenAtom, orgMerchantCssAtom, orgPageConfigAtom };
|
|
@@ -1,11 +1,21 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
const
|
|
4
|
-
require('./
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
1
|
+
require('./events-bH-24eRW.cjs');
|
|
2
|
+
require('./logger-Be0NyKaY.cjs');
|
|
3
|
+
const require_chat = require('./chat-CCQMmhc1.cjs');
|
|
4
|
+
const require_types = require('./types-lcjuhDBt.cjs');
|
|
5
|
+
require('./enviveConfigContext-Bs8kepnO.cjs');
|
|
6
|
+
require('./atomStore-BNQyGmU_.cjs');
|
|
7
|
+
require('./api-BtzLHcfU.cjs');
|
|
8
|
+
require('./customerService-zsDlp7g2.cjs');
|
|
9
|
+
require('./utilityTypes-DMdsI0DG.cjs');
|
|
10
|
+
require('./variantInfo-Cz2YXraO.cjs');
|
|
11
|
+
const require_suggestionBarV2_types = require('./suggestionBarV2-types-DG3Ekk44.cjs');
|
|
12
|
+
const require_divIds = require('./divIds-CFyAjjp3.cjs');
|
|
13
|
+
const require_cdnService = require('./cdnService-vLxePdrU.cjs');
|
|
14
|
+
require('./chat-CCgyDehy.cjs');
|
|
15
|
+
require('./components-CScS7Ii-.cjs');
|
|
16
|
+
const require_embedded = require('./embedded-BlXJUbik.cjs');
|
|
17
|
+
require('./locators-CUpyd9Wt.cjs');
|
|
18
|
+
const require_default = require('./default-DRKBosow.cjs');
|
|
9
19
|
|
|
10
20
|
//#region src/merchants/pressedFloral/pressedFloral.ts
|
|
11
21
|
const pressedFloralColors = {
|
|
@@ -385,7 +395,7 @@ const pressedFloralPageConfig = () => ({
|
|
|
385
395
|
type: require_types.WidgetType.SuggestionBarV2,
|
|
386
396
|
widgetConfigId: "topSuggestionsBar",
|
|
387
397
|
contentId: "spiffy-top-suggestion-bar-contents",
|
|
388
|
-
metricDisplayLocation:
|
|
398
|
+
metricDisplayLocation: require_chat.ChatElementDisplayLocation.TOP_REVIEWS_SNIPPET,
|
|
389
399
|
location: require_suggestionBarV2_types.SuggestionBarLocationForMetrics.SUGGESTION_BAR_TOP,
|
|
390
400
|
variant: "dark",
|
|
391
401
|
hoverVariant: "secondaryDark",
|
|
@@ -401,7 +411,7 @@ const pressedFloralPageConfig = () => ({
|
|
|
401
411
|
type: require_types.WidgetType.SuggestionBarV2,
|
|
402
412
|
widgetConfigId: "topSuggestionsBarPressedFrame",
|
|
403
413
|
contentId: "spiffy-top-suggestion-bar-contents",
|
|
404
|
-
metricDisplayLocation:
|
|
414
|
+
metricDisplayLocation: require_chat.ChatElementDisplayLocation.TOP_REVIEWS_SNIPPET,
|
|
405
415
|
location: require_suggestionBarV2_types.SuggestionBarLocationForMetrics.SUGGESTION_BAR_TOP,
|
|
406
416
|
variant: "dark",
|
|
407
417
|
hoverVariant: "secondaryDark",
|
|
@@ -417,7 +427,7 @@ const pressedFloralPageConfig = () => ({
|
|
|
417
427
|
type: require_types.WidgetType.SuggestionBarV2,
|
|
418
428
|
widgetConfigId: "topSuggestionsBarBloomArrangement",
|
|
419
429
|
contentId: "spiffy-top-suggestion-bar-contents",
|
|
420
|
-
metricDisplayLocation:
|
|
430
|
+
metricDisplayLocation: require_chat.ChatElementDisplayLocation.TOP_REVIEWS_SNIPPET,
|
|
421
431
|
location: require_suggestionBarV2_types.SuggestionBarLocationForMetrics.SUGGESTION_BAR_TOP,
|
|
422
432
|
variant: "dark",
|
|
423
433
|
hoverVariant: "secondaryDark",
|
|
@@ -433,7 +443,7 @@ const pressedFloralPageConfig = () => ({
|
|
|
433
443
|
type: require_types.WidgetType.SuggestionBarV2,
|
|
434
444
|
widgetConfigId: "topSuggestionsBarBirthFlowerCollection",
|
|
435
445
|
contentId: "spiffy-top-suggestion-bar-contents",
|
|
436
|
-
metricDisplayLocation:
|
|
446
|
+
metricDisplayLocation: require_chat.ChatElementDisplayLocation.TOP_REVIEWS_SNIPPET,
|
|
437
447
|
location: require_suggestionBarV2_types.SuggestionBarLocationForMetrics.SUGGESTION_BAR_TOP,
|
|
438
448
|
variant: "dark",
|
|
439
449
|
hoverVariant: "secondaryDark",
|
|
@@ -449,7 +459,7 @@ const pressedFloralPageConfig = () => ({
|
|
|
449
459
|
type: require_types.WidgetType.SuggestionBarV2,
|
|
450
460
|
widgetConfigId: "topSuggestionsBarOrnamentCollection",
|
|
451
461
|
contentId: "spiffy-top-suggestion-bar-contents",
|
|
452
|
-
metricDisplayLocation:
|
|
462
|
+
metricDisplayLocation: require_chat.ChatElementDisplayLocation.TOP_REVIEWS_SNIPPET,
|
|
453
463
|
location: require_suggestionBarV2_types.SuggestionBarLocationForMetrics.SUGGESTION_BAR_TOP,
|
|
454
464
|
variant: "dark",
|
|
455
465
|
hoverVariant: "secondaryDark",
|
|
@@ -465,7 +475,7 @@ const pressedFloralPageConfig = () => ({
|
|
|
465
475
|
type: require_types.WidgetType.SuggestionBarV2,
|
|
466
476
|
widgetConfigId: "topSuggestionsBarPressedFloralNecklace",
|
|
467
477
|
contentId: "spiffy-top-suggestion-bar-contents",
|
|
468
|
-
metricDisplayLocation:
|
|
478
|
+
metricDisplayLocation: require_chat.ChatElementDisplayLocation.TOP_REVIEWS_SNIPPET,
|
|
469
479
|
location: require_suggestionBarV2_types.SuggestionBarLocationForMetrics.SUGGESTION_BAR_TOP,
|
|
470
480
|
variant: "dark",
|
|
471
481
|
hoverVariant: "secondaryDark",
|
|
@@ -481,7 +491,7 @@ const pressedFloralPageConfig = () => ({
|
|
|
481
491
|
type: require_types.WidgetType.SuggestionBarV2,
|
|
482
492
|
widgetConfigId: "topSuggestionsBarPressedFloralLocket",
|
|
483
493
|
contentId: "spiffy-top-suggestion-bar-contents",
|
|
484
|
-
metricDisplayLocation:
|
|
494
|
+
metricDisplayLocation: require_chat.ChatElementDisplayLocation.TOP_REVIEWS_SNIPPET,
|
|
485
495
|
location: require_suggestionBarV2_types.SuggestionBarLocationForMetrics.SUGGESTION_BAR_TOP,
|
|
486
496
|
variant: "dark",
|
|
487
497
|
hoverVariant: "secondaryDark",
|
|
@@ -555,10 +565,10 @@ const pressedFloralPageConfig = () => ({
|
|
|
555
565
|
chatPreviewPLP: {
|
|
556
566
|
mountingConfigId: "chatPreviewPLP",
|
|
557
567
|
containerId: require_divIds.CHAT_PREVIEW_CONTAINER_ID,
|
|
558
|
-
testId:
|
|
568
|
+
testId: require_embedded.CHAT_PREVIEW_TESTID,
|
|
559
569
|
insertionPoint: {
|
|
560
570
|
selector: ".grid.collection-grid",
|
|
561
|
-
insertionType:
|
|
571
|
+
insertionType: require_chat.DOMInsertionType.AFTER
|
|
562
572
|
},
|
|
563
573
|
style: {
|
|
564
574
|
marginBottom: "24px",
|
|
@@ -573,20 +583,20 @@ const pressedFloralPageConfig = () => ({
|
|
|
573
583
|
borderTop: `solid 1px ${pressedFloralColors[require_types.ColorNames.BorderLight]}`,
|
|
574
584
|
borderBottom: `solid 1px ${pressedFloralColors[require_types.ColorNames.BorderLight]}`
|
|
575
585
|
},
|
|
576
|
-
gridInsertionType:
|
|
586
|
+
gridInsertionType: require_chat.GridInsertionType.FIXED_2,
|
|
577
587
|
wrappingElement: {
|
|
578
588
|
element: "div",
|
|
579
589
|
className: "grid-item",
|
|
580
|
-
insertionType:
|
|
590
|
+
insertionType: require_chat.DOMInsertionType.AFTER
|
|
581
591
|
}
|
|
582
592
|
},
|
|
583
593
|
chatPreviewPDP: {
|
|
584
594
|
mountingConfigId: "chatPreviewPDP",
|
|
585
595
|
containerId: require_divIds.CHAT_PREVIEW_CONTAINER_ID,
|
|
586
|
-
testId:
|
|
596
|
+
testId: require_embedded.CHAT_PREVIEW_TESTID,
|
|
587
597
|
insertionPoint: {
|
|
588
598
|
selector: ".shopify-section.type_Carousel_Info_Popup, .shopify-section.type_Product_Main",
|
|
589
|
-
insertionType:
|
|
599
|
+
insertionType: require_chat.DOMInsertionType.AFTER
|
|
590
600
|
},
|
|
591
601
|
style: {
|
|
592
602
|
width: "95%",
|
|
@@ -602,30 +612,30 @@ const pressedFloralPageConfig = () => ({
|
|
|
602
612
|
topSuggestionBarPDP: {
|
|
603
613
|
mountingConfigId: "topSuggestionBarPDP",
|
|
604
614
|
containerId: require_divIds.TOP_SUGGESTION_BAR_PDP_ID,
|
|
605
|
-
testId:
|
|
615
|
+
testId: require_embedded.TOP_SUGGESTION_BAR_TESTID,
|
|
606
616
|
insertionPoint: {
|
|
607
617
|
selector: ".product-title-wrapper",
|
|
608
|
-
insertionType:
|
|
618
|
+
insertionType: require_chat.DOMInsertionType.ADJACENT_BEFORE_END
|
|
609
619
|
},
|
|
610
620
|
style: { marginTop: "15px" }
|
|
611
621
|
},
|
|
612
622
|
topSuggestionBarPDPStepNav: {
|
|
613
623
|
mountingConfigId: "topSuggestionBarPDPStepNav",
|
|
614
624
|
containerId: "spiffy-top-suggestion-bar-step-nav-id",
|
|
615
|
-
testId:
|
|
625
|
+
testId: require_embedded.TOP_SUGGESTION_BAR_TESTID,
|
|
616
626
|
insertionPoint: {
|
|
617
627
|
selector: ".step-nav > div:first-child",
|
|
618
|
-
insertionType:
|
|
628
|
+
insertionType: require_chat.DOMInsertionType.AFTER
|
|
619
629
|
},
|
|
620
630
|
style: { marginTop: "15px" }
|
|
621
631
|
},
|
|
622
632
|
topSuggestionBarPDPVariants: {
|
|
623
633
|
mountingConfigId: "topSuggestionBarPDPVariants",
|
|
624
634
|
containerId: "spiffy-top-suggestion-bar-variants-id",
|
|
625
|
-
testId:
|
|
635
|
+
testId: require_embedded.TOP_SUGGESTION_BAR_TESTID,
|
|
626
636
|
insertionPoint: {
|
|
627
637
|
selector: ".module.variants.custom-box.block-variants.scheme.color-scheme-1.same-scheme",
|
|
628
|
-
insertionType:
|
|
638
|
+
insertionType: require_chat.DOMInsertionType.BEFORE
|
|
629
639
|
},
|
|
630
640
|
style: {
|
|
631
641
|
marginBottom: "15px",
|
|
@@ -1,11 +1,21 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import "./
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
1
|
+
import "./events-DgFzlVJR.js";
|
|
2
|
+
import "./logger-BexDfK3W.js";
|
|
3
|
+
import { ChatElementDisplayLocation, DOMInsertionType, GridInsertionType } from "./chat-H6YcCS4I.js";
|
|
4
|
+
import { ColorNames, OrgShortName, PageVariantTestType, WidgetType, colorVar } from "./types-C3S1H4hl.js";
|
|
5
|
+
import "./enviveConfigContext-CWVdVWKW.js";
|
|
6
|
+
import "./atomStore-TnLPtYns.js";
|
|
7
|
+
import "./api-kpPTZhV9.js";
|
|
8
|
+
import "./customerService-C4wc0glQ.js";
|
|
9
|
+
import "./utilityTypes-UWdNHElu.js";
|
|
10
|
+
import "./variantInfo-BTvC6CQh.js";
|
|
11
|
+
import { SuggestionBarLocationForMetrics } from "./suggestionBarV2-types-B0RbMStE.js";
|
|
12
|
+
import { CHAT_PREVIEW_CONTAINER_ID, TOP_SUGGESTION_BAR_PDP_ID } from "./divIds-BWvq-i6I.js";
|
|
13
|
+
import { CdnService } from "./cdnService-BNreZjqy.js";
|
|
14
|
+
import "./chat-Dk6KPb1K.js";
|
|
15
|
+
import "./components-DAQxVIn9.js";
|
|
16
|
+
import { CHAT_PREVIEW_TESTID, TOP_SUGGESTION_BAR_TESTID } from "./embedded-C1jvFj3v.js";
|
|
17
|
+
import "./locators-C2DX_nX6.js";
|
|
18
|
+
import { defaultOrgUIConfig } from "./default-DPv8m-eQ.js";
|
|
9
19
|
|
|
10
20
|
//#region src/merchants/pressedFloral/pressedFloral.ts
|
|
11
21
|
const pressedFloralColors = {
|