@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.
- package/dist/Components/helpers/LazyVideo/LazyVideo.d.ts +4 -0
- package/dist/Components/utils/index.d.ts +1 -0
- package/dist/Components/utils/useLazyVideos.d.ts +15 -0
- package/dist/Grid-B2_o1dvz.mjs +1576 -0
- package/dist/Grid-Bq6bk2AQ.js +374 -0
- package/dist/{Helix-2Vr-9WBa.js → Helix-B7rxlvKq.js} +2 -2
- package/dist/{Helix-BmkAKT1G.mjs → Helix-BrKQzGX5.mjs} +53 -53
- package/dist/{Hive-BGMWinrW.mjs → Hive-BusARSOi.mjs} +114 -111
- package/dist/Hive-Dh5nKPGm.js +321 -0
- package/dist/LazyVideo-Cn_vmMq8.js +1 -0
- package/dist/LazyVideo-D8eVYFyw.mjs +15 -0
- package/dist/Marquee-CdtAqhQE.mjs +563 -0
- package/dist/Marquee-DUN8wUax.js +133 -0
- package/dist/{Mercury-DuKJQ1Zo.mjs → Mercury-BRqlbk4i.mjs} +55 -54
- package/dist/Mercury-C-O2VGkK.js +267 -0
- package/dist/{PretextComponent-CGycuNNn.js → PretextComponent-D5P0AjnL.js} +1 -1
- package/dist/{PretextComponent-DN8cyZ8x.mjs → PretextComponent-s4DDfmzY.mjs} +6 -6
- package/dist/{Waterfall-A0FjM2my.mjs → Waterfall-DKuh4bnv.mjs} +299 -295
- package/dist/Waterfall-fdiHR0Rc.js +287 -0
- package/dist/{components-DTCDEBo0.js → components-DzNixU7Q.js} +1 -1
- package/dist/{components-BFJINCME.mjs → components-Yf9Zjska.mjs} +1 -1
- package/dist/elements.js +1 -1
- package/dist/elements.mjs +6 -6
- package/dist/elements.node.js +1 -1
- package/dist/elements.node.mjs +1 -1
- package/dist/index.js +1 -1
- package/dist/index.mjs +2 -2
- package/dist/sources.js +125 -49
- package/dist/sources.mjs +129 -53
- package/dist/useLazyVideos-BbgdvELi.js +1 -0
- package/dist/useLazyVideos-CZLyNolX.mjs +72 -0
- package/dist/utils.js +1 -1
- package/dist/utils.mjs +14 -12
- package/package.json +5 -3
- package/dist/Grid-CemGhf3F.js +0 -374
- package/dist/Grid-cfQsXW3b.mjs +0 -1553
- package/dist/Hive-BC6zQBsv.js +0 -321
- package/dist/Marquee-BYClHHws.mjs +0 -551
- package/dist/Marquee-vmHaTGIP.js +0 -133
- package/dist/Mercury-BwF_XW2w.js +0 -267
- package/dist/Waterfall-DnPDHbCL.js +0 -287
|
@@ -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 {};
|