@cntrl-site/components 1.0.97-alpha.0 → 1.0.97-alpha.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/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 +10662 -11458
- package/package.json +1 -1
- package/dist/Components/Helix/HelixLightbox.d.ts +0 -27
|
@@ -1,7 +1,12 @@
|
|
|
1
1
|
import { CommonComponentProps } from '../props';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
type HelixMedia = {
|
|
3
|
+
url?: string;
|
|
4
|
+
name?: string;
|
|
5
|
+
type?: 'image' | 'video';
|
|
6
|
+
};
|
|
7
|
+
export type HelixContentItem = {
|
|
8
|
+
image?: HelixMedia;
|
|
9
|
+
};
|
|
5
10
|
export type HelixSettings = {
|
|
6
11
|
width?: number;
|
|
7
12
|
spread?: number;
|
|
@@ -22,15 +27,13 @@ export type HelixSettings = {
|
|
|
22
27
|
ratioValue?: '1:1' | '2:3' | '3:4' | '4:5' | '16:9';
|
|
23
28
|
reversed?: boolean;
|
|
24
29
|
} | string;
|
|
25
|
-
}
|
|
30
|
+
};
|
|
26
31
|
type HelixProps = {
|
|
27
32
|
settings?: HelixSettings;
|
|
28
33
|
content?: HelixContentItem[];
|
|
29
34
|
isEditor?: boolean;
|
|
30
35
|
isPreviewMode?: boolean;
|
|
31
36
|
isEditMode?: boolean;
|
|
32
|
-
layoutId?: string;
|
|
33
|
-
portalId?: string;
|
|
34
37
|
} & CommonComponentProps;
|
|
35
|
-
export declare function Helix({ settings, content, isEditor, isPreviewMode,
|
|
38
|
+
export declare function Helix({ settings, content, isEditor, isPreviewMode, }: HelixProps): import("react/jsx-runtime").JSX.Element;
|
|
36
39
|
export {};
|
|
@@ -34,10 +34,13 @@ export declare const LightboxJournalComponent: {
|
|
|
34
34
|
path: string;
|
|
35
35
|
placeholderEnabled: boolean;
|
|
36
36
|
}[];
|
|
37
|
-
parameters: {
|
|
37
|
+
parameters: ({
|
|
38
38
|
path: string;
|
|
39
39
|
placeholderEnabled: boolean;
|
|
40
|
-
}
|
|
40
|
+
} | {
|
|
41
|
+
path: string;
|
|
42
|
+
placeholderEnabled?: undefined;
|
|
43
|
+
})[];
|
|
41
44
|
};
|
|
42
45
|
fontSettingsPaths: {
|
|
43
46
|
content: never[];
|
|
@@ -34,10 +34,13 @@ export declare const LightboxStripComponent: {
|
|
|
34
34
|
path: string;
|
|
35
35
|
placeholderEnabled: boolean;
|
|
36
36
|
}[];
|
|
37
|
-
parameters: {
|
|
37
|
+
parameters: ({
|
|
38
38
|
path: string;
|
|
39
39
|
placeholderEnabled: boolean;
|
|
40
|
-
}
|
|
40
|
+
} | {
|
|
41
|
+
path: string;
|
|
42
|
+
placeholderEnabled?: undefined;
|
|
43
|
+
})[];
|
|
41
44
|
};
|
|
42
45
|
fontSettingsPaths: {
|
|
43
46
|
content: never[];
|
|
@@ -23,10 +23,6 @@ export type AnimRect = {
|
|
|
23
23
|
width: number;
|
|
24
24
|
height: number;
|
|
25
25
|
};
|
|
26
|
-
export type CloseTargetTracker = () => {
|
|
27
|
-
rect: AnimRect;
|
|
28
|
-
opacity: number;
|
|
29
|
-
} | null;
|
|
30
26
|
export declare function getLightboxCSS(P: string): string;
|
|
31
27
|
export declare function getMediaClickSourceRect(target: HTMLElement, objectFit: 'cover' | 'contain'): AnimRect;
|
|
32
28
|
export declare function getItemSourceRect(container: HTMLElement, gridIndex: number, objectFit: 'cover' | 'contain'): AnimRect | null;
|
|
@@ -35,7 +31,7 @@ export declare function collectAllWaterfallMedia(content: WaterfallLightboxConte
|
|
|
35
31
|
export declare function PreloadedMediaPool({ mediaList }: {
|
|
36
32
|
mediaList: WaterfallMedia[];
|
|
37
33
|
}): import("react/jsx-runtime").JSX.Element | null;
|
|
38
|
-
export declare function Lightbox({ prefix: P, items, index, entry, settings, isEditor, isEditMode, isPreviewMode, canNavigate, lightboxEntries, entryIdx, layoutId, sourceRect, resolveCloseSourceRect,
|
|
34
|
+
export declare function Lightbox({ prefix: P, items, index, entry, settings, isEditor, isEditMode, isPreviewMode, canNavigate, lightboxEntries, entryIdx, layoutId, sourceRect, resolveCloseSourceRect, onClose, onPrev, onNext, }: {
|
|
39
35
|
prefix: string;
|
|
40
36
|
items: WaterfallMedia[];
|
|
41
37
|
index: number;
|
|
@@ -50,7 +46,6 @@ export declare function Lightbox({ prefix: P, items, index, entry, settings, isE
|
|
|
50
46
|
layoutId?: string;
|
|
51
47
|
sourceRect?: AnimRect | null;
|
|
52
48
|
resolveCloseSourceRect?: () => AnimRect | null;
|
|
53
|
-
createCloseTracker?: () => CloseTargetTracker | null;
|
|
54
49
|
onClose: () => void;
|
|
55
50
|
onPrev: () => void;
|
|
56
51
|
onNext: () => void;
|