@envive-ai/react-hooks 0.1.0

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.
Files changed (385) hide show
  1. package/LICENSE +2 -0
  2. package/README.md +2 -0
  3. package/dist/GridInsertionService-CEYo9pGj.js +22 -0
  4. package/dist/GridInsertionService-CS_bnPh0.cjs +28 -0
  5. package/dist/bandolier-Ble8jEa8.js +1221 -0
  6. package/dist/bandolier-Bm2xAt_j.cjs +1221 -0
  7. package/dist/carpe-Da7b-LCW.cjs +599 -0
  8. package/dist/carpe-W13mhRRP.js +597 -0
  9. package/dist/cdnService-CZ-aXcY6.cjs +23 -0
  10. package/dist/cdnService-zQfKk3Eb.js +18 -0
  11. package/dist/chatElementDisplayLocation-CX8fuNao.d.cts +239 -0
  12. package/dist/chatElementDisplayLocation-CwptS9tx.d.ts +239 -0
  13. package/dist/chunk-CUT6urMc.cjs +30 -0
  14. package/dist/contexts/index.cjs +13 -0
  15. package/dist/contexts/index.d.cts +65 -0
  16. package/dist/contexts/index.d.ts +66 -0
  17. package/dist/contexts/index.js +7 -0
  18. package/dist/contexts-BRjfVq_k.js +5064 -0
  19. package/dist/contexts-BYArqZtK.cjs +5164 -0
  20. package/dist/coterie-3y0D9ko4.cjs +229 -0
  21. package/dist/coterie-DOWcJAYv.js +229 -0
  22. package/dist/custservice-types-CFIFwZ-r.js +10 -0
  23. package/dist/custservice-types-CkfxZiHY.cjs +16 -0
  24. package/dist/default-C2fEZKXk.js +175 -0
  25. package/dist/default-CBUq6Q6G.cjs +4 -0
  26. package/dist/default-CGIFZK6m.js +4 -0
  27. package/dist/default-D_KPZdPJ.cjs +198 -0
  28. package/dist/divIds-Bss-btao.js +49 -0
  29. package/dist/divIds-DnZNd7rA.cjs +223 -0
  30. package/dist/dreamlandBaby-DCIsuU9R.cjs +338 -0
  31. package/dist/dreamlandBaby-DvSaZGrz.js +338 -0
  32. package/dist/entrypoints-D_JUvkgy.cjs +18 -0
  33. package/dist/entrypoints-YLQsbBRD.js +6 -0
  34. package/dist/enviveConfigContext-CUGLpPGU.js +34 -0
  35. package/dist/enviveConfigContext-Dfr2VH6u.cjs +48 -0
  36. package/dist/fiveCbd-B1SESMCO.js +605 -0
  37. package/dist/fiveCbd-CkOlVby_.cjs +605 -0
  38. package/dist/forLoveAndLemons-CfYPMnKS.cjs +660 -0
  39. package/dist/forLoveAndLemons-DmwYZIk0.js +658 -0
  40. package/dist/greenpan-Bsl3ir59.cjs +389 -0
  41. package/dist/greenpan-BtOi45lf.js +389 -0
  42. package/dist/grooveLife-6_dtYsRk.js +334 -0
  43. package/dist/grooveLife-Cmm1PSCL.cjs +334 -0
  44. package/dist/homegrownCannabis-C-kw-74X.js +400 -0
  45. package/dist/homegrownCannabis-CO0uY_mp.cjs +400 -0
  46. package/dist/hooks/index.cjs +16 -0
  47. package/dist/hooks/index.d.cts +357 -0
  48. package/dist/hooks/index.d.ts +357 -0
  49. package/dist/hooks/index.js +7 -0
  50. package/dist/jackArcher-CLVmwwpI.js +719 -0
  51. package/dist/jackArcher-DdYTIzAV.cjs +719 -0
  52. package/dist/jordanCraig-Am-Oor-O.js +1778 -0
  53. package/dist/jordanCraig-_u3-w4Hp.cjs +1778 -0
  54. package/dist/kindredBravely-CWovIDSc.cjs +482 -0
  55. package/dist/kindredBravely-eWp-ud_E.js +482 -0
  56. package/dist/kutFromTheKloth-BMV4BuGQ.js +361 -0
  57. package/dist/kutFromTheKloth-Q589bAOC.cjs +361 -0
  58. package/dist/larryAndSerges-BMUlTgI-.js +252 -0
  59. package/dist/larryAndSerges-CEau764j.cjs +252 -0
  60. package/dist/leapsAndRebounds-DGMzPO7T.js +352 -0
  61. package/dist/leapsAndRebounds-DHAtRTJD.cjs +352 -0
  62. package/dist/logger-Dln20ans.cjs +25 -0
  63. package/dist/logger-pdEEY8T2.js +19 -0
  64. package/dist/longevityrx-CZW8Hxzi.cjs +312 -0
  65. package/dist/longevityrx-jH2JLhNH.js +312 -0
  66. package/dist/lookOptic-BGXP5P_V.js +274 -0
  67. package/dist/lookOptic-CA6RwLbG.cjs +274 -0
  68. package/dist/mantraBrand-Cm9_PBCT.js +742 -0
  69. package/dist/mantraBrand-DByNqpnL.cjs +742 -0
  70. package/dist/medterra-B0wxj_PV.js +575 -0
  71. package/dist/medterra-DnPN2ksU.cjs +575 -0
  72. package/dist/modells-Bmz8Ag5M.js +476 -0
  73. package/dist/modells-CoYgkLSp.cjs +476 -0
  74. package/dist/models-DHdb7QWn.js +51 -0
  75. package/dist/models-ixxUsGL_.cjs +69 -0
  76. package/dist/pressedFloral-DSKs_oVG.js +653 -0
  77. package/dist/pressedFloral-DjBiSoUl.cjs +653 -0
  78. package/dist/skinPerfection-B_3xzVNS.cjs +326 -0
  79. package/dist/skinPerfection-IDrBuAPt.js +326 -0
  80. package/dist/snapSupplements-BJk5T5ba.js +277 -0
  81. package/dist/snapSupplements-BStTsdOZ.cjs +277 -0
  82. package/dist/socialProofClasses-Bhv2Vulz.js +9 -0
  83. package/dist/socialProofClasses-CrQBWdSA.cjs +39 -0
  84. package/dist/spanx-BYg0LE7R.js +653 -0
  85. package/dist/spanx-LwU1zSzq.cjs +655 -0
  86. package/dist/spanxStaging-CfSmuKYB.js +837 -0
  87. package/dist/spanxStaging-OZLV9qix.cjs +840 -0
  88. package/dist/suggestionBarV2-types-BllzwsBD.js +34 -0
  89. package/dist/suggestionBarV2-types-CaovchMP.cjs +46 -0
  90. package/dist/supergoop-BqPXDnKk.cjs +327 -0
  91. package/dist/supergoop-CIlrHND_.js +325 -0
  92. package/dist/types-C4T5UOIW.cjs +230 -0
  93. package/dist/types-CYNvLeSA.js +176 -0
  94. package/dist/uniqueVintage-B30mOqbH.cjs +1205 -0
  95. package/dist/uniqueVintage-CFueJOhO.js +1203 -0
  96. package/dist/venaCbd-DHGZy49P.cjs +357 -0
  97. package/dist/venaCbd-T0CqVD4k.js +357 -0
  98. package/dist/westonJonBoucher-BdMzs_Yg.cjs +414 -0
  99. package/dist/westonJonBoucher-b4TCQ4ev.js +414 -0
  100. package/dist/wineEnthusiast-BLGlOjgr.cjs +932 -0
  101. package/dist/wineEnthusiast-BqR0i_54.js +932 -0
  102. package/dist/wolfMattress-CyyO-LoC.js +362 -0
  103. package/dist/wolfMattress-DNGZOivg.cjs +362 -0
  104. package/dist/wolfTactical-3Mm2fvVF.js +341 -0
  105. package/dist/wolfTactical-BmXYlFjr.cjs +341 -0
  106. package/package.json +66 -0
  107. package/src/adapters/amplitude/amplitudeAdapter.ts +454 -0
  108. package/src/adapters/amplitude/index.ts +2 -0
  109. package/src/adapters/amplitude/stubAmplitudeAdapter.ts +34 -0
  110. package/src/adapters/spiffy/commerce/api.ts +596 -0
  111. package/src/adapters/spiffy/commerce/exceptions/sessionExceptions.ts +6 -0
  112. package/src/adapters/spiffy/commerce/exceptions/unsupportedProductExceptions.ts +6 -0
  113. package/src/adapters/spiffy/commerce/graphql.ts +184 -0
  114. package/src/application/config/generalStaticConfig.ts +37 -0
  115. package/src/application/logging/logger.ts +29 -0
  116. package/src/application/models/api/context.ts +4 -0
  117. package/src/application/models/api/generationParams.ts +4 -0
  118. package/src/application/models/api/nextMessageRequest.ts +11 -0
  119. package/src/application/models/api/orgAnalyticsConfig.ts +19 -0
  120. package/src/application/models/api/orgConfigResults.ts +40 -0
  121. package/src/application/models/api/organizationConfig.ts +12 -0
  122. package/src/application/models/api/response.ts +132 -0
  123. package/src/application/models/api/responseGenerics.ts +67 -0
  124. package/src/application/models/api/search.ts +26 -0
  125. package/src/application/models/api/suggestion.ts +4 -0
  126. package/src/application/models/api/supportedEventRequest.ts +8 -0
  127. package/src/application/models/api/userEvent.ts +101 -0
  128. package/src/application/models/cachedValue.ts +8 -0
  129. package/src/application/models/chatElementDisplayLocation.ts +22 -0
  130. package/src/application/models/clientDetails.ts +18 -0
  131. package/src/application/models/colorsConfig.ts +28 -0
  132. package/src/application/models/conversationalSearchIds.ts +5 -0
  133. package/src/application/models/dataLayer.ts +45 -0
  134. package/src/application/models/domMutationContinuation.ts +7 -0
  135. package/src/application/models/domObservationStrategy.ts +9 -0
  136. package/src/application/models/events.ts +5 -0
  137. package/src/application/models/featureGates.ts +23 -0
  138. package/src/application/models/frontendConfig.ts +14 -0
  139. package/src/application/models/googleAnalyticsEvents.ts +8 -0
  140. package/src/application/models/graphql/index.ts +2 -0
  141. package/src/application/models/graphql/queries/getMerchantColorsQuery.ts +37 -0
  142. package/src/application/models/graphql/queries/getMerchantFrontendConfigQuery.ts +103 -0
  143. package/src/application/models/graphql/queries/getMerchantOrgIdQuery.ts +11 -0
  144. package/src/application/models/guards/api/index.ts +12 -0
  145. package/src/application/models/guards/api/isApiFormResponse.ts +90 -0
  146. package/src/application/models/guards/api/isApiFormSubmittedResponseAttributes.ts +37 -0
  147. package/src/application/models/guards/api/isApiOrderResponseAttributes.ts +155 -0
  148. package/src/application/models/guards/api/isApiOrgConfigResults.ts +277 -0
  149. package/src/application/models/guards/api/isApiOrganizationConfig.ts +207 -0
  150. package/src/application/models/guards/api/isApiPDPEventAttributes.ts +21 -0
  151. package/src/application/models/guards/api/isApiPLPEventAttributes.ts +41 -0
  152. package/src/application/models/guards/api/isApiPageResponseAttributes.ts +21 -0
  153. package/src/application/models/guards/api/isApiProductResponseAttributes.ts +85 -0
  154. package/src/application/models/guards/api/isApiProductSearchAttributes.ts +23 -0
  155. package/src/application/models/guards/api/isApiProductSearchFilterAttributes.ts +15 -0
  156. package/src/application/models/guards/api/isApiQueryTypedEventAttributes.ts +4 -0
  157. package/src/application/models/guards/api/isApiResponse.ts +39 -0
  158. package/src/application/models/guards/api/isApiReviewResponseAttributes.ts +30 -0
  159. package/src/application/models/guards/api/isApiReviewRichInformation.ts +37 -0
  160. package/src/application/models/guards/api/isApiSearchEventAttributes.ts +28 -0
  161. package/src/application/models/guards/api/isApiSuggestion.ts +36 -0
  162. package/src/application/models/guards/api/isApiSuggestionClickedEventAttributes.ts +9 -0
  163. package/src/application/models/guards/api/isApiTextResponseAttributes.ts +9 -0
  164. package/src/application/models/guards/api/isApiUserEvent.ts +25 -0
  165. package/src/application/models/guards/graphQL/isGraphQLColorsConfig.ts +50 -0
  166. package/src/application/models/guards/isBaseEcommerceEvent.ts +17 -0
  167. package/src/application/models/guards/isGA4EcommerceEvent.ts +17 -0
  168. package/src/application/models/guards/isLegacyUAEcommerceEvent.ts +17 -0
  169. package/src/application/models/guards/isMobilePLPChatPlacementParameter.ts +11 -0
  170. package/src/application/models/guards/isSpanxTakeAQuizCtaParameter.ts +4 -0
  171. package/src/application/models/guards/isVariantInfo.ts +37 -0
  172. package/src/application/models/guards/utils.ts +43 -0
  173. package/src/application/models/index.ts +20 -0
  174. package/src/application/models/localStorageEventListener.ts +4 -0
  175. package/src/application/models/message.ts +146 -0
  176. package/src/application/models/mobilePLPChatPlacementParameter.ts +3 -0
  177. package/src/application/models/orgsEnum.ts +36 -0
  178. package/src/application/models/productExperiment.ts +5 -0
  179. package/src/application/models/spanxTakeAQuizCtaParameter.ts +4 -0
  180. package/src/application/models/spiffyWidgets.ts +16 -0
  181. package/src/application/models/supportedOrgs.ts +137 -0
  182. package/src/application/models/utilityTypes/camelCase.ts +87 -0
  183. package/src/application/models/utilityTypes/camelCasedPropertiesDeep.ts +80 -0
  184. package/src/application/models/utilityTypes/delimiterCase.ts +121 -0
  185. package/src/application/models/utilityTypes/delimiterCasedPropertiesDeep.ts +98 -0
  186. package/src/application/models/utilityTypes/index.ts +1 -0
  187. package/src/application/models/utilityTypes/internal.ts +93 -0
  188. package/src/application/models/utilityTypes/primitive.ts +8 -0
  189. package/src/application/models/utilityTypes/snakeCasedPropertiesDeep.ts +49 -0
  190. package/src/application/models/utilityTypes/splitWords.ts +76 -0
  191. package/src/application/models/utilityTypes/trim.ts +28 -0
  192. package/src/application/models/utilityTypes/unknownArray.ts +25 -0
  193. package/src/application/models/utils/snakeToCamelTransformer.ts +90 -0
  194. package/src/application/models/utils/stringToFulfillmentDisplayStatusEnumValue.ts +68 -0
  195. package/src/application/models/validators/validateGraphQLColorsConfig.ts +29 -0
  196. package/src/application/models/validators/validateGraphQLFrontendConfig.ts +594 -0
  197. package/src/application/models/validators/validateGraphQLOrgId.ts +7 -0
  198. package/src/application/models/validators/validateMobilePLPChatPlacementParameter.ts +14 -0
  199. package/src/application/models/validators/validateOrgConfigResults.ts +47 -0
  200. package/src/application/models/validators/validateOrganizationConfig.ts +37 -0
  201. package/src/application/models/validators/validateResponse.ts +187 -0
  202. package/src/application/models/validators/validateSuggestion.ts +16 -0
  203. package/src/application/models/validators/validateUserEvent.ts +110 -0
  204. package/src/application/models/variantInfo/index.ts +1 -0
  205. package/src/application/models/variantInfo/pageVisitInfo.ts +6 -0
  206. package/src/application/models/variantInfo/plpInfo.ts +3 -0
  207. package/src/application/models/variantInfo/productInfo.ts +5 -0
  208. package/src/application/models/variantInfo/variantInfo.ts +23 -0
  209. package/src/application/service/cachingService.ts +84 -0
  210. package/src/application/service/cdnService.ts +18 -0
  211. package/src/application/service/customerService/index.ts +8 -0
  212. package/src/application/service/customerService/providers/UnsupportedCustomerService.ts +15 -0
  213. package/src/application/service/customerService/types.ts +31 -0
  214. package/src/application/service/domMutationObserver.ts +320 -0
  215. package/src/application/service/domMutations/GridInsertionService.ts +123 -0
  216. package/src/application/service/domMutations/dataLayer/dataLayerEventsListener.ts +99 -0
  217. package/src/application/service/domMutations/domInsertionService.ts +90 -0
  218. package/src/application/service/domMutations/domMutationListener.ts +15 -0
  219. package/src/application/service/domMutations/domMutationListenerState.ts +52 -0
  220. package/src/application/service/domMutations/floatingChat/embeddedChatsPlacementsListener.ts +41 -0
  221. package/src/application/service/domMutations/gladly/gladlyListener.ts +61 -0
  222. package/src/application/service/domMutations/spiffy/orgs/common/kustomerVisibilityListener.ts +41 -0
  223. package/src/application/service/domMutations/spiffy/orgs/common/orgsCommonDataLayerListener.ts +119 -0
  224. package/src/application/service/environmentService.ts +51 -0
  225. package/src/application/service/featureFlagService.ts +130 -0
  226. package/src/application/service/kustomerIntegrationService.ts +111 -0
  227. package/src/application/service/localStorageService.ts +77 -0
  228. package/src/application/service/pageVariantService.ts +779 -0
  229. package/src/application/service/searchService.ts +140 -0
  230. package/src/application/service/sessionStorageService.ts +27 -0
  231. package/src/application/service/shopifyUrlService.ts +63 -0
  232. package/src/application/service/userIdentityService.ts +114 -0
  233. package/src/application/service/windowChatToggleService.ts +71 -0
  234. package/src/application/service/windowDataLayerService.ts +181 -0
  235. package/src/application/service/windowFrontendConfigService.ts +104 -0
  236. package/src/application/utils/__tests__/divideArrays.test.ts +14 -0
  237. package/src/application/utils/analyticsUtils.ts +110 -0
  238. package/src/application/utils/coreContextToApiContext.ts +11 -0
  239. package/src/application/utils/coreUserEventToApiUserEvent.ts +106 -0
  240. package/src/application/utils/divideArray.ts +7 -0
  241. package/src/application/utils/domObserver.ts +96 -0
  242. package/src/application/utils/elementObserver.ts +246 -0
  243. package/src/application/utils/imageFilter.ts +12 -0
  244. package/src/application/utils/index.ts +3 -0
  245. package/src/application/utils/merchantUtils.ts +16 -0
  246. package/src/application/utils/messageFromFormSubmittedEvent.ts +31 -0
  247. package/src/application/utils/messageFromQueryEvent.ts +38 -0
  248. package/src/application/utils/messageFromResponse.ts +133 -0
  249. package/src/application/utils/messageFromSuggestionEvent.ts +32 -0
  250. package/src/application/utils/mouseEventTypes.ts +1 -0
  251. package/src/application/utils/mutationHelper.ts +51 -0
  252. package/src/application/utils/nextMessageRequestToApiRequest.ts +31 -0
  253. package/src/application/utils/nodeSelector.ts +133 -0
  254. package/src/application/utils/overrides.ts +196 -0
  255. package/src/application/utils/stringUtils.ts +55 -0
  256. package/src/application/utils/supportedEventRequestToApiRequest.ts +12 -0
  257. package/src/application/utils/urlsParser.ts +53 -0
  258. package/src/application/utils/validation.ts +5 -0
  259. package/src/atoms/app/index.ts +57 -0
  260. package/src/atoms/app/variant.ts +261 -0
  261. package/src/atoms/atomStore.ts +34 -0
  262. package/src/atoms/chat/chatState.ts +44 -0
  263. package/src/atoms/chat/form.ts +19 -0
  264. package/src/atoms/chat/index.ts +38 -0
  265. package/src/atoms/chat/lastMessage.ts +11 -0
  266. package/src/atoms/chat/messageQueue.ts +65 -0
  267. package/src/atoms/chat/performanceMetrics.ts +84 -0
  268. package/src/atoms/chat/renderedWidgetRefs.ts +28 -0
  269. package/src/atoms/chat/replies.ts +51 -0
  270. package/src/atoms/chat/suggestions.ts +36 -0
  271. package/src/atoms/globalSearch.ts +12 -0
  272. package/src/atoms/index.ts +5 -0
  273. package/src/atoms/org/customerService.ts +13 -0
  274. package/src/atoms/org/graphqlConfig.ts +27 -0
  275. package/src/atoms/org/index.ts +7 -0
  276. package/src/atoms/org/merchantCss.ts +44 -0
  277. package/src/atoms/org/org.ts +256 -0
  278. package/src/atoms/org/orgAnalyticsConfig.ts +28 -0
  279. package/src/atoms/org/orgPageConfig.ts +38 -0
  280. package/src/atoms/org/orgUIConfig.ts +122 -0
  281. package/src/atoms/search/chatSearch.ts +293 -0
  282. package/src/atoms/search/index.ts +2 -0
  283. package/src/atoms/search/productFilters.ts +207 -0
  284. package/src/atoms/search/productSorter.ts +23 -0
  285. package/src/atoms/search/searchAPI.ts +194 -0
  286. package/src/atoms/search/types.ts +55 -0
  287. package/src/atoms/search/utils.ts +18 -0
  288. package/src/config/divIds.ts +27 -0
  289. package/src/config/locators/components/chat/entrypoints.ts +13 -0
  290. package/src/config/locators/components/chat/index.ts +23 -0
  291. package/src/config/locators/components/chat/preview.ts +13 -0
  292. package/src/config/locators/components/chat/variants/index.ts +16 -0
  293. package/src/config/locators/components/common/buttons.ts +6 -0
  294. package/src/config/locators/components/common/cards.ts +18 -0
  295. package/src/config/locators/components/common/links.ts +1 -0
  296. package/src/config/locators/components/common/tables.ts +2 -0
  297. package/src/config/locators/components/floating-button.ts +2 -0
  298. package/src/config/locators/components/index.ts +3 -0
  299. package/src/config/locators/components/report-issue.ts +21 -0
  300. package/src/config/locators/components/search/index.ts +5 -0
  301. package/src/config/locators/components/shadow-dom.ts +1 -0
  302. package/src/config/locators/embedded.ts +21 -0
  303. package/src/config/locators/index.ts +3 -0
  304. package/src/config/socialProofClasses.ts +17 -0
  305. package/src/contexts/chatContext.tsx +451 -0
  306. package/src/contexts/enviveConfigContext.tsx +70 -0
  307. package/src/contexts/index.ts +4 -0
  308. package/src/contexts/systemSettingsContext.tsx +61 -0
  309. package/src/contexts/types.ts +1059 -0
  310. package/src/enabled-features.ts +83 -0
  311. package/src/events/event-types.ts +11 -0
  312. package/src/events/index.ts +52 -0
  313. package/src/events/registerAnalyticsListeners.ts +49 -0
  314. package/src/extension.ts +63 -0
  315. package/src/hooks/index.ts +22 -0
  316. package/src/hooks/useBlockBackButton.ts +29 -0
  317. package/src/hooks/useChatToggle.ts +66 -0
  318. package/src/hooks/useCustomerSupportHandoff.ts +39 -0
  319. package/src/hooks/useDebounce.ts +17 -0
  320. package/src/hooks/useDynamicVariants.ts +210 -0
  321. package/src/hooks/useElementObserver.ts +245 -0
  322. package/src/hooks/useFileUpload.ts +61 -0
  323. package/src/hooks/useGrabAndScroll.ts +133 -0
  324. package/src/hooks/useHideElements.ts +82 -0
  325. package/src/hooks/useHorizontalScrollAnimation.ts +115 -0
  326. package/src/hooks/useImageResolver.ts +51 -0
  327. package/src/hooks/useIntersection.ts +28 -0
  328. package/src/hooks/useIsSmallScreen.ts +23 -0
  329. package/src/hooks/useMessageFilter.ts +49 -0
  330. package/src/hooks/useMessageScrollObserver.ts +47 -0
  331. package/src/hooks/useReducedMotionWithOverride.ts +15 -0
  332. package/src/hooks/useSearch.tsx +433 -0
  333. package/src/hooks/useSnapCalculator.ts +38 -0
  334. package/src/hooks/useSnapControl.ts +155 -0
  335. package/src/hooks/useSystemSettingsContext.ts +12 -0
  336. package/src/hooks/useTrackComponentVisibleEvent.ts +52 -0
  337. package/src/hooks/useUpdateAnalyticsProps.ts +56 -0
  338. package/src/hooks/utils.ts +153 -0
  339. package/src/index.ts +31 -0
  340. package/src/initialize.ts +163 -0
  341. package/src/interceptors/types.ts +6 -0
  342. package/src/interceptors/useFormEscalation.ts +40 -0
  343. package/src/interceptors/useMessageInterceptor.ts +32 -0
  344. package/src/main.ts +85 -0
  345. package/src/main.tsx +123 -0
  346. package/src/merchants/bandolier/bandolier.ts +1389 -0
  347. package/src/merchants/carpe/carpe.ts +656 -0
  348. package/src/merchants/coterie/coterie.ts +280 -0
  349. package/src/merchants/default.ts +193 -0
  350. package/src/merchants/dreamlandBaby/dreamlandBaby.ts +375 -0
  351. package/src/merchants/fiveCbd/fiveCbd.ts +697 -0
  352. package/src/merchants/forLoveAndLemons/forLoveAndLemons.ts +721 -0
  353. package/src/merchants/greenpan/greenpan.ts +440 -0
  354. package/src/merchants/grooveLife/grooveLife.ts +386 -0
  355. package/src/merchants/homegrownCannabis/homegrownCannabis.ts +468 -0
  356. package/src/merchants/init-merchant.sh +53 -0
  357. package/src/merchants/jackArcher/jackArcher.ts +974 -0
  358. package/src/merchants/jordanCraig/jordanCraig.ts +1927 -0
  359. package/src/merchants/kindredBravely/kindredBravely.ts +529 -0
  360. package/src/merchants/kutFromTheKloth/kutFromTheKloth.ts +418 -0
  361. package/src/merchants/larryAndSerges/larryAndSerges.ts +314 -0
  362. package/src/merchants/leapsAndRebounds/leapsAndRebounds.ts +424 -0
  363. package/src/merchants/longevityrx/longevityrx.ts +368 -0
  364. package/src/merchants/lookOptic/lookOptic.ts +323 -0
  365. package/src/merchants/mantraBrand/mantraBrand.ts +838 -0
  366. package/src/merchants/medterra/medterra.ts +670 -0
  367. package/src/merchants/modells/modells.ts +546 -0
  368. package/src/merchants/pressedFloral/pressedFloral.ts +734 -0
  369. package/src/merchants/skinPerfection/skinPerfection.ts +379 -0
  370. package/src/merchants/snapSupplements/snapSupplements.ts +325 -0
  371. package/src/merchants/spanx/spanx.ts +810 -0
  372. package/src/merchants/spanx/spanxStaging.ts +942 -0
  373. package/src/merchants/supergoop/supergoop.ts +376 -0
  374. package/src/merchants/uniqueVintage/uniqueVintage.ts +1314 -0
  375. package/src/merchants/uniqueVintage/views/useUniqueVintageChatSearch.ts +147 -0
  376. package/src/merchants/venaCbd/venaCbd.ts +410 -0
  377. package/src/merchants/westonJonBoucher/westonJonBoucher.ts +473 -0
  378. package/src/merchants/wineEnthusiast/wineEnthusiast.ts +990 -0
  379. package/src/merchants/wolfMattress/wolfMattress.ts +411 -0
  380. package/src/merchants/wolfTactical/wolfTactical.ts +389 -0
  381. package/src/types/custservice-types.ts +28 -0
  382. package/src/types/search-filter-types.ts +111 -0
  383. package/src/types/suggestionBarV2-types.ts +4 -0
  384. package/src/types/test-types.ts +3 -0
  385. package/src/types.ts +66 -0
