@cntrl-site/components 1.0.12-alpha.1 → 1.0.12-alpha.11
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/Form/Form.d.ts +2 -1
- package/dist/Components/Form/FormComponent.d.ts +3 -15
- package/dist/Components/Grid/Grid.d.ts +13 -1
- package/dist/Components/Grid/GridComponent.d.ts +1 -15
- package/dist/Components/Lightbox/Lightbox.d.ts +2 -1
- package/dist/Components/List/List.d.ts +27 -11
- package/dist/Components/List/ListComponent.d.ts +1 -15
- package/dist/Components/Marquee/Marquee.d.ts +8 -3
- package/dist/Components/Marquee/MarqueeComponent.d.ts +2 -1
- package/dist/Components/TestimonialGrid/TestimonialGrid.d.ts +2 -1
- package/dist/Components/TestimonialGrid/TestimonialGridComponent.d.ts +2 -1
- package/dist/Components/TestimonialSingle/TestimonialSingle.d.ts +2 -1
- package/dist/Components/TestimonialSingle/TestimonialSingleComponent.d.ts +2 -1
- package/dist/Components/utils/textStylesToCss.d.ts +1 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1174 -641
- package/dist/index.mjs +6196 -5282
- package/dist/types/SchemaV1.d.ts +6 -1
- package/package.json +1 -1
|
@@ -4,10 +4,11 @@ type FormProps = {
|
|
|
4
4
|
settings: FormSettings;
|
|
5
5
|
content?: unknown;
|
|
6
6
|
isEditor?: boolean;
|
|
7
|
+
isEditMode?: boolean;
|
|
7
8
|
activeEvent: string | undefined;
|
|
8
9
|
onUpdateSettings?: (settings: FormSettings) => void;
|
|
9
10
|
} & CommonComponentProps;
|
|
10
|
-
export declare function Form({ settings, isEditor, metadata, activeEvent }: FormProps): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export declare function Form({ settings, isEditor, isEditMode, metadata, activeEvent }: FormProps): import("react/jsx-runtime").JSX.Element;
|
|
11
12
|
export type FormFieldType = 'text' | 'textarea' | 'phone' | 'email';
|
|
12
13
|
export type FormFieldItem = {
|
|
13
14
|
name: string;
|
|
@@ -701,23 +701,11 @@ export declare const FormComponent: {
|
|
|
701
701
|
} | {
|
|
702
702
|
type: "group";
|
|
703
703
|
title: string;
|
|
704
|
-
items:
|
|
704
|
+
items: {
|
|
705
705
|
type: "row";
|
|
706
706
|
title: string;
|
|
707
|
-
items:
|
|
708
|
-
|
|
709
|
-
title: string;
|
|
710
|
-
items: string[];
|
|
711
|
-
}[];
|
|
712
|
-
} | {
|
|
713
|
-
type: "group";
|
|
714
|
-
title: string;
|
|
715
|
-
items: {
|
|
716
|
-
type: "row";
|
|
717
|
-
title: string;
|
|
718
|
-
items: string[];
|
|
719
|
-
}[];
|
|
720
|
-
})[];
|
|
707
|
+
items: string[];
|
|
708
|
+
}[];
|
|
721
709
|
})[];
|
|
722
710
|
} | {
|
|
723
711
|
id: string;
|
|
@@ -6,10 +6,11 @@ type GridProps = {
|
|
|
6
6
|
content?: any;
|
|
7
7
|
isEditor?: boolean;
|
|
8
8
|
isPreviewMode?: boolean;
|
|
9
|
+
isEditMode?: boolean;
|
|
9
10
|
activeEvent: string | undefined;
|
|
10
11
|
onUpdateSettings?: (settings: GridSettings) => void;
|
|
11
12
|
} & CommonComponentProps;
|
|
12
|
-
export declare function Grid({ settings, content, isEditor, isPreviewMode, metadata, activeEvent, layoutId }: GridProps): import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
export declare function Grid({ settings, content, isEditor, isPreviewMode, isEditMode, metadata, activeEvent, layoutId }: GridProps): import("react/jsx-runtime").JSX.Element;
|
|
13
14
|
type GridLayoutConfig = {
|
|
14
15
|
entryWidth: number;
|
|
15
16
|
horizontalGap: number;
|
|
@@ -37,6 +38,7 @@ type GridSettings = {
|
|
|
37
38
|
subtitleMarginTop: number;
|
|
38
39
|
titleColor: string;
|
|
39
40
|
subtitleColor: string;
|
|
41
|
+
lightboxCounterColor: string;
|
|
40
42
|
titleFontFamily: string;
|
|
41
43
|
titleFontSettings?: {
|
|
42
44
|
fontWeight: number;
|
|
@@ -57,5 +59,15 @@ type GridSettings = {
|
|
|
57
59
|
subtitleLetterSpacing?: number;
|
|
58
60
|
subtitleWordSpacing?: number;
|
|
59
61
|
subtitleTextAppearance?: TextStyles['textAppearance'];
|
|
62
|
+
lightboxCounterFontFamily: string;
|
|
63
|
+
lightboxCounterFontSettings?: {
|
|
64
|
+
fontWeight: number;
|
|
65
|
+
fontStyle: string;
|
|
66
|
+
};
|
|
67
|
+
lightboxCounterFontSize?: number;
|
|
68
|
+
lightboxCounterLineHeight?: number;
|
|
69
|
+
lightboxCounterLetterSpacing?: number;
|
|
70
|
+
lightboxCounterWordSpacing?: number;
|
|
71
|
+
lightboxCounterTextAppearance?: TextStyles['textAppearance'];
|
|
60
72
|
};
|
|
61
73
|
export {};
|
|
@@ -1,18 +1,5 @@
|
|
|
1
1
|
import { Grid } from './Grid';
|
|
2
2
|
import { ComponentSchemaV1 } from '../../types/SchemaV1';
|
|
3
|
-
type GridSchema = ComponentSchemaV1 & {
|
|
4
|
-
properties: {
|
|
5
|
-
content: {
|
|
6
|
-
type: 'array';
|
|
7
|
-
settings?: {
|
|
8
|
-
addItemFromFileExplorer?: boolean;
|
|
9
|
-
addItemWithoutImage?: boolean;
|
|
10
|
-
};
|
|
11
|
-
items: any;
|
|
12
|
-
default: any[];
|
|
13
|
-
};
|
|
14
|
-
};
|
|
15
|
-
};
|
|
16
3
|
export declare const GridComponent: {
|
|
17
4
|
element: typeof Grid;
|
|
18
5
|
id: string;
|
|
@@ -37,7 +24,6 @@ export declare const GridComponent: {
|
|
|
37
24
|
}[];
|
|
38
25
|
parameters: never[];
|
|
39
26
|
};
|
|
40
|
-
schema:
|
|
27
|
+
schema: ComponentSchemaV1;
|
|
41
28
|
sourceCode: string;
|
|
42
29
|
};
|
|
43
|
-
export {};
|
|
@@ -7,8 +7,9 @@ type LightboxGalleryProps = {
|
|
|
7
7
|
portalId: string;
|
|
8
8
|
activeEvent: 'close' | 'open';
|
|
9
9
|
isEditor?: boolean;
|
|
10
|
+
isPreviewMode?: boolean;
|
|
10
11
|
};
|
|
11
|
-
export declare const LightboxGallery: ({ settings, content, styles, portalId, activeEvent, isEditor }: LightboxGalleryProps) => import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
export declare const LightboxGallery: ({ settings, content, styles, portalId, activeEvent, isEditor, isPreviewMode }: LightboxGalleryProps) => import("react/jsx-runtime").JSX.Element;
|
|
12
13
|
type LightboxImage = {
|
|
13
14
|
image: {
|
|
14
15
|
url: string;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { CommonComponentProps } from '../props';
|
|
2
2
|
import { TextStyles } from '../utils/textStylesToCss';
|
|
3
|
+
import { LayoutItem, LayoutTab } from '../../types/SchemaV1';
|
|
3
4
|
type ListFontSettings = {
|
|
4
5
|
fontWeight: number;
|
|
5
6
|
fontStyle: string;
|
|
@@ -13,6 +14,7 @@ type ListColumnTextStyleOverrides = {
|
|
|
13
14
|
AColumnTextLineHeight?: number;
|
|
14
15
|
AColumnTextLetterSpacing?: number;
|
|
15
16
|
AColumnTextWordSpacing?: number;
|
|
17
|
+
AColumnTextTextAlign?: 'left' | 'center' | 'right' | 'justify';
|
|
16
18
|
AColumnTextTextAppearance?: TextStyles['textAppearance'];
|
|
17
19
|
BColumnVerticalAlign?: string;
|
|
18
20
|
BColumnTextFontFamily?: string;
|
|
@@ -21,6 +23,7 @@ type ListColumnTextStyleOverrides = {
|
|
|
21
23
|
BColumnTextLineHeight?: number;
|
|
22
24
|
BColumnTextLetterSpacing?: number;
|
|
23
25
|
BColumnTextWordSpacing?: number;
|
|
26
|
+
BColumnTextTextAlign?: 'left' | 'center' | 'right' | 'justify';
|
|
24
27
|
BColumnTextTextAppearance?: TextStyles['textAppearance'];
|
|
25
28
|
CColumnVerticalAlign?: string;
|
|
26
29
|
CColumnTextFontFamily?: string;
|
|
@@ -29,6 +32,7 @@ type ListColumnTextStyleOverrides = {
|
|
|
29
32
|
CColumnTextLineHeight?: number;
|
|
30
33
|
CColumnTextLetterSpacing?: number;
|
|
31
34
|
CColumnTextWordSpacing?: number;
|
|
35
|
+
CColumnTextTextAlign?: 'left' | 'center' | 'right' | 'justify';
|
|
32
36
|
CColumnTextTextAppearance?: TextStyles['textAppearance'];
|
|
33
37
|
DColumnVerticalAlign?: string;
|
|
34
38
|
DColumnTextFontFamily?: string;
|
|
@@ -37,6 +41,7 @@ type ListColumnTextStyleOverrides = {
|
|
|
37
41
|
DColumnTextLineHeight?: number;
|
|
38
42
|
DColumnTextLetterSpacing?: number;
|
|
39
43
|
DColumnTextWordSpacing?: number;
|
|
44
|
+
DColumnTextTextAlign?: 'left' | 'center' | 'right' | 'justify';
|
|
40
45
|
DColumnTextTextAppearance?: TextStyles['textAppearance'];
|
|
41
46
|
EColumnVerticalAlign?: string;
|
|
42
47
|
EColumnTextFontFamily?: string;
|
|
@@ -45,7 +50,17 @@ type ListColumnTextStyleOverrides = {
|
|
|
45
50
|
EColumnTextLineHeight?: number;
|
|
46
51
|
EColumnTextLetterSpacing?: number;
|
|
47
52
|
EColumnTextWordSpacing?: number;
|
|
53
|
+
EColumnTextTextAlign?: 'left' | 'center' | 'right' | 'justify';
|
|
48
54
|
EColumnTextTextAppearance?: TextStyles['textAppearance'];
|
|
55
|
+
cutLabelTextFontFamily?: string;
|
|
56
|
+
cutLabelTextFontSettings?: ListFontSettings;
|
|
57
|
+
cutLabelTextFontSize?: number;
|
|
58
|
+
cutLabelTextLineHeight?: number;
|
|
59
|
+
cutLabelTextLetterSpacing?: number;
|
|
60
|
+
cutLabelTextWordSpacing?: number;
|
|
61
|
+
cutLabelTextTextAlign?: 'left' | 'center' | 'right' | 'justify';
|
|
62
|
+
cutLabelTextTextAppearance?: TextStyles['textAppearance'];
|
|
63
|
+
cutLabelVerticalAlign?: string;
|
|
49
64
|
};
|
|
50
65
|
export type ListColumnVerticalAlignKey = `${ListColumnPrefix}VerticalAlign`;
|
|
51
66
|
export type ListSettings = {
|
|
@@ -92,13 +107,6 @@ export type ListSettings = {
|
|
|
92
107
|
columnsOrder?: string[];
|
|
93
108
|
textPaddingLR?: number;
|
|
94
109
|
textColor: string;
|
|
95
|
-
textFontFamily: string;
|
|
96
|
-
textFontSettings?: ListFontSettings;
|
|
97
|
-
textFontSize?: number;
|
|
98
|
-
textLineHeight?: number;
|
|
99
|
-
textLetterSpacing?: number;
|
|
100
|
-
textWordSpacing?: number;
|
|
101
|
-
textTextAppearance?: TextStyles['textAppearance'];
|
|
102
110
|
backgroundColor: string;
|
|
103
111
|
dividerColor: string;
|
|
104
112
|
textHoverColor: string;
|
|
@@ -124,21 +132,29 @@ type ListProps = {
|
|
|
124
132
|
content?: ListContentItem[];
|
|
125
133
|
isEditor?: boolean;
|
|
126
134
|
isPreviewMode?: boolean;
|
|
135
|
+
isEditMode?: boolean;
|
|
136
|
+
isEditMode?: boolean;
|
|
127
137
|
activeEvent: string | undefined;
|
|
128
138
|
onUpdateSettings?: (settings: ListSettings) => void;
|
|
129
139
|
} & CommonComponentProps;
|
|
130
140
|
export declare const COLUMN_CONTENT_KEYS: readonly ["AColumn", "BColumnWidth", "CColumnWidth", "DColumnWidth", "EColumnWidth"];
|
|
131
141
|
export declare const COLUMN_TEXT_PREFIXES: readonly ["AColumn", "BColumn", "CColumn", "DColumn", "EColumn"];
|
|
142
|
+
export declare const CUT_LABEL_TEXT_PREFIX: "cutLabel";
|
|
143
|
+
export declare const LIST_TEXT_STYLE_PREFIXES: readonly ["AColumn", "BColumn", "CColumn", "DColumn", "EColumn", "cutLabel"];
|
|
144
|
+
export type ListTextStylePrefix = typeof LIST_TEXT_STYLE_PREFIXES[number];
|
|
132
145
|
export declare const LIST_COLUMN_LETTERS: readonly ["A", "B", "C", "D", "E"];
|
|
133
146
|
export declare function getListColumnVerticalAlignSettingKey(columnLetter: string): string;
|
|
134
147
|
export declare const COLUMN_VALIGN_BASIC_OPTIONS: readonly ["Top", "Center", "Bottom"];
|
|
135
|
-
export declare function
|
|
148
|
+
export declare function isBaselineAnchorColumnVerticalAlign(value: string | undefined): boolean;
|
|
136
149
|
export declare function parseBaselineAnchorLetter(value: string | undefined): string | null;
|
|
137
150
|
export declare function isValidColumnBaselineVAlign(value: string | undefined, forColumnLetter: string, settings: ListSettings): boolean;
|
|
138
151
|
export declare function getColumnVerticalAlignOptionsForLetter(columnLetter: string, settings: ListSettings): string[];
|
|
139
|
-
export declare const LIST_GLOBAL_TEXT_STYLE_KEYS: readonly ["textFontFamily", "textFontSettings", "textFontSize", "textLineHeight", "textLetterSpacing", "textWordSpacing", "textTextAppearance"];
|
|
152
|
+
export declare const LIST_GLOBAL_TEXT_STYLE_KEYS: readonly ["textFontFamily", "textFontSettings", "textFontSize", "textLineHeight", "textLetterSpacing", "textWordSpacing", "textTextAlign", "textTextAppearance"];
|
|
140
153
|
export type ListGlobalTextStyleKey = typeof LIST_GLOBAL_TEXT_STYLE_KEYS[number];
|
|
141
|
-
export declare function getListColumnTextSettingKey(prefix:
|
|
154
|
+
export declare function getListColumnTextSettingKey(prefix: ListTextStylePrefix, globalKey: ListGlobalTextStyleKey): string;
|
|
155
|
+
export declare const LIST_TEXT_STYLE_TAB_LABELS: Record<ListTextStylePrefix, string>;
|
|
156
|
+
export declare function createListTextStyleTabContentItems(prefix: ListTextStylePrefix): LayoutItem[];
|
|
157
|
+
export declare function createListTextStylePanelTab(): LayoutTab;
|
|
142
158
|
declare const COLUMN_WIDTH_KEYS: readonly ["AColumnWidth", "BColumnWidth", "CColumnWidth", "DColumnWidth", "EColumnWidth"];
|
|
143
159
|
type ColumnWidthKey = typeof COLUMN_WIDTH_KEYS[number];
|
|
144
160
|
export declare function getListMinColumnWidth(designWidthPx?: number): number;
|
|
@@ -153,5 +169,5 @@ export declare function resolveListColumnWidths(columns: number, wrapperWidth: n
|
|
|
153
169
|
export declare function applyListSettingsChange(nextSettings: ListSettings, prevSettings: ListSettings, options?: {
|
|
154
170
|
designWidth?: number;
|
|
155
171
|
}): ListSettings;
|
|
156
|
-
export declare function List({ settings, content, isEditor, isPreviewMode, activeEvent, layoutId, onUpdateSettings }: ListProps): import("react/jsx-runtime").JSX.Element;
|
|
172
|
+
export declare function List({ settings, content, isEditor, isPreviewMode, isEditMode, activeEvent, layoutId, onUpdateSettings }: ListProps): import("react/jsx-runtime").JSX.Element;
|
|
157
173
|
export {};
|
|
@@ -1,18 +1,5 @@
|
|
|
1
1
|
import { List } from './List';
|
|
2
2
|
import { ComponentSchemaV1 } from '../../types/SchemaV1';
|
|
3
|
-
type GridSchema = ComponentSchemaV1 & {
|
|
4
|
-
properties: {
|
|
5
|
-
content: {
|
|
6
|
-
type: 'array';
|
|
7
|
-
settings?: {
|
|
8
|
-
addItemFromFileExplorer?: boolean;
|
|
9
|
-
addItemWithoutImage?: boolean;
|
|
10
|
-
};
|
|
11
|
-
items: any;
|
|
12
|
-
default: any[];
|
|
13
|
-
};
|
|
14
|
-
};
|
|
15
|
-
};
|
|
16
3
|
export declare const ListComponent: {
|
|
17
4
|
element: typeof List;
|
|
18
5
|
id: string;
|
|
@@ -37,7 +24,6 @@ export declare const ListComponent: {
|
|
|
37
24
|
}[];
|
|
38
25
|
parameters: never[];
|
|
39
26
|
};
|
|
40
|
-
schema:
|
|
27
|
+
schema: ComponentSchemaV1;
|
|
41
28
|
sourceCode: string;
|
|
42
29
|
};
|
|
43
|
-
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { CommonComponentProps } from '../props';
|
|
2
|
-
export declare const Marquee: ({ settings, content, isEditor, isPreviewMode }: MarqueeProps) => import("react/jsx-runtime").JSX.Element;
|
|
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
5
|
url?: string;
|
|
@@ -11,16 +11,21 @@ export type MarqueeSettings = {
|
|
|
11
11
|
speed: number;
|
|
12
12
|
direction: 'left' | 'right';
|
|
13
13
|
pauseOnHover: 'on' | 'off';
|
|
14
|
-
hoverEffect: 'off' | 'brightness' | 'grayscale' | '
|
|
14
|
+
hoverEffect: 'off' | 'brightness' | 'grayscale' | 'randomize';
|
|
15
15
|
gap: number;
|
|
16
16
|
imageMaxWidth: number;
|
|
17
17
|
imageMaxHeight: number;
|
|
18
|
-
imageFit:
|
|
18
|
+
imageFit: {
|
|
19
|
+
display: 'Fit' | 'Cover';
|
|
20
|
+
ratioValue: '1:1' | '2:3' | '3:4' | '4:5' | '16:9';
|
|
21
|
+
reversed: boolean;
|
|
22
|
+
};
|
|
19
23
|
};
|
|
20
24
|
type MarqueeProps = {
|
|
21
25
|
settings: MarqueeSettings;
|
|
22
26
|
content?: MarqueeItem[];
|
|
23
27
|
isEditor?: boolean;
|
|
24
28
|
isPreviewMode?: boolean;
|
|
29
|
+
isEditMode?: boolean;
|
|
25
30
|
} & CommonComponentProps;
|
|
26
31
|
export {};
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { ComponentSchemaV1 } from '../../types/SchemaV1';
|
|
2
2
|
export declare const MarqueeComponent: {
|
|
3
|
-
element: ({ settings, content, isEditor, isPreviewMode }: {
|
|
3
|
+
element: ({ settings, content, isEditor, isPreviewMode, isEditMode }: {
|
|
4
4
|
settings: import('./Marquee').MarqueeSettings;
|
|
5
5
|
content?: import('./Marquee').MarqueeItem[];
|
|
6
6
|
isEditor?: boolean;
|
|
7
7
|
isPreviewMode?: boolean;
|
|
8
|
+
isEditMode?: boolean;
|
|
8
9
|
} & import('../props').CommonComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
9
10
|
id: string;
|
|
10
11
|
name: string;
|
|
@@ -4,8 +4,9 @@ type TestimonialsProps = {
|
|
|
4
4
|
content?: TestimonialsItem[];
|
|
5
5
|
isEditor?: boolean;
|
|
6
6
|
isPreviewMode?: boolean;
|
|
7
|
+
isEditMode?: boolean;
|
|
7
8
|
} & CommonComponentProps;
|
|
8
|
-
export declare const TestimonialGrid: ({ settings, content, isEditor, isPreviewMode }: TestimonialsProps) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export declare const TestimonialGrid: ({ settings, content, isEditor, isPreviewMode, isEditMode }: TestimonialsProps) => import("react/jsx-runtime").JSX.Element;
|
|
9
10
|
export type TestimonialsItem = {
|
|
10
11
|
logo?: {
|
|
11
12
|
url?: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ComponentSchemaV1 } from '../../types/SchemaV1';
|
|
2
2
|
export declare const TestimonialGridComponent: {
|
|
3
|
-
element: ({ settings, content, isEditor, isPreviewMode }: {
|
|
3
|
+
element: ({ settings, content, isEditor, isPreviewMode, isEditMode }: {
|
|
4
4
|
settings: {
|
|
5
5
|
autoplay: "on" | "off";
|
|
6
6
|
speed: number;
|
|
@@ -27,6 +27,7 @@ export declare const TestimonialGridComponent: {
|
|
|
27
27
|
content?: import('./TestimonialGrid').TestimonialsItem[];
|
|
28
28
|
isEditor?: boolean;
|
|
29
29
|
isPreviewMode?: boolean;
|
|
30
|
+
isEditMode?: boolean;
|
|
30
31
|
} & import('../props').CommonComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
31
32
|
id: string;
|
|
32
33
|
name: string;
|
|
@@ -4,8 +4,9 @@ type TestimonialsProps = {
|
|
|
4
4
|
content?: TestimonialsItem[];
|
|
5
5
|
isEditor?: boolean;
|
|
6
6
|
isPreviewMode?: boolean;
|
|
7
|
+
isEditMode?: boolean;
|
|
7
8
|
} & CommonComponentProps;
|
|
8
|
-
export declare const TestimonialSingle: ({ settings, content, isEditor, isPreviewMode }: TestimonialsProps) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export declare const TestimonialSingle: ({ settings, content, isEditor, isPreviewMode, isEditMode }: TestimonialsProps) => import("react/jsx-runtime").JSX.Element;
|
|
9
10
|
export type TestimonialsItem = {
|
|
10
11
|
image?: {
|
|
11
12
|
url?: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ComponentSchemaV1 } from '../../types/SchemaV1';
|
|
2
2
|
export declare const TestimonialSingleComponent: {
|
|
3
|
-
element: ({ settings, content, isEditor, isPreviewMode }: {
|
|
3
|
+
element: ({ settings, content, isEditor, isPreviewMode, isEditMode }: {
|
|
4
4
|
settings: {
|
|
5
5
|
autoplay: "on" | "off";
|
|
6
6
|
delay: number;
|
|
@@ -22,6 +22,7 @@ export declare const TestimonialSingleComponent: {
|
|
|
22
22
|
content?: import('./TestimonialSingle').TestimonialsItem[];
|
|
23
23
|
isEditor?: boolean;
|
|
24
24
|
isPreviewMode?: boolean;
|
|
25
|
+
isEditMode?: boolean;
|
|
25
26
|
} & import('../props').CommonComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
26
27
|
id: string;
|
|
27
28
|
name: string;
|
|
@@ -14,6 +14,7 @@ export type TextStyles = {
|
|
|
14
14
|
textDecoration?: string;
|
|
15
15
|
fontVariant?: string;
|
|
16
16
|
};
|
|
17
|
+
textAlign?: 'left' | 'center' | 'right' | 'justify';
|
|
17
18
|
color: string;
|
|
18
19
|
};
|
|
19
20
|
export declare const normalizeFontFamilyCssValue: (fontFamily?: string) => string | undefined;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export { type Component, isSchemaV1 } from './types/Component';
|
|
2
|
-
export type { ComponentSchemaV1, SchemaProperty, PropertyScope, LayoutItem, LayoutRow, LayoutGroup, LayoutSwitcher, SchemaSection, SchemaPanel, SchemaDisplay } from './types/SchemaV1';
|
|
2
|
+
export type { ComponentSchemaV1, SchemaProperty, PropertyScope, LayoutItem, LayoutRow, LayoutGroup, LayoutSwitcher, LayoutTab, SchemaSection, SchemaPanel, SchemaDisplay } from './types/SchemaV1';
|
|
3
3
|
export { components } from './Components/components';
|