monto-email-builder 1.4.0 → 1.4.2
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/HtmlEditor/index.d.ts.map +1 -1
- package/dist/HtmlEditor/variables.d.ts +2 -0
- package/dist/HtmlEditor/variables.d.ts.map +1 -1
- package/dist/chunks/{chunk-CF4KXMbF.js → chunk-ZMWDxWGX.js} +641 -126
- package/dist/documents/blocks/ColumnsContainer/ColumnsContainerPropsSchema.d.ts +13 -13
- package/dist/documents/blocks/Container/ContainerPropsSchema.d.ts +4 -4
- package/dist/documents/blocks/Socials/SocialsPropsSchema.d.ts +14 -14
- package/dist/documents/blocks/Video/VideoPropsSchema.d.ts +22 -22
- package/dist/documents/editor/EditorContext.d.ts +1 -1
- package/dist/documents/editor/core.d.ts +159 -159
- package/dist/html-editor.js +551 -417
- package/dist/index.js +2678 -3192
- package/package.json +1 -1
|
@@ -54,7 +54,7 @@ declare const ColumnsContainerPropsSchema: z.ZodObject<{
|
|
|
54
54
|
columnsCount?: number | null | undefined;
|
|
55
55
|
fixedWidths?: [number | null | undefined, number | null | undefined, number | null | undefined, number | null | undefined] | null | undefined;
|
|
56
56
|
columnsGap?: number | null | undefined;
|
|
57
|
-
contentAlignment?: "bottom" | "top" | "
|
|
57
|
+
contentAlignment?: "bottom" | "top" | "middle" | "stretch" | null | undefined;
|
|
58
58
|
}, {
|
|
59
59
|
columns: {
|
|
60
60
|
childrenIds: string[];
|
|
@@ -62,9 +62,18 @@ declare const ColumnsContainerPropsSchema: z.ZodObject<{
|
|
|
62
62
|
columnsCount?: number | null | undefined;
|
|
63
63
|
fixedWidths?: [number | null | undefined, number | null | undefined, number | null | undefined, number | null | undefined] | null | undefined;
|
|
64
64
|
columnsGap?: number | null | undefined;
|
|
65
|
-
contentAlignment?: "bottom" | "top" | "
|
|
65
|
+
contentAlignment?: "bottom" | "top" | "middle" | "stretch" | null | undefined;
|
|
66
66
|
}>>>;
|
|
67
67
|
}, "strip", z.ZodTypeAny, {
|
|
68
|
+
props?: {
|
|
69
|
+
columns: {
|
|
70
|
+
childrenIds: string[];
|
|
71
|
+
}[];
|
|
72
|
+
columnsCount?: number | null | undefined;
|
|
73
|
+
fixedWidths?: [number | null | undefined, number | null | undefined, number | null | undefined, number | null | undefined] | null | undefined;
|
|
74
|
+
columnsGap?: number | null | undefined;
|
|
75
|
+
contentAlignment?: "bottom" | "top" | "middle" | "stretch" | null | undefined;
|
|
76
|
+
} | null | undefined;
|
|
68
77
|
style?: {
|
|
69
78
|
backgroundColor?: string | null | undefined;
|
|
70
79
|
padding?: {
|
|
@@ -74,6 +83,7 @@ declare const ColumnsContainerPropsSchema: z.ZodObject<{
|
|
|
74
83
|
left: number;
|
|
75
84
|
} | null | undefined;
|
|
76
85
|
} | null | undefined;
|
|
86
|
+
}, {
|
|
77
87
|
props?: {
|
|
78
88
|
columns: {
|
|
79
89
|
childrenIds: string[];
|
|
@@ -81,9 +91,8 @@ declare const ColumnsContainerPropsSchema: z.ZodObject<{
|
|
|
81
91
|
columnsCount?: number | null | undefined;
|
|
82
92
|
fixedWidths?: [number | null | undefined, number | null | undefined, number | null | undefined, number | null | undefined] | null | undefined;
|
|
83
93
|
columnsGap?: number | null | undefined;
|
|
84
|
-
contentAlignment?: "bottom" | "top" | "
|
|
94
|
+
contentAlignment?: "bottom" | "top" | "middle" | "stretch" | null | undefined;
|
|
85
95
|
} | null | undefined;
|
|
86
|
-
}, {
|
|
87
96
|
style?: {
|
|
88
97
|
backgroundColor?: string | null | undefined;
|
|
89
98
|
padding?: {
|
|
@@ -93,15 +102,6 @@ declare const ColumnsContainerPropsSchema: z.ZodObject<{
|
|
|
93
102
|
left: number;
|
|
94
103
|
} | null | undefined;
|
|
95
104
|
} | null | undefined;
|
|
96
|
-
props?: {
|
|
97
|
-
columns: {
|
|
98
|
-
childrenIds: string[];
|
|
99
|
-
}[];
|
|
100
|
-
columnsCount?: number | null | undefined;
|
|
101
|
-
fixedWidths?: [number | null | undefined, number | null | undefined, number | null | undefined, number | null | undefined] | null | undefined;
|
|
102
|
-
columnsGap?: number | null | undefined;
|
|
103
|
-
contentAlignment?: "bottom" | "top" | "stretch" | "middle" | null | undefined;
|
|
104
|
-
} | null | undefined;
|
|
105
105
|
}>;
|
|
106
106
|
export type ColumnsContainerProps = z.infer<typeof ColumnsContainerPropsSchema>;
|
|
107
107
|
export default ColumnsContainerPropsSchema;
|
|
@@ -49,6 +49,9 @@ declare const ContainerPropsSchema: z.ZodObject<{
|
|
|
49
49
|
childrenIds?: string[] | null | undefined;
|
|
50
50
|
}>>>;
|
|
51
51
|
}, "strip", z.ZodTypeAny, {
|
|
52
|
+
props?: {
|
|
53
|
+
childrenIds?: string[] | null | undefined;
|
|
54
|
+
} | null | undefined;
|
|
52
55
|
style?: {
|
|
53
56
|
backgroundColor?: string | null | undefined;
|
|
54
57
|
borderColor?: string | null | undefined;
|
|
@@ -60,10 +63,10 @@ declare const ContainerPropsSchema: z.ZodObject<{
|
|
|
60
63
|
left: number;
|
|
61
64
|
} | null | undefined;
|
|
62
65
|
} | null | undefined;
|
|
66
|
+
}, {
|
|
63
67
|
props?: {
|
|
64
68
|
childrenIds?: string[] | null | undefined;
|
|
65
69
|
} | null | undefined;
|
|
66
|
-
}, {
|
|
67
70
|
style?: {
|
|
68
71
|
backgroundColor?: string | null | undefined;
|
|
69
72
|
borderColor?: string | null | undefined;
|
|
@@ -75,9 +78,6 @@ declare const ContainerPropsSchema: z.ZodObject<{
|
|
|
75
78
|
left: number;
|
|
76
79
|
} | null | undefined;
|
|
77
80
|
} | null | undefined;
|
|
78
|
-
props?: {
|
|
79
|
-
childrenIds?: string[] | null | undefined;
|
|
80
|
-
} | null | undefined;
|
|
81
81
|
}>;
|
|
82
82
|
export default ContainerPropsSchema;
|
|
83
83
|
export type ContainerProps = z.infer<typeof ContainerPropsSchema>;
|
|
@@ -56,7 +56,7 @@ declare const SocialsPropsSchema: z.ZodObject<{
|
|
|
56
56
|
textAlign: z.ZodNullable<z.ZodOptional<z.ZodEnum<["left", "center", "right"]>>>;
|
|
57
57
|
}, "strip", z.ZodTypeAny, {
|
|
58
58
|
backgroundColor?: string | null | undefined;
|
|
59
|
-
textAlign?: "
|
|
59
|
+
textAlign?: "left" | "right" | "center" | null | undefined;
|
|
60
60
|
padding?: {
|
|
61
61
|
bottom: number;
|
|
62
62
|
left: number;
|
|
@@ -65,7 +65,7 @@ declare const SocialsPropsSchema: z.ZodObject<{
|
|
|
65
65
|
} | null | undefined;
|
|
66
66
|
}, {
|
|
67
67
|
backgroundColor?: string | null | undefined;
|
|
68
|
-
textAlign?: "
|
|
68
|
+
textAlign?: "left" | "right" | "center" | null | undefined;
|
|
69
69
|
padding?: {
|
|
70
70
|
bottom: number;
|
|
71
71
|
left: number;
|
|
@@ -74,16 +74,6 @@ declare const SocialsPropsSchema: z.ZodObject<{
|
|
|
74
74
|
} | null | undefined;
|
|
75
75
|
}>>>;
|
|
76
76
|
}, "strip", z.ZodTypeAny, {
|
|
77
|
-
style?: {
|
|
78
|
-
backgroundColor?: string | null | undefined;
|
|
79
|
-
textAlign?: "center" | "left" | "right" | null | undefined;
|
|
80
|
-
padding?: {
|
|
81
|
-
bottom: number;
|
|
82
|
-
left: number;
|
|
83
|
-
right: number;
|
|
84
|
-
top: number;
|
|
85
|
-
} | null | undefined;
|
|
86
|
-
} | null | undefined;
|
|
87
77
|
props?: {
|
|
88
78
|
platforms?: ("x" | "facebook" | "instagram" | "linkedin" | "youtube" | "tiktok" | "snapchat" | "whatsapp" | "telegram" | "discord" | "reddit" | "twitch" | "threads")[] | null | undefined;
|
|
89
79
|
iconStyle?: "standard" | "no-border-black" | "no-border-white" | "origin-colorful" | "with-border-black" | "with-border-white" | "with-border-line-colorful" | "with-border-line-black" | "with-border-line-white" | null | undefined;
|
|
@@ -93,10 +83,9 @@ declare const SocialsPropsSchema: z.ZodObject<{
|
|
|
93
83
|
url?: string | null | undefined;
|
|
94
84
|
}[] | null | undefined;
|
|
95
85
|
} | null | undefined;
|
|
96
|
-
}, {
|
|
97
86
|
style?: {
|
|
98
87
|
backgroundColor?: string | null | undefined;
|
|
99
|
-
textAlign?: "
|
|
88
|
+
textAlign?: "left" | "right" | "center" | null | undefined;
|
|
100
89
|
padding?: {
|
|
101
90
|
bottom: number;
|
|
102
91
|
left: number;
|
|
@@ -104,6 +93,7 @@ declare const SocialsPropsSchema: z.ZodObject<{
|
|
|
104
93
|
top: number;
|
|
105
94
|
} | null | undefined;
|
|
106
95
|
} | null | undefined;
|
|
96
|
+
}, {
|
|
107
97
|
props?: {
|
|
108
98
|
platforms?: ("x" | "facebook" | "instagram" | "linkedin" | "youtube" | "tiktok" | "snapchat" | "whatsapp" | "telegram" | "discord" | "reddit" | "twitch" | "threads")[] | null | undefined;
|
|
109
99
|
iconStyle?: "standard" | "no-border-black" | "no-border-white" | "origin-colorful" | "with-border-black" | "with-border-white" | "with-border-line-colorful" | "with-border-line-black" | "with-border-line-white" | null | undefined;
|
|
@@ -113,6 +103,16 @@ declare const SocialsPropsSchema: z.ZodObject<{
|
|
|
113
103
|
url?: string | null | undefined;
|
|
114
104
|
}[] | null | undefined;
|
|
115
105
|
} | null | undefined;
|
|
106
|
+
style?: {
|
|
107
|
+
backgroundColor?: string | null | undefined;
|
|
108
|
+
textAlign?: "left" | "right" | "center" | null | undefined;
|
|
109
|
+
padding?: {
|
|
110
|
+
bottom: number;
|
|
111
|
+
left: number;
|
|
112
|
+
right: number;
|
|
113
|
+
top: number;
|
|
114
|
+
} | null | undefined;
|
|
115
|
+
} | null | undefined;
|
|
116
116
|
}>;
|
|
117
117
|
export default SocialsPropsSchema;
|
|
118
118
|
export type SocialsProps = z.infer<typeof SocialsPropsSchema>;
|
|
@@ -15,22 +15,22 @@ declare const VideoPropsSchema: z.ZodObject<{
|
|
|
15
15
|
height?: string | null | undefined;
|
|
16
16
|
width?: string | null | undefined;
|
|
17
17
|
alt?: string | null | undefined;
|
|
18
|
+
url?: string | null | undefined;
|
|
19
|
+
autoplay?: boolean | null | undefined;
|
|
18
20
|
controls?: boolean | null | undefined;
|
|
19
21
|
loop?: boolean | null | undefined;
|
|
20
22
|
muted?: boolean | null | undefined;
|
|
21
|
-
url?: string | null | undefined;
|
|
22
|
-
autoplay?: boolean | null | undefined;
|
|
23
23
|
contentAlignment?: "bottom" | "top" | "middle" | null | undefined;
|
|
24
24
|
linkHref?: string | null | undefined;
|
|
25
25
|
}, {
|
|
26
26
|
height?: string | null | undefined;
|
|
27
27
|
width?: string | null | undefined;
|
|
28
28
|
alt?: string | null | undefined;
|
|
29
|
+
url?: string | null | undefined;
|
|
30
|
+
autoplay?: boolean | null | undefined;
|
|
29
31
|
controls?: boolean | null | undefined;
|
|
30
32
|
loop?: boolean | null | undefined;
|
|
31
33
|
muted?: boolean | null | undefined;
|
|
32
|
-
url?: string | null | undefined;
|
|
33
|
-
autoplay?: boolean | null | undefined;
|
|
34
34
|
contentAlignment?: "bottom" | "top" | "middle" | null | undefined;
|
|
35
35
|
linkHref?: string | null | undefined;
|
|
36
36
|
}>>>;
|
|
@@ -55,7 +55,7 @@ declare const VideoPropsSchema: z.ZodObject<{
|
|
|
55
55
|
textAlign: z.ZodNullable<z.ZodOptional<z.ZodEnum<["left", "center", "right"]>>>;
|
|
56
56
|
}, "strip", z.ZodTypeAny, {
|
|
57
57
|
backgroundColor?: string | null | undefined;
|
|
58
|
-
textAlign?: "
|
|
58
|
+
textAlign?: "left" | "right" | "center" | null | undefined;
|
|
59
59
|
padding?: {
|
|
60
60
|
bottom: number;
|
|
61
61
|
left: number;
|
|
@@ -64,7 +64,7 @@ declare const VideoPropsSchema: z.ZodObject<{
|
|
|
64
64
|
} | null | undefined;
|
|
65
65
|
}, {
|
|
66
66
|
backgroundColor?: string | null | undefined;
|
|
67
|
-
textAlign?: "
|
|
67
|
+
textAlign?: "left" | "right" | "center" | null | undefined;
|
|
68
68
|
padding?: {
|
|
69
69
|
bottom: number;
|
|
70
70
|
left: number;
|
|
@@ -73,32 +73,21 @@ declare const VideoPropsSchema: z.ZodObject<{
|
|
|
73
73
|
} | null | undefined;
|
|
74
74
|
}>>>;
|
|
75
75
|
}, "strip", z.ZodTypeAny, {
|
|
76
|
-
style?: {
|
|
77
|
-
backgroundColor?: string | null | undefined;
|
|
78
|
-
textAlign?: "center" | "left" | "right" | null | undefined;
|
|
79
|
-
padding?: {
|
|
80
|
-
bottom: number;
|
|
81
|
-
left: number;
|
|
82
|
-
right: number;
|
|
83
|
-
top: number;
|
|
84
|
-
} | null | undefined;
|
|
85
|
-
} | null | undefined;
|
|
86
76
|
props?: {
|
|
87
77
|
height?: string | null | undefined;
|
|
88
78
|
width?: string | null | undefined;
|
|
89
79
|
alt?: string | null | undefined;
|
|
80
|
+
url?: string | null | undefined;
|
|
81
|
+
autoplay?: boolean | null | undefined;
|
|
90
82
|
controls?: boolean | null | undefined;
|
|
91
83
|
loop?: boolean | null | undefined;
|
|
92
84
|
muted?: boolean | null | undefined;
|
|
93
|
-
url?: string | null | undefined;
|
|
94
|
-
autoplay?: boolean | null | undefined;
|
|
95
85
|
contentAlignment?: "bottom" | "top" | "middle" | null | undefined;
|
|
96
86
|
linkHref?: string | null | undefined;
|
|
97
87
|
} | null | undefined;
|
|
98
|
-
}, {
|
|
99
88
|
style?: {
|
|
100
89
|
backgroundColor?: string | null | undefined;
|
|
101
|
-
textAlign?: "
|
|
90
|
+
textAlign?: "left" | "right" | "center" | null | undefined;
|
|
102
91
|
padding?: {
|
|
103
92
|
bottom: number;
|
|
104
93
|
left: number;
|
|
@@ -106,18 +95,29 @@ declare const VideoPropsSchema: z.ZodObject<{
|
|
|
106
95
|
top: number;
|
|
107
96
|
} | null | undefined;
|
|
108
97
|
} | null | undefined;
|
|
98
|
+
}, {
|
|
109
99
|
props?: {
|
|
110
100
|
height?: string | null | undefined;
|
|
111
101
|
width?: string | null | undefined;
|
|
112
102
|
alt?: string | null | undefined;
|
|
103
|
+
url?: string | null | undefined;
|
|
104
|
+
autoplay?: boolean | null | undefined;
|
|
113
105
|
controls?: boolean | null | undefined;
|
|
114
106
|
loop?: boolean | null | undefined;
|
|
115
107
|
muted?: boolean | null | undefined;
|
|
116
|
-
url?: string | null | undefined;
|
|
117
|
-
autoplay?: boolean | null | undefined;
|
|
118
108
|
contentAlignment?: "bottom" | "top" | "middle" | null | undefined;
|
|
119
109
|
linkHref?: string | null | undefined;
|
|
120
110
|
} | null | undefined;
|
|
111
|
+
style?: {
|
|
112
|
+
backgroundColor?: string | null | undefined;
|
|
113
|
+
textAlign?: "left" | "right" | "center" | null | undefined;
|
|
114
|
+
padding?: {
|
|
115
|
+
bottom: number;
|
|
116
|
+
left: number;
|
|
117
|
+
right: number;
|
|
118
|
+
top: number;
|
|
119
|
+
} | null | undefined;
|
|
120
|
+
} | null | undefined;
|
|
121
121
|
}>;
|
|
122
122
|
export default VideoPropsSchema;
|
|
123
123
|
export type VideoProps = z.infer<typeof VideoPropsSchema>;
|
|
@@ -94,7 +94,7 @@ export declare function setContactAttributes(attrs: ContactAttribute[] | null |
|
|
|
94
94
|
export declare function useContactAttributes(): ContactAttribute[];
|
|
95
95
|
export declare function useDocument(): TEditorConfiguration;
|
|
96
96
|
export declare function useSelectedBlockId(): string | null;
|
|
97
|
-
export declare function useSelectedScreenSize(): "
|
|
97
|
+
export declare function useSelectedScreenSize(): "mobile" | "desktop";
|
|
98
98
|
export declare function useSelectedMainTab(): "html" | "preview" | "editor" | "json";
|
|
99
99
|
export declare function setSelectedMainTab(selectedMainTab: TValue['selectedMainTab']): void;
|
|
100
100
|
export declare function useSelectedSidebarTab(): "styles" | "block-configuration";
|