@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.
@@ -1,7 +1,12 @@
1
1
  import { CommonComponentProps } from '../props';
2
- import { HiveLightboxTitleSettings } from '../Hive/HiveLightboxTitles';
3
- import { HelixLightboxContentItem } from './HelixLightbox';
4
- export type HelixContentItem = HelixLightboxContentItem;
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
- } & HiveLightboxTitleSettings;
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, isEditMode, layoutId, portalId, }: HelixProps): import("react/jsx-runtime").JSX.Element;
38
+ export declare function Helix({ settings, content, isEditor, isPreviewMode, }: HelixProps): import("react/jsx-runtime").JSX.Element;
36
39
  export {};
@@ -28,9 +28,6 @@ export declare const HelixComponent: {
28
28
  };
29
29
  fontSettingsPaths: {
30
30
  content: never[];
31
- parameters: {
32
- path: string;
33
- }[];
31
+ parameters: never[];
34
32
  };
35
- fontRelations: {};
36
33
  };
@@ -22,7 +22,9 @@ export declare const HiveComponent: {
22
22
  path: string;
23
23
  placeholderEnabled: boolean;
24
24
  }[];
25
- parameters: never[];
25
+ parameters: {
26
+ path: string;
27
+ }[];
26
28
  };
27
29
  fontSettingsPaths: {
28
30
  content: never[];
@@ -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[];
@@ -22,7 +22,9 @@ export declare const WaterfallComponent: {
22
22
  path: string;
23
23
  placeholderEnabled: boolean;
24
24
  }[];
25
- parameters: never[];
25
+ parameters: {
26
+ path: string;
27
+ }[];
26
28
  };
27
29
  fontSettingsPaths: {
28
30
  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, createCloseTracker, onClose, onPrev, onNext, }: {
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;
@@ -0,0 +1,2 @@
1
+ export declare function isInlineMaskUrl(url: string): boolean;
2
+ export declare function loadSvgMaskUrl(url: string): Promise<string>;