@cntrl-site/components 1.0.97-alpha.2 → 1.0.98-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,7 @@
1
1
  import { CommonComponentProps } from '../props';
2
2
  type ClickGallerieItem = {
3
3
  image: {
4
- url: string;
4
+ assetId: string;
5
5
  name: string;
6
6
  };
7
7
  link: string;
@@ -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';
@@ -31,7 +31,7 @@ type ImageRevealSliderSettings = {
31
31
  };
32
32
  type ImageRevealSliderItem = {
33
33
  image: {
34
- url: string;
34
+ assetId: string;
35
35
  name: string;
36
36
  };
37
37
  link: string;
@@ -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
  };
@@ -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
  };
@@ -118,7 +118,7 @@ export type ListSettings = {
118
118
  } & ListColumnTextStyleOverrides;
119
119
  type ListMedia = {
120
120
  objectFit?: 'cover' | 'contain';
121
- url: string;
121
+ assetId: string;
122
122
  name: string;
123
123
  type?: 'image' | 'video';
124
124
  };
@@ -2,7 +2,7 @@ import { CommonComponentProps } from '../props';
2
2
  export declare const Marquee: ({ settings, content, isEditor, isPreviewMode, isEditMode }: MarqueeProps) => import("react/jsx-runtime").JSX.Element;
3
3
  export type MarqueeItem = {
4
4
  image?: {
5
- url?: string;
5
+ assetId?: string;
6
6
  name?: string;
7
7
  type?: 'image' | 'video';
8
8
  };
@@ -3,7 +3,7 @@ export declare const MarqueeText: ({ settings, content, isEditor, isPreviewMode
3
3
  export type MarqueeTextItem = {
4
4
  text: string;
5
5
  image?: {
6
- url?: string;
6
+ assetId?: string;
7
7
  name?: string;
8
8
  };
9
9
  link?: string;
@@ -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';
@@ -40,6 +40,8 @@ export type PretextSettings = {
40
40
  fitText?: 'on' | 'off';
41
41
  hyphenate?: 'on' | 'off';
42
42
  padding?: number;
43
+ columns?: number;
44
+ columnGutter?: number;
43
45
  dropCapLines?: number;
44
46
  dropCapSize?: number;
45
47
  image?: string | null;
@@ -180,6 +182,8 @@ export type ColumnProps = {
180
182
  scale: number;
181
183
  onFitScale: (scale: number) => void;
182
184
  padding: string;
185
+ columns: number;
186
+ gutter: string;
183
187
  hyphenate: boolean;
184
188
  showOverflowIndicator: boolean;
185
189
  dropCapLines: number;
@@ -191,6 +195,7 @@ export type ColumnProps = {
191
195
  imageFocalY: number;
192
196
  imageScale: number;
193
197
  imageCustomPath: string;
198
+ imagePathEdited: boolean;
194
199
  pathDragActive: boolean;
195
200
  pathCarryImage: boolean;
196
201
  onCarryImageConsumed?: () => void;
@@ -1,2 +1,2 @@
1
1
  import { ColumnProps } from './Pretext';
2
- export declare function PretextColumn({ P, item, shape, customPath, pathFit, viewBox, mode, align, allowOverflow, fitEnabled, scale, onFitScale, padding, hyphenate, showOverflowIndicator, dropCapLines, dropCapSize, showGuides, typography, imageUrl, imageFocalX, imageFocalY, imageScale, imageCustomPath, pathDragActive, pathCarryImage, onCarryImageConsumed, pathEditor, imageEditor, }: ColumnProps): import("react/jsx-runtime").JSX.Element;
2
+ export declare function PretextColumn({ P, item, shape, customPath, pathFit, viewBox, mode, align, allowOverflow, fitEnabled, scale, onFitScale, padding, columns, gutter, hyphenate, showOverflowIndicator, dropCapLines, dropCapSize, showGuides, typography, imageUrl, imageFocalX, imageFocalY, imageScale, imageCustomPath, imagePathEdited, pathDragActive, pathCarryImage, onCarryImageConsumed, pathEditor, imageEditor, }: ColumnProps): import("react/jsx-runtime").JSX.Element;
@@ -46,5 +46,7 @@ export type LayoutParams = {
46
46
  charWidths?: (number[] | undefined)[];
47
47
  hyphenWidth?: number;
48
48
  shapeMargin?: number;
49
+ columns?: number;
50
+ columnGap?: number;
49
51
  };
50
52
  export declare function layoutText(params: LayoutParams): LayoutResult;
@@ -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
  };
@@ -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';