@cntrl-site/components 1.0.103 → 1.0.104

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 (41) hide show
  1. package/dist/Components/helpers/LazyVideo/LazyVideo.d.ts +4 -0
  2. package/dist/Components/utils/index.d.ts +1 -0
  3. package/dist/Components/utils/useLazyVideos.d.ts +15 -0
  4. package/dist/Grid-B2_o1dvz.mjs +1576 -0
  5. package/dist/Grid-Bq6bk2AQ.js +374 -0
  6. package/dist/{Helix-2Vr-9WBa.js → Helix-B7rxlvKq.js} +2 -2
  7. package/dist/{Helix-BmkAKT1G.mjs → Helix-BrKQzGX5.mjs} +53 -53
  8. package/dist/{Hive-BGMWinrW.mjs → Hive-BusARSOi.mjs} +114 -111
  9. package/dist/Hive-Dh5nKPGm.js +321 -0
  10. package/dist/LazyVideo-Cn_vmMq8.js +1 -0
  11. package/dist/LazyVideo-D8eVYFyw.mjs +15 -0
  12. package/dist/Marquee-CdtAqhQE.mjs +563 -0
  13. package/dist/Marquee-DUN8wUax.js +133 -0
  14. package/dist/{Mercury-DuKJQ1Zo.mjs → Mercury-BRqlbk4i.mjs} +55 -54
  15. package/dist/Mercury-C-O2VGkK.js +267 -0
  16. package/dist/{PretextComponent-CGycuNNn.js → PretextComponent-D5P0AjnL.js} +1 -1
  17. package/dist/{PretextComponent-DN8cyZ8x.mjs → PretextComponent-s4DDfmzY.mjs} +6 -6
  18. package/dist/{Waterfall-A0FjM2my.mjs → Waterfall-DKuh4bnv.mjs} +299 -295
  19. package/dist/Waterfall-fdiHR0Rc.js +287 -0
  20. package/dist/{components-DTCDEBo0.js → components-DzNixU7Q.js} +1 -1
  21. package/dist/{components-BFJINCME.mjs → components-Yf9Zjska.mjs} +1 -1
  22. package/dist/elements.js +1 -1
  23. package/dist/elements.mjs +6 -6
  24. package/dist/elements.node.js +1 -1
  25. package/dist/elements.node.mjs +1 -1
  26. package/dist/index.js +1 -1
  27. package/dist/index.mjs +2 -2
  28. package/dist/sources.js +125 -49
  29. package/dist/sources.mjs +129 -53
  30. package/dist/useLazyVideos-BbgdvELi.js +1 -0
  31. package/dist/useLazyVideos-CZLyNolX.mjs +72 -0
  32. package/dist/utils.js +1 -1
  33. package/dist/utils.mjs +14 -12
  34. package/package.json +5 -3
  35. package/dist/Grid-CemGhf3F.js +0 -374
  36. package/dist/Grid-cfQsXW3b.mjs +0 -1553
  37. package/dist/Hive-BC6zQBsv.js +0 -321
  38. package/dist/Marquee-BYClHHws.mjs +0 -551
  39. package/dist/Marquee-vmHaTGIP.js +0 -133
  40. package/dist/Mercury-BwF_XW2w.js +0 -267
  41. package/dist/Waterfall-DnPDHbCL.js +0 -287
@@ -0,0 +1,4 @@
1
+ import { VideoHTMLAttributes } from 'react';
2
+ export declare const LazyVideo: import('react').ForwardRefExoticComponent<Omit<VideoHTMLAttributes<HTMLVideoElement>, "preload"> & {
3
+ nearPreload?: "auto" | "metadata";
4
+ } & import('react').RefAttributes<HTMLVideoElement>>;
@@ -4,6 +4,7 @@ export { getColorAlpha } from './getColorAlpha';
4
4
  export { getFormFieldValidationError, isValidEmailFormat, isValidPhoneFormat, } from './formFieldValidation';
5
5
  export type { ValidatableFormField } from './formFieldValidation';
6
6
  export { useScopedStyles } from './useScopedStyles';
7
+ export { useLazyVideos } from './useLazyVideos';
7
8
  export type { ScopedStyles } from './useScopedStyles';
8
9
  export type { CommonComponentProps } from '../props';
9
10
  export { readTestimonialTextMeasure } from './readTestimonialTextMeasure';
@@ -0,0 +1,15 @@
1
+ export declare const NEAR_VIEWPORT_MARGIN = "100% 0px";
2
+ type VideoPreload = 'none' | 'metadata' | 'auto';
3
+ type IntersectionListener = (isIntersecting: boolean) => void;
4
+ export declare function observeIntersection(element: Element, rootMargin: string, listener: IntersectionListener): () => void;
5
+ export declare function raisePreload(video: HTMLVideoElement, preload: VideoPreload): void;
6
+ export declare function playVideo(video: HTMLVideoElement): void;
7
+ export declare function pauseVideo(video: HTMLVideoElement): void;
8
+ type LazyVideosOptions = {
9
+ autoPlay?: boolean;
10
+ preload?: Exclude<VideoPreload, 'none'>;
11
+ selector?: string;
12
+ shouldPlay?: (video: HTMLVideoElement) => boolean;
13
+ };
14
+ export declare function useLazyVideos(element: Element | null, { autoPlay, preload, selector, shouldPlay }?: LazyVideosOptions): void;
15
+ export {};