@cntrl-site/components 1.0.97-0 → 1.0.97-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.
@@ -2,7 +2,7 @@ import { CommonComponentProps } from '../props';
2
2
  import { ContentLink } from '../utils/index';
3
3
  type ClickGallerieItem = {
4
4
  image: {
5
- url: string;
5
+ assetId: string;
6
6
  name: string;
7
7
  };
8
8
  link?: ContentLink;
@@ -9,7 +9,7 @@ type SliderProps = {
9
9
  export declare function ControlSlider({ settings, content, styles: sliderStyles, isEditor }: SliderProps): import("react/jsx-runtime").JSX.Element;
10
10
  type SliderItem = {
11
11
  image: {
12
- url: string;
12
+ assetId: string;
13
13
  name?: string;
14
14
  objectFit?: 'cover' | 'contain';
15
15
  };
@@ -1,6 +1,6 @@
1
1
  import { CommonComponentProps } from '../props';
2
2
  type HelixMedia = {
3
- url?: string;
3
+ assetId?: string;
4
4
  name?: string;
5
5
  type?: 'image' | 'video';
6
6
  };
@@ -18,7 +18,7 @@ type HiveSettings = {
18
18
  };
19
19
  } & HiveLightboxTitleSettings;
20
20
  type HiveMedia = {
21
- url: string;
21
+ assetId: string;
22
22
  name?: string;
23
23
  objectFit?: 'cover' | 'contain';
24
24
  type?: 'image' | 'video';
@@ -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[];
@@ -32,7 +32,7 @@ type ImageRevealSliderSettings = {
32
32
  };
33
33
  type ImageRevealSliderItem = {
34
34
  image: {
35
- url: string;
35
+ assetId: string;
36
36
  name: string;
37
37
  };
38
38
  link?: ContentLink;
@@ -12,7 +12,7 @@ type LightboxGalleryProps = {
12
12
  export declare const LightboxGallery: ({ settings, content, styles, portalId, activeEvent, isEditor, isPreviewMode }: LightboxGalleryProps) => import("react/jsx-runtime").JSX.Element;
13
13
  type LightboxImage = {
14
14
  image: {
15
- url: string;
15
+ assetId: string;
16
16
  name?: string;
17
17
  objectFit?: 'cover' | 'contain';
18
18
  };
@@ -47,7 +47,7 @@ type Triggers = {
47
47
  type LightboxSettings = {
48
48
  thumbnailBlock: {
49
49
  cover: {
50
- url: string;
50
+ assetId: string;
51
51
  };
52
52
  };
53
53
  lightboxBlock: {
@@ -2,7 +2,7 @@ import { CommonComponentProps } from '../props';
2
2
  import { TextStyles } from '../utils/textStylesToCss';
3
3
  import { ImageRatioFit } from '../utils/imageFitStyles';
4
4
  export type LightboxJournalImage = {
5
- url: string;
5
+ assetId: string;
6
6
  name?: string;
7
7
  objectFit?: 'cover' | 'contain';
8
8
  };
@@ -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[];
@@ -2,7 +2,7 @@ import { CSSProperties } from 'react';
2
2
  import { TextStyles } from '../utils/textStylesToCss';
3
3
  import { LayoutItem, LayoutTab } from '../../types/SchemaV1';
4
4
  type JournalImage = {
5
- url: string;
5
+ assetId: string;
6
6
  name?: string;
7
7
  objectFit?: 'cover' | 'contain';
8
8
  };
@@ -5,7 +5,7 @@ export { createStripTextStylePanelTab, createStripTextStyleTabContentItems, extr
5
5
  export type { StripGlobalTextStyleKey, StripTextStylePrefix, StripTitleWidthKey, } from './utils';
6
6
  export type LightboxStripItem = {
7
7
  image: {
8
- url: string;
8
+ assetId: string;
9
9
  name?: string;
10
10
  objectFit?: 'cover' | 'contain';
11
11
  };
@@ -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[];
@@ -119,7 +119,7 @@ export type ListSettings = {
119
119
  } & ListColumnTextStyleOverrides;
120
120
  type ListMedia = {
121
121
  objectFit?: 'cover' | 'contain';
122
- url: string;
122
+ assetId: string;
123
123
  name: string;
124
124
  type?: 'image' | 'video';
125
125
  };
@@ -3,7 +3,7 @@ import { ContentLink } from '../utils/index';
3
3
  export declare const Marquee: ({ settings, content, isEditor, isPreviewMode, isEditMode }: MarqueeProps) => import("react/jsx-runtime").JSX.Element;
4
4
  export type MarqueeItem = {
5
5
  image?: {
6
- url?: string;
6
+ assetId?: string;
7
7
  name?: string;
8
8
  type?: 'image' | 'video';
9
9
  };
@@ -4,7 +4,7 @@ export declare const MarqueeText: ({ settings, content, isEditor, isPreviewMode
4
4
  export type MarqueeTextItem = {
5
5
  text: string;
6
6
  image?: {
7
- url?: string;
7
+ assetId?: string;
8
8
  name?: string;
9
9
  };
10
10
  link?: ContentLink;
@@ -1,7 +1,7 @@
1
1
  import { CommonComponentProps } from '../props';
2
2
  import { TextStyles } from '../utils/textStylesToCss';
3
3
  type MercuryMedia = {
4
- url: string;
4
+ assetId: string;
5
5
  name?: string;
6
6
  type?: 'image' | 'video';
7
7
  objectFit?: 'cover' | 'contain';
@@ -1,7 +1,7 @@
1
1
  import { CommonComponentProps } from '../props';
2
2
  type ScaleContentItem = {
3
3
  image?: {
4
- url?: string;
4
+ assetId?: string;
5
5
  name?: string;
6
6
  };
7
7
  };
@@ -1,7 +1,7 @@
1
1
  import { CommonComponentProps } from '../props';
2
2
  type Slider20Item = {
3
3
  image: {
4
- url: string;
4
+ assetId: string;
5
5
  name?: string;
6
6
  objectFit?: 'cover' | 'contain';
7
7
  };
@@ -9,7 +9,7 @@ type TestimonialsProps = {
9
9
  export declare const TestimonialGrid: ({ settings, content, isEditor, isPreviewMode, isEditMode }: TestimonialsProps) => import("react/jsx-runtime").JSX.Element;
10
10
  export type TestimonialsItem = {
11
11
  logo?: {
12
- url?: string;
12
+ assetId?: string;
13
13
  name?: string;
14
14
  objectFit?: 'cover' | 'contain';
15
15
  };
@@ -9,7 +9,7 @@ type TestimonialsProps = {
9
9
  export declare const TestimonialSingle: ({ settings, content, isEditor, isPreviewMode, isEditMode }: TestimonialsProps) => import("react/jsx-runtime").JSX.Element;
10
10
  export type TestimonialsItem = {
11
11
  image?: {
12
- url?: string;
12
+ assetId?: string;
13
13
  name?: string;
14
14
  objectFit?: 'cover' | 'contain';
15
15
  };
@@ -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[];
@@ -1,6 +1,6 @@
1
1
  import { HiveLightboxTextEntry, HiveLightboxTitleSettings } from '../Hive/HiveLightboxTitles';
2
2
  export type WaterfallMedia = {
3
- url: string;
3
+ assetId: string;
4
4
  name?: string;
5
5
  objectFit?: 'cover' | 'contain';
6
6
  type?: 'image' | 'video';
@@ -0,0 +1,2 @@
1
+ export declare function isInlineMaskUrl(url: string): boolean;
2
+ export declare function loadSvgMaskUrl(url: string): Promise<string>;