@cntrl-site/components 1.0.97-alpha.0 → 1.0.97-alpha.2
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/Helix/Helix.d.ts +10 -7
- package/dist/Components/Helix/HelixComponent.d.ts +1 -4
- package/dist/Components/Hive/HiveComponent.d.ts +3 -1
- package/dist/Components/LightboxJournal/LightboxJournalComponent.d.ts +5 -2
- package/dist/Components/LightboxStrip/LightboxStripComponent.d.ts +5 -2
- package/dist/Components/Waterfall/WaterfallComponent.d.ts +3 -1
- package/dist/Components/Waterfall/WaterfallLightbox.d.ts +1 -6
- package/dist/Components/helpers/SvgImage/loadSvgMaskUrl.d.ts +2 -0
- package/dist/index.js +248 -388
- package/dist/index.mjs +10638 -11434
- package/package.json +1 -1
- package/dist/Components/Helix/HelixLightbox.d.ts +0 -27
package/package.json
CHANGED
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { AnimRect, CloseTargetTracker, LightboxEntryData, WaterfallMedia } from '../Waterfall/WaterfallLightbox';
|
|
2
|
-
export type HelixMedia = WaterfallMedia;
|
|
3
|
-
export type HelixMediaPair = {
|
|
4
|
-
media: HelixMedia[];
|
|
5
|
-
};
|
|
6
|
-
export type HelixLightboxContentItem = {
|
|
7
|
-
title1?: string;
|
|
8
|
-
title2?: string;
|
|
9
|
-
title3?: string;
|
|
10
|
-
/** @deprecated use `gallery` */
|
|
11
|
-
image?: HelixMedia;
|
|
12
|
-
gallery?: HelixMediaPair[] | HelixMedia[];
|
|
13
|
-
};
|
|
14
|
-
type DisplayItem = {
|
|
15
|
-
displayMedia: HelixMedia;
|
|
16
|
-
lightboxMedia: HelixMedia | null;
|
|
17
|
-
};
|
|
18
|
-
declare function isVideoMedia(media: HelixMedia): boolean;
|
|
19
|
-
export declare function normalizeHelixGallery(item: HelixLightboxContentItem): HelixMediaPair[] | undefined;
|
|
20
|
-
export declare function getHelixDisplayItems(gallery: HelixMediaPair[] | HelixMedia[] | undefined): DisplayItem[];
|
|
21
|
-
export declare function getHelixContentItems(content: HelixLightboxContentItem[] | undefined): HelixLightboxContentItem[];
|
|
22
|
-
export declare function buildHelixLightboxEntries(content: HelixLightboxContentItem[]): LightboxEntryData[];
|
|
23
|
-
export declare function collectAllHelixMedia(content: HelixLightboxContentItem[]): HelixMedia[];
|
|
24
|
-
export declare function getHelixMediaClickSourceRect(target: HTMLElement, objectFit: 'cover' | 'contain'): AnimRect;
|
|
25
|
-
export declare function getHelixItemSourceRect(container: HTMLElement, contentIndex: number, objectFit: 'cover' | 'contain'): AnimRect | null;
|
|
26
|
-
export declare function createHelixCloseTracker(container: HTMLElement, contentIndex: number, objectFit: 'cover' | 'contain'): CloseTargetTracker | null;
|
|
27
|
-
export { isVideoMedia as isHelixVideoMedia };
|