@envive-ai/react-hooks 0.1.0 → 0.1.1
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/{GridInsertionService-CS_bnPh0.cjs → GridInsertionService-C00upKLB.js} +18 -6
- package/dist/{GridInsertionService-CEYo9pGj.js → GridInsertionService-CMJVhD6q.cjs} +31 -1
- package/dist/{bandolier-Bm2xAt_j.cjs → bandolier-3rHPPhkF.cjs} +27 -28
- package/dist/{bandolier-Ble8jEa8.js → bandolier-DpF-HUG_.js} +7 -8
- package/dist/{carpe-Da7b-LCW.cjs → carpe-BG7Q_KCG.cjs} +14 -15
- package/dist/{carpe-W13mhRRP.js → carpe-DLuc07V7.js} +7 -8
- package/dist/contexts/index.cjs +9 -4
- package/dist/contexts/index.d.cts +8 -22
- package/dist/contexts/index.d.ts +11 -26
- package/dist/contexts/index.js +5 -5
- package/dist/contexts-C4Iz162H.cjs +11631 -0
- package/dist/contexts-Dq7tO_0y.js +11459 -0
- package/dist/{coterie-3y0D9ko4.cjs → coterie-DUdvJvAs.cjs} +10 -10
- package/dist/{coterie-DOWcJAYv.js → coterie-FybYN_xE.js} +7 -7
- package/dist/{default-D_KPZdPJ.cjs → default-CKyjzyLc.cjs} +1 -1
- package/dist/{default-C2fEZKXk.js → default-CL94oJfj.js} +1 -1
- package/dist/default-DMtAjA62.cjs +4 -0
- package/dist/default-zcmT2032.js +4 -0
- package/dist/{divIds-DnZNd7rA.cjs → divIds-BOqjn3bE.cjs} +0 -20
- package/dist/{divIds-Bss-btao.js → divIds-Cfp3v_rG.js} +1 -15
- package/dist/{models-DHdb7QWn.js → domInsertionService-BtzuH2Sc.js} +15 -1
- package/dist/{models-ixxUsGL_.cjs → domInsertionService-Cb9814oM.cjs} +20 -0
- package/dist/{dreamlandBaby-DCIsuU9R.cjs → dreamlandBaby-C8yzW4Nl.cjs} +11 -12
- package/dist/{dreamlandBaby-DvSaZGrz.js → dreamlandBaby-WXcbsTXO.js} +7 -8
- package/dist/{fiveCbd-CkOlVby_.cjs → fiveCbd-CZYzZPl3.cjs} +10 -11
- package/dist/{fiveCbd-B1SESMCO.js → fiveCbd-kl6CoxoF.js} +7 -8
- package/dist/{forLoveAndLemons-DmwYZIk0.js → forLoveAndLemons-BD2qh-6B.js} +5 -5
- package/dist/{forLoveAndLemons-CfYPMnKS.cjs → forLoveAndLemons-BNu-PfFB.cjs} +7 -7
- package/dist/{greenpan-Bsl3ir59.cjs → greenpan-D6fDmjU8.cjs} +11 -12
- package/dist/{greenpan-BtOi45lf.js → greenpan-LDDXZTsh.js} +7 -8
- package/dist/{grooveLife-Cmm1PSCL.cjs → grooveLife-CcylXabB.cjs} +12 -13
- package/dist/{grooveLife-6_dtYsRk.js → grooveLife-D-1qfxwj.js} +8 -9
- package/dist/{homegrownCannabis-CO0uY_mp.cjs → homegrownCannabis-BEZzwFlm.cjs} +10 -10
- package/dist/{homegrownCannabis-C-kw-74X.js → homegrownCannabis-BScZhy9v.js} +6 -6
- package/dist/hooks/index.cjs +16 -4
- package/dist/hooks/index.d.cts +256 -45
- package/dist/hooks/index.d.ts +257 -45
- package/dist/hooks/index.js +5 -5
- package/dist/{jackArcher-DdYTIzAV.cjs → jackArcher-BwMClqMP.cjs} +11 -12
- package/dist/{jackArcher-CLVmwwpI.js → jackArcher-cJJVulZ9.js} +7 -8
- package/dist/{jordanCraig-_u3-w4Hp.cjs → jordanCraig-DGsCO2o1.cjs} +19 -20
- package/dist/{jordanCraig-Am-Oor-O.js → jordanCraig-DNDMT0hn.js} +7 -8
- package/dist/{kindredBravely-eWp-ud_E.js → kindredBravely-ROyesnVk.js} +6 -7
- package/dist/{kindredBravely-CWovIDSc.cjs → kindredBravely-wV2XT1r_.cjs} +10 -11
- package/dist/{kutFromTheKloth-Q589bAOC.cjs → kutFromTheKloth-B6GR8tO9.cjs} +11 -12
- package/dist/{kutFromTheKloth-BMV4BuGQ.js → kutFromTheKloth-BCUOHegv.js} +7 -8
- package/dist/{larryAndSerges-CEau764j.cjs → larryAndSerges-CIqB9tKz.cjs} +8 -8
- package/dist/{larryAndSerges-BMUlTgI-.js → larryAndSerges-CqS02fnX.js} +5 -5
- package/dist/{leapsAndRebounds-DHAtRTJD.cjs → leapsAndRebounds-CFj9F_z1.cjs} +12 -13
- package/dist/{leapsAndRebounds-DGMzPO7T.js → leapsAndRebounds-j4YqSvNb.js} +7 -8
- package/dist/{longevityrx-jH2JLhNH.js → longevityrx-9sUQZCVZ.js} +7 -8
- package/dist/{longevityrx-CZW8Hxzi.cjs → longevityrx-C-Yc5LPR.cjs} +10 -11
- package/dist/{lookOptic-BGXP5P_V.js → lookOptic-CQryypdM.js} +7 -8
- package/dist/{lookOptic-CA6RwLbG.cjs → lookOptic-dbaaorhR.cjs} +10 -11
- package/dist/{mantraBrand-Cm9_PBCT.js → mantraBrand-CifBQtHp.js} +8 -9
- package/dist/{mantraBrand-DByNqpnL.cjs → mantraBrand-D5MTZ6Mj.cjs} +23 -24
- package/dist/{medterra-DnPN2ksU.cjs → medterra-BCrXdmFE.cjs} +12 -13
- package/dist/{medterra-B0wxj_PV.js → medterra-DhENCf-m.js} +7 -8
- package/dist/{modells-CoYgkLSp.cjs → modells-C_P_894S.cjs} +10 -11
- package/dist/{modells-Bmz8Ag5M.js → modells-aQrV10D7.js} +7 -8
- package/dist/{pressedFloral-DSKs_oVG.js → pressedFloral-D-amnTQK.js} +7 -8
- package/dist/{pressedFloral-DjBiSoUl.cjs → pressedFloral-DErfwwl0.cjs} +13 -14
- package/dist/{skinPerfection-B_3xzVNS.cjs → skinPerfection-DF6nQXjh.cjs} +10 -11
- package/dist/{skinPerfection-IDrBuAPt.js → skinPerfection-DRVPJp3h.js} +7 -8
- package/dist/{snapSupplements-BStTsdOZ.cjs → snapSupplements-CLZjItJi.cjs} +10 -11
- package/dist/{snapSupplements-BJk5T5ba.js → snapSupplements-Yxs4jgC-.js} +7 -8
- package/dist/{spanx-LwU1zSzq.cjs → spanx-Cpbot5J5.cjs} +14 -15
- package/dist/{spanx-BYg0LE7R.js → spanx-DVDyAyFC.js} +9 -10
- package/dist/{spanxStaging-CfSmuKYB.js → spanxStaging-DAiFEMRU.js} +9 -10
- package/dist/{spanxStaging-OZLV9qix.cjs → spanxStaging-DbaVonN6.cjs} +20 -21
- package/dist/{supergoop-BqPXDnKk.cjs → supergoop-B5VQlsoe.cjs} +11 -12
- package/dist/{supergoop-CIlrHND_.js → supergoop-C4McrZPT.js} +7 -8
- package/dist/types-D4vlfTd0.d.ts +1026 -0
- package/dist/types-DGoFEos_.d.cts +1026 -0
- package/dist/{types-CYNvLeSA.js → types-DZzSQ5a6.js} +33 -33
- package/dist/{types-C4T5UOIW.cjs → types-QJObznro.cjs} +33 -33
- package/dist/{uniqueVintage-B30mOqbH.cjs → uniqueVintage-BLp_UtBR.cjs} +22 -23
- package/dist/{uniqueVintage-CFueJOhO.js → uniqueVintage-CS4TgOJW.js} +7 -8
- package/dist/{venaCbd-DHGZy49P.cjs → venaCbd-BxmadOeJ.cjs} +11 -12
- package/dist/{venaCbd-T0CqVD4k.js → venaCbd-DfnFV7Qp.js} +7 -8
- package/dist/{westonJonBoucher-BdMzs_Yg.cjs → westonJonBoucher-BZdusJgo.cjs} +12 -13
- package/dist/{westonJonBoucher-b4TCQ4ev.js → westonJonBoucher-C0FE4Wup.js} +7 -8
- package/dist/{wineEnthusiast-BqR0i_54.js → wineEnthusiast-CmhNg47M.js} +7 -8
- package/dist/{wineEnthusiast-BLGlOjgr.cjs → wineEnthusiast-DQxdV8Yg.cjs} +12 -13
- package/dist/{wolfMattress-DNGZOivg.cjs → wolfMattress-CqyOUgPB.cjs} +11 -11
- package/dist/{wolfMattress-CyyO-LoC.js → wolfMattress-vMvqmwgI.js} +6 -6
- package/dist/{wolfTactical-3Mm2fvVF.js → wolfTactical-DvqxZtoA.js} +7 -8
- package/dist/{wolfTactical-BmXYlFjr.cjs → wolfTactical-q3TVDP85.cjs} +11 -12
- package/package.json +1 -1
- package/src/atoms/org/org.ts +2 -2
- package/src/hooks/useSearch.tsx +1 -4
- package/src/initialize.ts +1 -1
- package/src/main.tsx +10 -25
- package/dist/chatElementDisplayLocation-CX8fuNao.d.cts +0 -239
- package/dist/chatElementDisplayLocation-CwptS9tx.d.ts +0 -239
- package/dist/contexts-BRjfVq_k.js +0 -5064
- package/dist/contexts-BYArqZtK.cjs +0 -5164
- package/dist/default-CBUq6Q6G.cjs +0 -4
- package/dist/default-CGIFZK6m.js +0 -4
- package/dist/logger-Dln20ans.cjs +0 -25
- package/dist/logger-pdEEY8T2.js +0 -19
- package/src/main.ts +0 -85
- /package/dist/{cdnService-zQfKk3Eb.js → cdnService-CAyO3axV.js} +0 -0
- /package/dist/{cdnService-CZ-aXcY6.cjs → cdnService-DIF1i7VC.cjs} +0 -0
- /package/dist/{custservice-types-CkfxZiHY.cjs → custservice-types-BgjGHCtD.cjs} +0 -0
- /package/dist/{custservice-types-CFIFwZ-r.js → custservice-types-V6FWABp4.js} +0 -0
- /package/dist/{entrypoints-D_JUvkgy.cjs → entrypoints-C8JwiMYA.cjs} +0 -0
- /package/dist/{entrypoints-YLQsbBRD.js → entrypoints-RmIbdYxh.js} +0 -0
- /package/dist/{socialProofClasses-CrQBWdSA.cjs → socialProofClasses-CaA83vI4.cjs} +0 -0
- /package/dist/{socialProofClasses-Bhv2Vulz.js → socialProofClasses-KB7zOMmg.js} +0 -0
- /package/dist/{suggestionBarV2-types-CaovchMP.cjs → suggestionBarV2-types-XHYD3j8E.cjs} +0 -0
- /package/dist/{suggestionBarV2-types-BllzwsBD.js → suggestionBarV2-types-aiQmVx5m.js} +0 -0
package/dist/hooks/index.d.ts
CHANGED
|
@@ -1,7 +1,11 @@
|
|
|
1
|
-
import { CamelCasedPropertiesDeep, ChatElementDisplayLocation, GenerationParams as GenerationParams$1 } from "../
|
|
2
|
-
import { CustServiceAttachment, FormType, FulfillmentDisplayStatus, ProductSearchResponseAttributes, ResponseCategory, ResponseProductAttributes } from "@spiffy-ai/commerce-api-client";
|
|
1
|
+
import { CamelCasedPropertiesDeep, ChatElementDisplayLocation, GenerationParams as GenerationParams$1, ProductCardConfig } from "../types-D4vlfTd0.js";
|
|
2
|
+
import { AttachmentRequest, CustServiceAttachment, FormType, FulfillmentDisplayStatus, ProductSearchResponseAttributes, ResponseCategory, ResponseProductAttributes, SearchResponseProduct } from "@spiffy-ai/commerce-api-client";
|
|
3
|
+
import "jotai";
|
|
3
4
|
import * as react0 from "react";
|
|
4
5
|
import { ReactElement, RefObject } from "react";
|
|
6
|
+
import * as motion_dom0 from "motion-dom";
|
|
7
|
+
import * as framer_motion0 from "framer-motion";
|
|
8
|
+
import { MotionValue, ValueAnimationTransition } from "framer-motion";
|
|
5
9
|
|
|
6
10
|
//#region src/application/models/api/responseGenerics.d.ts
|
|
7
11
|
interface ApiReviewRichInformation {
|
|
@@ -200,33 +204,37 @@ type OrderMessageMetadata = {
|
|
|
200
204
|
metadata: OrderResponseAttributes['attributes'];
|
|
201
205
|
};
|
|
202
206
|
//#endregion
|
|
203
|
-
//#region src/hooks/
|
|
204
|
-
declare const
|
|
207
|
+
//#region src/hooks/useBlockBackButton.d.ts
|
|
208
|
+
declare const useBlockBackButton: (enabled: boolean, callback: () => void) => void;
|
|
205
209
|
//#endregion
|
|
206
|
-
//#region src/hooks/
|
|
207
|
-
declare const
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
210
|
+
//#region src/hooks/useChatToggle.d.ts
|
|
211
|
+
declare const useChatToggle: () => {
|
|
212
|
+
toggle: (triggerLocation: ChatElementDisplayLocation, triggerId?: string) => void;
|
|
213
|
+
isOpen: boolean;
|
|
214
|
+
openChat: (triggerLocation: ChatElementDisplayLocation, triggerId?: string) => void;
|
|
215
|
+
closeChat: (triggerLocation: ChatElementDisplayLocation, triggerId?: string) => void;
|
|
212
216
|
};
|
|
213
217
|
//#endregion
|
|
214
|
-
//#region src/hooks/
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
removePreviousDiscussions: (msgs: Message[][], index: number) => Message[][];
|
|
227
|
-
getFilteredMessages: (msgs: Message[][], skipFilter?: boolean) => Message[][];
|
|
218
|
+
//#region src/hooks/useCustomerSupportHandoff.d.ts
|
|
219
|
+
/**
|
|
220
|
+
* Hook to call the `click` method of the merchant's customer support chat widget.
|
|
221
|
+
*
|
|
222
|
+
* @param onSwitchToAgent a function to override the function returned by the hook. This is mainly to
|
|
223
|
+
* preserve backward compatibility for merchants not using Kustomer and will be removed when all
|
|
224
|
+
* CS integrations are handled.
|
|
225
|
+
*
|
|
226
|
+
* @returns a function that searches for the customer support chat widget and calls the `click` method.
|
|
227
|
+
*/
|
|
228
|
+
declare const useCustomerSupportHandoff: (onSwitchToAgent?: () => void) => {
|
|
229
|
+
onSwitch: () => void;
|
|
228
230
|
};
|
|
229
231
|
//#endregion
|
|
232
|
+
//#region src/hooks/useDebounce.d.ts
|
|
233
|
+
declare function useDebounce<T>(value: T, delay: number): T;
|
|
234
|
+
//#endregion
|
|
235
|
+
//#region src/hooks/useDynamicVariants.d.ts
|
|
236
|
+
declare const useDynamicVariants: () => void;
|
|
237
|
+
//#endregion
|
|
230
238
|
//#region src/application/utils/mouseEventTypes.d.ts
|
|
231
239
|
type MouseEventTypes = 'click' | 'dblclick' | 'mouseup' | 'mousedown';
|
|
232
240
|
//#endregion
|
|
@@ -265,6 +273,230 @@ interface ElementObserverUtility {
|
|
|
265
273
|
}
|
|
266
274
|
declare const useElementObserver: (selector: NodeSelector) => ElementObserverUtility;
|
|
267
275
|
//#endregion
|
|
276
|
+
//#region src/hooks/useFileUpload.d.ts
|
|
277
|
+
declare const useFileUpload: () => {
|
|
278
|
+
error: string;
|
|
279
|
+
fileInputRef: react0.MutableRefObject<null>;
|
|
280
|
+
attachment: AttachmentRequest | undefined;
|
|
281
|
+
handleFileSelect: (event: React.ChangeEvent<HTMLInputElement>) => void;
|
|
282
|
+
handleFileRemove: () => void;
|
|
283
|
+
prepareAttachment: () => AttachmentRequest | undefined;
|
|
284
|
+
};
|
|
285
|
+
//#endregion
|
|
286
|
+
//#region src/hooks/useGrabAndScroll.d.ts
|
|
287
|
+
declare const useGrabAndScroll: (enabled: boolean, chunkWidth: number, speed?: number, offset?: number) => {
|
|
288
|
+
containerRef: react0.RefObject<HTMLDivElement>;
|
|
289
|
+
leftArrow: boolean;
|
|
290
|
+
rightArrow: boolean;
|
|
291
|
+
animationTrigger: () => void;
|
|
292
|
+
onNext: (cardsToSlide: number) => void;
|
|
293
|
+
onPrevious: (cardsToSlide: number) => void;
|
|
294
|
+
};
|
|
295
|
+
//#endregion
|
|
296
|
+
//#region src/hooks/useHideElements.d.ts
|
|
297
|
+
/**
|
|
298
|
+
* This hook hides/shows elements that could overlap with the chat when the chat is opened/closed.
|
|
299
|
+
*/
|
|
300
|
+
declare const useHideElements: () => void;
|
|
301
|
+
//#endregion
|
|
302
|
+
//#region src/hooks/useHorizontalScrollAnimation.d.ts
|
|
303
|
+
interface UseHorizontalScrollAnimationOptions {
|
|
304
|
+
scrollContainerRef: RefObject<HTMLDivElement>;
|
|
305
|
+
animationSpeed?: 'standard' | 'slow' | 'none';
|
|
306
|
+
}
|
|
307
|
+
declare function useHorizontalScrollAnimation({
|
|
308
|
+
scrollContainerRef,
|
|
309
|
+
animationSpeed
|
|
310
|
+
}: UseHorizontalScrollAnimationOptions): void;
|
|
311
|
+
//#endregion
|
|
312
|
+
//#region src/hooks/useImageResolver.d.ts
|
|
313
|
+
declare const useImageResolver: () => {
|
|
314
|
+
resolve: (image?: string, size?: number) => string | undefined;
|
|
315
|
+
};
|
|
316
|
+
//#endregion
|
|
317
|
+
//#region src/hooks/useIntersection.d.ts
|
|
318
|
+
declare const useIntersection: (element: RefObject<HTMLElement>, rootMargin: string) => boolean;
|
|
319
|
+
//#endregion
|
|
320
|
+
//#region src/hooks/useIsSmallScreen.d.ts
|
|
321
|
+
declare const useIsSmallScreen: () => boolean;
|
|
322
|
+
//#endregion
|
|
323
|
+
//#region src/hooks/useMessageFilter.d.ts
|
|
324
|
+
type MessageFinder = {
|
|
325
|
+
msgs: Message[][];
|
|
326
|
+
type?: MessageType;
|
|
327
|
+
role?: MessageRole;
|
|
328
|
+
};
|
|
329
|
+
declare const useMessageFilter: () => {
|
|
330
|
+
findMessageIndex: ({
|
|
331
|
+
msgs,
|
|
332
|
+
type,
|
|
333
|
+
role
|
|
334
|
+
}: MessageFinder) => number;
|
|
335
|
+
removePreviousDiscussions: (msgs: Message[][], index: number) => Message[][];
|
|
336
|
+
getFilteredMessages: (msgs: Message[][], skipFilter?: boolean) => Message[][];
|
|
337
|
+
};
|
|
338
|
+
//#endregion
|
|
339
|
+
//#region src/hooks/useMessageScrollObserver.d.ts
|
|
340
|
+
declare const useMessageScrollObserver: (boxRef: React.RefObject<HTMLDivElement>, scrollRef: React.RefObject<HTMLDivElement>, onScrollChange: (position: number) => void) => void;
|
|
341
|
+
//#endregion
|
|
342
|
+
//#region src/hooks/useReducedMotionWithOverride.d.ts
|
|
343
|
+
declare const useReducedMotionWithOverride: () => any;
|
|
344
|
+
//#endregion
|
|
345
|
+
//#region src/application/models/api/search.d.ts
|
|
346
|
+
interface SearchResult {
|
|
347
|
+
products: SearchResponseProduct[];
|
|
348
|
+
filters: string[];
|
|
349
|
+
generatedQuery?: string;
|
|
350
|
+
totalProductCount: number;
|
|
351
|
+
searchResponseId: string;
|
|
352
|
+
}
|
|
353
|
+
//#endregion
|
|
354
|
+
//#region src/atoms/search/searchAPI.d.ts
|
|
355
|
+
type SelectedFilterOption = {
|
|
356
|
+
id: string;
|
|
357
|
+
displayName: string;
|
|
358
|
+
filterId: string;
|
|
359
|
+
filterItemId: string;
|
|
360
|
+
};
|
|
361
|
+
//#endregion
|
|
362
|
+
//#region src/types/search-filter-types.d.ts
|
|
363
|
+
type SelectFilterItem = ({
|
|
364
|
+
filterId,
|
|
365
|
+
filterItemId,
|
|
366
|
+
isSelected,
|
|
367
|
+
displayName
|
|
368
|
+
}: {
|
|
369
|
+
filterId: string;
|
|
370
|
+
filterItemId: string;
|
|
371
|
+
isSelected: boolean;
|
|
372
|
+
displayName: string;
|
|
373
|
+
}) => void;
|
|
374
|
+
type SearchFilter = {
|
|
375
|
+
filterId: string;
|
|
376
|
+
displayName: string;
|
|
377
|
+
items: SearchFilterItem[];
|
|
378
|
+
};
|
|
379
|
+
type SearchFilterItem = {
|
|
380
|
+
filterItemId: string;
|
|
381
|
+
displayName: string;
|
|
382
|
+
productCount: number;
|
|
383
|
+
isSelected: boolean;
|
|
384
|
+
};
|
|
385
|
+
//#endregion
|
|
386
|
+
//#region src/hooks/utils.d.ts
|
|
387
|
+
declare const enum SearchResultsState {
|
|
388
|
+
Loading = 0,
|
|
389
|
+
Results = 1,
|
|
390
|
+
NoResults = 2,
|
|
391
|
+
}
|
|
392
|
+
//#endregion
|
|
393
|
+
//#region src/hooks/useSearch.d.ts
|
|
394
|
+
interface SearchResultsHocProps {
|
|
395
|
+
searchData: SearchResult | null;
|
|
396
|
+
searchResponseId: string;
|
|
397
|
+
merchantShortName: string;
|
|
398
|
+
productCardConfig: ProductCardConfig;
|
|
399
|
+
productList: SearchResponseProduct[];
|
|
400
|
+
autocompleteResults: string[];
|
|
401
|
+
searchFilters: SearchFilter[];
|
|
402
|
+
availableDynamicFilters: {
|
|
403
|
+
name: string;
|
|
404
|
+
displayName: string;
|
|
405
|
+
}[];
|
|
406
|
+
selectedFilterOptions: SelectedFilterOption[];
|
|
407
|
+
searchText: string;
|
|
408
|
+
searchResultsState: SearchResultsState;
|
|
409
|
+
isLoadingAutocomplete: boolean;
|
|
410
|
+
isLoadingSearch: boolean;
|
|
411
|
+
isFilterOpen: boolean;
|
|
412
|
+
isDirty: boolean;
|
|
413
|
+
focusedIndex: number;
|
|
414
|
+
focusedOptionId: string | undefined;
|
|
415
|
+
filterButtonText: string;
|
|
416
|
+
onSearchInputChange: (value: string) => void;
|
|
417
|
+
onSubmitSearch: () => void;
|
|
418
|
+
onAutocompleteSelect: (suggestion: string) => void;
|
|
419
|
+
onKeyDown: (event: React.KeyboardEvent<HTMLInputElement>) => void;
|
|
420
|
+
onToggleDynamicFilter: ({
|
|
421
|
+
filter,
|
|
422
|
+
dynamicFilterDisplayName
|
|
423
|
+
}: {
|
|
424
|
+
filter: string;
|
|
425
|
+
dynamicFilterDisplayName: string;
|
|
426
|
+
}) => void;
|
|
427
|
+
onSelectFilterItem: SelectFilterItem;
|
|
428
|
+
onRemoveFilter: (filter: SelectedFilterOption) => void;
|
|
429
|
+
onClearAllFilters: () => void;
|
|
430
|
+
setIsFilterOpen: (isFilterOpen: boolean) => void;
|
|
431
|
+
searchResultsRef: React.RefObject<HTMLDivElement>;
|
|
432
|
+
}
|
|
433
|
+
declare const useSearch: () => SearchResultsHocProps;
|
|
434
|
+
//#endregion
|
|
435
|
+
//#region src/hooks/useSnapCalculator.d.ts
|
|
436
|
+
type Unit = 'percent' | 'pixel';
|
|
437
|
+
declare const useSnapCalculator: (snaps: number[], maxHeight: number, unit: Unit) => {
|
|
438
|
+
viewportHeightPx: number;
|
|
439
|
+
snapsToPixels: number[];
|
|
440
|
+
swipeviewHeightPx: number;
|
|
441
|
+
getPixelToSnap: (pixels: number) => number;
|
|
442
|
+
getSnapToPixel: (snap: number) => number;
|
|
443
|
+
};
|
|
444
|
+
//#endregion
|
|
445
|
+
//#region src/hooks/useSnapControl.d.ts
|
|
446
|
+
type SnapControl = {
|
|
447
|
+
animationKey?: MotionValue;
|
|
448
|
+
animation: ValueAnimationTransition;
|
|
449
|
+
height: number;
|
|
450
|
+
unit: Unit;
|
|
451
|
+
snaps: number[];
|
|
452
|
+
initSnap: number;
|
|
453
|
+
threshold?: number;
|
|
454
|
+
overlayOpacity: number;
|
|
455
|
+
onSnapComplete: (currentSnap: number, nextSnap: number, collapsed: boolean) => void;
|
|
456
|
+
};
|
|
457
|
+
declare const useSnapControl: ({
|
|
458
|
+
animationKey,
|
|
459
|
+
animation,
|
|
460
|
+
height,
|
|
461
|
+
unit,
|
|
462
|
+
snaps,
|
|
463
|
+
initSnap,
|
|
464
|
+
onSnapComplete,
|
|
465
|
+
overlayOpacity
|
|
466
|
+
}: SnapControl) => {
|
|
467
|
+
scope: motion_dom0.AnimationScope<any>;
|
|
468
|
+
animatedY: MotionValue<any> | MotionValue<number>;
|
|
469
|
+
animate: {
|
|
470
|
+
(sequence: framer_motion0.AnimationSequence, options?: framer_motion0.SequenceOptions | undefined): motion_dom0.AnimationPlaybackControlsWithThen;
|
|
471
|
+
(value: string | MotionValue<string>, keyframes: string | motion_dom0.UnresolvedValueKeyframe<string>[], options?: ValueAnimationTransition<string> | undefined): motion_dom0.AnimationPlaybackControlsWithThen;
|
|
472
|
+
(value: number | MotionValue<number>, keyframes: number | motion_dom0.UnresolvedValueKeyframe<number>[], options?: ValueAnimationTransition<number> | undefined): motion_dom0.AnimationPlaybackControlsWithThen;
|
|
473
|
+
<V extends string | number>(value: V | MotionValue<V>, keyframes: V | motion_dom0.UnresolvedValueKeyframe<V>[], options?: ValueAnimationTransition<V> | undefined): motion_dom0.AnimationPlaybackControlsWithThen;
|
|
474
|
+
(element: motion_dom0.ElementOrSelector, keyframes: motion_dom0.DOMKeyframesDefinition, options?: motion_dom0.AnimationOptions | undefined): motion_dom0.AnimationPlaybackControlsWithThen;
|
|
475
|
+
<O extends {}>(object: O | O[], keyframes: framer_motion0.ObjectTarget<O>, options?: motion_dom0.AnimationOptions | undefined): motion_dom0.AnimationPlaybackControlsWithThen;
|
|
476
|
+
};
|
|
477
|
+
swipeviewHeightPx: number;
|
|
478
|
+
initSnapInPixels: number;
|
|
479
|
+
contentHeight: MotionValue<number>;
|
|
480
|
+
currentSnap: number;
|
|
481
|
+
displayOverlay: MotionValue<string>;
|
|
482
|
+
opacityOverlay: MotionValue<number>;
|
|
483
|
+
getSnapToPixel: (snap: number) => number;
|
|
484
|
+
jumpTo: (snapPx: number) => {
|
|
485
|
+
nextSnap: number;
|
|
486
|
+
collapsed: boolean;
|
|
487
|
+
};
|
|
488
|
+
defineNextSnapByPosition: () => number;
|
|
489
|
+
resetControls: () => number;
|
|
490
|
+
};
|
|
491
|
+
//#endregion
|
|
492
|
+
//#region src/hooks/useSystemSettingsContext.d.ts
|
|
493
|
+
declare const useSystemSettingsContext: () => {
|
|
494
|
+
generationParams?: GenerationParams$1;
|
|
495
|
+
showDebugBar?: boolean;
|
|
496
|
+
endpointURL?: string;
|
|
497
|
+
setGenerationParams: react0.Dispatch<react0.SetStateAction<GenerationParams$1 | undefined>>;
|
|
498
|
+
};
|
|
499
|
+
//#endregion
|
|
268
500
|
//#region src/application/models/spiffyWidgets.d.ts
|
|
269
501
|
/**
|
|
270
502
|
* Enum of all widget names. These are widgets that are rendered and integrated into
|
|
@@ -327,9 +559,6 @@ declare enum SpiffyMetricsEventName {
|
|
|
327
559
|
*/
|
|
328
560
|
declare const useTrackComponentVisibleEvent: (component: SpiffyWidgets, element: RefObject<HTMLElement>, eventProps?: Record<string, unknown>, eventName?: SpiffyMetricsEventName) => void;
|
|
329
561
|
//#endregion
|
|
330
|
-
//#region src/hooks/useIntersection.d.ts
|
|
331
|
-
declare const useIntersection: (element: RefObject<HTMLElement>, rootMargin: string) => boolean;
|
|
332
|
-
//#endregion
|
|
333
562
|
//#region src/hooks/useUpdateAnalyticsProps.d.ts
|
|
334
563
|
/**
|
|
335
564
|
* Updates the default analytics properties whenever the variant info changes. This hook also
|
|
@@ -337,21 +566,4 @@ declare const useIntersection: (element: RefObject<HTMLElement>, rootMargin: str
|
|
|
337
566
|
*/
|
|
338
567
|
declare const useUpdateAnalyticsProps: () => void;
|
|
339
568
|
//#endregion
|
|
340
|
-
|
|
341
|
-
declare const useChatToggle: () => {
|
|
342
|
-
toggle: (triggerLocation: ChatElementDisplayLocation, triggerId?: string) => void;
|
|
343
|
-
isOpen: boolean;
|
|
344
|
-
openChat: (triggerLocation: ChatElementDisplayLocation, triggerId?: string) => void;
|
|
345
|
-
closeChat: (triggerLocation: ChatElementDisplayLocation, triggerId?: string) => void;
|
|
346
|
-
};
|
|
347
|
-
//#endregion
|
|
348
|
-
//#region src/hooks/useDynamicVariants.d.ts
|
|
349
|
-
declare const useDynamicVariants: () => void;
|
|
350
|
-
//#endregion
|
|
351
|
-
//#region src/hooks/useHideElements.d.ts
|
|
352
|
-
/**
|
|
353
|
-
* This hook hides/shows elements that could overlap with the chat when the chat is opened/closed.
|
|
354
|
-
*/
|
|
355
|
-
declare const useHideElements: () => void;
|
|
356
|
-
//#endregion
|
|
357
|
-
export { ElementObserverUtility, useChatToggle, useDynamicVariants, useElementObserver, useHideElements, useIntersection, useIsSmallScreen, useMessageFilter, useSystemSettingsContext, useTrackComponentVisibleEvent, useUpdateAnalyticsProps };
|
|
569
|
+
export { ElementObserverUtility, SearchResultsHocProps, Unit, useBlockBackButton, useChatToggle, useCustomerSupportHandoff, useDebounce, useDynamicVariants, useElementObserver, useFileUpload, useGrabAndScroll, useHideElements, useHorizontalScrollAnimation, useImageResolver, useIntersection, useIsSmallScreen, useMessageFilter, useMessageScrollObserver, useReducedMotionWithOverride, useSearch, useSnapCalculator, useSnapControl, useSystemSettingsContext, useTrackComponentVisibleEvent, useUpdateAnalyticsProps };
|
package/dist/hooks/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import "../
|
|
2
|
-
import { useChatToggle, useDynamicVariants, useElementObserver, useHideElements, useIntersection, useIsSmallScreen, useMessageFilter, useSystemSettingsContext, useTrackComponentVisibleEvent, useUpdateAnalyticsProps } from "../contexts-
|
|
3
|
-
import "../
|
|
4
|
-
import "../types-
|
|
1
|
+
import "../GridInsertionService-C00upKLB.js";
|
|
2
|
+
import { useBlockBackButton, useChatToggle, useCustomerSupportHandoff, useDebounce, useDynamicVariants, useElementObserver, useFileUpload, useGrabAndScroll, useHideElements, useHorizontalScrollAnimation, useImageResolver, useIntersection, useIsSmallScreen, useMessageFilter, useMessageScrollObserver, useReducedMotionWithOverride, useSearch, useSnapCalculator, useSnapControl, useSystemSettingsContext, useTrackComponentVisibleEvent, useUpdateAnalyticsProps } from "../contexts-Dq7tO_0y.js";
|
|
3
|
+
import "../domInsertionService-BtzuH2Sc.js";
|
|
4
|
+
import "../types-DZzSQ5a6.js";
|
|
5
5
|
import "../enviveConfigContext-CUGLpPGU.js";
|
|
6
6
|
|
|
7
|
-
export { useChatToggle, useDynamicVariants, useElementObserver, useHideElements, useIntersection, useIsSmallScreen, useMessageFilter, useSystemSettingsContext, useTrackComponentVisibleEvent, useUpdateAnalyticsProps };
|
|
7
|
+
export { useBlockBackButton, useChatToggle, useCustomerSupportHandoff, useDebounce, useDynamicVariants, useElementObserver, useFileUpload, useGrabAndScroll, useHideElements, useHorizontalScrollAnimation, useImageResolver, useIntersection, useIsSmallScreen, useMessageFilter, useMessageScrollObserver, useReducedMotionWithOverride, useSearch, useSnapCalculator, useSnapControl, useSystemSettingsContext, useTrackComponentVisibleEvent, useUpdateAnalyticsProps };
|
|
@@ -1,12 +1,11 @@
|
|
|
1
|
-
require('./
|
|
2
|
-
require('./
|
|
3
|
-
const require_types = require('./types-
|
|
1
|
+
const require_GridInsertionService = require('./GridInsertionService-CMJVhD6q.cjs');
|
|
2
|
+
const require_domInsertionService = require('./domInsertionService-Cb9814oM.cjs');
|
|
3
|
+
const require_types = require('./types-QJObznro.cjs');
|
|
4
4
|
require('./enviveConfigContext-Dfr2VH6u.cjs');
|
|
5
|
-
const require_divIds = require('./divIds-
|
|
6
|
-
const
|
|
7
|
-
const
|
|
8
|
-
const
|
|
9
|
-
const require_default = require('./default-D_KPZdPJ.cjs');
|
|
5
|
+
const require_divIds = require('./divIds-BOqjn3bE.cjs');
|
|
6
|
+
const require_suggestionBarV2_types = require('./suggestionBarV2-types-XHYD3j8E.cjs');
|
|
7
|
+
const require_cdnService = require('./cdnService-DIF1i7VC.cjs');
|
|
8
|
+
const require_default = require('./default-CKyjzyLc.cjs');
|
|
10
9
|
|
|
11
10
|
//#region src/merchants/jackArcher/jackArcher.ts
|
|
12
11
|
const jackArcherColors = {
|
|
@@ -388,7 +387,7 @@ const jackArcherPageConfig = () => ({
|
|
|
388
387
|
testId: require_divIds.CHAT_PREVIEW_TESTID,
|
|
389
388
|
insertionPoint: {
|
|
390
389
|
selector: "#main-collection-product-grid",
|
|
391
|
-
insertionType:
|
|
390
|
+
insertionType: require_domInsertionService.DOMInsertionType.AFTER
|
|
392
391
|
},
|
|
393
392
|
gridInsertionType: require_GridInsertionService.GridInsertionType.FIXED_8,
|
|
394
393
|
style: {
|
|
@@ -402,7 +401,7 @@ const jackArcherPageConfig = () => ({
|
|
|
402
401
|
testId: require_divIds.CHAT_PREVIEW_TESTID,
|
|
403
402
|
insertionPoint: {
|
|
404
403
|
selector: "#main-collection-product-grid",
|
|
405
|
-
insertionType:
|
|
404
|
+
insertionType: require_domInsertionService.DOMInsertionType.AFTER
|
|
406
405
|
},
|
|
407
406
|
gridInsertionType: require_GridInsertionService.GridInsertionType.ROW_4
|
|
408
407
|
},
|
|
@@ -412,7 +411,7 @@ const jackArcherPageConfig = () => ({
|
|
|
412
411
|
testId: require_divIds.CHAT_PREVIEW_TESTID,
|
|
413
412
|
insertionPoint: {
|
|
414
413
|
selector: ".main-product",
|
|
415
|
-
insertionType:
|
|
414
|
+
insertionType: require_domInsertionService.DOMInsertionType.AFTER
|
|
416
415
|
},
|
|
417
416
|
style: { marginTop: "24px" }
|
|
418
417
|
},
|
|
@@ -422,7 +421,7 @@ const jackArcherPageConfig = () => ({
|
|
|
422
421
|
testId: require_divIds.BOTTOM_SUGGESTION_BAR_TESTID,
|
|
423
422
|
insertionPoint: {
|
|
424
423
|
selector: ".oke-w-header",
|
|
425
|
-
insertionType:
|
|
424
|
+
insertionType: require_domInsertionService.DOMInsertionType.AFTER
|
|
426
425
|
}
|
|
427
426
|
}
|
|
428
427
|
},
|
|
@@ -1,12 +1,11 @@
|
|
|
1
|
-
import "./
|
|
2
|
-
import "./
|
|
3
|
-
import { ColorNames, CustomerServiceIntegrationMode, CustomerServiceType, OrgShortName, PageVariantTestType, WidgetType, colorVar } from "./types-
|
|
1
|
+
import { GridInsertionType } from "./GridInsertionService-C00upKLB.js";
|
|
2
|
+
import { DOMInsertionType } from "./domInsertionService-BtzuH2Sc.js";
|
|
3
|
+
import { ColorNames, CustomerServiceIntegrationMode, CustomerServiceType, OrgShortName, PageVariantTestType, WidgetType, colorVar } from "./types-DZzSQ5a6.js";
|
|
4
4
|
import "./enviveConfigContext-CUGLpPGU.js";
|
|
5
|
-
import { BOTTOM_REVIEWS_BAR_ID, BOTTOM_SUGGESTION_BAR_TESTID, CHAT_PREVIEW_CONTAINER_ID, CHAT_PREVIEW_TESTID
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import { defaultOrgUIConfig } from "./default-C2fEZKXk.js";
|
|
5
|
+
import { BOTTOM_REVIEWS_BAR_ID, BOTTOM_SUGGESTION_BAR_TESTID, CHAT_PREVIEW_CONTAINER_ID, CHAT_PREVIEW_TESTID } from "./divIds-Cfp3v_rG.js";
|
|
6
|
+
import { ChatElementDisplayLocation, SuggestionBarLocationForMetrics } from "./suggestionBarV2-types-aiQmVx5m.js";
|
|
7
|
+
import { CdnService } from "./cdnService-CAyO3axV.js";
|
|
8
|
+
import { defaultOrgUIConfig } from "./default-CL94oJfj.js";
|
|
10
9
|
|
|
11
10
|
//#region src/merchants/jackArcher/jackArcher.ts
|
|
12
11
|
const jackArcherColors = {
|
|
@@ -1,12 +1,11 @@
|
|
|
1
|
-
require('./
|
|
2
|
-
const
|
|
3
|
-
const require_types = require('./types-
|
|
1
|
+
const require_GridInsertionService = require('./GridInsertionService-CMJVhD6q.cjs');
|
|
2
|
+
const require_domInsertionService = require('./domInsertionService-Cb9814oM.cjs');
|
|
3
|
+
const require_types = require('./types-QJObznro.cjs');
|
|
4
4
|
require('./enviveConfigContext-Dfr2VH6u.cjs');
|
|
5
|
-
const require_divIds = require('./divIds-
|
|
6
|
-
const
|
|
7
|
-
const
|
|
8
|
-
const
|
|
9
|
-
const require_default = require('./default-D_KPZdPJ.cjs');
|
|
5
|
+
const require_divIds = require('./divIds-BOqjn3bE.cjs');
|
|
6
|
+
const require_suggestionBarV2_types = require('./suggestionBarV2-types-XHYD3j8E.cjs');
|
|
7
|
+
const require_cdnService = require('./cdnService-DIF1i7VC.cjs');
|
|
8
|
+
const require_default = require('./default-CKyjzyLc.cjs');
|
|
10
9
|
|
|
11
10
|
//#region src/merchants/jordanCraig/jordanCraig.ts
|
|
12
11
|
const jordanCraigColors = {
|
|
@@ -203,7 +202,7 @@ const jordanCraigPageConfig = () => ({
|
|
|
203
202
|
{ testType: require_types.PageVariantTestType.UrlResolver },
|
|
204
203
|
{
|
|
205
204
|
testType: require_types.PageVariantTestType.FeatureGate,
|
|
206
|
-
featureGate:
|
|
205
|
+
featureGate: require_domInsertionService.FeatureGates.IsGlobalSearchEnabled
|
|
207
206
|
},
|
|
208
207
|
{
|
|
209
208
|
testType: require_types.PageVariantTestType.QueryParam,
|
|
@@ -235,7 +234,7 @@ const jordanCraigPageConfig = () => ({
|
|
|
235
234
|
variantType: "plp",
|
|
236
235
|
variantTests: [{ testType: require_types.PageVariantTestType.UrlResolver }, {
|
|
237
236
|
testType: require_types.PageVariantTestType.FeatureGate,
|
|
238
|
-
featureGate:
|
|
237
|
+
featureGate: require_domInsertionService.FeatureGates.IsGlobalSearchEnabled
|
|
239
238
|
}],
|
|
240
239
|
plpIdExtractor: "url-resolver-plp-id",
|
|
241
240
|
widgetMounting: [
|
|
@@ -258,7 +257,7 @@ const jordanCraigPageConfig = () => ({
|
|
|
258
257
|
variantType: "pdp",
|
|
259
258
|
variantTests: [{ testType: require_types.PageVariantTestType.UrlResolver }, {
|
|
260
259
|
testType: require_types.PageVariantTestType.FeatureGate,
|
|
261
|
-
featureGate:
|
|
260
|
+
featureGate: require_domInsertionService.FeatureGates.IsGlobalSearchEnabled
|
|
262
261
|
}],
|
|
263
262
|
productIdExtractor: "url-resolver-product-id",
|
|
264
263
|
widgetMounting: [
|
|
@@ -289,7 +288,7 @@ const jordanCraigPageConfig = () => ({
|
|
|
289
288
|
variantType: "homepage",
|
|
290
289
|
variantTests: [{ testType: require_types.PageVariantTestType.UrlResolver }, {
|
|
291
290
|
testType: require_types.PageVariantTestType.FeatureGate,
|
|
292
|
-
featureGate:
|
|
291
|
+
featureGate: require_domInsertionService.FeatureGates.IsGlobalSearchEnabled
|
|
293
292
|
}],
|
|
294
293
|
widgetMounting: [{
|
|
295
294
|
mountingConfigId: "searchIconEntryPoint",
|
|
@@ -304,7 +303,7 @@ const jordanCraigPageConfig = () => ({
|
|
|
304
303
|
variantType: "other",
|
|
305
304
|
variantTests: [{ testType: require_types.PageVariantTestType.UrlResolver }, {
|
|
306
305
|
testType: require_types.PageVariantTestType.FeatureGate,
|
|
307
|
-
featureGate:
|
|
306
|
+
featureGate: require_domInsertionService.FeatureGates.IsGlobalSearchEnabled
|
|
308
307
|
}],
|
|
309
308
|
widgetMounting: [{
|
|
310
309
|
mountingConfigId: "searchIconEntryPoint",
|
|
@@ -1691,7 +1690,7 @@ const jordanCraigPageConfig = () => ({
|
|
|
1691
1690
|
testId: require_divIds.GLOBAL_SEARCH_ENTRYPOINT_TESTID,
|
|
1692
1691
|
insertionPoint: {
|
|
1693
1692
|
selector: ".header__secondary-nav a[href=\"/search\"]",
|
|
1694
|
-
insertionType:
|
|
1693
|
+
insertionType: require_domInsertionService.DOMInsertionType.BEFORE
|
|
1695
1694
|
},
|
|
1696
1695
|
suppressionSelector: "a[href=\"/search\"]",
|
|
1697
1696
|
className: "global-entry-desktop"
|
|
@@ -1702,7 +1701,7 @@ const jordanCraigPageConfig = () => ({
|
|
|
1702
1701
|
testId: require_divIds.SEARCH_OVERLAY_HOST_TESTID,
|
|
1703
1702
|
insertionPoint: {
|
|
1704
1703
|
selector: "body",
|
|
1705
|
-
insertionType:
|
|
1704
|
+
insertionType: require_domInsertionService.DOMInsertionType.APPEND_CHILD
|
|
1706
1705
|
},
|
|
1707
1706
|
className: "spiffy-overlay-host"
|
|
1708
1707
|
},
|
|
@@ -1712,7 +1711,7 @@ const jordanCraigPageConfig = () => ({
|
|
|
1712
1711
|
testId: require_divIds.SEARCH_RESULTS_ENTRYPOINT_TESTID,
|
|
1713
1712
|
insertionPoint: {
|
|
1714
1713
|
selector: "#main",
|
|
1715
|
-
insertionType:
|
|
1714
|
+
insertionType: require_domInsertionService.DOMInsertionType.BEFORE
|
|
1716
1715
|
},
|
|
1717
1716
|
className: "search-results-entry-point",
|
|
1718
1717
|
style: { marginBottom: "60px" }
|
|
@@ -1723,7 +1722,7 @@ const jordanCraigPageConfig = () => ({
|
|
|
1723
1722
|
testId: require_divIds.CHAT_PREVIEW_TESTID,
|
|
1724
1723
|
insertionPoint: {
|
|
1725
1724
|
selector: ".product-list",
|
|
1726
|
-
insertionType:
|
|
1725
|
+
insertionType: require_domInsertionService.DOMInsertionType.AFTER
|
|
1727
1726
|
},
|
|
1728
1727
|
gridInsertionType: require_GridInsertionService.GridInsertionType.FIXED_8,
|
|
1729
1728
|
className: "is-plp",
|
|
@@ -1738,7 +1737,7 @@ const jordanCraigPageConfig = () => ({
|
|
|
1738
1737
|
testId: require_divIds.CHAT_PREVIEW_TESTID,
|
|
1739
1738
|
insertionPoint: {
|
|
1740
1739
|
selector: "div[data-block-type=\"description\"].product-info__block-item",
|
|
1741
|
-
insertionType:
|
|
1740
|
+
insertionType: require_domInsertionService.DOMInsertionType.BEFORE
|
|
1742
1741
|
}
|
|
1743
1742
|
},
|
|
1744
1743
|
topSuggestionBarPDP: {
|
|
@@ -1747,7 +1746,7 @@ const jordanCraigPageConfig = () => ({
|
|
|
1747
1746
|
testId: require_divIds.TOP_SUGGESTION_BAR_TESTID,
|
|
1748
1747
|
insertionPoint: {
|
|
1749
1748
|
selector: "div[data-block-type=\"price\"].product-info__block-item",
|
|
1750
|
-
insertionType:
|
|
1749
|
+
insertionType: require_domInsertionService.DOMInsertionType.AFTER
|
|
1751
1750
|
},
|
|
1752
1751
|
style: { marginTop: "15px" }
|
|
1753
1752
|
},
|
|
@@ -1757,7 +1756,7 @@ const jordanCraigPageConfig = () => ({
|
|
|
1757
1756
|
testId: require_divIds.BOTTOM_SUGGESTION_BAR_TESTID,
|
|
1758
1757
|
insertionPoint: {
|
|
1759
1758
|
selector: ".oke-w-header",
|
|
1760
|
-
insertionType:
|
|
1759
|
+
insertionType: require_domInsertionService.DOMInsertionType.AFTER
|
|
1761
1760
|
},
|
|
1762
1761
|
style: { marginBottom: "15px" }
|
|
1763
1762
|
}
|
|
@@ -1,12 +1,11 @@
|
|
|
1
|
-
import "./
|
|
2
|
-
import { FeatureGates } from "./
|
|
3
|
-
import { ColorNames, OrgShortName, PageVariantTestType, WidgetType, colorVar } from "./types-
|
|
1
|
+
import { GridInsertionType } from "./GridInsertionService-C00upKLB.js";
|
|
2
|
+
import { DOMInsertionType, FeatureGates } from "./domInsertionService-BtzuH2Sc.js";
|
|
3
|
+
import { ColorNames, OrgShortName, PageVariantTestType, WidgetType, colorVar } from "./types-DZzSQ5a6.js";
|
|
4
4
|
import "./enviveConfigContext-CUGLpPGU.js";
|
|
5
|
-
import { BOTTOM_REVIEWS_BAR_ID, BOTTOM_SUGGESTION_BAR_TESTID, CHAT_PREVIEW_CONTAINER_ID, CHAT_PREVIEW_TESTID,
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import { defaultOrgUIConfig } from "./default-C2fEZKXk.js";
|
|
5
|
+
import { BOTTOM_REVIEWS_BAR_ID, BOTTOM_SUGGESTION_BAR_TESTID, CHAT_PREVIEW_CONTAINER_ID, CHAT_PREVIEW_TESTID, GLOBAL_SEARCH_ENTRYPOINT_ID, GLOBAL_SEARCH_ENTRYPOINT_TESTID, SEARCH_OVERLAY_ENTRYPOINT_ID, SEARCH_OVERLAY_HOST_TESTID, SEARCH_RESULTS_ENTRYPOINT_ID, SEARCH_RESULTS_ENTRYPOINT_TESTID, TOP_SUGGESTION_BAR_PDP_ID, TOP_SUGGESTION_BAR_TESTID } from "./divIds-Cfp3v_rG.js";
|
|
6
|
+
import { ChatElementDisplayLocation, SuggestionBarLocationForMetrics } from "./suggestionBarV2-types-aiQmVx5m.js";
|
|
7
|
+
import { CdnService } from "./cdnService-CAyO3axV.js";
|
|
8
|
+
import { defaultOrgUIConfig } from "./default-CL94oJfj.js";
|
|
10
9
|
|
|
11
10
|
//#region src/merchants/jordanCraig/jordanCraig.ts
|
|
12
11
|
const jordanCraigColors = {
|
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
import "./
|
|
2
|
-
import "./
|
|
3
|
-
import { ColorNames, OrgShortName, PageVariantTestType, WidgetType, colorVar } from "./types-
|
|
1
|
+
import { GridInsertionType } from "./GridInsertionService-C00upKLB.js";
|
|
2
|
+
import { DOMInsertionType } from "./domInsertionService-BtzuH2Sc.js";
|
|
3
|
+
import { ColorNames, OrgShortName, PageVariantTestType, WidgetType, colorVar } from "./types-DZzSQ5a6.js";
|
|
4
4
|
import "./enviveConfigContext-CUGLpPGU.js";
|
|
5
|
-
import { CHAT_PREVIEW_CONTAINER_ID, CHAT_PREVIEW_TESTID
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import { defaultOrgUIConfig } from "./default-C2fEZKXk.js";
|
|
5
|
+
import { CHAT_PREVIEW_CONTAINER_ID, CHAT_PREVIEW_TESTID } from "./divIds-Cfp3v_rG.js";
|
|
6
|
+
import { CdnService } from "./cdnService-CAyO3axV.js";
|
|
7
|
+
import { defaultOrgUIConfig } from "./default-CL94oJfj.js";
|
|
9
8
|
|
|
10
9
|
//#region src/merchants/kindredBravely/kindredBravely.ts
|
|
11
10
|
const kindredBravelyColors = {
|
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
require('./
|
|
2
|
-
require('./
|
|
3
|
-
const require_types = require('./types-
|
|
1
|
+
const require_GridInsertionService = require('./GridInsertionService-CMJVhD6q.cjs');
|
|
2
|
+
const require_domInsertionService = require('./domInsertionService-Cb9814oM.cjs');
|
|
3
|
+
const require_types = require('./types-QJObznro.cjs');
|
|
4
4
|
require('./enviveConfigContext-Dfr2VH6u.cjs');
|
|
5
|
-
const require_divIds = require('./divIds-
|
|
6
|
-
const
|
|
7
|
-
const
|
|
8
|
-
const require_default = require('./default-D_KPZdPJ.cjs');
|
|
5
|
+
const require_divIds = require('./divIds-BOqjn3bE.cjs');
|
|
6
|
+
const require_cdnService = require('./cdnService-DIF1i7VC.cjs');
|
|
7
|
+
const require_default = require('./default-CKyjzyLc.cjs');
|
|
9
8
|
|
|
10
9
|
//#region src/merchants/kindredBravely/kindredBravely.ts
|
|
11
10
|
const kindredBravelyColors = {
|
|
@@ -417,7 +416,7 @@ const kindredBravelyPageConfig = () => ({
|
|
|
417
416
|
testId: `${require_divIds.CHAT_PREVIEW_TESTID}-desktop`,
|
|
418
417
|
insertionPoint: {
|
|
419
418
|
selector: ".product-grid",
|
|
420
|
-
insertionType:
|
|
419
|
+
insertionType: require_domInsertionService.DOMInsertionType.BEFORE
|
|
421
420
|
},
|
|
422
421
|
gridInsertionType: require_GridInsertionService.GridInsertionType.FIXED_4,
|
|
423
422
|
style: {
|
|
@@ -432,7 +431,7 @@ const kindredBravelyPageConfig = () => ({
|
|
|
432
431
|
testId: `${require_divIds.CHAT_PREVIEW_TESTID}-desktop`,
|
|
433
432
|
insertionPoint: {
|
|
434
433
|
selector: ".product-grid",
|
|
435
|
-
insertionType:
|
|
434
|
+
insertionType: require_domInsertionService.DOMInsertionType.AFTER
|
|
436
435
|
},
|
|
437
436
|
gridInsertionType: require_GridInsertionService.GridInsertionType.FIXED_4,
|
|
438
437
|
style: {
|
|
@@ -447,7 +446,7 @@ const kindredBravelyPageConfig = () => ({
|
|
|
447
446
|
testId: `${require_divIds.CHAT_PREVIEW_TESTID}-mobile`,
|
|
448
447
|
insertionPoint: {
|
|
449
448
|
selector: "#product-grid",
|
|
450
|
-
insertionType:
|
|
449
|
+
insertionType: require_domInsertionService.DOMInsertionType.AFTER
|
|
451
450
|
},
|
|
452
451
|
gridInsertionType: require_GridInsertionService.GridInsertionType.FIXED_5,
|
|
453
452
|
style: {
|
|
@@ -462,7 +461,7 @@ const kindredBravelyPageConfig = () => ({
|
|
|
462
461
|
testId: require_divIds.CHAT_PREVIEW_TESTID,
|
|
463
462
|
insertionPoint: {
|
|
464
463
|
selector: "#product-accordion",
|
|
465
|
-
insertionType:
|
|
464
|
+
insertionType: require_domInsertionService.DOMInsertionType.BEFORE
|
|
466
465
|
}
|
|
467
466
|
}
|
|
468
467
|
}
|