@cntrl-site/components 1.0.12-alpha.24 → 1.0.12-alpha.26

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.
@@ -114,17 +114,19 @@ export type ListSettings = {
114
114
  backgroundHoverColor: string;
115
115
  dividerHoverColor: string;
116
116
  } & ListColumnTextStyleOverrides;
117
+ type ListMedia = {
118
+ objectFit?: 'cover' | 'contain';
119
+ url: string;
120
+ name: string;
121
+ type?: 'image' | 'video';
122
+ };
117
123
  type ListContentItem = {
118
124
  AColumn?: string;
119
125
  BColumnWidth?: string;
120
126
  CColumnWidth?: string;
121
127
  DColumnWidth?: string;
122
128
  EColumnWidth?: string;
123
- image?: {
124
- objectFit?: 'cover' | 'contain';
125
- url: string;
126
- name: string;
127
- };
129
+ image?: ListMedia;
128
130
  link?: string;
129
131
  };
130
132
  type ListProps = {
@@ -1,4 +1,4 @@
1
- import { List, applyListColumnCountChange } from './List';
1
+ import { List, ListSettings } from './List';
2
2
  import { ComponentSchemaV1 } from '../../types/SchemaV1';
3
3
  export declare const ListComponent: {
4
4
  element: typeof List;
@@ -6,7 +6,7 @@ export declare const ListComponent: {
6
6
  name: string;
7
7
  category: string;
8
8
  layoutMode: "structured";
9
- normalizeLayoutSettingsUpdate: typeof applyListColumnCountChange;
9
+ normalizeLayoutSettingsUpdate: (nextSettings: Record<string, any>, prevSettings: Record<string, any>) => ListSettings;
10
10
  preview: {
11
11
  type: "image";
12
12
  url: string;
@@ -23,7 +23,6 @@ type Padding = {
23
23
  left: number;
24
24
  };
25
25
  type TestimonialsSettings = {
26
- autoplay: 'on' | 'off';
27
26
  speed: number;
28
27
  align: 'start' | 'center' | 'end';
29
28
  direction: 'left' | 'right';
@@ -2,7 +2,6 @@ import { ComponentSchemaV1 } from '../../types/SchemaV1';
2
2
  export declare const TestimonialGridComponent: {
3
3
  element: ({ settings, content, isEditor, isPreviewMode, isEditMode }: {
4
4
  settings: {
5
- autoplay: "on" | "off";
6
5
  speed: number;
7
6
  align: "start" | "center" | "end";
8
7
  direction: "left" | "right";
@@ -17,8 +17,7 @@ export type TestimonialsItem = {
17
17
  caption?: any[];
18
18
  };
19
19
  type TestimonialsSettings = {
20
- autoplay: 'on' | 'off';
21
- delay: number;
20
+ speed: number;
22
21
  align: 'start' | 'center' | 'end';
23
22
  width: number;
24
23
  imageMarginTop?: number;
@@ -2,8 +2,7 @@ import { ComponentSchemaV1 } from '../../types/SchemaV1';
2
2
  export declare const TestimonialSingleComponent: {
3
3
  element: ({ settings, content, isEditor, isPreviewMode, isEditMode }: {
4
4
  settings: {
5
- autoplay: "on" | "off";
6
- delay: number;
5
+ speed: number;
7
6
  align: "start" | "center" | "end";
8
7
  width: number;
9
8
  imageMarginTop?: number;