@envive-ai/react-hooks 0.1.2 → 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 +13 -13
- package/dist/adapters/amplitude/index.js +10 -10
- package/dist/{api-B2euFL-5.cjs → api-BtzLHcfU.cjs} +27 -27
- package/dist/{api-XRr_lAG6.js → api-kpPTZhV9.js} +27 -27
- package/dist/application/config/index.cjs +1 -1
- package/dist/application/config/index.js +1 -1
- package/dist/application/models/graphql/index.cjs +12 -12
- package/dist/application/models/graphql/index.js +10 -10
- package/dist/application/models/guards/api/index.cjs +2 -2
- package/dist/application/models/guards/api/index.js +2 -2
- package/dist/application/models/index.cjs +54 -54
- package/dist/application/models/index.js +10 -10
- package/dist/application/models/utilityTypes/index.cjs +1 -1
- package/dist/application/models/utilityTypes/index.js +1 -1
- package/dist/application/models/variantInfo/index.cjs +1 -1
- package/dist/application/models/variantInfo/index.js +1 -1
- package/dist/application/service/customerService/index.cjs +2 -2
- package/dist/application/service/customerService/index.js +2 -2
- package/dist/application/service/index.cjs +82 -82
- package/dist/application/service/index.d.cts +1 -1
- package/dist/application/service/index.d.ts +1 -1
- package/dist/application/service/index.js +16 -16
- package/dist/application/utils/index.cjs +37 -37
- package/dist/application/utils/index.d.ts +1 -1
- package/dist/application/utils/index.js +10 -10
- package/dist/atoms/app/index.cjs +16 -16
- package/dist/atoms/app/index.d.cts +1 -1
- package/dist/atoms/app/index.d.ts +2 -2
- package/dist/atoms/app/index.js +10 -10
- package/dist/atoms/atomStore/index.cjs +1 -1
- package/dist/atoms/atomStore/index.js +1 -1
- package/dist/atoms/chat/index.cjs +40 -40
- package/dist/atoms/chat/index.d.cts +26 -26
- package/dist/atoms/chat/index.d.ts +28 -28
- package/dist/atoms/chat/index.js +10 -10
- package/dist/atoms/globalSearch/index.d.cts +5 -5
- package/dist/atoms/globalSearch/index.d.ts +5 -5
- package/dist/atoms/org/index.cjs +33 -33
- package/dist/atoms/org/index.d.cts +26 -26
- package/dist/atoms/org/index.d.ts +26 -26
- package/dist/atoms/org/index.js +11 -11
- package/dist/atoms/search/index.cjs +12 -12
- package/dist/atoms/search/index.d.cts +1 -1
- package/dist/atoms/search/index.d.ts +1 -1
- package/dist/atoms/search/index.js +12 -12
- package/dist/{bandolier-oMkFDJMF.cjs → bandolier-CQrxBHsk.cjs} +37 -37
- package/dist/{bandolier-C7PAIw02.js → bandolier-Di9DpZ8e.js} +12 -12
- package/dist/{carpe-C0ccKuR9.cjs → carpe-3NJOR-Rj.cjs} +23 -23
- package/dist/{carpe-DFc78_lJ.js → carpe-DmWKaIQq.js} +12 -12
- package/dist/{cdnService-DvDSpfVJ.js → cdnService-BNreZjqy.js} +1 -1
- package/dist/{cdnService-dJU3sHpF.cjs → cdnService-vLxePdrU.cjs} +1 -1
- package/dist/{api-CxGedDxj.cjs → chat-CCQMmhc1.cjs} +2807 -2807
- package/dist/{api-NJEaveju.js → chat-H6YcCS4I.js} +2774 -2774
- package/dist/contexts/index.cjs +19 -19
- package/dist/contexts/index.d.cts +3 -3
- package/dist/contexts/index.js +14 -14
- package/dist/{coterie-Cp9FAJTQ.cjs → coterie-D0UFsFC5.cjs} +17 -17
- package/dist/{coterie-BGT8hqFR.js → coterie-JblRmIZL.js} +12 -12
- package/dist/{customerService-CUyZzowx.js → customerService-C4wc0glQ.js} +1 -1
- package/dist/{customerService-DqPw_XKf.cjs → customerService-zsDlp7g2.cjs} +1 -1
- package/dist/default-C5ZTV8HA.cjs +4 -0
- package/dist/{default-wf_IORgo.js → default-DPv8m-eQ.js} +1 -1
- package/dist/{default-BAXPatxf.cjs → default-DRKBosow.cjs} +1 -1
- package/dist/default-ao0vRl0W.js +4 -0
- package/dist/{dreamlandBaby-DZvM81LQ.js → dreamlandBaby-CyS8oW8X.js} +12 -12
- package/dist/{dreamlandBaby-BzuMvUFS.cjs → dreamlandBaby-y7kSvwH2.cjs} +19 -19
- package/dist/events/index.cjs +1 -1
- package/dist/events/index.js +1 -1
- package/dist/{fiveCbd-DE-tDY3d.cjs → fiveCbd-CXVuIBiZ.cjs} +24 -24
- package/dist/{fiveCbd-HNBPqPtX.js → fiveCbd-Cyc3-Ab9.js} +12 -12
- package/dist/{forLoveAndLemons-BeVEBOiu.cjs → forLoveAndLemons-CxQS0USq.cjs} +14 -14
- package/dist/{forLoveAndLemons-BKmJJ9pq.js → forLoveAndLemons-D8mcgmdk.js} +12 -12
- package/dist/{greenpan-BX1viAZB.js → greenpan-JM6SHcqO.js} +12 -12
- package/dist/{greenpan-chd3aa5I.cjs → greenpan-eIzyxVsn.cjs} +21 -21
- package/dist/{grooveLife-CHot3rZw.js → grooveLife-BmsUc2cD.js} +12 -12
- package/dist/{grooveLife-DEob7rK0.cjs → grooveLife-KdTizVUn.cjs} +19 -19
- package/dist/{homegrownCannabis-CoIjcehi.cjs → homegrownCannabis-C0GDai4r.cjs} +18 -18
- package/dist/{homegrownCannabis-CwkS1qDA.js → homegrownCannabis-a9udocBT.js} +12 -12
- package/dist/hooks/index.cjs +36 -36
- package/dist/hooks/index.d.cts +7 -7
- package/dist/hooks/index.d.ts +4 -4
- package/dist/hooks/index.js +14 -14
- package/dist/{contexts-iAzSvZjb.cjs → hooks-DjOa7ihH.cjs} +195 -195
- package/dist/{contexts-DO75-Kmx.js → hooks-fneW8SWw.js} +93 -93
- package/dist/{index-BkhvV8RZ.d.cts → index-BQErGgfM.d.cts} +29 -29
- package/dist/{index-CzMrMKx-.d.ts → index-CnqHN_jz.d.ts} +29 -29
- package/dist/interceptors/index.cjs +11 -11
- package/dist/interceptors/index.js +11 -11
- package/dist/{jackArcher-bewC0q1T.cjs → jackArcher-B6OJ0N3a.cjs} +25 -25
- package/dist/{jackArcher-BA-pkB4A.js → jackArcher-B9fe4Hv8.js} +12 -12
- package/dist/{jordanCraig-B5k9nlAw.cjs → jordanCraig-0CB_m_ts.cjs} +65 -65
- package/dist/{jordanCraig-BsQ1mYbt.js → jordanCraig-DNm1iw1L.js} +12 -12
- package/dist/{kindredBravely-BxYkCpGY.js → kindredBravely-CZgt7DJA.js} +12 -12
- package/dist/{kindredBravely-DsN0fo3s.cjs → kindredBravely-KvYPbckZ.cjs} +19 -19
- package/dist/{kutFromTheKloth-BQTCu3ct.cjs → kutFromTheKloth-BxgtWZs9.cjs} +19 -19
- package/dist/{kutFromTheKloth-bukOQM3P.js → kutFromTheKloth-SmteSZjk.js} +12 -12
- package/dist/{larryAndSerges-bj7fgy9b.cjs → larryAndSerges-6O_u3L90.cjs} +15 -15
- package/dist/{larryAndSerges-D1ecaT5a.js → larryAndSerges-DO-zG8ES.js} +11 -11
- package/dist/{leapsAndRebounds-DhNpZETg.js → leapsAndRebounds-BK62AmXw.js} +12 -12
- package/dist/{leapsAndRebounds-BfneG_0c.cjs → leapsAndRebounds-gPsWVUmQ.cjs} +20 -20
- package/dist/{longevityrx-D0goIuX0.cjs → longevityrx-DjKbwJo3.cjs} +17 -17
- package/dist/{longevityrx-CnoGcw0w.js → longevityrx-eq5TeUcy.js} +12 -12
- package/dist/{lookOptic-C4afLPZP.cjs → lookOptic-BPPqms_j.cjs} +17 -17
- package/dist/{lookOptic-uJWIKpER.js → lookOptic-jRpBXQCN.js} +12 -12
- package/dist/{mantraBrand-DuwKHM26.js → mantraBrand-BZOZfkUK.js} +12 -12
- package/dist/{mantraBrand-8JUlYtCE.cjs → mantraBrand-Cp8zptkj.cjs} +30 -30
- package/dist/{medterra-DH067P-V.cjs → medterra-BHYCBgvQ.cjs} +27 -27
- package/dist/{medterra-BQec8rzn.js → medterra-CShe6CLY.js} +12 -12
- package/dist/{modells-DUFnLmAz.cjs → modells-DE7-gmjK.cjs} +23 -23
- package/dist/{modells-DAgLE2xo.js → modells-DFyJxNwT.js} +12 -12
- package/dist/{org-CnHL2I9B.cjs → org-Bkn6fl6I.cjs} +22 -22
- package/dist/{org-C11APG3v.js → org-CX8HFbc9.js} +20 -20
- package/dist/{pressedFloral-DVZVfOSQ.cjs → pressedFloral-BMkCVs8c.cjs} +26 -26
- package/dist/{pressedFloral-MdbuoRyA.js → pressedFloral-aK9br-LF.js} +12 -12
- package/dist/{search-bSYdOBhY.cjs → search-DtIFZeMA.cjs} +28 -28
- package/dist/{search-CvHb1M3S.js → search-eWwg8pNn.js} +5 -5
- package/dist/{search-filter-types-BsJjrxk0.d.ts → search-filter-types-ByJnFPc4.d.cts} +8 -8
- package/dist/{search-filter-types-CqaGK3nM.d.cts → search-filter-types-DPgeG8FS.d.ts} +8 -8
- package/dist/{skinPerfection-bGiYxq1i.js → skinPerfection-B9G6yLM2.js} +12 -12
- package/dist/{skinPerfection-BcEWICQN.cjs → skinPerfection-BBC1q65Z.cjs} +17 -17
- package/dist/{snapSupplements-BXSXTjqF.cjs → snapSupplements-D7hx6Kgj.cjs} +17 -17
- package/dist/{snapSupplements-D7hHhdC9.js → snapSupplements-DKvJl__T.js} +12 -12
- package/dist/{spanx-lUzP6Lva.cjs → spanx-D-ZKkxjM.cjs} +20 -20
- package/dist/{spanx-5-0yX3iK.js → spanx-yl7YfVrf.js} +12 -12
- package/dist/{spanxStaging-hreMR0MS.cjs → spanxStaging-CXeIg6zI.cjs} +26 -26
- package/dist/{spanxStaging-HglCMJag.js → spanxStaging-DzGXL9wD.js} +12 -12
- package/dist/{supergoop-CkjtuRck.cjs → supergoop-CSpDPOpl.cjs} +18 -18
- package/dist/{supergoop-C9DDT3lY.js → supergoop-D0UkuRiA.js} +11 -11
- package/dist/types/index.d.cts +2 -2
- package/dist/types/index.d.ts +2 -2
- package/dist/{types-BVsTRyxL.js → types-C3S1H4hl.js} +33 -33
- package/dist/{types-BUjohkXp.cjs → types-lcjuhDBt.cjs} +33 -33
- package/dist/{uniqueVintage-DIMGtYAU.cjs → uniqueVintage-DygVpCqU.cjs} +36 -36
- package/dist/{uniqueVintage-DPWA5Ed6.js → uniqueVintage-_n0FZFVj.js} +12 -12
- package/dist/{useMessageInterceptor-C2RZM-fo.js → useMessageInterceptor-BP6gzo8a.js} +3 -3
- package/dist/{useMessageInterceptor-B-P_rw73.cjs → useMessageInterceptor-BnUG2Pzt.cjs} +9 -9
- package/dist/{variant-XITncuI3.d.ts → variant-DH4zusMi.d.cts} +1 -1
- package/dist/{variant-BGjOVpY3.d.cts → variant-DTEqSBHd.d.ts} +3 -3
- package/dist/{venaCbd-B-znfAsl.js → venaCbd-BS0dvdBm.js} +12 -12
- package/dist/{venaCbd-BOwOtpOz.cjs → venaCbd-Pqg0bj-P.cjs} +21 -21
- package/dist/{westonJonBoucher-DCRagGu3.js → westonJonBoucher-CLw8Hy6u.js} +12 -12
- package/dist/{westonJonBoucher-CraTzRVt.cjs → westonJonBoucher-CeA0jwxe.cjs} +20 -20
- package/dist/{wineEnthusiast-Bv7umajk.js → wineEnthusiast-M9P18d1w.js} +12 -12
- package/dist/{wineEnthusiast-sVuATrq6.cjs → wineEnthusiast-gHBaQMbe.cjs} +20 -20
- package/dist/{wolfMattress-BUH-Rhov.js → wolfMattress-BQHjoQYu.js} +12 -12
- package/dist/{wolfMattress-DpVHIEnJ.cjs → wolfMattress-CdmN-Evm.cjs} +19 -19
- package/dist/{wolfTactical-Q14A1fpw.js → wolfTactical-Cc2ZLBRh.js} +12 -12
- package/dist/{wolfTactical-BcvF_sy-.cjs → wolfTactical-dObnPgAG.cjs} +20 -20
- package/package.json +1 -1
- package/src/contexts/systemSettingsContext.tsx +21 -8
- package/src/hooks/useSearch.tsx +6 -3
- package/src/types/search-filter-types.ts +7 -7
- package/dist/default-BR3225LZ.js +0 -4
- package/dist/default-DR6YjE9B.cjs +0 -4
- /package/dist/{atomStore-CeJm9Llb.cjs → atomStore-BNQyGmU_.cjs} +0 -0
- /package/dist/{atomStore-BFtpknLM.js → atomStore-TnLPtYns.js} +0 -0
- /package/dist/{enviveConfigContext-Dfr2VH6u.cjs → enviveConfigContext-Bs8kepnO.cjs} +0 -0
- /package/dist/{enviveConfigContext-CUGLpPGU.js → enviveConfigContext-CWVdVWKW.js} +0 -0
- /package/dist/{events-ClCDFK7t.js → events-DgFzlVJR.js} +0 -0
- /package/dist/{events-Da7gpmGv.cjs → events-bH-24eRW.cjs} +0 -0
- /package/dist/{logger-Dln20ans.cjs → logger-Be0NyKaY.cjs} +0 -0
- /package/dist/{logger-pdEEY8T2.js → logger-BexDfK3W.js} +0 -0
- /package/dist/{utilityTypes-C4h2wgAK.cjs → utilityTypes-DMdsI0DG.cjs} +0 -0
- /package/dist/{utilityTypes-BVikejDo.js → utilityTypes-UWdNHElu.js} +0 -0
- /package/dist/{variantInfo-CzhR5W6h.js → variantInfo-BTvC6CQh.js} +0 -0
- /package/dist/{variantInfo-CNRTY0gH.cjs → variantInfo-Cz2YXraO.cjs} +0 -0
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
require('./
|
|
2
|
-
require('./
|
|
3
|
-
const
|
|
4
|
-
const require_types = require('./types-
|
|
5
|
-
require('./enviveConfigContext-
|
|
6
|
-
require('./atomStore-
|
|
7
|
-
require('./
|
|
8
|
-
require('./
|
|
9
|
-
require('./
|
|
10
|
-
require('./
|
|
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
11
|
const require_suggestionBarV2_types = require('./suggestionBarV2-types-DG3Ekk44.cjs');
|
|
12
12
|
const require_divIds = require('./divIds-CFyAjjp3.cjs');
|
|
13
|
-
const require_cdnService = require('./cdnService-
|
|
13
|
+
const require_cdnService = require('./cdnService-vLxePdrU.cjs');
|
|
14
14
|
require('./chat-CCgyDehy.cjs');
|
|
15
15
|
require('./components-CScS7Ii-.cjs');
|
|
16
16
|
const require_embedded = require('./embedded-BlXJUbik.cjs');
|
|
17
17
|
require('./locators-CUpyd9Wt.cjs');
|
|
18
|
-
const require_default = require('./default-
|
|
18
|
+
const require_default = require('./default-DRKBosow.cjs');
|
|
19
19
|
|
|
20
20
|
//#region src/merchants/pressedFloral/pressedFloral.ts
|
|
21
21
|
const pressedFloralColors = {
|
|
@@ -395,7 +395,7 @@ const pressedFloralPageConfig = () => ({
|
|
|
395
395
|
type: require_types.WidgetType.SuggestionBarV2,
|
|
396
396
|
widgetConfigId: "topSuggestionsBar",
|
|
397
397
|
contentId: "spiffy-top-suggestion-bar-contents",
|
|
398
|
-
metricDisplayLocation:
|
|
398
|
+
metricDisplayLocation: require_chat.ChatElementDisplayLocation.TOP_REVIEWS_SNIPPET,
|
|
399
399
|
location: require_suggestionBarV2_types.SuggestionBarLocationForMetrics.SUGGESTION_BAR_TOP,
|
|
400
400
|
variant: "dark",
|
|
401
401
|
hoverVariant: "secondaryDark",
|
|
@@ -411,7 +411,7 @@ const pressedFloralPageConfig = () => ({
|
|
|
411
411
|
type: require_types.WidgetType.SuggestionBarV2,
|
|
412
412
|
widgetConfigId: "topSuggestionsBarPressedFrame",
|
|
413
413
|
contentId: "spiffy-top-suggestion-bar-contents",
|
|
414
|
-
metricDisplayLocation:
|
|
414
|
+
metricDisplayLocation: require_chat.ChatElementDisplayLocation.TOP_REVIEWS_SNIPPET,
|
|
415
415
|
location: require_suggestionBarV2_types.SuggestionBarLocationForMetrics.SUGGESTION_BAR_TOP,
|
|
416
416
|
variant: "dark",
|
|
417
417
|
hoverVariant: "secondaryDark",
|
|
@@ -427,7 +427,7 @@ const pressedFloralPageConfig = () => ({
|
|
|
427
427
|
type: require_types.WidgetType.SuggestionBarV2,
|
|
428
428
|
widgetConfigId: "topSuggestionsBarBloomArrangement",
|
|
429
429
|
contentId: "spiffy-top-suggestion-bar-contents",
|
|
430
|
-
metricDisplayLocation:
|
|
430
|
+
metricDisplayLocation: require_chat.ChatElementDisplayLocation.TOP_REVIEWS_SNIPPET,
|
|
431
431
|
location: require_suggestionBarV2_types.SuggestionBarLocationForMetrics.SUGGESTION_BAR_TOP,
|
|
432
432
|
variant: "dark",
|
|
433
433
|
hoverVariant: "secondaryDark",
|
|
@@ -443,7 +443,7 @@ const pressedFloralPageConfig = () => ({
|
|
|
443
443
|
type: require_types.WidgetType.SuggestionBarV2,
|
|
444
444
|
widgetConfigId: "topSuggestionsBarBirthFlowerCollection",
|
|
445
445
|
contentId: "spiffy-top-suggestion-bar-contents",
|
|
446
|
-
metricDisplayLocation:
|
|
446
|
+
metricDisplayLocation: require_chat.ChatElementDisplayLocation.TOP_REVIEWS_SNIPPET,
|
|
447
447
|
location: require_suggestionBarV2_types.SuggestionBarLocationForMetrics.SUGGESTION_BAR_TOP,
|
|
448
448
|
variant: "dark",
|
|
449
449
|
hoverVariant: "secondaryDark",
|
|
@@ -459,7 +459,7 @@ const pressedFloralPageConfig = () => ({
|
|
|
459
459
|
type: require_types.WidgetType.SuggestionBarV2,
|
|
460
460
|
widgetConfigId: "topSuggestionsBarOrnamentCollection",
|
|
461
461
|
contentId: "spiffy-top-suggestion-bar-contents",
|
|
462
|
-
metricDisplayLocation:
|
|
462
|
+
metricDisplayLocation: require_chat.ChatElementDisplayLocation.TOP_REVIEWS_SNIPPET,
|
|
463
463
|
location: require_suggestionBarV2_types.SuggestionBarLocationForMetrics.SUGGESTION_BAR_TOP,
|
|
464
464
|
variant: "dark",
|
|
465
465
|
hoverVariant: "secondaryDark",
|
|
@@ -475,7 +475,7 @@ const pressedFloralPageConfig = () => ({
|
|
|
475
475
|
type: require_types.WidgetType.SuggestionBarV2,
|
|
476
476
|
widgetConfigId: "topSuggestionsBarPressedFloralNecklace",
|
|
477
477
|
contentId: "spiffy-top-suggestion-bar-contents",
|
|
478
|
-
metricDisplayLocation:
|
|
478
|
+
metricDisplayLocation: require_chat.ChatElementDisplayLocation.TOP_REVIEWS_SNIPPET,
|
|
479
479
|
location: require_suggestionBarV2_types.SuggestionBarLocationForMetrics.SUGGESTION_BAR_TOP,
|
|
480
480
|
variant: "dark",
|
|
481
481
|
hoverVariant: "secondaryDark",
|
|
@@ -491,7 +491,7 @@ const pressedFloralPageConfig = () => ({
|
|
|
491
491
|
type: require_types.WidgetType.SuggestionBarV2,
|
|
492
492
|
widgetConfigId: "topSuggestionsBarPressedFloralLocket",
|
|
493
493
|
contentId: "spiffy-top-suggestion-bar-contents",
|
|
494
|
-
metricDisplayLocation:
|
|
494
|
+
metricDisplayLocation: require_chat.ChatElementDisplayLocation.TOP_REVIEWS_SNIPPET,
|
|
495
495
|
location: require_suggestionBarV2_types.SuggestionBarLocationForMetrics.SUGGESTION_BAR_TOP,
|
|
496
496
|
variant: "dark",
|
|
497
497
|
hoverVariant: "secondaryDark",
|
|
@@ -568,7 +568,7 @@ const pressedFloralPageConfig = () => ({
|
|
|
568
568
|
testId: require_embedded.CHAT_PREVIEW_TESTID,
|
|
569
569
|
insertionPoint: {
|
|
570
570
|
selector: ".grid.collection-grid",
|
|
571
|
-
insertionType:
|
|
571
|
+
insertionType: require_chat.DOMInsertionType.AFTER
|
|
572
572
|
},
|
|
573
573
|
style: {
|
|
574
574
|
marginBottom: "24px",
|
|
@@ -583,11 +583,11 @@ const pressedFloralPageConfig = () => ({
|
|
|
583
583
|
borderTop: `solid 1px ${pressedFloralColors[require_types.ColorNames.BorderLight]}`,
|
|
584
584
|
borderBottom: `solid 1px ${pressedFloralColors[require_types.ColorNames.BorderLight]}`
|
|
585
585
|
},
|
|
586
|
-
gridInsertionType:
|
|
586
|
+
gridInsertionType: require_chat.GridInsertionType.FIXED_2,
|
|
587
587
|
wrappingElement: {
|
|
588
588
|
element: "div",
|
|
589
589
|
className: "grid-item",
|
|
590
|
-
insertionType:
|
|
590
|
+
insertionType: require_chat.DOMInsertionType.AFTER
|
|
591
591
|
}
|
|
592
592
|
},
|
|
593
593
|
chatPreviewPDP: {
|
|
@@ -596,7 +596,7 @@ const pressedFloralPageConfig = () => ({
|
|
|
596
596
|
testId: require_embedded.CHAT_PREVIEW_TESTID,
|
|
597
597
|
insertionPoint: {
|
|
598
598
|
selector: ".shopify-section.type_Carousel_Info_Popup, .shopify-section.type_Product_Main",
|
|
599
|
-
insertionType:
|
|
599
|
+
insertionType: require_chat.DOMInsertionType.AFTER
|
|
600
600
|
},
|
|
601
601
|
style: {
|
|
602
602
|
width: "95%",
|
|
@@ -615,7 +615,7 @@ const pressedFloralPageConfig = () => ({
|
|
|
615
615
|
testId: require_embedded.TOP_SUGGESTION_BAR_TESTID,
|
|
616
616
|
insertionPoint: {
|
|
617
617
|
selector: ".product-title-wrapper",
|
|
618
|
-
insertionType:
|
|
618
|
+
insertionType: require_chat.DOMInsertionType.ADJACENT_BEFORE_END
|
|
619
619
|
},
|
|
620
620
|
style: { marginTop: "15px" }
|
|
621
621
|
},
|
|
@@ -625,7 +625,7 @@ const pressedFloralPageConfig = () => ({
|
|
|
625
625
|
testId: require_embedded.TOP_SUGGESTION_BAR_TESTID,
|
|
626
626
|
insertionPoint: {
|
|
627
627
|
selector: ".step-nav > div:first-child",
|
|
628
|
-
insertionType:
|
|
628
|
+
insertionType: require_chat.DOMInsertionType.AFTER
|
|
629
629
|
},
|
|
630
630
|
style: { marginTop: "15px" }
|
|
631
631
|
},
|
|
@@ -635,7 +635,7 @@ const pressedFloralPageConfig = () => ({
|
|
|
635
635
|
testId: require_embedded.TOP_SUGGESTION_BAR_TESTID,
|
|
636
636
|
insertionPoint: {
|
|
637
637
|
selector: ".module.variants.custom-box.block-variants.scheme.color-scheme-1.same-scheme",
|
|
638
|
-
insertionType:
|
|
638
|
+
insertionType: require_chat.DOMInsertionType.BEFORE
|
|
639
639
|
},
|
|
640
640
|
style: {
|
|
641
641
|
marginBottom: "15px",
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import "./
|
|
2
|
-
import "./
|
|
3
|
-
import { ChatElementDisplayLocation, DOMInsertionType, GridInsertionType } from "./
|
|
4
|
-
import { ColorNames, OrgShortName, PageVariantTestType, WidgetType, colorVar } from "./types-
|
|
5
|
-
import "./enviveConfigContext-
|
|
6
|
-
import "./atomStore-
|
|
7
|
-
import "./
|
|
8
|
-
import "./
|
|
9
|
-
import "./
|
|
10
|
-
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
11
|
import { SuggestionBarLocationForMetrics } from "./suggestionBarV2-types-B0RbMStE.js";
|
|
12
12
|
import { CHAT_PREVIEW_CONTAINER_ID, TOP_SUGGESTION_BAR_PDP_ID } from "./divIds-BWvq-i6I.js";
|
|
13
|
-
import { CdnService } from "./cdnService-
|
|
13
|
+
import { CdnService } from "./cdnService-BNreZjqy.js";
|
|
14
14
|
import "./chat-Dk6KPb1K.js";
|
|
15
15
|
import "./components-DAQxVIn9.js";
|
|
16
16
|
import { CHAT_PREVIEW_TESTID, TOP_SUGGESTION_BAR_TESTID } from "./embedded-C1jvFj3v.js";
|
|
17
17
|
import "./locators-C2DX_nX6.js";
|
|
18
|
-
import { defaultOrgUIConfig } from "./default-
|
|
18
|
+
import { defaultOrgUIConfig } from "./default-DPv8m-eQ.js";
|
|
19
19
|
|
|
20
20
|
//#region src/merchants/pressedFloral/pressedFloral.ts
|
|
21
21
|
const pressedFloralColors = {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
const require_chunk = require('./chunk-CUT6urMc.cjs');
|
|
2
|
-
const require_logger = require('./logger-
|
|
3
|
-
const
|
|
4
|
-
const require_enviveConfigContext = require('./enviveConfigContext-
|
|
5
|
-
const require_atomStore = require('./atomStore-
|
|
6
|
-
let __spiffy_ai_commerce_api_client = require("@spiffy-ai/commerce-api-client");
|
|
7
|
-
__spiffy_ai_commerce_api_client = require_chunk.__toESM(__spiffy_ai_commerce_api_client);
|
|
2
|
+
const require_logger = require('./logger-Be0NyKaY.cjs');
|
|
3
|
+
const require_chat = require('./chat-CCQMmhc1.cjs');
|
|
4
|
+
const require_enviveConfigContext = require('./enviveConfigContext-Bs8kepnO.cjs');
|
|
5
|
+
const require_atomStore = require('./atomStore-BNQyGmU_.cjs');
|
|
8
6
|
let jotai = require("jotai");
|
|
9
7
|
jotai = require_chunk.__toESM(jotai);
|
|
8
|
+
let __spiffy_ai_commerce_api_client = require("@spiffy-ai/commerce-api-client");
|
|
9
|
+
__spiffy_ai_commerce_api_client = require_chunk.__toESM(__spiffy_ai_commerce_api_client);
|
|
10
10
|
let uuid = require("uuid");
|
|
11
11
|
uuid = require_chunk.__toESM(uuid);
|
|
12
12
|
|
|
@@ -156,11 +156,11 @@ var ProductSorter = class {
|
|
|
156
156
|
const chatSearchStateAtom = (0, jotai.atom)("entrypoint");
|
|
157
157
|
const chatSearchHasProductsAtom = (0, jotai.atom)(false);
|
|
158
158
|
const chatSearchProductSortingAtom = (0, jotai.atom)(ProductSorting.FEATURED);
|
|
159
|
-
const filterProductList = (message) => message.type ===
|
|
160
|
-
const filterFilterList = (message) => message.type ===
|
|
159
|
+
const filterProductList = (message) => message.type === require_chat.MessageType.Product && message.metadata.isForGrid === true;
|
|
160
|
+
const filterFilterList = (message) => message.type === require_chat.MessageType.ProductSearchFilter;
|
|
161
161
|
const chatSearchIsLoadingAtom = (0, jotai.atom)(false);
|
|
162
162
|
const buildChatSearchTurn = (messages) => {
|
|
163
|
-
const queryMessage = messages.find((message) => message.type ===
|
|
163
|
+
const queryMessage = messages.find((message) => message.type === require_chat.MessageType.ProductSearch);
|
|
164
164
|
if (!queryMessage) return null;
|
|
165
165
|
const { generatedQuery, productCount } = queryMessage.metadata ?? {};
|
|
166
166
|
const productList = messages.filter(filterProductList).map((message) => message.metadata);
|
|
@@ -175,11 +175,11 @@ const buildChatSearchTurn = (messages) => {
|
|
|
175
175
|
}];
|
|
176
176
|
};
|
|
177
177
|
const chatSearchFilterConfigAtom = (0, jotai.atom)((get) => {
|
|
178
|
-
const { searchConfig } = get(
|
|
178
|
+
const { searchConfig } = get(require_chat.orgUIConfigAtom);
|
|
179
179
|
return searchConfig.searchFilterConfig;
|
|
180
180
|
});
|
|
181
181
|
const searchMapAtom = (0, jotai.atom)((get) => {
|
|
182
|
-
const messages = get(
|
|
182
|
+
const messages = get(require_chat.messagesAtom);
|
|
183
183
|
return Object.fromEntries(messages.map(buildChatSearchTurn).filter((v) => v !== null));
|
|
184
184
|
});
|
|
185
185
|
const internalChatSearchParamsAtom = (0, jotai.atom)({
|
|
@@ -188,7 +188,7 @@ const internalChatSearchParamsAtom = (0, jotai.atom)({
|
|
|
188
188
|
});
|
|
189
189
|
const selectedFilterOptionsAtom = (0, jotai.atom)([]);
|
|
190
190
|
const additiveDynamicFiltersAtom = (0, jotai.atom)((get) => {
|
|
191
|
-
const { searchConfig } = get(
|
|
191
|
+
const { searchConfig } = get(require_chat.orgUIConfigAtom);
|
|
192
192
|
return searchConfig.additiveDynamicFilters ?? false;
|
|
193
193
|
});
|
|
194
194
|
const createChatSearchFilterOption = (filterId, filterItemId, displayName) => ({
|
|
@@ -198,13 +198,13 @@ const createChatSearchFilterOption = (filterId, filterItemId, displayName) => ({
|
|
|
198
198
|
filterItemId
|
|
199
199
|
});
|
|
200
200
|
const handleSearchAtom = (0, jotai.atom)(null, (get, set, message) => {
|
|
201
|
-
if (message.type !==
|
|
201
|
+
if (message.type !== require_chat.MessageType.Search) return;
|
|
202
202
|
const querySearch = message.metadata.searchTerm;
|
|
203
|
-
set(
|
|
204
|
-
set(
|
|
205
|
-
set(
|
|
206
|
-
set(
|
|
207
|
-
set(
|
|
203
|
+
set(require_chat.replyEventCategoryAtom, __spiffy_ai_commerce_api_client.UserEventCategory.Search);
|
|
204
|
+
set(require_chat.userQueryAtom, querySearch);
|
|
205
|
+
set(require_chat.messagesAtom, [...get(require_chat.messagesAtom), [message]]);
|
|
206
|
+
set(require_chat.userHasRepliedAtom, true);
|
|
207
|
+
set(require_chat.queueUserEventAtom, {
|
|
208
208
|
eventId: message.id,
|
|
209
209
|
category: __spiffy_ai_commerce_api_client.UserEventCategory.Search,
|
|
210
210
|
createdAt: message.createdAt,
|
|
@@ -289,8 +289,8 @@ const initiateChatSearchAtom = (0, jotai.atom)(null, (_, set, query) => {
|
|
|
289
289
|
});
|
|
290
290
|
set(handleSearchAtom, {
|
|
291
291
|
id: (0, uuid.v4)(),
|
|
292
|
-
role:
|
|
293
|
-
type:
|
|
292
|
+
role: require_chat.MessageRole.User,
|
|
293
|
+
type: require_chat.MessageType.Search,
|
|
294
294
|
createdAt: (/* @__PURE__ */ new Date()).toISOString(),
|
|
295
295
|
metadata: {
|
|
296
296
|
searchTerm: query,
|
|
@@ -299,7 +299,7 @@ const initiateChatSearchAtom = (0, jotai.atom)(null, (_, set, query) => {
|
|
|
299
299
|
});
|
|
300
300
|
});
|
|
301
301
|
const handleSearchResultsAtom = (0, jotai.atom)(null, (get, set, message) => {
|
|
302
|
-
if (!message || message.type !==
|
|
302
|
+
if (!message || message.type !== require_chat.MessageType.ProductSearch) return;
|
|
303
303
|
const { productCount, generatedQuery } = message.metadata;
|
|
304
304
|
if (productCount !== 0) {
|
|
305
305
|
set(selectedFilterOptionsAtom, []);
|
|
@@ -363,10 +363,10 @@ async function throwSessionRestartRequiredIf(errorMsg, error) {
|
|
|
363
363
|
throw error;
|
|
364
364
|
}
|
|
365
365
|
const errorResponse = await errorResponseBody(error);
|
|
366
|
-
if (errorResponse?.message?.toLowerCase() === "unsupported product" || errorResponse?.app_code?.toUpperCase() === "PRODUCT_NOT_FOUND") throw new
|
|
366
|
+
if (errorResponse?.message?.toLowerCase() === "unsupported product" || errorResponse?.app_code?.toUpperCase() === "PRODUCT_NOT_FOUND") throw new require_chat.UnsupportedProductException();
|
|
367
367
|
else if (errorResponse?.app_code?.toUpperCase() === "RESTART_SESSION" || errorResponse?.sub_code?.toUpperCase() === "NOT_FOUND") {
|
|
368
368
|
require_logger.logger_default.logInfo("Session does not exist. Re-start session", error, error.response, errorResponse);
|
|
369
|
-
throw new
|
|
369
|
+
throw new require_chat.SessionRestartRequired();
|
|
370
370
|
}
|
|
371
371
|
require_logger.logger_default.logInfo(errorMsg, error);
|
|
372
372
|
throw error;
|
|
@@ -375,7 +375,7 @@ var SearchService = class SearchService {
|
|
|
375
375
|
static {
|
|
376
376
|
this.getInstance = () => {
|
|
377
377
|
if (!SearchService.instance) {
|
|
378
|
-
const apiKey = require_atomStore.getAtomStore().get(
|
|
378
|
+
const apiKey = require_atomStore.getAtomStore().get(require_chat.apiKeyAtom);
|
|
379
379
|
SearchService.instance = new SearchService(apiKey);
|
|
380
380
|
}
|
|
381
381
|
return SearchService.instance;
|
|
@@ -394,7 +394,7 @@ var SearchService = class SearchService {
|
|
|
394
394
|
this.searchApi = new __spiffy_ai_commerce_api_client.SearchApi(config);
|
|
395
395
|
}
|
|
396
396
|
async _searchProducts(params) {
|
|
397
|
-
const appDetails = require_atomStore.getAtomStore().get(
|
|
397
|
+
const appDetails = require_atomStore.getAtomStore().get(require_chat.appDetailsAtom);
|
|
398
398
|
try {
|
|
399
399
|
const { products, filters, search_response_id: searchResponseId } = await this.searchApi.v1SearchQueryGet({
|
|
400
400
|
query: params.query,
|
|
@@ -477,7 +477,7 @@ const filteredSearchProductsAtom = (0, jotai.atom)((get) => {
|
|
|
477
477
|
const searchData = get(searchAtom).data;
|
|
478
478
|
const sorting = get(searchProductSortingAtom);
|
|
479
479
|
const selectedFilters = get(searchSelectedFiltersAtom);
|
|
480
|
-
const orgConfig = get(
|
|
480
|
+
const orgConfig = get(require_chat.orgUIConfigAtom);
|
|
481
481
|
if (!searchData?.products) return [];
|
|
482
482
|
const filteredProducts = ProductFilters.filterProducts(searchData.products, orgConfig.searchConfig.searchFilterConfig, selectedFilters, orgConfig.searchConfig.additiveDynamicFilters);
|
|
483
483
|
return ProductSorter.sort(filteredProducts, sorting);
|
|
@@ -485,7 +485,7 @@ const filteredSearchProductsAtom = (0, jotai.atom)((get) => {
|
|
|
485
485
|
const searchFiltersAtom = (0, jotai.atom)((get) => {
|
|
486
486
|
const searchData = get(searchAtom).data;
|
|
487
487
|
const selectedFilters = get(searchSelectedFiltersAtom);
|
|
488
|
-
const orgConfig = get(
|
|
488
|
+
const orgConfig = get(require_chat.orgUIConfigAtom);
|
|
489
489
|
if (!searchData?.products) return [];
|
|
490
490
|
return ProductFilters.getFiltersForProducts(searchData.products, orgConfig.searchConfig.searchFilterConfig, selectedFilters);
|
|
491
491
|
});
|
|
@@ -502,7 +502,7 @@ const clearSearchFiltersAtom = (0, jotai.atom)(null, (_, set) => {
|
|
|
502
502
|
});
|
|
503
503
|
const performSearchAtom = (0, jotai.atom)(null, async (get, set, params, allowRedirect = false) => {
|
|
504
504
|
const currentState = get(searchAtom);
|
|
505
|
-
const redirectSearchResultsUrl = get(
|
|
505
|
+
const redirectSearchResultsUrl = get(require_chat.orgUIConfigAtom).searchConfig?.redirectSearchResultsUrl;
|
|
506
506
|
if (allowRedirect && redirectSearchResultsUrl) {
|
|
507
507
|
const redirectUrl = new URL(redirectSearchResultsUrl);
|
|
508
508
|
redirectUrl.searchParams.set("es", "true");
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { logger_default } from "./logger-
|
|
2
|
-
import { MessageRole, MessageType, SessionRestartRequired, UnsupportedProductException, apiKeyAtom, appDetailsAtom, messagesAtom, orgUIConfigAtom, queueUserEventAtom, replyEventCategoryAtom, userHasRepliedAtom, userQueryAtom } from "./
|
|
3
|
-
import { useEnviveConfig } from "./enviveConfigContext-
|
|
4
|
-
import { getAtomStore } from "./atomStore-
|
|
5
|
-
import { Configuration, ResponseCategory, ResponseError, SearchApi, UserEventCategory } from "@spiffy-ai/commerce-api-client";
|
|
1
|
+
import { logger_default } from "./logger-BexDfK3W.js";
|
|
2
|
+
import { MessageRole, MessageType, SessionRestartRequired, UnsupportedProductException, apiKeyAtom, appDetailsAtom, messagesAtom, orgUIConfigAtom, queueUserEventAtom, replyEventCategoryAtom, userHasRepliedAtom, userQueryAtom } from "./chat-H6YcCS4I.js";
|
|
3
|
+
import { useEnviveConfig } from "./enviveConfigContext-CWVdVWKW.js";
|
|
4
|
+
import { getAtomStore } from "./atomStore-TnLPtYns.js";
|
|
6
5
|
import { atom } from "jotai";
|
|
6
|
+
import { Configuration, ResponseCategory, ResponseError, SearchApi, UserEventCategory } from "@spiffy-ai/commerce-api-client";
|
|
7
7
|
import { v4 } from "uuid";
|
|
8
8
|
|
|
9
9
|
//#region src/atoms/search/utils.ts
|
|
@@ -28,7 +28,7 @@ type ModalSheetCloseIconProps = {
|
|
|
28
28
|
iconSize?: string;
|
|
29
29
|
};
|
|
30
30
|
type SearchFilterProps = {
|
|
31
|
-
filters:
|
|
31
|
+
filters: SearchFilterDatum[];
|
|
32
32
|
selectFilterItem: SelectFilterItem;
|
|
33
33
|
clearAllFilters: () => void;
|
|
34
34
|
productCount: number;
|
|
@@ -56,16 +56,16 @@ type SelectFilterItem = ({
|
|
|
56
56
|
isSelected: boolean;
|
|
57
57
|
displayName: string;
|
|
58
58
|
}) => void;
|
|
59
|
-
type
|
|
59
|
+
type SelectedFilterItemDatum = {
|
|
60
60
|
filterId: string;
|
|
61
61
|
filterItemId: string;
|
|
62
62
|
};
|
|
63
|
-
type
|
|
63
|
+
type SearchFilterDatum = {
|
|
64
64
|
filterId: string;
|
|
65
65
|
displayName: string;
|
|
66
|
-
items:
|
|
66
|
+
items: SearchFilterItemDatum[];
|
|
67
67
|
};
|
|
68
|
-
type
|
|
68
|
+
type SearchFilterItemDatum = {
|
|
69
69
|
filterItemId: string;
|
|
70
70
|
displayName: string;
|
|
71
71
|
productCount: number;
|
|
@@ -78,7 +78,7 @@ type SearchFilterHeaderProps = {
|
|
|
78
78
|
filterCloseIconVariant: CloseIconVariant;
|
|
79
79
|
};
|
|
80
80
|
type FilterProps = {
|
|
81
|
-
filter:
|
|
81
|
+
filter: SearchFilterDatum;
|
|
82
82
|
selectFilterItem: SelectFilterItem;
|
|
83
83
|
radioButtonFillColor?: string;
|
|
84
84
|
radioButtonHoverColor?: string;
|
|
@@ -86,7 +86,7 @@ type FilterProps = {
|
|
|
86
86
|
};
|
|
87
87
|
type FilterItemProps = {
|
|
88
88
|
filterId: string;
|
|
89
|
-
filterItem:
|
|
89
|
+
filterItem: SearchFilterItemDatum;
|
|
90
90
|
selectFilterItem: SelectFilterItem;
|
|
91
91
|
};
|
|
92
92
|
type FilterFooterProps = {
|
|
@@ -98,4 +98,4 @@ type FilterFooterProps = {
|
|
|
98
98
|
applyFiltersChangedClasses: string;
|
|
99
99
|
};
|
|
100
100
|
//#endregion
|
|
101
|
-
export { CloseIconVariant, FilterFooterProps, FilterItemProps, FilterProps, ModalSheetCloseIconProps, ModalSheetFooterProps, ModalSheetHeaderProps, ModalSheetHeaderVariant, ModalSheetProps,
|
|
101
|
+
export { CloseIconVariant, FilterFooterProps, FilterItemProps, FilterProps, ModalSheetCloseIconProps, ModalSheetFooterProps, ModalSheetHeaderProps, ModalSheetHeaderVariant, ModalSheetProps, SearchFilterDatum, SearchFilterHeaderProps, SearchFilterItemDatum, SearchFilterProps, SelectFilterItem, SelectedFilterItemDatum };
|
|
@@ -28,7 +28,7 @@ type ModalSheetCloseIconProps = {
|
|
|
28
28
|
iconSize?: string;
|
|
29
29
|
};
|
|
30
30
|
type SearchFilterProps = {
|
|
31
|
-
filters:
|
|
31
|
+
filters: SearchFilterDatum[];
|
|
32
32
|
selectFilterItem: SelectFilterItem;
|
|
33
33
|
clearAllFilters: () => void;
|
|
34
34
|
productCount: number;
|
|
@@ -56,16 +56,16 @@ type SelectFilterItem = ({
|
|
|
56
56
|
isSelected: boolean;
|
|
57
57
|
displayName: string;
|
|
58
58
|
}) => void;
|
|
59
|
-
type
|
|
59
|
+
type SelectedFilterItemDatum = {
|
|
60
60
|
filterId: string;
|
|
61
61
|
filterItemId: string;
|
|
62
62
|
};
|
|
63
|
-
type
|
|
63
|
+
type SearchFilterDatum = {
|
|
64
64
|
filterId: string;
|
|
65
65
|
displayName: string;
|
|
66
|
-
items:
|
|
66
|
+
items: SearchFilterItemDatum[];
|
|
67
67
|
};
|
|
68
|
-
type
|
|
68
|
+
type SearchFilterItemDatum = {
|
|
69
69
|
filterItemId: string;
|
|
70
70
|
displayName: string;
|
|
71
71
|
productCount: number;
|
|
@@ -78,7 +78,7 @@ type SearchFilterHeaderProps = {
|
|
|
78
78
|
filterCloseIconVariant: CloseIconVariant;
|
|
79
79
|
};
|
|
80
80
|
type FilterProps = {
|
|
81
|
-
filter:
|
|
81
|
+
filter: SearchFilterDatum;
|
|
82
82
|
selectFilterItem: SelectFilterItem;
|
|
83
83
|
radioButtonFillColor?: string;
|
|
84
84
|
radioButtonHoverColor?: string;
|
|
@@ -86,7 +86,7 @@ type FilterProps = {
|
|
|
86
86
|
};
|
|
87
87
|
type FilterItemProps = {
|
|
88
88
|
filterId: string;
|
|
89
|
-
filterItem:
|
|
89
|
+
filterItem: SearchFilterItemDatum;
|
|
90
90
|
selectFilterItem: SelectFilterItem;
|
|
91
91
|
};
|
|
92
92
|
type FilterFooterProps = {
|
|
@@ -98,4 +98,4 @@ type FilterFooterProps = {
|
|
|
98
98
|
applyFiltersChangedClasses: string;
|
|
99
99
|
};
|
|
100
100
|
//#endregion
|
|
101
|
-
export { CloseIconVariant, FilterFooterProps, FilterItemProps, FilterProps, ModalSheetCloseIconProps, ModalSheetFooterProps, ModalSheetHeaderProps, ModalSheetHeaderVariant, ModalSheetProps,
|
|
101
|
+
export { CloseIconVariant, FilterFooterProps, FilterItemProps, FilterProps, ModalSheetCloseIconProps, ModalSheetFooterProps, ModalSheetHeaderProps, ModalSheetHeaderVariant, ModalSheetProps, SearchFilterDatum, SearchFilterHeaderProps, SearchFilterItemDatum, SearchFilterProps, SelectFilterItem, SelectedFilterItemDatum };
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import "./
|
|
2
|
-
import "./
|
|
3
|
-
import { ChatElementDisplayLocation, DOMInsertionType, GridInsertionType } from "./
|
|
4
|
-
import { ColorNames, OrgShortName, PageVariantTestType, WidgetType } from "./types-
|
|
5
|
-
import "./enviveConfigContext-
|
|
6
|
-
import "./atomStore-
|
|
7
|
-
import "./
|
|
8
|
-
import "./
|
|
9
|
-
import "./
|
|
10
|
-
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
11
|
import { SuggestionBarLocationForMetrics } from "./suggestionBarV2-types-B0RbMStE.js";
|
|
12
12
|
import { CHAT_PREVIEW_CONTAINER_ID, TOP_SUGGESTION_BAR_PDP_ID } from "./divIds-BWvq-i6I.js";
|
|
13
|
-
import { CdnService } from "./cdnService-
|
|
13
|
+
import { CdnService } from "./cdnService-BNreZjqy.js";
|
|
14
14
|
import "./chat-Dk6KPb1K.js";
|
|
15
15
|
import "./components-DAQxVIn9.js";
|
|
16
16
|
import { CHAT_PREVIEW_TESTID, TOP_SUGGESTION_BAR_TESTID } from "./embedded-C1jvFj3v.js";
|
|
17
17
|
import "./locators-C2DX_nX6.js";
|
|
18
|
-
import { defaultOrgUIConfig } from "./default-
|
|
18
|
+
import { defaultOrgUIConfig } from "./default-DPv8m-eQ.js";
|
|
19
19
|
|
|
20
20
|
//#region src/merchants/skinPerfection/skinPerfection.ts
|
|
21
21
|
const skinPerfectionColors = {
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
require('./
|
|
2
|
-
require('./
|
|
3
|
-
const
|
|
4
|
-
const require_types = require('./types-
|
|
5
|
-
require('./enviveConfigContext-
|
|
6
|
-
require('./atomStore-
|
|
7
|
-
require('./
|
|
8
|
-
require('./
|
|
9
|
-
require('./
|
|
10
|
-
require('./
|
|
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
11
|
const require_suggestionBarV2_types = require('./suggestionBarV2-types-DG3Ekk44.cjs');
|
|
12
12
|
const require_divIds = require('./divIds-CFyAjjp3.cjs');
|
|
13
|
-
const require_cdnService = require('./cdnService-
|
|
13
|
+
const require_cdnService = require('./cdnService-vLxePdrU.cjs');
|
|
14
14
|
require('./chat-CCgyDehy.cjs');
|
|
15
15
|
require('./components-CScS7Ii-.cjs');
|
|
16
16
|
const require_embedded = require('./embedded-BlXJUbik.cjs');
|
|
17
17
|
require('./locators-CUpyd9Wt.cjs');
|
|
18
|
-
const require_default = require('./default-
|
|
18
|
+
const require_default = require('./default-DRKBosow.cjs');
|
|
19
19
|
|
|
20
20
|
//#region src/merchants/skinPerfection/skinPerfection.ts
|
|
21
21
|
const skinPerfectionColors = {
|
|
@@ -208,7 +208,7 @@ const skinPerfectionPageConfig = () => ({
|
|
|
208
208
|
type: require_types.WidgetType.SuggestionBarV2,
|
|
209
209
|
widgetConfigId: "topSuggestionBar",
|
|
210
210
|
contentId: "spiffy-top-suggestion-bar-contents",
|
|
211
|
-
metricDisplayLocation:
|
|
211
|
+
metricDisplayLocation: require_chat.ChatElementDisplayLocation.TOP_REVIEWS_SNIPPET,
|
|
212
212
|
location: require_suggestionBarV2_types.SuggestionBarLocationForMetrics.SUGGESTION_BAR_TOP,
|
|
213
213
|
variant: "dark",
|
|
214
214
|
hoverVariant: "secondaryDark",
|
|
@@ -287,9 +287,9 @@ const skinPerfectionPageConfig = () => ({
|
|
|
287
287
|
testId: require_embedded.CHAT_PREVIEW_TESTID,
|
|
288
288
|
insertionPoint: {
|
|
289
289
|
selector: ".product-list",
|
|
290
|
-
insertionType:
|
|
290
|
+
insertionType: require_chat.DOMInsertionType.AFTER
|
|
291
291
|
},
|
|
292
|
-
gridInsertionType:
|
|
292
|
+
gridInsertionType: require_chat.GridInsertionType.FIXED_3,
|
|
293
293
|
style: {
|
|
294
294
|
width: "100%",
|
|
295
295
|
maxWidth: "100%",
|
|
@@ -304,7 +304,7 @@ const skinPerfectionPageConfig = () => ({
|
|
|
304
304
|
testId: require_embedded.CHAT_PREVIEW_TESTID,
|
|
305
305
|
insertionPoint: {
|
|
306
306
|
selector: ".accordion-item",
|
|
307
|
-
insertionType:
|
|
307
|
+
insertionType: require_chat.DOMInsertionType.BEFORE
|
|
308
308
|
},
|
|
309
309
|
style: { marginBottom: "16px" }
|
|
310
310
|
},
|
|
@@ -314,7 +314,7 @@ const skinPerfectionPageConfig = () => ({
|
|
|
314
314
|
testId: require_embedded.TOP_SUGGESTION_BAR_TESTID,
|
|
315
315
|
insertionPoint: {
|
|
316
316
|
selector: ".product-price",
|
|
317
|
-
insertionType:
|
|
317
|
+
insertionType: require_chat.DOMInsertionType.AFTER
|
|
318
318
|
},
|
|
319
319
|
style: { marginBottom: "16px" }
|
|
320
320
|
}
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
require('./
|
|
2
|
-
require('./
|
|
3
|
-
const
|
|
4
|
-
const require_types = require('./types-
|
|
5
|
-
require('./enviveConfigContext-
|
|
6
|
-
require('./atomStore-
|
|
7
|
-
require('./
|
|
8
|
-
require('./
|
|
9
|
-
require('./
|
|
10
|
-
require('./
|
|
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
11
|
const require_suggestionBarV2_types = require('./suggestionBarV2-types-DG3Ekk44.cjs');
|
|
12
12
|
const require_divIds = require('./divIds-CFyAjjp3.cjs');
|
|
13
|
-
const require_cdnService = require('./cdnService-
|
|
13
|
+
const require_cdnService = require('./cdnService-vLxePdrU.cjs');
|
|
14
14
|
require('./chat-CCgyDehy.cjs');
|
|
15
15
|
require('./components-CScS7Ii-.cjs');
|
|
16
16
|
const require_embedded = require('./embedded-BlXJUbik.cjs');
|
|
17
17
|
require('./locators-CUpyd9Wt.cjs');
|
|
18
|
-
const require_default = require('./default-
|
|
18
|
+
const require_default = require('./default-DRKBosow.cjs');
|
|
19
19
|
|
|
20
20
|
//#region src/merchants/snapSupplements/snapSupplements.ts
|
|
21
21
|
const snapSupplementsColors = {
|
|
@@ -157,7 +157,7 @@ const snapSupplementsPageConfig = () => ({
|
|
|
157
157
|
type: require_types.WidgetType.SuggestionBarV2,
|
|
158
158
|
widgetConfigId: "topSuggestionsBar",
|
|
159
159
|
contentId: "spiffy-top-suggestion-bar-contents",
|
|
160
|
-
metricDisplayLocation:
|
|
160
|
+
metricDisplayLocation: require_chat.ChatElementDisplayLocation.TOP_REVIEWS_SNIPPET,
|
|
161
161
|
location: require_suggestionBarV2_types.SuggestionBarLocationForMetrics.SUGGESTION_BAR_TOP,
|
|
162
162
|
variant: "darkPrimary",
|
|
163
163
|
hoverVariant: "secondaryAccent",
|
|
@@ -237,9 +237,9 @@ const snapSupplementsPageConfig = () => ({
|
|
|
237
237
|
testId: require_embedded.CHAT_PREVIEW_TESTID,
|
|
238
238
|
insertionPoint: {
|
|
239
239
|
selector: ".shop-product-items",
|
|
240
|
-
insertionType:
|
|
240
|
+
insertionType: require_chat.DOMInsertionType.AFTER
|
|
241
241
|
},
|
|
242
|
-
gridInsertionType:
|
|
242
|
+
gridInsertionType: require_chat.GridInsertionType.FIXED_3,
|
|
243
243
|
style: {
|
|
244
244
|
maxWidth: "var(--chat-preview-plp-max-width, 958px)",
|
|
245
245
|
minWidth: "98%",
|
|
@@ -252,7 +252,7 @@ const snapSupplementsPageConfig = () => ({
|
|
|
252
252
|
testId: require_embedded.CHAT_PREVIEW_TESTID,
|
|
253
253
|
insertionPoint: {
|
|
254
254
|
selector: "#productMainSection",
|
|
255
|
-
insertionType:
|
|
255
|
+
insertionType: require_chat.DOMInsertionType.AFTER
|
|
256
256
|
},
|
|
257
257
|
style: {
|
|
258
258
|
maxWidth: "var(--chat-preview-pdp-max-width, 1020px)",
|
|
@@ -265,7 +265,7 @@ const snapSupplementsPageConfig = () => ({
|
|
|
265
265
|
testId: require_embedded.TOP_SUGGESTION_BAR_TESTID,
|
|
266
266
|
insertionPoint: {
|
|
267
267
|
selector: ".product__catchline",
|
|
268
|
-
insertionType:
|
|
268
|
+
insertionType: require_chat.DOMInsertionType.AFTER
|
|
269
269
|
},
|
|
270
270
|
style: { marginTop: "12px" }
|
|
271
271
|
}
|