@@ -0,0 +1,1314 @@
1
+ import { CdnService } from "src/application/service/cdnService";
2
+ import { GridInsertionType } from "src/application/service/domMutations/GridInsertionService";
3
+ import { DOMInsertionType } from "src/application/service/domMutations/domInsertionService";
4
+ import { defaultOrgUIConfig } from "src/merchants/default";
5
+ import {
6
+ CategoryExtractorType,
7
+ ChatPreviewWidgetConfig,
8
+ ColorMapping,
9
+ ColorNames,
10
+ colorVar,
11
+ SearchEntryPointWidgetConfig,
12
+ OrgPageConfig,
13
+ OrgUIConfig,
14
+ PageVariantTestType,
15
+ SearchPromptWidgetConfig,
16
+ SuggestionBarWidgetV2Config,
17
+ WidgetType,
18
+ } from "src/contexts/types";
19
+ import {
20
+ CustomerServiceIntegrationMode,
21
+ CustomerServiceType,
22
+ } from "src/application/service/customerService/types";
23
+ import {
24
+ CHAT_PREVIEW_TESTID,
25
+ TOP_SUGGESTION_BAR_TESTID,
26
+ BOTTOM_SUGGESTION_BAR_TESTID,
27
+ GLOBAL_SEARCH_ENTRYPOINT_TESTID,
28
+ } from "src/config/locators";
29
+ import { ChatElementDisplayLocation } from "src/application/models/chatElementDisplayLocation";
30
+ import {
31
+ CHAT_PREVIEW_CONTAINER_ID,
32
+ TOP_SUGGESTION_BAR_PDP_ID,
33
+ BOTTOM_REVIEWS_BAR_ID,
34
+ GLOBAL_SEARCH_ENTRYPOINT_ID,
35
+ MOBILE_GLOBAL_SEARCH_ENTRYPOINT_ID,
36
+ } from "src/config/divIds";
37
+ import { PageVisitCategory } from "@spiffy-ai/commerce-api-client";
38
+ import { FeatureGates } from "src/application/models/featureGates";
39
+ import { SuggestionBarLocationForMetrics } from "src/types/suggestionBarV2-types";
40
+ import { BasicOrgInfoType, OrgShortName } from "src/application/models";
41
+
42
+ const uniqueVintageColors: ColorMapping = {
43
+ [ColorNames.TextPrimary]: "#000000",
44
+ [ColorNames.TextSecondary]: "#595959",
45
+ [ColorNames.TextAccent]: "#1D4A4F",
46
+ [ColorNames.TextLink]: "#222222",
47
+ [ColorNames.TextLight]: "#FFFFFF",
48
+ [ColorNames.BackgroundPrimary]: "#FADDD5",
49
+ [ColorNames.BackgroundSecondary]: "#FFFDF3",
50
+ [ColorNames.BackgroundSecondaryDark]: "#EBE9E0",
51
+ [ColorNames.BackgroundTertiary]: "#1D4A4F",
52
+ [ColorNames.BackgroundDark]: "#222222",
53
+ [ColorNames.BackgroundLight]: "#FFFFFF",
54
+ [ColorNames.BackgroundSaturated]: "#FADDD5",
55
+ [ColorNames.BorderLight]: "#E7E7E7",
56
+ [ColorNames.BorderMedium]: "#C2C4C8",
57
+ [ColorNames.BorderDark]: "#595959",
58
+ [ColorNames.BorderOutline]: "#222222",
59
+ [ColorNames.AccentPrimary]: "#FADDD5",
60
+ [ColorNames.AccentSecondary]: "#C0E7D6",
61
+ };
62
+
63
+ const uniqueVintageOrgUIConfig = (): OrgUIConfig => {
64
+ const defaultUniqueVintageOrgConfig = defaultOrgUIConfig(
65
+ OrgShortName.UniqueVintage
66
+ );
67
+
68
+ return {
69
+ ...defaultUniqueVintageOrgConfig,
70
+ chatMessageConfig: {
71
+ ...defaultUniqueVintageOrgConfig.chatMessageConfig!,
72
+ assistantChatTitle: "Unique Vintage AI",
73
+ variant: "standard",
74
+ },
75
+ chatHeader: {
76
+ ...defaultUniqueVintageOrgConfig.chatHeader,
77
+ chevronColor: colorVar(ColorNames.BackgroundDark),
78
+ expandedColor: colorVar(ColorNames.BackgroundPrimary),
79
+ imageSrc: CdnService.getAssetURL(
80
+ "unique-vintage-long-logo.png",
81
+ OrgShortName.UniqueVintage
82
+ ),
83
+ // icon: uniqueVintageLogo,
84
+ },
85
+ chatPreviewConfig: {
86
+ ...defaultUniqueVintageOrgConfig.chatPreviewConfig!,
87
+ variant: "filled",
88
+ filledBackgroundColor: colorVar(ColorNames.AccentSecondary),
89
+ iconFillColor: colorVar(ColorNames.AccentPrimary),
90
+ buttonTextColor: colorVar(ColorNames.TextLight),
91
+ buttonBackgroundColor: colorVar(ColorNames.BackgroundDark),
92
+ buttonTextHoverColor: colorVar(ColorNames.TextPrimary),
93
+ buttonBackgroundHoverColor: colorVar(ColorNames.BackgroundSecondaryDark),
94
+ topMargin: 10,
95
+ copies: {
96
+ plp: [
97
+ "a classic swimsuit that's perfect for poolside glamour?",
98
+ "a skirt that twirls like it's straight out of the '50s?",
99
+ "a handbag inspired by iconic eras?",
100
+ "a dress that turns every head in the room?",
101
+ ],
102
+ pdp: [
103
+ "the vintage-inspired details that make this piece timeless?",
104
+ "what makes this style a true throwback treasure?",
105
+ "what luxe materials will elevate your look?",
106
+ "the size that's right for you?",
107
+ ],
108
+ },
109
+ staticSuggestionCopies: {
110
+ plp: [
111
+ "What casual vintage pieces work for everyday wear?",
112
+ "What pieces can I mix and match for a vintage-inspired wardrobe?",
113
+ "What shoes are perfect for date nights and special occasions?",
114
+ "What accessories can I add to elevate my vintage look?",
115
+ ],
116
+ pdp: [
117
+ "What size will give me the right fit?",
118
+ "How do I keep this piece in perfect condition for years to come?",
119
+ "What features makes this piece the ideal statement for a vintage lover?",
120
+ "How does this piece embody the spirit of past eras with modern style?",
121
+ ],
122
+ },
123
+ headerConfig: {
124
+ title: "Shopping Assistant",
125
+ sparklesColor: undefined,
126
+ imageHeight: 24,
127
+ imageSrc: CdnService.getAssetURL(
128
+ "unique-vintage-long-logo.png",
129
+ OrgShortName.UniqueVintage
130
+ ),
131
+ },
132
+ footerConfig: {
133
+ ...defaultUniqueVintageOrgConfig.chatPreviewConfig!.footerConfig,
134
+ replyButtonText: "What can I help you find?",
135
+ replyButtonIcon: "magnifyingGlass",
136
+ hasFade: false,
137
+ },
138
+ },
139
+ floatingEntrypointConfig: {
140
+ ...defaultUniqueVintageOrgConfig.floatingEntrypointConfig!,
141
+ showOption: "always",
142
+ expandedColor: colorVar(ColorNames.BorderOutline),
143
+ iconStrokeColor: colorVar(ColorNames.BackgroundDark),
144
+ iconFillColor: colorVar(ColorNames.BackgroundDark),
145
+ expansionText: {
146
+ pdp: "Will this complete your retro wardrobe?",
147
+ plp: "What vintage treasure will you find today?",
148
+ },
149
+ },
150
+ productCardConfig: {
151
+ ...defaultUniqueVintageOrgConfig.productCardConfig!,
152
+ },
153
+ productReviewConfig: {
154
+ ...defaultUniqueVintageOrgConfig.productReviewConfig!,
155
+ colorVariant: "brand",
156
+ incentivizedReviewFlag: false,
157
+ },
158
+ welcomeSectionConfig: {
159
+ ...defaultUniqueVintageOrgConfig.welcomeSectionConfig!,
160
+ title: "Welcome to Unique Vintage AI!",
161
+ colorVariant: "brand",
162
+ subtitle:
163
+ "Hello, darling! I'm here to help you find everything you need to channel your unique, vintage-inspired style. Whether you're searching for the perfect outfit, need sizing advice, or just want to explore fabulous accessories, let's make your shopping experience as glamorous as you are!",
164
+ },
165
+ customerServiceIntegration: {
166
+ integrationMode: CustomerServiceIntegrationMode.simple,
167
+ provider: CustomerServiceType.zowie,
168
+ },
169
+ conversationalSearch: {
170
+ enabled: true,
171
+ replyInput: {
172
+ sendIcon: "search",
173
+ placeholder: "What can I help you find?",
174
+ },
175
+ // TODO: Migrate it to the new mount point structure.
176
+ entrypointContainer: "id|chat-search-entrypoint",
177
+ productGridContainer: "id|chat-search-product-page",
178
+ searchContent: "query|.ss__autocomplete--target",
179
+ pageContent: "id|MainContent",
180
+ generalSearchBtn: "query|button.modal__close-button",
181
+ },
182
+ searchConfig: {
183
+ enableGlobalSearch: true,
184
+ searchFilterConfig: [
185
+ {
186
+ filterId: "color",
187
+ displayName: "Color",
188
+ attribute: "colors",
189
+ type: "dynamic",
190
+ sorting: {
191
+ type: "alphabetic",
192
+ },
193
+ },
194
+ {
195
+ filterId: "size",
196
+ displayName: "Size",
197
+ type: "dynamic",
198
+ attribute: "sizes",
199
+ sorting: {
200
+ type: "custom",
201
+ map: {
202
+ "One Size": 10,
203
+ "XXS / 0": 20,
204
+ "XS / 2": 30,
205
+ "S / 4": 40,
206
+ "M / 6 - 8": 50,
207
+ "L / 10 - 12": 60,
208
+ "XL / 14": 70,
209
+ "1X / 16": 80,
210
+ "2X / 18": 90,
211
+ "3X / 20": 100,
212
+ "4X / 22 - 24": 110,
213
+ "5X / 26": 120,
214
+ "6X": 130,
215
+ },
216
+ },
217
+ },
218
+ {
219
+ filterId: "price",
220
+ displayName: "Price",
221
+ type: "price",
222
+ bucketSize: 50,
223
+ },
224
+ ],
225
+ },
226
+
227
+ merchantOverrideCss: `
228
+ #spiffy-modal-container {
229
+ z-index: 2147483001 !important;
230
+ }
231
+ .spiffy-star-rating-star {
232
+ fill: var(--spiffy-colors-text-accent) !important;
233
+ }
234
+ .spiffy-product-review-header-reviewer {
235
+ color: var(--spiffy-colors-text-primary) !important;
236
+ }
237
+
238
+ /* WelcomeSection light text override */
239
+ .spiffy-welcome-section-message-title {
240
+ color: var(--spiffy-colors-text-light) !important;
241
+ }
242
+ .spiffy-welcome-section-message-subtitle {
243
+ color: var(--spiffy-colors-text-light) !important;
244
+ }
245
+
246
+ #spiffy-ai-chat-preview {
247
+ display: block;
248
+ }
249
+ #chat-search-product-page {
250
+ display: block;
251
+ }
252
+ #chat-search-nav-entrypoint {
253
+ display: flex;
254
+ }
255
+ #spiffy-ai-chat-preview.is-pdp {
256
+ padding-top: 8px;
257
+ border-top: solid 1px var(--spiffy-colors-border-light);
258
+ }
259
+ #spiffy-top-suggestion-bar-id {
260
+ display: block;
261
+ }
262
+ #spiffy-ai-chat-preview {
263
+ display: block;
264
+ }
265
+ #spiffy-bottom-reviews-bar-id {
266
+ display: block;
267
+ }
268
+ .spiffy-chat-search-entrypoint-container {
269
+ background: var(--spiffy-colors-background-primary) !important;
270
+ border-color: var(--spiffy-colors-background-dark) !important;
271
+ }
272
+ .spiffy-chat-search-entrypoint-container .spiffy-button-base-button {
273
+ color: var(--spiffy-colors-text-primary) !important;
274
+ border: none;
275
+ }
276
+ .spiffy-chat-search-entrypoint-text p {
277
+ font-family: 'Bookmania-SemiBold' !important;
278
+ font-size: 16px !important;
279
+ }
280
+ #spiffy-ai-chat-preview-contents h1, h2, h3, h4, h5, h6 {
281
+ --chakra-fonts-heading: 'Bookmania-Regular', 'Poppins', sans-serif;
282
+ }
283
+ .spiffy-headline {
284
+ font-family: 'Bookmania-Regular', 'Poppins', sans-serif;
285
+ }
286
+ #spiffy-model-container h1, h2, h3, h4, h5, h6 {
287
+ font-family: var(--chakra-fonts-heading);
288
+ }
289
+ #spiffy-model-container h1, h2, h3, h4, h5, h6 {
290
+ --chakra-fonts-heading: 'Bookmania-Regular', 'Poppins', sans-serif;
291
+ }
292
+ .spiffy-suggestion-button-question-class {
293
+ border: 1px solid var(--spiffy-colors-border-light);
294
+ }
295
+ .spiffy-tag-pill-text {
296
+ color: var(--spiffy-colors-text-light) !important;
297
+ }
298
+ #return-to-results-button {
299
+ display: block;
300
+ }
301
+ .spiffy-back-to-results-button {
302
+ margin-left: 30px;
303
+ margin-top: 30px;
304
+ @media (max-width: 768px) {
305
+ margin-left: 20px;
306
+ margin-top: 20px;
307
+ }
308
+ }
309
+ @media (max-width: 992px) {
310
+ #chat-search-entrypoint {
311
+ display: none;
312
+ }
313
+ }
314
+ #chat-search-entrypoint-mobile {
315
+ display: none;
316
+ }
317
+ .ss__autocomplete--active #chat-search-entrypoint-mobile {
318
+ display: flex;
319
+ }
320
+ .spiffy-product-card-title {
321
+ font-family: var(--chakra-fonts-heading);
322
+ color: var(--spiffy-colors-text-link);
323
+ }
324
+ .spiffy-product-card-text-color {
325
+ color: var(--spiffy-colors-text-secondary);
326
+ }
327
+
328
+ .spiffy-chat-header-close-button {
329
+ color: var(--spiffy-colors-background-primary);
330
+ background-color: var(--spiffy-colors-background-tertiary);
331
+ }
332
+
333
+ #spiffy-top-suggestion-bar-contents .spiffy-suggestion-button-question-class span {
334
+ color: var(--spiffy-colors-text-accent) !important;
335
+ }
336
+
337
+ #spiffy-top-suggestion-bar-contents .spiffy-suggestion-button-question-class svg {
338
+ fill: var(--spiffy-colors-text-accent) !important;
339
+ stroke: var(--spiffy-colors-text-accent) !important;
340
+ }
341
+
342
+ #spiffy-bottom-suggestion-bar-contents .spiffy-suggestion-button-question-class svg {
343
+ fill: var(--spiffy-colors-accent-primary) !important;
344
+ stroke: var(--spiffy-colors-accent-primary) !important;
345
+ }
346
+
347
+ #spiffy-bottom-suggestion-bar-contents .spiffy-suggestion-button-question-class:hover svg {
348
+ fill: var(--spiffy-colors-text-link) !important;
349
+ stroke: var(--spiffy-colors-text-link) !important;
350
+ }
351
+
352
+ #spiffy-ai-global-search-entrypoint.global-entry-desktop {
353
+ display: block;
354
+ }
355
+ #spiffy-ai-global-search-entrypoint-mobile.global-entry-mobile {
356
+ display: none;
357
+ }
358
+
359
+ @media (max-width: 992px) {
360
+ #spiffy-ai-global-search-entrypoint.global-entry-desktop {
361
+ display: none;
362
+ }
363
+ #spiffy-ai-global-search-entrypoint-mobile.global-entry-mobile {
364
+ display: block;
365
+ }
366
+ }
367
+
368
+ #spiffy-ai-global-search-entrypoint.global-entry-desktop .spiffy-global-search-input-container {
369
+ height: 80px;
370
+ }
371
+
372
+ .spiffy-global-search-input-container .spiffy-global-search-text {
373
+ font-family: "Poly", serif;
374
+ color: var(--spiffy-colors-text-link) !important;
375
+ font-weight: 500;
376
+ line-height: 80px;
377
+ padding-top: 6px;
378
+ }
379
+
380
+ .spiffy-search-overlay-content .spiffy-headline {
381
+ font-family: "Poly", serif;
382
+ @media (min-width: 480px) {
383
+ font-size: 32px;
384
+ }
385
+ }
386
+
387
+ .spiffy-search-overlay-content .spiffy-body-text {
388
+ font-family: "Poly", serif;
389
+ }
390
+
391
+ .spiffy-global-search-input-container svg {
392
+ width: 26px;
393
+ }
394
+ `,
395
+ };
396
+ };
397
+
398
+ const uniqueVintagePageConfig = (): OrgPageConfig => ({
399
+ pageVariants: [
400
+ {
401
+ variantId: "search-results",
402
+ variantType: "page_visit",
403
+ variantTests: [
404
+ { testType: PageVariantTestType.ShopifyPLP },
405
+ {
406
+ testType: PageVariantTestType.QueryParam,
407
+ queryParam: "q",
408
+ },
409
+ {
410
+ testType: PageVariantTestType.PageCategory,
411
+ extractor: {
412
+ type: CategoryExtractorType.VisitCategoryDefault,
413
+ value: PageVisitCategory.Other,
414
+ },
415
+ },
416
+ ],
417
+ widgetMounting: [],
418
+ },
419
+ {
420
+ variantId: "plp-global-search",
421
+ variantType: "plp",
422
+ variantTests: [
423
+ { testType: PageVariantTestType.ShopifyPLP },
424
+ {
425
+ testType: PageVariantTestType.FeatureGate,
426
+ featureGate: FeatureGates.IsGlobalSearchEnabled,
427
+ },
428
+ ],
429
+ plpIdExtractor: "shopify-collection-id",
430
+ widgetMounting: [
431
+ {
432
+ mountingConfigId: "globalSearchEntryPoint",
433
+ widgetConfigId: "globalSearchEntryPoint",
434
+ },
435
+ {
436
+ mountingConfigId: "globalSearchEntryPointMobile",
437
+ widgetConfigId: "globalSearchEntryPointMobile",
438
+ },
439
+ {
440
+ mountingConfigId: "chatPreviewPLP",
441
+ widgetConfigId: "chatPreviewPLP",
442
+ },
443
+ ],
444
+ },
445
+ {
446
+ variantId: "plp-search",
447
+ variantType: "plp",
448
+ variantTests: [
449
+ {
450
+ testType: PageVariantTestType.FeatureGate,
451
+ featureGate: FeatureGates.IsNewFeatureEnabled,
452
+ },
453
+ { testType: PageVariantTestType.ShopifyPLP },
454
+ ],
455
+ plpIdExtractor: "shopify-collection-id",
456
+ widgetMounting: [
457
+ {
458
+ mountingConfigId: "chatPreviewPLP",
459
+ widgetConfigId: "searchPromptPLP",
460
+ },
461
+ ],
462
+ },
463
+ {
464
+ variantId: "plp",
465
+ variantType: "plp",
466
+ variantTests: [{ testType: PageVariantTestType.ShopifyPLP }],
467
+ plpIdExtractor: "shopify-collection-id",
468
+ widgetMounting: [
469
+ {
470
+ mountingConfigId: "chatPreviewPLP",
471
+ widgetConfigId: "chatPreviewPLP",
472
+ },
473
+ ],
474
+ },
475
+ {
476
+ variantId: "pdpDressesHasReviewsGlobalSearch",
477
+ variantType: "pdp",
478
+ variantTests: [
479
+ {
480
+ testType: PageVariantTestType.ShopifyPDP,
481
+ },
482
+ {
483
+ testType: PageVariantTestType.InCollection,
484
+ collections: ["dresses"],
485
+ },
486
+ {
487
+ testType: PageVariantTestType.HasReviews,
488
+ reviewMinimum: 4,
489
+ },
490
+ {
491
+ testType: PageVariantTestType.FeatureGate,
492
+ featureGate: FeatureGates.IsGlobalSearchEnabled,
493
+ },
494
+ ],
495
+ productIdExtractor: "shopify-product-id",
496
+ widgetMounting: [
497
+ {
498
+ mountingConfigId: "globalSearchEntryPoint",
499
+ widgetConfigId: "globalSearchEntryPoint",
500
+ },
501
+ {
502
+ mountingConfigId: "globalSearchEntryPointMobile",
503
+ widgetConfigId: "globalSearchEntryPointMobile",
504
+ },
505
+ {
506
+ mountingConfigId: "topSuggestionBarPDP",
507
+ widgetConfigId: "topSuggestionsBarDressesHasReviews",
508
+ },
509
+ {
510
+ mountingConfigId: "chatPreviewPDP",
511
+ widgetConfigId: "chatPreviewPDP",
512
+ },
513
+ {
514
+ mountingConfigId: "bottomSuggestionBarPDP",
515
+ widgetConfigId: "bottomSuggestionsBar",
516
+ },
517
+ ],
518
+ },
519
+ {
520
+ variantId: "pdpDressesNoReviewsGlobalSearch",
521
+ variantType: "pdp",
522
+ variantTests: [
523
+ {
524
+ testType: PageVariantTestType.ShopifyPDP,
525
+ },
526
+ {
527
+ testType: PageVariantTestType.InCollection,
528
+ collections: ["dresses"],
529
+ },
530
+ {
531
+ testType: PageVariantTestType.FeatureGate,
532
+ featureGate: FeatureGates.IsGlobalSearchEnabled,
533
+ },
534
+ ],
535
+ productIdExtractor: "shopify-product-id",
536
+ widgetMounting: [
537
+ {
538
+ mountingConfigId: "globalSearchEntryPoint",
539
+ widgetConfigId: "globalSearchEntryPoint",
540
+ },
541
+ {
542
+ mountingConfigId: "globalSearchEntryPointMobile",
543
+ widgetConfigId: "globalSearchEntryPointMobile",
544
+ },
545
+ {
546
+ mountingConfigId: "topSuggestionBarPDP",
547
+ widgetConfigId: "topSuggestionsBarDressesNoReviews",
548
+ },
549
+ {
550
+ mountingConfigId: "chatPreviewPDP",
551
+ widgetConfigId: "chatPreviewPDP",
552
+ },
553
+ {
554
+ mountingConfigId: "bottomSuggestionBarPDP",
555
+ widgetConfigId: "bottomSuggestionsBar",
556
+ },
557
+ ],
558
+ },
559
+ {
560
+ variantId: "pdpSwimwearHasReviewsGlobalSearch",
561
+ variantType: "pdp",
562
+ variantTests: [
563
+ {
564
+ testType: PageVariantTestType.ShopifyPDP,
565
+ },
566
+ {
567
+ testType: PageVariantTestType.InCollection,
568
+ collections: ["swim-html"],
569
+ },
570
+ {
571
+ testType: PageVariantTestType.HasReviews,
572
+ reviewMinimum: 4,
573
+ },
574
+ {
575
+ testType: PageVariantTestType.FeatureGate,
576
+ featureGate: FeatureGates.IsGlobalSearchEnabled,
577
+ },
578
+ ],
579
+ productIdExtractor: "shopify-product-id",
580
+ widgetMounting: [
581
+ {
582
+ mountingConfigId: "globalSearchEntryPoint",
583
+ widgetConfigId: "globalSearchEntryPoint",
584
+ },
585
+ {
586
+ mountingConfigId: "globalSearchEntryPointMobile",
587
+ widgetConfigId: "globalSearchEntryPointMobile",
588
+ },
589
+ {
590
+ mountingConfigId: "topSuggestionBarPDP",
591
+ widgetConfigId: "topSuggestionsBarSwimwearHasReviews",
592
+ },
593
+ {
594
+ mountingConfigId: "chatPreviewPDP",
595
+ widgetConfigId: "chatPreviewPDP",
596
+ },
597
+ {
598
+ mountingConfigId: "bottomSuggestionBarPDP",
599
+ widgetConfigId: "bottomSuggestionsBar",
600
+ },
601
+ ],
602
+ },
603
+ {
604
+ variantId: "pdpSwimwearNoReviewsGlobalSearch",
605
+ variantType: "pdp",
606
+ variantTests: [
607
+ {
608
+ testType: PageVariantTestType.ShopifyPDP,
609
+ },
610
+ {
611
+ testType: PageVariantTestType.InCollection,
612
+ collections: ["swim-html"],
613
+ },
614
+ {
615
+ testType: PageVariantTestType.FeatureGate,
616
+ featureGate: FeatureGates.IsGlobalSearchEnabled,
617
+ },
618
+ ],
619
+ productIdExtractor: "shopify-product-id",
620
+ widgetMounting: [
621
+ {
622
+ mountingConfigId: "globalSearchEntryPoint",
623
+ widgetConfigId: "globalSearchEntryPoint",
624
+ },
625
+ {
626
+ mountingConfigId: "globalSearchEntryPointMobile",
627
+ widgetConfigId: "globalSearchEntryPointMobile",
628
+ },
629
+ {
630
+ mountingConfigId: "topSuggestionBarPDP",
631
+ widgetConfigId: "topSuggestionsBarSwimwearNoReviews",
632
+ },
633
+ {
634
+ mountingConfigId: "chatPreviewPDP",
635
+ widgetConfigId: "chatPreviewPDP",
636
+ },
637
+ {
638
+ mountingConfigId: "bottomSuggestionBarPDP",
639
+ widgetConfigId: "bottomSuggestionsBar",
640
+ },
641
+ ],
642
+ },
643
+ {
644
+ variantId: "pdpShoesHasReviewsGlobalSearch",
645
+ variantType: "pdp",
646
+ variantTests: [
647
+ {
648
+ testType: PageVariantTestType.ShopifyPDP,
649
+ },
650
+ {
651
+ testType: PageVariantTestType.InCollection,
652
+ collections: ["shoes"],
653
+ },
654
+ {
655
+ testType: PageVariantTestType.HasReviews,
656
+ reviewMinimum: 4,
657
+ },
658
+ {
659
+ testType: PageVariantTestType.FeatureGate,
660
+ featureGate: FeatureGates.IsGlobalSearchEnabled,
661
+ },
662
+ ],
663
+ productIdExtractor: "shopify-product-id",
664
+ widgetMounting: [
665
+ {
666
+ mountingConfigId: "globalSearchEntryPoint",
667
+ widgetConfigId: "globalSearchEntryPoint",
668
+ },
669
+ {
670
+ mountingConfigId: "globalSearchEntryPointMobile",
671
+ widgetConfigId: "globalSearchEntryPointMobile",
672
+ },
673
+ {
674
+ mountingConfigId: "topSuggestionBarPDP",
675
+ widgetConfigId: "topSuggestionsBarShoesHasReviews",
676
+ },
677
+ {
678
+ mountingConfigId: "chatPreviewPDP",
679
+ widgetConfigId: "chatPreviewPDP",
680
+ },
681
+ {
682
+ mountingConfigId: "bottomSuggestionBarPDP",
683
+ widgetConfigId: "bottomSuggestionsBar",
684
+ },
685
+ ],
686
+ },
687
+ {
688
+ variantId: "pdpShoesNoReviewsGlobalSearch",
689
+ variantType: "pdp",
690
+ variantTests: [
691
+ {
692
+ testType: PageVariantTestType.ShopifyPDP,
693
+ },
694
+ {
695
+ testType: PageVariantTestType.InCollection,
696
+ collections: ["shoes"],
697
+ },
698
+ {
699
+ testType: PageVariantTestType.FeatureGate,
700
+ featureGate: FeatureGates.IsGlobalSearchEnabled,
701
+ },
702
+ ],
703
+ productIdExtractor: "shopify-product-id",
704
+ widgetMounting: [
705
+ {
706
+ mountingConfigId: "globalSearchEntryPoint",
707
+ widgetConfigId: "globalSearchEntryPoint",
708
+ },
709
+ {
710
+ mountingConfigId: "globalSearchEntryPointMobile",
711
+ widgetConfigId: "globalSearchEntryPointMobile",
712
+ },
713
+ {
714
+ mountingConfigId: "topSuggestionBarPDP",
715
+ widgetConfigId: "topSuggestionsBarShoesNoReviews",
716
+ },
717
+ {
718
+ mountingConfigId: "chatPreviewPDP",
719
+ widgetConfigId: "chatPreviewPDP",
720
+ },
721
+ {
722
+ mountingConfigId: "bottomSuggestionBarPDP",
723
+ widgetConfigId: "bottomSuggestionsBar",
724
+ },
725
+ ],
726
+ },
727
+ {
728
+ variantId: "pdpGlobalSearch",
729
+ variantType: "pdp",
730
+ variantTests: [
731
+ { testType: PageVariantTestType.ShopifyPDP },
732
+ {
733
+ testType: PageVariantTestType.FeatureGate,
734
+ featureGate: FeatureGates.IsGlobalSearchEnabled,
735
+ },
736
+ ],
737
+ productIdExtractor: "shopify-product-id",
738
+ widgetMounting: [
739
+ {
740
+ mountingConfigId: "globalSearchEntryPoint",
741
+ widgetConfigId: "globalSearchEntryPoint",
742
+ },
743
+ {
744
+ mountingConfigId: "globalSearchEntryPointMobile",
745
+ widgetConfigId: "globalSearchEntryPointMobile",
746
+ },
747
+ {
748
+ mountingConfigId: "topSuggestionBarPDP",
749
+ widgetConfigId: "topSuggestionsBar",
750
+ },
751
+ {
752
+ mountingConfigId: "chatPreviewPDP",
753
+ widgetConfigId: "chatPreviewPDP",
754
+ },
755
+ {
756
+ mountingConfigId: "bottomSuggestionBarPDP",
757
+ widgetConfigId: "bottomSuggestionsBar",
758
+ },
759
+ ],
760
+ },
761
+ {
762
+ variantId: "pdpDressesHasReviews",
763
+ variantType: "pdp",
764
+ variantTests: [
765
+ {
766
+ testType: PageVariantTestType.ShopifyPDP,
767
+ },
768
+ {
769
+ testType: PageVariantTestType.InCollection,
770
+ collections: ["dresses"],
771
+ },
772
+ {
773
+ testType: PageVariantTestType.HasReviews,
774
+ reviewMinimum: 4,
775
+ },
776
+ ],
777
+ productIdExtractor: "shopify-product-id",
778
+ widgetMounting: [
779
+ {
780
+ mountingConfigId: "topSuggestionBarPDP",
781
+ widgetConfigId: "topSuggestionsBarDressesHasReviews",
782
+ },
783
+ {
784
+ mountingConfigId: "chatPreviewPDP",
785
+ widgetConfigId: "chatPreviewPDP",
786
+ },
787
+ {
788
+ mountingConfigId: "bottomSuggestionBarPDP",
789
+ widgetConfigId: "bottomSuggestionsBar",
790
+ },
791
+ ],
792
+ },
793
+ {
794
+ variantId: "pdpDressesNoReviews",
795
+ variantType: "pdp",
796
+ variantTests: [
797
+ {
798
+ testType: PageVariantTestType.ShopifyPDP,
799
+ },
800
+ {
801
+ testType: PageVariantTestType.InCollection,
802
+ collections: ["dresses"],
803
+ },
804
+ ],
805
+ productIdExtractor: "shopify-product-id",
806
+ widgetMounting: [
807
+ {
808
+ mountingConfigId: "topSuggestionBarPDP",
809
+ widgetConfigId: "topSuggestionsBarDressesNoReviews",
810
+ },
811
+ {
812
+ mountingConfigId: "chatPreviewPDP",
813
+ widgetConfigId: "chatPreviewPDP",
814
+ },
815
+ {
816
+ mountingConfigId: "bottomSuggestionBarPDP",
817
+ widgetConfigId: "bottomSuggestionsBar",
818
+ },
819
+ ],
820
+ },
821
+ {
822
+ variantId: "pdpSwimwearHasReviews",
823
+ variantType: "pdp",
824
+ variantTests: [
825
+ {
826
+ testType: PageVariantTestType.ShopifyPDP,
827
+ },
828
+ {
829
+ testType: PageVariantTestType.InCollection,
830
+ collections: ["swim-html"],
831
+ },
832
+ {
833
+ testType: PageVariantTestType.HasReviews,
834
+ reviewMinimum: 4,
835
+ },
836
+ ],
837
+ productIdExtractor: "shopify-product-id",
838
+ widgetMounting: [
839
+ {
840
+ mountingConfigId: "topSuggestionBarPDP",
841
+ widgetConfigId: "topSuggestionsBarSwimwearHasReviews",
842
+ },
843
+ {
844
+ mountingConfigId: "chatPreviewPDP",
845
+ widgetConfigId: "chatPreviewPDP",
846
+ },
847
+ {
848
+ mountingConfigId: "bottomSuggestionBarPDP",
849
+ widgetConfigId: "bottomSuggestionsBar",
850
+ },
851
+ ],
852
+ },
853
+ {
854
+ variantId: "pdpSwimwearNoReviews",
855
+ variantType: "pdp",
856
+ variantTests: [
857
+ {
858
+ testType: PageVariantTestType.ShopifyPDP,
859
+ },
860
+ {
861
+ testType: PageVariantTestType.InCollection,
862
+ collections: ["swim-html"],
863
+ },
864
+ ],
865
+ productIdExtractor: "shopify-product-id",
866
+ widgetMounting: [
867
+ {
868
+ mountingConfigId: "topSuggestionBarPDP",
869
+ widgetConfigId: "topSuggestionsBarSwimwearNoReviews",
870
+ },
871
+ {
872
+ mountingConfigId: "chatPreviewPDP",
873
+ widgetConfigId: "chatPreviewPDP",
874
+ },
875
+ {
876
+ mountingConfigId: "bottomSuggestionBarPDP",
877
+ widgetConfigId: "bottomSuggestionsBar",
878
+ },
879
+ ],
880
+ },
881
+ {
882
+ variantId: "pdpShoesHasReviews",
883
+ variantType: "pdp",
884
+ variantTests: [
885
+ {
886
+ testType: PageVariantTestType.ShopifyPDP,
887
+ },
888
+ {
889
+ testType: PageVariantTestType.InCollection,
890
+ collections: ["shoes"],
891
+ },
892
+ {
893
+ testType: PageVariantTestType.HasReviews,
894
+ reviewMinimum: 4,
895
+ },
896
+ ],
897
+ productIdExtractor: "shopify-product-id",
898
+ widgetMounting: [
899
+ {
900
+ mountingConfigId: "topSuggestionBarPDP",
901
+ widgetConfigId: "topSuggestionsBarShoesHasReviews",
902
+ },
903
+ {
904
+ mountingConfigId: "chatPreviewPDP",
905
+ widgetConfigId: "chatPreviewPDP",
906
+ },
907
+ {
908
+ mountingConfigId: "bottomSuggestionBarPDP",
909
+ widgetConfigId: "bottomSuggestionsBar",
910
+ },
911
+ ],
912
+ },
913
+ {
914
+ variantId: "pdpShoesNoReviews",
915
+ variantType: "pdp",
916
+ variantTests: [
917
+ {
918
+ testType: PageVariantTestType.ShopifyPDP,
919
+ },
920
+ {
921
+ testType: PageVariantTestType.InCollection,
922
+ collections: ["shoes"],
923
+ },
924
+ ],
925
+ productIdExtractor: "shopify-product-id",
926
+ widgetMounting: [
927
+ {
928
+ mountingConfigId: "topSuggestionBarPDP",
929
+ widgetConfigId: "topSuggestionsBarShoesNoReviews",
930
+ },
931
+ {
932
+ mountingConfigId: "chatPreviewPDP",
933
+ widgetConfigId: "chatPreviewPDP",
934
+ },
935
+ {
936
+ mountingConfigId: "bottomSuggestionBarPDP",
937
+ widgetConfigId: "bottomSuggestionsBar",
938
+ },
939
+ ],
940
+ },
941
+ {
942
+ variantId: "pdp",
943
+ variantType: "pdp",
944
+ variantTests: [{ testType: PageVariantTestType.ShopifyPDP }],
945
+ productIdExtractor: "shopify-product-id",
946
+ widgetMounting: [
947
+ {
948
+ mountingConfigId: "topSuggestionBarPDP",
949
+ widgetConfigId: "topSuggestionsBar",
950
+ },
951
+ {
952
+ mountingConfigId: "chatPreviewPDP",
953
+ widgetConfigId: "chatPreviewPDP",
954
+ },
955
+ {
956
+ mountingConfigId: "bottomSuggestionBarPDP",
957
+ widgetConfigId: "bottomSuggestionsBar",
958
+ },
959
+ ],
960
+ },
961
+ ],
962
+ widgetConfigs: {
963
+ globalSearchEntryPoint: {
964
+ widgetConfigId: "globalSearchEntryPoint",
965
+ type: WidgetType.SearchZeroStateEntryPoint,
966
+ searchZeroStateVariant: "backgroundTertiary",
967
+ searchInputVariant: "standard",
968
+ suggestionButtonConfig: {
969
+ variant: "darkAccent",
970
+ hoverVariant: "secondaryAccent",
971
+ },
972
+ layout: "icon",
973
+ compactLabel: "Search",
974
+ searchBoxPlaceholder: 'Try "Colorful maxi for a summer wedding"',
975
+ initialSuggestions: [
976
+ "Vintage dresses",
977
+ "Maxi dresses",
978
+ "Disney outfit",
979
+ "Barbie collection",
980
+ "1970s jumpsuit",
981
+ "One-piece swimsuit",
982
+ "Cinderella divine dresses",
983
+ ],
984
+ } satisfies SearchEntryPointWidgetConfig,
985
+ globalSearchEntryPointMobile: {
986
+ widgetConfigId: "globalSearchEntryPointMobile",
987
+ type: WidgetType.SearchZeroStateEntryPoint,
988
+ searchZeroStateVariant: "backgroundTertiary",
989
+ searchInputVariant: "standard",
990
+ suggestionButtonConfig: {
991
+ variant: "darkAccent",
992
+ hoverVariant: "secondaryAccent",
993
+ },
994
+ layout: "icon",
995
+ searchBoxPlaceholder: 'Try "Colorful maxi for a summer wedding"',
996
+ initialSuggestions: [
997
+ "Vintage dresses",
998
+ "Maxi dresses",
999
+ "Disney outfit",
1000
+ "Barbie collection",
1001
+ "1970s jumpsuit",
1002
+ "One-piece swimsuit",
1003
+ "Cinderella divine dresses",
1004
+ ],
1005
+ } satisfies SearchEntryPointWidgetConfig,
1006
+ topSuggestionsBar: {
1007
+ widgetConfigId: "topSuggestionsBar",
1008
+ contentId: "spiffy-top-suggestion-bar-contents",
1009
+ type: WidgetType.SuggestionBarV2,
1010
+ metricDisplayLocation: ChatElementDisplayLocation.TOP_REVIEWS_SNIPPET,
1011
+ location: SuggestionBarLocationForMetrics.SUGGESTION_BAR_TOP,
1012
+ variant: "primary",
1013
+ hoverVariant: "secondaryDark",
1014
+ buttonTexts: {
1015
+ default: [
1016
+ "Summarize the reviews",
1017
+ "What retro charm will this piece bring to my wardrobe?",
1018
+ "What occasions is this piece perfect for?",
1019
+ "How do others describe the fit and feel?",
1020
+ "What makes this piece stand out for others?",
1021
+ ],
1022
+ },
1023
+ boldFirstButton: true,
1024
+ twoRowsOnMobile: false,
1025
+ buttonBorderRadius: "md",
1026
+ } satisfies SuggestionBarWidgetV2Config,
1027
+ topSuggestionsBarDressesHasReviews: {
1028
+ widgetConfigId: "topSuggestionsBarDressesHasReviews",
1029
+ contentId: "spiffy-top-suggestion-bar-contents",
1030
+ type: WidgetType.SuggestionBarV2,
1031
+ metricDisplayLocation: ChatElementDisplayLocation.TOP_REVIEWS_SNIPPET,
1032
+ location: SuggestionBarLocationForMetrics.SUGGESTION_BAR_TOP,
1033
+ variant: "primary",
1034
+ hoverVariant: "secondaryDark",
1035
+ buttonTexts: {
1036
+ default: [
1037
+ "Summarize the reviews",
1038
+ "Which unique accessories pair with this?",
1039
+ "Is the fit flowy or figure-enhancing?",
1040
+ "Is it true to size?",
1041
+ ],
1042
+ },
1043
+ boldFirstButton: true,
1044
+ twoRowsOnMobile: false,
1045
+ buttonBorderRadius: "md",
1046
+ } satisfies SuggestionBarWidgetV2Config,
1047
+ topSuggestionsBarDressesNoReviews: {
1048
+ widgetConfigId: "topSuggestionsBarDressesNoReviews",
1049
+ contentId: "spiffy-top-suggestion-bar-contents",
1050
+ type: WidgetType.SuggestionBarV2,
1051
+ metricDisplayLocation: ChatElementDisplayLocation.TOP_REVIEWS_SNIPPET,
1052
+ location: SuggestionBarLocationForMetrics.SUGGESTION_BAR_TOP,
1053
+ variant: "primary",
1054
+ hoverVariant: "secondaryDark",
1055
+ buttonTexts: {
1056
+ default: [
1057
+ "What occasion is this dress for?",
1058
+ "Which unique accessories pair with this?",
1059
+ "Is the fit flowy or figure-enhancing?",
1060
+ "Is it true to size?",
1061
+ ],
1062
+ },
1063
+ boldFirstButton: true,
1064
+ twoRowsOnMobile: false,
1065
+ buttonBorderRadius: "md",
1066
+ } satisfies SuggestionBarWidgetV2Config,
1067
+ topSuggestionsBarSwimwearHasReviews: {
1068
+ widgetConfigId: "topSuggestionsBarSwimwearHasReviews",
1069
+ contentId: "spiffy-top-suggestion-bar-contents",
1070
+ type: WidgetType.SuggestionBarV2,
1071
+ metricDisplayLocation: ChatElementDisplayLocation.TOP_REVIEWS_SNIPPET,
1072
+ location: SuggestionBarLocationForMetrics.SUGGESTION_BAR_TOP,
1073
+ variant: "primary",
1074
+ hoverVariant: "secondaryDark",
1075
+ buttonTexts: {
1076
+ default: [
1077
+ "Summarize the reviews",
1078
+ "Which accessories pair well?",
1079
+ "Does the top have padding?",
1080
+ "Does it run true to size?",
1081
+ ],
1082
+ },
1083
+ boldFirstButton: true,
1084
+ twoRowsOnMobile: false,
1085
+ buttonBorderRadius: "md",
1086
+ } satisfies SuggestionBarWidgetV2Config,
1087
+ topSuggestionsBarSwimwearNoReviews: {
1088
+ widgetConfigId: "topSuggestionsBarSwimwearNoReviews",
1089
+ contentId: "spiffy-top-suggestion-bar-contents",
1090
+ type: WidgetType.SuggestionBarV2,
1091
+ metricDisplayLocation: ChatElementDisplayLocation.TOP_REVIEWS_SNIPPET,
1092
+ location: SuggestionBarLocationForMetrics.SUGGESTION_BAR_TOP,
1093
+ variant: "primary",
1094
+ hoverVariant: "secondaryDark",
1095
+ buttonTexts: {
1096
+ default: [
1097
+ "Does it run true to size?",
1098
+ "Which accessories pair well?",
1099
+ "Does the top have padding?",
1100
+ "Does it run true to size?",
1101
+ ],
1102
+ },
1103
+ boldFirstButton: true,
1104
+ twoRowsOnMobile: false,
1105
+ buttonBorderRadius: "md",
1106
+ } satisfies SuggestionBarWidgetV2Config,
1107
+ topSuggestionsBarShoesHasReviews: {
1108
+ widgetConfigId: "topSuggestionsBarShoesHasReviews",
1109
+ contentId: "spiffy-top-suggestion-bar-contents",
1110
+ type: WidgetType.SuggestionBarV2,
1111
+ metricDisplayLocation: ChatElementDisplayLocation.TOP_REVIEWS_SNIPPET,
1112
+ location: SuggestionBarLocationForMetrics.SUGGESTION_BAR_TOP,
1113
+ variant: "primary",
1114
+ hoverVariant: "secondaryDark",
1115
+ buttonTexts: {
1116
+ default: [
1117
+ "Summarize the reviews",
1118
+ "Is this good for a night out?",
1119
+ "Are these true to size?",
1120
+ "Are these good for casual wear?",
1121
+ ],
1122
+ },
1123
+ boldFirstButton: true,
1124
+ twoRowsOnMobile: false,
1125
+ buttonBorderRadius: "md",
1126
+ } satisfies SuggestionBarWidgetV2Config,
1127
+ topSuggestionsBarShoesNoReviews: {
1128
+ widgetConfigId: "topSuggestionsBarShoesNoReviews",
1129
+ contentId: "spiffy-top-suggestion-bar-contents",
1130
+ type: WidgetType.SuggestionBarV2,
1131
+ metricDisplayLocation: ChatElementDisplayLocation.TOP_REVIEWS_SNIPPET,
1132
+ location: SuggestionBarLocationForMetrics.SUGGESTION_BAR_TOP,
1133
+ variant: "primary",
1134
+ hoverVariant: "secondaryDark",
1135
+ buttonTexts: {
1136
+ default: [
1137
+ "What era inspired these shoes?",
1138
+ "Is this good for a night out?",
1139
+ "Are these true to size?",
1140
+ "Are these good for casual wear?",
1141
+ ],
1142
+ },
1143
+ boldFirstButton: true,
1144
+ twoRowsOnMobile: false,
1145
+ buttonBorderRadius: "md",
1146
+ } satisfies SuggestionBarWidgetV2Config,
1147
+ searchPromptPLP: {
1148
+ widgetConfigId: "searchPromptPLP",
1149
+ type: WidgetType.SearchPrompt,
1150
+ variant: "primary",
1151
+ title: "Find exactly what you're looking for...",
1152
+ headerConfig: {
1153
+ title: "Search Assistant",
1154
+ logo: "search-logo.svg",
1155
+ logoHeight: 25,
1156
+ orgShortName: "unique-vintage",
1157
+ },
1158
+ suggestionButtons: {
1159
+ variant: "darkPrimary",
1160
+ hoverVariant: "secondary",
1161
+ buttonTexts: [
1162
+ "Vintage dresses",
1163
+ "Maxi dresses",
1164
+ "Disney outfit",
1165
+ "Barbie collection",
1166
+ "1970s jumpsuit",
1167
+ "One-piece swimsuit",
1168
+ "Cinderella divine dresses",
1169
+ ],
1170
+ },
1171
+ footerConfig: {
1172
+ replyButtonText: "Be as specific as you like...",
1173
+ replyButtonIcon: "ai-search",
1174
+ },
1175
+ } satisfies SearchPromptWidgetConfig,
1176
+ chatPreviewPLP: {
1177
+ widgetConfigId: "chatPreview",
1178
+ type: WidgetType.ChatPreview,
1179
+ variant: "filled",
1180
+ addSeparators: true,
1181
+ footerConfig: {
1182
+ replyButtonText: "What can I help you find?",
1183
+ replyButtonIcon: "magnifyingGlass",
1184
+ },
1185
+ } satisfies ChatPreviewWidgetConfig,
1186
+ chatPreviewPDP: {
1187
+ widgetConfigId: "chatPreviewPDP",
1188
+ type: WidgetType.ChatPreview,
1189
+ variant: "filled",
1190
+ addSeparators: true,
1191
+ } satisfies ChatPreviewWidgetConfig,
1192
+ bottomSuggestionsBar: {
1193
+ widgetConfigId: "bottomSuggestionsBar",
1194
+ contentId: "spiffy-bottom-suggestion-bar-contents",
1195
+ type: WidgetType.SuggestionBarV2,
1196
+ metricDisplayLocation: ChatElementDisplayLocation.BOTTOM_REVIEWS_SNIPPET,
1197
+ location: SuggestionBarLocationForMetrics.SUGGESTION_BAR_BOTTOM,
1198
+ variant: "dark",
1199
+ hoverVariant: "secondaryDark",
1200
+ buttonTexts: {
1201
+ default: [
1202
+ "Summarize the reviews",
1203
+ "What retro charm will this piece bring to my wardrobe?",
1204
+ "What occasions is this piece perfect for?",
1205
+ "How do others describe the fit and feel?",
1206
+ "What makes this piece stand out for others?",
1207
+ ],
1208
+ },
1209
+ boldFirstButton: true,
1210
+ twoRowsOnMobile: true,
1211
+ animationSpeed: "none",
1212
+ buttonBorderRadius: "md",
1213
+ } satisfies SuggestionBarWidgetV2Config,
1214
+ },
1215
+ mountingConfigs: {
1216
+ globalSearchEntryPoint: {
1217
+ mountingConfigId: "globalSearchEntryPoint",
1218
+ containerId: GLOBAL_SEARCH_ENTRYPOINT_ID,
1219
+ testId: GLOBAL_SEARCH_ENTRYPOINT_TESTID,
1220
+ insertionPoint: {
1221
+ selector: ".header__search.header__search--desktop",
1222
+ insertionType: DOMInsertionType.AFTER,
1223
+ },
1224
+ suppressionSelector:
1225
+ ".search-modal__content.search-modal__content-bottom",
1226
+ className: "global-entry-desktop",
1227
+ style: {
1228
+ zIndex: "2147483647",
1229
+ marginRight: "32px",
1230
+ height: "80px",
1231
+ },
1232
+ },
1233
+ globalSearchEntryPointMobile: {
1234
+ mountingConfigId: "globalSearchEntryPoint",
1235
+ containerId: MOBILE_GLOBAL_SEARCH_ENTRYPOINT_ID,
1236
+ testId: GLOBAL_SEARCH_ENTRYPOINT_TESTID,
1237
+ insertionPoint: {
1238
+ selector: "sticky-header.header-wrapper:has(.mobile-search)",
1239
+ insertionType: DOMInsertionType.AFTER,
1240
+ },
1241
+ suppressionSelector: ".mobile-search .search-modal__form",
1242
+ className: "global-entry-mobile",
1243
+ style: {
1244
+ zIndex: "2147483647",
1245
+ marginTop: "8px",
1246
+ marginLeft: "15px",
1247
+ marginRight: "15px",
1248
+ },
1249
+ },
1250
+ chatPreviewPLP: {
1251
+ mountingConfigId: "chatPreviewPLP",
1252
+ containerId: CHAT_PREVIEW_CONTAINER_ID,
1253
+ testId: CHAT_PREVIEW_TESTID,
1254
+ insertionPoint: {
1255
+ selector: ".collection .product-grid",
1256
+ insertionType: DOMInsertionType.AFTER,
1257
+ },
1258
+ gridInsertionType: GridInsertionType.ROW_2,
1259
+ },
1260
+ chatPreviewPDP: {
1261
+ mountingConfigId: "chatPreviewPDP",
1262
+ containerId: CHAT_PREVIEW_CONTAINER_ID,
1263
+ testId: CHAT_PREVIEW_TESTID,
1264
+ insertionPoint: {
1265
+ selector: ".product__accordion",
1266
+ insertionType: DOMInsertionType.BEFORE,
1267
+ },
1268
+ style: {
1269
+ marginTop: "16px",
1270
+ marginBottom: "8px",
1271
+ },
1272
+ },
1273
+ topSuggestionBarPDP: {
1274
+ mountingConfigId: "topSuggestionBarPDP",
1275
+ containerId: TOP_SUGGESTION_BAR_PDP_ID,
1276
+ testId: TOP_SUGGESTION_BAR_TESTID,
1277
+ insertionPoint: {
1278
+ selector: "div:has(> .main_price)",
1279
+ insertionType: DOMInsertionType.AFTER,
1280
+ },
1281
+ style: {
1282
+ marginTop: "16px",
1283
+ marginBottom: "16px",
1284
+ },
1285
+ },
1286
+ bottomSuggestionBarPDP: {
1287
+ mountingConfigId: "bottomSuggestionBarPDP",
1288
+ containerId: BOTTOM_REVIEWS_BAR_ID,
1289
+ testId: BOTTOM_SUGGESTION_BAR_TESTID,
1290
+ insertionPoint: {
1291
+ selector: ".junip-product-review-summary-wrapper + div.junip-separator",
1292
+ insertionType: DOMInsertionType.ADJACENT_AFTER_END,
1293
+ selectionIndex: 0,
1294
+ },
1295
+ style: {
1296
+ marginTop: "16px",
1297
+ marginBottom: "16px",
1298
+ },
1299
+ },
1300
+ },
1301
+ });
1302
+
1303
+ const uniqueVintageOrgInfo = {
1304
+ shortName: OrgShortName.UniqueVintage,
1305
+ name: "Unique Vintage",
1306
+ domain: "unique-vintage.com",
1307
+ defaultProductId: "red-cowgirl-print-swing-shirt-dress",
1308
+ alwaysEnabledMerchants: true,
1309
+ orgUIConfig: uniqueVintageOrgUIConfig,
1310
+ orgColors: () => uniqueVintageColors,
1311
+ orgPageConfig: uniqueVintagePageConfig,
1312
+ } satisfies BasicOrgInfoType;
1313
+
1314
+ export { uniqueVintageOrgInfo };