@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
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { logger_default } from "./logger-BexDfK3W.js";
|
|
2
|
+
import { CustomerServiceProvider } from "@spiffy-ai/commerce-api-client";
|
|
3
|
+
|
|
4
|
+
//#region src/application/service/customerService/providers/UnsupportedCustomerService.ts
|
|
5
|
+
const UnsupportedCustomerService = {
|
|
6
|
+
provider: CustomerServiceProvider.Unsupported,
|
|
7
|
+
supportedIntegrationModes: [],
|
|
8
|
+
isEnabled: () => false,
|
|
9
|
+
onSwitchToAgent: () => {
|
|
10
|
+
logger_default.logInfo("Spiffy: Switch to Agent - Unsupported");
|
|
11
|
+
},
|
|
12
|
+
isBusinessHours: () => Promise.resolve(false)
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
//#endregion
|
|
16
|
+
//#region src/application/service/customerService/index.ts
|
|
17
|
+
const findCustomerServiceImpl = (_provider) => {
|
|
18
|
+
return UnsupportedCustomerService;
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
//#endregion
|
|
22
|
+
export { UnsupportedCustomerService, findCustomerServiceImpl };
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
const require_chunk = require('./chunk-CUT6urMc.cjs');
|
|
2
|
+
const require_logger = require('./logger-Be0NyKaY.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
|
+
|
|
6
|
+
//#region src/application/service/customerService/providers/UnsupportedCustomerService.ts
|
|
7
|
+
const UnsupportedCustomerService = {
|
|
8
|
+
provider: __spiffy_ai_commerce_api_client.CustomerServiceProvider.Unsupported,
|
|
9
|
+
supportedIntegrationModes: [],
|
|
10
|
+
isEnabled: () => false,
|
|
11
|
+
onSwitchToAgent: () => {
|
|
12
|
+
require_logger.logger_default.logInfo("Spiffy: Switch to Agent - Unsupported");
|
|
13
|
+
},
|
|
14
|
+
isBusinessHours: () => Promise.resolve(false)
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
//#endregion
|
|
18
|
+
//#region src/application/service/customerService/index.ts
|
|
19
|
+
const findCustomerServiceImpl = (_provider) => {
|
|
20
|
+
return UnsupportedCustomerService;
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
//#endregion
|
|
24
|
+
Object.defineProperty(exports, 'UnsupportedCustomerService', {
|
|
25
|
+
enumerable: true,
|
|
26
|
+
get: function () {
|
|
27
|
+
return UnsupportedCustomerService;
|
|
28
|
+
}
|
|
29
|
+
});
|
|
30
|
+
Object.defineProperty(exports, 'findCustomerServiceImpl', {
|
|
31
|
+
enumerable: true,
|
|
32
|
+
get: function () {
|
|
33
|
+
return findCustomerServiceImpl;
|
|
34
|
+
}
|
|
35
|
+
});
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
//#region src/types/custservice-types.ts
|
|
2
|
+
let ChatState = /* @__PURE__ */ function(ChatState$1) {
|
|
3
|
+
ChatState$1["INITIAL"] = "initial";
|
|
4
|
+
ChatState$1["FORM"] = "form";
|
|
5
|
+
ChatState$1["CHAT"] = "chat";
|
|
6
|
+
return ChatState$1;
|
|
7
|
+
}({});
|
|
8
|
+
let CustomerServiceOverrides = /* @__PURE__ */ function(CustomerServiceOverrides$1) {
|
|
9
|
+
CustomerServiceOverrides$1["LEGAL_MESSAGE"] = "spiffy-customer-service-legal-message";
|
|
10
|
+
CustomerServiceOverrides$1["DARK_BUTTON_CONTAINER"] = "spiffy-customer-service-dark-button-container";
|
|
11
|
+
CustomerServiceOverrides$1["DARK_BUTTON"] = "spiffy-customer-service-dark-button";
|
|
12
|
+
CustomerServiceOverrides$1["DARK_BUTTON_HOVER_TEXT"] = "spiffy-customer-service-dark-button-hover-text";
|
|
13
|
+
CustomerServiceOverrides$1["DARK_BUTTON_TEXT"] = "spiffy-customer-service-dark-button-text";
|
|
14
|
+
CustomerServiceOverrides$1["FORM_FIELD"] = "spiffy-customer-service-form-field";
|
|
15
|
+
CustomerServiceOverrides$1["AI_NAME"] = "spiffy-customer-service-ai-name";
|
|
16
|
+
CustomerServiceOverrides$1["WAITING_MESSAGE"] = "spiffy-customer-service-waiting-message";
|
|
17
|
+
CustomerServiceOverrides$1["WAITING_MESSAGE_ICON"] = "spiffy-customer-service-waiting-message-icon";
|
|
18
|
+
return CustomerServiceOverrides$1;
|
|
19
|
+
}({});
|
|
20
|
+
|
|
21
|
+
//#endregion
|
|
22
|
+
export { ChatState, CustomerServiceOverrides };
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
|
|
2
|
+
//#region src/types/custservice-types.ts
|
|
3
|
+
let ChatState = /* @__PURE__ */ function(ChatState$1) {
|
|
4
|
+
ChatState$1["INITIAL"] = "initial";
|
|
5
|
+
ChatState$1["FORM"] = "form";
|
|
6
|
+
ChatState$1["CHAT"] = "chat";
|
|
7
|
+
return ChatState$1;
|
|
8
|
+
}({});
|
|
9
|
+
let CustomerServiceOverrides = /* @__PURE__ */ function(CustomerServiceOverrides$1) {
|
|
10
|
+
CustomerServiceOverrides$1["LEGAL_MESSAGE"] = "spiffy-customer-service-legal-message";
|
|
11
|
+
CustomerServiceOverrides$1["DARK_BUTTON_CONTAINER"] = "spiffy-customer-service-dark-button-container";
|
|
12
|
+
CustomerServiceOverrides$1["DARK_BUTTON"] = "spiffy-customer-service-dark-button";
|
|
13
|
+
CustomerServiceOverrides$1["DARK_BUTTON_HOVER_TEXT"] = "spiffy-customer-service-dark-button-hover-text";
|
|
14
|
+
CustomerServiceOverrides$1["DARK_BUTTON_TEXT"] = "spiffy-customer-service-dark-button-text";
|
|
15
|
+
CustomerServiceOverrides$1["FORM_FIELD"] = "spiffy-customer-service-form-field";
|
|
16
|
+
CustomerServiceOverrides$1["AI_NAME"] = "spiffy-customer-service-ai-name";
|
|
17
|
+
CustomerServiceOverrides$1["WAITING_MESSAGE"] = "spiffy-customer-service-waiting-message";
|
|
18
|
+
CustomerServiceOverrides$1["WAITING_MESSAGE_ICON"] = "spiffy-customer-service-waiting-message-icon";
|
|
19
|
+
return CustomerServiceOverrides$1;
|
|
20
|
+
}({});
|
|
21
|
+
|
|
22
|
+
//#endregion
|
|
23
|
+
Object.defineProperty(exports, 'ChatState', {
|
|
24
|
+
enumerable: true,
|
|
25
|
+
get: function () {
|
|
26
|
+
return ChatState;
|
|
27
|
+
}
|
|
28
|
+
});
|
|
29
|
+
Object.defineProperty(exports, 'CustomerServiceOverrides', {
|
|
30
|
+
enumerable: true,
|
|
31
|
+
get: function () {
|
|
32
|
+
return CustomerServiceOverrides;
|
|
33
|
+
}
|
|
34
|
+
});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ColorNames, CustomerServiceIntegrationMode, CustomerServiceType, OrgShortName, PageVariantTestType, colorVar } from "./types-
|
|
1
|
+
import { ColorNames, CustomerServiceIntegrationMode, CustomerServiceType, OrgShortName, PageVariantTestType, colorVar } from "./types-C3S1H4hl.js";
|
|
2
2
|
|
|
3
3
|
//#region src/merchants/default.ts
|
|
4
4
|
const defaultOrgUIConfig = (orgShortName) => ({
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
//#region src/config/divIds.ts
|
|
2
|
+
const CONTAINER_ID = "spiffy-ai-container";
|
|
3
|
+
const FLOATING_BUTTON_ID = "spiffy-ai-floating-button";
|
|
4
|
+
const CHAT_PREVIEW_CONTAINER_ID = "spiffy-ai-chat-preview";
|
|
5
|
+
const GLOBAL_SEARCH_ENTRYPOINT_ID = "spiffy-ai-global-search-entrypoint";
|
|
6
|
+
const SEARCH_RESULTS_ENTRYPOINT_ID = "spiffy-ai-search-results-entrypoint";
|
|
7
|
+
const SEARCH_RESULTS_NO_OP_ID = "spiffy-ai-search-results-no-op-entrypoint";
|
|
8
|
+
const SEARCH_OVERLAY_ENTRYPOINT_ID = "spiffy-ai-search-overlay-entrypoint";
|
|
9
|
+
const HOMEPAGE_DESKTOP_GLOBAL_SEARCH_ENTRYPOINT_ID = "spiffy-ai-global-search-entrypoint-desktop-homepage";
|
|
10
|
+
const HOMEPAGE_TABLET_GLOBAL_SEARCH_ENTRYPOINT_ID = "spiffy-ai-global-search-entrypoint-tablet-homepage";
|
|
11
|
+
const HOMEPAGE_MOBILE_GLOBAL_SEARCH_ENTRYPOINT_ID = "spiffy-ai-global-search-entrypoint-mobile-homepage";
|
|
12
|
+
const MOBILE_GLOBAL_SEARCH_ENTRYPOINT_ID = "spiffy-ai-global-search-entrypoint-mobile";
|
|
13
|
+
const MOBILE_ICON_ONLY_GLOBAL_SEARCH_ENTRYPOINT_ID = "spiffy-ai-global-search-entrypoint-mobile-icon-only";
|
|
14
|
+
const TABLET_GLOBAL_SEARCH_ENTYPOINT_ID = "spiffy-ai-global-search-entrypoint-tablet";
|
|
15
|
+
const BOTTOM_REVIEWS_BAR_ID = "spiffy-bottom-reviews-bar-id";
|
|
16
|
+
const TOP_SUGGESTION_BAR_PDP_ID = "spiffy-top-suggestion-bar-id";
|
|
17
|
+
const TOP_PLP_IMAGE_BANNER_ID = "spiffy-top-plp-image-banner-id";
|
|
18
|
+
const BOTTOM_PLP_IMAGE_BANNER_ID = "spiffy-bottom-plp-image-banner-id";
|
|
19
|
+
const PROMPT_CARD_ID = "spiffy-ai-prompt-card";
|
|
20
|
+
|
|
21
|
+
//#endregion
|
|
22
|
+
export { BOTTOM_PLP_IMAGE_BANNER_ID, BOTTOM_REVIEWS_BAR_ID, CHAT_PREVIEW_CONTAINER_ID, CONTAINER_ID, FLOATING_BUTTON_ID, GLOBAL_SEARCH_ENTRYPOINT_ID, HOMEPAGE_DESKTOP_GLOBAL_SEARCH_ENTRYPOINT_ID, HOMEPAGE_MOBILE_GLOBAL_SEARCH_ENTRYPOINT_ID, HOMEPAGE_TABLET_GLOBAL_SEARCH_ENTRYPOINT_ID, MOBILE_GLOBAL_SEARCH_ENTRYPOINT_ID, MOBILE_ICON_ONLY_GLOBAL_SEARCH_ENTRYPOINT_ID, PROMPT_CARD_ID, SEARCH_OVERLAY_ENTRYPOINT_ID, SEARCH_RESULTS_ENTRYPOINT_ID, SEARCH_RESULTS_NO_OP_ID, TABLET_GLOBAL_SEARCH_ENTYPOINT_ID, TOP_PLP_IMAGE_BANNER_ID, TOP_SUGGESTION_BAR_PDP_ID };
|
|
@@ -1,20 +1,7 @@
|
|
|
1
1
|
|
|
2
|
-
//#region src/config/locators/embedded.ts
|
|
3
|
-
const BOTTOM_SUGGESTION_BAR_TESTID = "bottom-suggestion-bar-shadow-dom-container";
|
|
4
|
-
const CHAT_PREVIEW_TESTID = "chat-preview-shadow-dom-container";
|
|
5
|
-
const GLOBAL_SEARCH_ENTRYPOINT_TESTID = "global-search-entrypoint-shadow-dom-container";
|
|
6
|
-
const SEARCH_OVERLAY_HOST_TESTID = "search-overlay-host-shadow-dom-container";
|
|
7
|
-
const SEARCH_RESULTS_ENTRYPOINT_TESTID = "search-results-entrypoint-shadow-dom-container";
|
|
8
|
-
const SEARCH_RESULTS_NO_OP_ENTRYPOINT_TESTID = "search-results-no-op-shadow-dom-container";
|
|
9
|
-
const PROMPT_CARD_TESTID = "image-prompt-card-shadow-dom-container";
|
|
10
|
-
const TOP_SUGGESTION_BAR_TESTID = "top-suggestion-bar-shadow-dom-container";
|
|
11
|
-
const CHAT_PREVIEW_PDP_TESTID = "spiffy-chat-preview-pdp";
|
|
12
|
-
const CHAT_PREVIEW_PLP_TESTID = "spiffy-chat-preview-plp";
|
|
13
|
-
const TOP_SUGGESTION_BAR_PDP_TESTID = "spiffy-top-suggestion-bar-pdp";
|
|
14
|
-
const BOTTOM_SUGGESTION_BAR_PDP_TESTID = "spiffy-bottom-suggestion-bar-pdp";
|
|
15
|
-
|
|
16
|
-
//#endregion
|
|
17
2
|
//#region src/config/divIds.ts
|
|
3
|
+
const CONTAINER_ID = "spiffy-ai-container";
|
|
4
|
+
const FLOATING_BUTTON_ID = "spiffy-ai-floating-button";
|
|
18
5
|
const CHAT_PREVIEW_CONTAINER_ID = "spiffy-ai-chat-preview";
|
|
19
6
|
const GLOBAL_SEARCH_ENTRYPOINT_ID = "spiffy-ai-global-search-entrypoint";
|
|
20
7
|
const SEARCH_RESULTS_ENTRYPOINT_ID = "spiffy-ai-search-results-entrypoint";
|
|
@@ -45,40 +32,22 @@ Object.defineProperty(exports, 'BOTTOM_REVIEWS_BAR_ID', {
|
|
|
45
32
|
return BOTTOM_REVIEWS_BAR_ID;
|
|
46
33
|
}
|
|
47
34
|
});
|
|
48
|
-
Object.defineProperty(exports, 'BOTTOM_SUGGESTION_BAR_PDP_TESTID', {
|
|
49
|
-
enumerable: true,
|
|
50
|
-
get: function () {
|
|
51
|
-
return BOTTOM_SUGGESTION_BAR_PDP_TESTID;
|
|
52
|
-
}
|
|
53
|
-
});
|
|
54
|
-
Object.defineProperty(exports, 'BOTTOM_SUGGESTION_BAR_TESTID', {
|
|
55
|
-
enumerable: true,
|
|
56
|
-
get: function () {
|
|
57
|
-
return BOTTOM_SUGGESTION_BAR_TESTID;
|
|
58
|
-
}
|
|
59
|
-
});
|
|
60
35
|
Object.defineProperty(exports, 'CHAT_PREVIEW_CONTAINER_ID', {
|
|
61
36
|
enumerable: true,
|
|
62
37
|
get: function () {
|
|
63
38
|
return CHAT_PREVIEW_CONTAINER_ID;
|
|
64
39
|
}
|
|
65
40
|
});
|
|
66
|
-
Object.defineProperty(exports, '
|
|
41
|
+
Object.defineProperty(exports, 'CONTAINER_ID', {
|
|
67
42
|
enumerable: true,
|
|
68
43
|
get: function () {
|
|
69
|
-
return
|
|
44
|
+
return CONTAINER_ID;
|
|
70
45
|
}
|
|
71
46
|
});
|
|
72
|
-
Object.defineProperty(exports, '
|
|
47
|
+
Object.defineProperty(exports, 'FLOATING_BUTTON_ID', {
|
|
73
48
|
enumerable: true,
|
|
74
49
|
get: function () {
|
|
75
|
-
return
|
|
76
|
-
}
|
|
77
|
-
});
|
|
78
|
-
Object.defineProperty(exports, 'CHAT_PREVIEW_TESTID', {
|
|
79
|
-
enumerable: true,
|
|
80
|
-
get: function () {
|
|
81
|
-
return CHAT_PREVIEW_TESTID;
|
|
50
|
+
return FLOATING_BUTTON_ID;
|
|
82
51
|
}
|
|
83
52
|
});
|
|
84
53
|
Object.defineProperty(exports, 'GLOBAL_SEARCH_ENTRYPOINT_ID', {
|
|
@@ -87,12 +56,6 @@ Object.defineProperty(exports, 'GLOBAL_SEARCH_ENTRYPOINT_ID', {
|
|
|
87
56
|
return GLOBAL_SEARCH_ENTRYPOINT_ID;
|
|
88
57
|
}
|
|
89
58
|
});
|
|
90
|
-
Object.defineProperty(exports, 'GLOBAL_SEARCH_ENTRYPOINT_TESTID', {
|
|
91
|
-
enumerable: true,
|
|
92
|
-
get: function () {
|
|
93
|
-
return GLOBAL_SEARCH_ENTRYPOINT_TESTID;
|
|
94
|
-
}
|
|
95
|
-
});
|
|
96
59
|
Object.defineProperty(exports, 'HOMEPAGE_DESKTOP_GLOBAL_SEARCH_ENTRYPOINT_ID', {
|
|
97
60
|
enumerable: true,
|
|
98
61
|
get: function () {
|
|
@@ -129,42 +92,18 @@ Object.defineProperty(exports, 'PROMPT_CARD_ID', {
|
|
|
129
92
|
return PROMPT_CARD_ID;
|
|
130
93
|
}
|
|
131
94
|
});
|
|
132
|
-
Object.defineProperty(exports, 'PROMPT_CARD_TESTID', {
|
|
133
|
-
enumerable: true,
|
|
134
|
-
get: function () {
|
|
135
|
-
return PROMPT_CARD_TESTID;
|
|
136
|
-
}
|
|
137
|
-
});
|
|
138
95
|
Object.defineProperty(exports, 'SEARCH_OVERLAY_ENTRYPOINT_ID', {
|
|
139
96
|
enumerable: true,
|
|
140
97
|
get: function () {
|
|
141
98
|
return SEARCH_OVERLAY_ENTRYPOINT_ID;
|
|
142
99
|
}
|
|
143
100
|
});
|
|
144
|
-
Object.defineProperty(exports, 'SEARCH_OVERLAY_HOST_TESTID', {
|
|
145
|
-
enumerable: true,
|
|
146
|
-
get: function () {
|
|
147
|
-
return SEARCH_OVERLAY_HOST_TESTID;
|
|
148
|
-
}
|
|
149
|
-
});
|
|
150
101
|
Object.defineProperty(exports, 'SEARCH_RESULTS_ENTRYPOINT_ID', {
|
|
151
102
|
enumerable: true,
|
|
152
103
|
get: function () {
|
|
153
104
|
return SEARCH_RESULTS_ENTRYPOINT_ID;
|
|
154
105
|
}
|
|
155
106
|
});
|
|
156
|
-
Object.defineProperty(exports, 'SEARCH_RESULTS_ENTRYPOINT_TESTID', {
|
|
157
|
-
enumerable: true,
|
|
158
|
-
get: function () {
|
|
159
|
-
return SEARCH_RESULTS_ENTRYPOINT_TESTID;
|
|
160
|
-
}
|
|
161
|
-
});
|
|
162
|
-
Object.defineProperty(exports, 'SEARCH_RESULTS_NO_OP_ENTRYPOINT_TESTID', {
|
|
163
|
-
enumerable: true,
|
|
164
|
-
get: function () {
|
|
165
|
-
return SEARCH_RESULTS_NO_OP_ENTRYPOINT_TESTID;
|
|
166
|
-
}
|
|
167
|
-
});
|
|
168
107
|
Object.defineProperty(exports, 'SEARCH_RESULTS_NO_OP_ID', {
|
|
169
108
|
enumerable: true,
|
|
170
109
|
get: function () {
|
|
@@ -188,16 +127,4 @@ Object.defineProperty(exports, 'TOP_SUGGESTION_BAR_PDP_ID', {
|
|
|
188
127
|
get: function () {
|
|
189
128
|
return TOP_SUGGESTION_BAR_PDP_ID;
|
|
190
129
|
}
|
|
191
|
-
});
|
|
192
|
-
Object.defineProperty(exports, 'TOP_SUGGESTION_BAR_PDP_TESTID', {
|
|
193
|
-
enumerable: true,
|
|
194
|
-
get: function () {
|
|
195
|
-
return TOP_SUGGESTION_BAR_PDP_TESTID;
|
|
196
|
-
}
|
|
197
|
-
});
|
|
198
|
-
Object.defineProperty(exports, 'TOP_SUGGESTION_BAR_TESTID', {
|
|
199
|
-
enumerable: true,
|
|
200
|
-
get: function () {
|
|
201
|
-
return TOP_SUGGESTION_BAR_TESTID;
|
|
202
|
-
}
|
|
203
130
|
});
|
|
@@ -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 { BOTTOM_REVIEWS_BAR_ID, 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 { BOTTOM_SUGGESTION_BAR_TESTID, 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/dreamlandBaby/dreamlandBaby.ts
|
|
11
21
|
const dreamlandBabyColors = {
|
|
@@ -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/dreamlandBaby/dreamlandBaby.ts
|
|
11
21
|
const dreamlandBabyColors = {
|
|
@@ -186,7 +196,7 @@ const dreamlandBabyPageConfig = () => ({
|
|
|
186
196
|
type: require_types.WidgetType.SuggestionBarV2,
|
|
187
197
|
widgetConfigId: "topSuggestionsBar",
|
|
188
198
|
contentId: "spiffy-top-suggestion-bar-contents",
|
|
189
|
-
metricDisplayLocation:
|
|
199
|
+
metricDisplayLocation: require_chat.ChatElementDisplayLocation.TOP_REVIEWS_SNIPPET,
|
|
190
200
|
location: require_suggestionBarV2_types.SuggestionBarLocationForMetrics.SUGGESTION_BAR_TOP,
|
|
191
201
|
variant: "secondary",
|
|
192
202
|
hoverVariant: "secondaryDark",
|
|
@@ -259,7 +269,7 @@ const dreamlandBabyPageConfig = () => ({
|
|
|
259
269
|
type: require_types.WidgetType.SuggestionBarV2,
|
|
260
270
|
widgetConfigId: "bottomSuggestionsBar",
|
|
261
271
|
contentId: "spiffy-bottom-suggestion-bar-contents",
|
|
262
|
-
metricDisplayLocation:
|
|
272
|
+
metricDisplayLocation: require_chat.ChatElementDisplayLocation.BOTTOM_REVIEWS_SNIPPET,
|
|
263
273
|
location: require_suggestionBarV2_types.SuggestionBarLocationForMetrics.SUGGESTION_BAR_BOTTOM,
|
|
264
274
|
variant: "dark",
|
|
265
275
|
hoverVariant: "secondaryDark",
|
|
@@ -276,21 +286,21 @@ const dreamlandBabyPageConfig = () => ({
|
|
|
276
286
|
chatPreviewPLP: {
|
|
277
287
|
mountingConfigId: "chatPreviewPLP",
|
|
278
288
|
containerId: require_divIds.CHAT_PREVIEW_CONTAINER_ID,
|
|
279
|
-
testId:
|
|
289
|
+
testId: require_embedded.CHAT_PREVIEW_TESTID,
|
|
280
290
|
insertionPoint: {
|
|
281
291
|
selector: ".js-grid",
|
|
282
|
-
insertionType:
|
|
292
|
+
insertionType: require_chat.DOMInsertionType.AFTER
|
|
283
293
|
},
|
|
284
294
|
className: "is-plp",
|
|
285
|
-
gridInsertionType:
|
|
295
|
+
gridInsertionType: require_chat.GridInsertionType.ROW_2
|
|
286
296
|
},
|
|
287
297
|
chatPreviewPDP: {
|
|
288
298
|
mountingConfigId: "chatPreviewPDP",
|
|
289
299
|
containerId: require_divIds.CHAT_PREVIEW_CONTAINER_ID,
|
|
290
|
-
testId:
|
|
300
|
+
testId: require_embedded.CHAT_PREVIEW_TESTID,
|
|
291
301
|
insertionPoint: {
|
|
292
302
|
selector: ".product-accordion",
|
|
293
|
-
insertionType:
|
|
303
|
+
insertionType: require_chat.DOMInsertionType.BEFORE
|
|
294
304
|
},
|
|
295
305
|
style: {
|
|
296
306
|
width: "100%",
|
|
@@ -300,20 +310,20 @@ const dreamlandBabyPageConfig = () => ({
|
|
|
300
310
|
topSuggestionBarPDP: {
|
|
301
311
|
mountingConfigId: "topSuggestionBarPDP",
|
|
302
312
|
containerId: require_divIds.TOP_SUGGESTION_BAR_PDP_ID,
|
|
303
|
-
testId:
|
|
313
|
+
testId: require_embedded.TOP_SUGGESTION_BAR_TESTID,
|
|
304
314
|
insertionPoint: {
|
|
305
315
|
selector: ".product__price__main",
|
|
306
|
-
insertionType:
|
|
316
|
+
insertionType: require_chat.DOMInsertionType.AFTER
|
|
307
317
|
},
|
|
308
318
|
style: { marginTop: "16px" }
|
|
309
319
|
},
|
|
310
320
|
bottomSuggestionBarPDP: {
|
|
311
321
|
mountingConfigId: "bottomSuggestionBarPDP",
|
|
312
322
|
containerId: require_divIds.BOTTOM_REVIEWS_BAR_ID,
|
|
313
|
-
testId:
|
|
323
|
+
testId: require_embedded.BOTTOM_SUGGESTION_BAR_TESTID,
|
|
314
324
|
insertionPoint: {
|
|
315
325
|
selector: ".oke-w-header-content",
|
|
316
|
-
insertionType:
|
|
326
|
+
insertionType: require_chat.DOMInsertionType.AFTER
|
|
317
327
|
},
|
|
318
328
|
style: {
|
|
319
329
|
marginTop: "8px",
|
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
|
|
2
|
+
//#region src/config/locators/embedded.ts
|
|
3
|
+
const BOTTOM_PLP_BANNER_TESTID = "bottom-plp-image-banner";
|
|
4
|
+
const BOTTOM_SUGGESTION_BAR_TESTID = "bottom-suggestion-bar-shadow-dom-container";
|
|
5
|
+
const CHAT_PREVIEW_TESTID = "chat-preview-shadow-dom-container";
|
|
6
|
+
const GLOBAL_SEARCH_ENTRYPOINT_TESTID = "global-search-entrypoint-shadow-dom-container";
|
|
7
|
+
const SEARCH_OVERLAY_HOST_TESTID = "search-overlay-host-shadow-dom-container";
|
|
8
|
+
const SEARCH_RESULTS_ENTRYPOINT_TESTID = "search-results-entrypoint-shadow-dom-container";
|
|
9
|
+
const SEARCH_RESULTS_NO_OP_ENTRYPOINT_TESTID = "search-results-no-op-shadow-dom-container";
|
|
10
|
+
const MOBILE_SEARCH_ICON_NO_OP_ENTRYPOINT_TESTID = "mobile-search-icon-no-op-shadow-dom-container";
|
|
11
|
+
const PROMPT_CARD_TESTID = "image-prompt-card-shadow-dom-container";
|
|
12
|
+
const FLOATING_BUTTON_TESTID = "floating-button-shadow-dom-container";
|
|
13
|
+
const FLOATING_CHAT_TESTID = "floating-chat-shadow-dom-container";
|
|
14
|
+
const TAILWIND_FLOATING_CHAT_BUTTON_TESTID = "floating-chat-button";
|
|
15
|
+
const TOP_PLP_BANNER_TESTID = "top-plp-image-banner";
|
|
16
|
+
const TOP_SUGGESTION_BAR_TESTID = "top-suggestion-bar-shadow-dom-container";
|
|
17
|
+
const CHAT_PREVIEW_PDP_TESTID = "spiffy-chat-preview-pdp";
|
|
18
|
+
const CHAT_PREVIEW_PLP_TESTID = "spiffy-chat-preview-plp";
|
|
19
|
+
const TOP_SUGGESTION_BAR_PDP_TESTID = "spiffy-top-suggestion-bar-pdp";
|
|
20
|
+
const BOTTOM_SUGGESTION_BAR_PDP_TESTID = "spiffy-bottom-suggestion-bar-pdp";
|
|
21
|
+
|
|
22
|
+
//#endregion
|
|
23
|
+
Object.defineProperty(exports, 'BOTTOM_PLP_BANNER_TESTID', {
|
|
24
|
+
enumerable: true,
|
|
25
|
+
get: function () {
|
|
26
|
+
return BOTTOM_PLP_BANNER_TESTID;
|
|
27
|
+
}
|
|
28
|
+
});
|
|
29
|
+
Object.defineProperty(exports, 'BOTTOM_SUGGESTION_BAR_PDP_TESTID', {
|
|
30
|
+
enumerable: true,
|
|
31
|
+
get: function () {
|
|
32
|
+
return BOTTOM_SUGGESTION_BAR_PDP_TESTID;
|
|
33
|
+
}
|
|
34
|
+
});
|
|
35
|
+
Object.defineProperty(exports, 'BOTTOM_SUGGESTION_BAR_TESTID', {
|
|
36
|
+
enumerable: true,
|
|
37
|
+
get: function () {
|
|
38
|
+
return BOTTOM_SUGGESTION_BAR_TESTID;
|
|
39
|
+
}
|
|
40
|
+
});
|
|
41
|
+
Object.defineProperty(exports, 'CHAT_PREVIEW_PDP_TESTID', {
|
|
42
|
+
enumerable: true,
|
|
43
|
+
get: function () {
|
|
44
|
+
return CHAT_PREVIEW_PDP_TESTID;
|
|
45
|
+
}
|
|
46
|
+
});
|
|
47
|
+
Object.defineProperty(exports, 'CHAT_PREVIEW_PLP_TESTID', {
|
|
48
|
+
enumerable: true,
|
|
49
|
+
get: function () {
|
|
50
|
+
return CHAT_PREVIEW_PLP_TESTID;
|
|
51
|
+
}
|
|
52
|
+
});
|
|
53
|
+
Object.defineProperty(exports, 'CHAT_PREVIEW_TESTID', {
|
|
54
|
+
enumerable: true,
|
|
55
|
+
get: function () {
|
|
56
|
+
return CHAT_PREVIEW_TESTID;
|
|
57
|
+
}
|
|
58
|
+
});
|
|
59
|
+
Object.defineProperty(exports, 'FLOATING_BUTTON_TESTID', {
|
|
60
|
+
enumerable: true,
|
|
61
|
+
get: function () {
|
|
62
|
+
return FLOATING_BUTTON_TESTID;
|
|
63
|
+
}
|
|
64
|
+
});
|
|
65
|
+
Object.defineProperty(exports, 'FLOATING_CHAT_TESTID', {
|
|
66
|
+
enumerable: true,
|
|
67
|
+
get: function () {
|
|
68
|
+
return FLOATING_CHAT_TESTID;
|
|
69
|
+
}
|
|
70
|
+
});
|
|
71
|
+
Object.defineProperty(exports, 'GLOBAL_SEARCH_ENTRYPOINT_TESTID', {
|
|
72
|
+
enumerable: true,
|
|
73
|
+
get: function () {
|
|
74
|
+
return GLOBAL_SEARCH_ENTRYPOINT_TESTID;
|
|
75
|
+
}
|
|
76
|
+
});
|
|
77
|
+
Object.defineProperty(exports, 'MOBILE_SEARCH_ICON_NO_OP_ENTRYPOINT_TESTID', {
|
|
78
|
+
enumerable: true,
|
|
79
|
+
get: function () {
|
|
80
|
+
return MOBILE_SEARCH_ICON_NO_OP_ENTRYPOINT_TESTID;
|
|
81
|
+
}
|
|
82
|
+
});
|
|
83
|
+
Object.defineProperty(exports, 'PROMPT_CARD_TESTID', {
|
|
84
|
+
enumerable: true,
|
|
85
|
+
get: function () {
|
|
86
|
+
return PROMPT_CARD_TESTID;
|
|
87
|
+
}
|
|
88
|
+
});
|
|
89
|
+
Object.defineProperty(exports, 'SEARCH_OVERLAY_HOST_TESTID', {
|
|
90
|
+
enumerable: true,
|
|
91
|
+
get: function () {
|
|
92
|
+
return SEARCH_OVERLAY_HOST_TESTID;
|
|
93
|
+
}
|
|
94
|
+
});
|
|
95
|
+
Object.defineProperty(exports, 'SEARCH_RESULTS_ENTRYPOINT_TESTID', {
|
|
96
|
+
enumerable: true,
|
|
97
|
+
get: function () {
|
|
98
|
+
return SEARCH_RESULTS_ENTRYPOINT_TESTID;
|
|
99
|
+
}
|
|
100
|
+
});
|
|
101
|
+
Object.defineProperty(exports, 'SEARCH_RESULTS_NO_OP_ENTRYPOINT_TESTID', {
|
|
102
|
+
enumerable: true,
|
|
103
|
+
get: function () {
|
|
104
|
+
return SEARCH_RESULTS_NO_OP_ENTRYPOINT_TESTID;
|
|
105
|
+
}
|
|
106
|
+
});
|
|
107
|
+
Object.defineProperty(exports, 'TAILWIND_FLOATING_CHAT_BUTTON_TESTID', {
|
|
108
|
+
enumerable: true,
|
|
109
|
+
get: function () {
|
|
110
|
+
return TAILWIND_FLOATING_CHAT_BUTTON_TESTID;
|
|
111
|
+
}
|
|
112
|
+
});
|
|
113
|
+
Object.defineProperty(exports, 'TOP_PLP_BANNER_TESTID', {
|
|
114
|
+
enumerable: true,
|
|
115
|
+
get: function () {
|
|
116
|
+
return TOP_PLP_BANNER_TESTID;
|
|
117
|
+
}
|
|
118
|
+
});
|
|
119
|
+
Object.defineProperty(exports, 'TOP_SUGGESTION_BAR_PDP_TESTID', {
|
|
120
|
+
enumerable: true,
|
|
121
|
+
get: function () {
|
|
122
|
+
return TOP_SUGGESTION_BAR_PDP_TESTID;
|
|
123
|
+
}
|
|
124
|
+
});
|
|
125
|
+
Object.defineProperty(exports, 'TOP_SUGGESTION_BAR_TESTID', {
|
|
126
|
+
enumerable: true,
|
|
127
|
+
get: function () {
|
|
128
|
+
return TOP_SUGGESTION_BAR_TESTID;
|
|
129
|
+
}
|
|
130
|
+
});
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
//#region src/config/locators/embedded.ts
|
|
2
|
+
const BOTTOM_PLP_BANNER_TESTID = "bottom-plp-image-banner";
|
|
3
|
+
const BOTTOM_SUGGESTION_BAR_TESTID = "bottom-suggestion-bar-shadow-dom-container";
|
|
4
|
+
const CHAT_PREVIEW_TESTID = "chat-preview-shadow-dom-container";
|
|
5
|
+
const GLOBAL_SEARCH_ENTRYPOINT_TESTID = "global-search-entrypoint-shadow-dom-container";
|
|
6
|
+
const SEARCH_OVERLAY_HOST_TESTID = "search-overlay-host-shadow-dom-container";
|
|
7
|
+
const SEARCH_RESULTS_ENTRYPOINT_TESTID = "search-results-entrypoint-shadow-dom-container";
|
|
8
|
+
const SEARCH_RESULTS_NO_OP_ENTRYPOINT_TESTID = "search-results-no-op-shadow-dom-container";
|
|
9
|
+
const MOBILE_SEARCH_ICON_NO_OP_ENTRYPOINT_TESTID = "mobile-search-icon-no-op-shadow-dom-container";
|
|
10
|
+
const PROMPT_CARD_TESTID = "image-prompt-card-shadow-dom-container";
|
|
11
|
+
const FLOATING_BUTTON_TESTID = "floating-button-shadow-dom-container";
|
|
12
|
+
const FLOATING_CHAT_TESTID = "floating-chat-shadow-dom-container";
|
|
13
|
+
const TAILWIND_FLOATING_CHAT_BUTTON_TESTID = "floating-chat-button";
|
|
14
|
+
const TOP_PLP_BANNER_TESTID = "top-plp-image-banner";
|
|
15
|
+
const TOP_SUGGESTION_BAR_TESTID = "top-suggestion-bar-shadow-dom-container";
|
|
16
|
+
const CHAT_PREVIEW_PDP_TESTID = "spiffy-chat-preview-pdp";
|
|
17
|
+
const CHAT_PREVIEW_PLP_TESTID = "spiffy-chat-preview-plp";
|
|
18
|
+
const TOP_SUGGESTION_BAR_PDP_TESTID = "spiffy-top-suggestion-bar-pdp";
|
|
19
|
+
const BOTTOM_SUGGESTION_BAR_PDP_TESTID = "spiffy-bottom-suggestion-bar-pdp";
|
|
20
|
+
|
|
21
|
+
//#endregion
|
|
22
|
+
export { BOTTOM_PLP_BANNER_TESTID, BOTTOM_SUGGESTION_BAR_PDP_TESTID, BOTTOM_SUGGESTION_BAR_TESTID, CHAT_PREVIEW_PDP_TESTID, CHAT_PREVIEW_PLP_TESTID, CHAT_PREVIEW_TESTID, FLOATING_BUTTON_TESTID, FLOATING_CHAT_TESTID, GLOBAL_SEARCH_ENTRYPOINT_TESTID, MOBILE_SEARCH_ICON_NO_OP_ENTRYPOINT_TESTID, PROMPT_CARD_TESTID, SEARCH_OVERLAY_HOST_TESTID, SEARCH_RESULTS_ENTRYPOINT_TESTID, SEARCH_RESULTS_NO_OP_ENTRYPOINT_TESTID, TAILWIND_FLOATING_CHAT_BUTTON_TESTID, TOP_PLP_BANNER_TESTID, TOP_SUGGESTION_BAR_PDP_TESTID, TOP_SUGGESTION_BAR_TESTID };
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
//#region src/events/event-types.d.ts
|
|
2
|
+
declare enum SpiffyEvent {
|
|
3
|
+
AMPLITUDE_EVENT = "SPIFFY_AMPLITUDE_EVENT",
|
|
4
|
+
APP_INITIALIZED = "SPIFFY_APP_INITIALIZED",
|
|
5
|
+
CALL_MERCHANT_APP = "SPIFFY_CALL_MERCHANT_APP",
|
|
6
|
+
MOUNTING_MERCHANT_APP = "SPIFFY_MOUNTING_MERCHANT_APP",
|
|
7
|
+
CHAT_FACTORY_INITIALIZED = "SPIFFY_CHAT_FACTORY_INITIALIZED",
|
|
8
|
+
FLOATING_CHAT_RENDERING = "SPIFFY_FLOATING_CHAT_RENDERING",
|
|
9
|
+
FLOATING_CHAT_NOT_RENDERING = "SPIFFY_FLOATING_CHAT_NOT_RENDERING",
|
|
10
|
+
FLOATING_CHAT_BUTTON_RENDERING = "SPIFFY_FLOATING_CHAT_BUTTON_RENDERING",
|
|
11
|
+
SHADOW_DOM_CONTAINER_READY = "SPIFFY_SHADOW_DOM_CONTAINER_READY",
|
|
12
|
+
}
|
|
13
|
+
//#endregion
|
|
14
|
+
//#region src/events/index.d.ts
|
|
15
|
+
/**
|
|
16
|
+
* A singleton class for dispatching Spiffy events to the document object.
|
|
17
|
+
* Provides functionality for adding default event data, managing listeners,
|
|
18
|
+
* and dispatching events.
|
|
19
|
+
*
|
|
20
|
+
* TODO: could add observability to the listeners, would need to track listeners
|
|
21
|
+
* internally.
|
|
22
|
+
*/
|
|
23
|
+
declare class EventsDispatcher {
|
|
24
|
+
static eventData: Record<string, any>;
|
|
25
|
+
/**
|
|
26
|
+
* Adds event data to the eventData object, which is included by default for
|
|
27
|
+
* every event dispatched. E.g. could add in userId, variantInfo, etc. But
|
|
28
|
+
* make sure it is JSON serializable.
|
|
29
|
+
*/
|
|
30
|
+
static addEventData(data: Record<string, any>): void;
|
|
31
|
+
/**
|
|
32
|
+
* Dispatches an event with the given name and detail. If includeDefault is
|
|
33
|
+
* false, the default event data is excluded.
|
|
34
|
+
* @param eventName - the name of the event to dispatch, should be all caps
|
|
35
|
+
* and start with SPIFFY_, e.g. "SPIFFY_FLOATING_CONTAINER_CREATED"
|
|
36
|
+
* @param detail - optional parameter to include extra event data
|
|
37
|
+
* @param includeDefault - optional parameter to exclude the default event
|
|
38
|
+
* data
|
|
39
|
+
*/
|
|
40
|
+
static dispatch(eventName: string, detail?: Record<string, any>, includeDefault?: boolean): void;
|
|
41
|
+
static addListener(eventName: string, listener: (event: Event) => void): void;
|
|
42
|
+
static removeListener(eventName: string, listener: (event: Event) => void): void;
|
|
43
|
+
}
|
|
44
|
+
//#endregion
|
|
45
|
+
export { EventsDispatcher, SpiffyEvent };
|