@topol.io/editor 1.0.0-alpha.10 → 1.0.0-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/README.md +17 -14
- package/dist/topol-plugin.es.js +109 -95
- package/dist/topol-plugin.umd.cjs +1 -1
- package/dist/types/src/email-editor/index.d.ts +3 -3
- package/dist/types/src/landing-page-editor/constants.d.ts +1 -1
- package/dist/types/src/landing-page-editor/index.d.ts +10 -5
- package/dist/types/src/landing-page-editor/schemas/api/apiSchema.d.ts +5 -10
- package/dist/types/src/landing-page-editor/schemas/contentBlock/contentBlockScheme.d.ts +33 -17
- package/dist/types/src/landing-page-editor/schemas/language/languageSchema.d.ts +1 -1
- package/dist/types/src/landing-page-editor/schemas/mjmlStore/mjmlStoreSchema.d.ts +8 -6
- package/dist/types/src/landing-page-editor/schemas/notification/notificationSchema.d.ts +0 -1
- package/dist/types/src/landing-page-editor/schemas/pluginOptions/pluginOptionsSchema.d.ts +66 -19
- package/dist/types/src/landing-page-editor/schemas/premadeSection/premadeSectionSchema.d.ts +30 -0
- package/dist/types/src/landing-page-editor/schemas/template/blocks/buttonBlockSchema.d.ts +685 -3
- package/dist/types/src/landing-page-editor/schemas/template/blocks/carouselBlockSchema.d.ts +9 -2
- package/dist/types/src/landing-page-editor/schemas/template/blocks/dividerBlockSchema.d.ts +9 -1
- package/dist/types/src/landing-page-editor/schemas/template/blocks/formBlockSchema.d.ts +1069 -0
- package/dist/types/src/landing-page-editor/schemas/template/blocks/imageAnGifBlockSchema.d.ts +29 -13
- package/dist/types/src/landing-page-editor/schemas/template/blocks/rawBlockSchema.d.ts +9 -1
- package/dist/types/src/landing-page-editor/schemas/template/blocks/socialBlockSchema.d.ts +9 -1
- package/dist/types/src/landing-page-editor/schemas/template/blocks/spacerBlockSchema.d.ts +16 -8
- package/dist/types/src/landing-page-editor/schemas/template/blocks/textBlockSchema.d.ts +9 -1
- package/dist/types/src/landing-page-editor/schemas/template/blocks/videoBlockSchema.d.ts +9 -1
- package/dist/types/src/landing-page-editor/schemas/template/commonSchema.d.ts +28 -8
- package/dist/types/src/landing-page-editor/schemas/template/navbarBlocks/navbarCTASchema.d.ts +335 -0
- package/dist/types/src/landing-page-editor/schemas/template/navbarBlocks/navbarHamburgerSchema.d.ts +1109 -0
- package/dist/types/src/landing-page-editor/schemas/template/navbarBlocks/navbarLogoSchema.d.ts +252 -0
- package/dist/types/src/landing-page-editor/schemas/template/navbarBlocks/navbarMenuSchema.d.ts +1209 -0
- package/dist/types/src/landing-page-editor/schemas/template/settingsSchema.d.ts +4058 -546
- package/dist/types/src/landing-page-editor/schemas/template/structure/blockSchema.d.ts +4675 -1996
- package/dist/types/src/landing-page-editor/schemas/template/structure/columnSchema.d.ts +5445 -2356
- package/dist/types/src/landing-page-editor/schemas/template/structure/navbarSchema.d.ts +4394 -0
- package/dist/types/src/landing-page-editor/schemas/template/structure/rowSchema.d.ts +11094 -0
- package/dist/types/src/landing-page-editor/schemas/template/structure/sectionSchema.d.ts +8365 -3100
- package/dist/types/src/landing-page-editor/schemas/template/styleSchema.d.ts +55 -44
- package/dist/types/src/landing-page-editor/schemas/templateSchema.d.ts +34901 -48500
- package/dist/types/src/landing-page-editor/schemas/templateSettings/templateSettingsSchema.d.ts +4305 -794
- package/dist/types/src/landing-page-editor/schemas/theme/themeSchema.d.ts +6 -1
- package/dist/types/src/landing-page-editor/schemas/utils/cssValue.d.ts +21 -0
- package/dist/types/src/landing-page-editor/schemas/utils/transformBorder.d.ts +10 -5
- package/dist/types/src/main.d.ts +23 -42
- package/dist/types/types/API/API.d.ts +2 -2
- package/dist/types/types/APIBlocks/APIBlocks.d.ts +11 -0
- package/dist/types/types/Auth/IAuthorize.d.ts +18 -0
- package/dist/types/types/Auth/INonceAuthCallbacks.d.ts +2 -1
- package/dist/types/types/Callbacks/ICallbackPayloads.d.ts +11 -4
- package/dist/types/types/Callbacks/IEmailCallbacks.d.ts +30 -10
- package/dist/types/types/ContentBlock/IContentBlockOptions.d.ts +1 -1
- package/dist/types/types/Countdown/ICountdownOptions.d.ts +2 -2
- package/dist/types/types/IEmailConfig.d.ts +44 -18
- package/dist/types/types/IEmailEditorInstance.d.ts +16 -2
- package/dist/types/types/{ITopolOptions.d.ts → IEmailOptions.d.ts} +1 -1
- package/dist/types/types/MergeTag/IMergeTag.d.ts +18 -0
- package/dist/types/types/Notification/INotification.d.ts +2 -1
- package/dist/types/types/Sections/ISections.d.ts +12 -1
- package/dist/types/types/Shortcuts/EditorShortcut.d.ts +4 -0
- package/dist/types/types/Theme/ITheme.d.ts +12 -2
- package/dist/types/types/landing-page/ILandingPageEditorInstance.d.ts +65 -5
- package/dist/types/types/landing-page/ILandingPageOptions.d.ts +20 -10
- package/package.json +1 -1
- package/dist/types/src/landing-page-editor/schemas/helpdesk/helpdeskSchema.d.ts +0 -8
- package/dist/types/src/landing-page-editor/schemas/premadeBlock/premadeBlockSchema.d.ts +0 -59750
- package/dist/types/src/landing-page-editor/schemas/savedBlock/savedBlockApiSchema.d.ts +0 -44831
- package/dist/types/src/landing-page-editor/schemas/savedBlock/savedBlockSchema.d.ts +0 -59725
- package/dist/types/src/landing-page-editor/schemas/template/blocks/index.d.ts +0 -12
- package/dist/types/types/ITopolPlugin.d.ts +0 -2
- package/dist/types/types/SavedBlock/ISavedBlock.d.ts +0 -2
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
export declare const TopolTextStyleSchema: z.ZodObject<{
|
|
3
|
-
"font-family": z.ZodCatch<z.ZodString
|
|
4
|
-
"font-size": z.ZodCatch<z.ZodString
|
|
3
|
+
"font-family": z.ZodCatch<z.ZodOptional<z.ZodString>>;
|
|
4
|
+
"font-size": z.ZodCatch<z.ZodOptional<z.ZodString>>;
|
|
5
5
|
color: z.ZodCatch<z.ZodOptional<z.ZodString>>;
|
|
6
6
|
"font-style": z.ZodCatch<z.ZodOptional<z.ZodString>>;
|
|
7
7
|
"text-decoration": z.ZodCatch<z.ZodOptional<z.ZodString>>;
|
|
@@ -16,13 +16,35 @@ export declare const TopolListStyleSchema: z.ZodObject<{
|
|
|
16
16
|
"padding-left": z.ZodCatch<z.ZodOptional<z.ZodString>>;
|
|
17
17
|
"list-style-type": z.ZodCatch<z.ZodOptional<z.ZodString>>;
|
|
18
18
|
}, z.core.$strip>;
|
|
19
|
+
export declare const TopolBodyStyleSchema: z.ZodObject<{
|
|
20
|
+
color: z.ZodCatch<z.ZodOptional<z.ZodString>>;
|
|
21
|
+
"font-style": z.ZodCatch<z.ZodOptional<z.ZodString>>;
|
|
22
|
+
"text-decoration": z.ZodCatch<z.ZodOptional<z.ZodString>>;
|
|
23
|
+
"font-weight": z.ZodCatch<z.ZodOptional<z.ZodString>>;
|
|
24
|
+
"text-transform": z.ZodCatch<z.ZodOptional<z.ZodString>>;
|
|
25
|
+
"letter-spacing": z.ZodCatch<z.ZodOptional<z.ZodString>>;
|
|
26
|
+
"line-height": z.ZodCatch<z.ZodOptional<z.ZodNumber>>;
|
|
27
|
+
"font-family": z.ZodCatch<z.ZodString>;
|
|
28
|
+
"font-size": z.ZodCatch<z.ZodString>;
|
|
29
|
+
}, z.core.$strip>;
|
|
19
30
|
export declare const TopolStyleSchemaWithoutDefaults: z.ZodObject<{
|
|
31
|
+
"body>div": z.ZodCatch<z.ZodOptional<z.ZodObject<{
|
|
32
|
+
"background-image": z.ZodCatch<z.ZodOptional<z.ZodString>>;
|
|
33
|
+
}, z.core.$strip>>>;
|
|
20
34
|
body: z.ZodCatch<z.ZodObject<{
|
|
35
|
+
color: z.ZodCatch<z.ZodOptional<z.ZodString>>;
|
|
36
|
+
"font-style": z.ZodCatch<z.ZodOptional<z.ZodString>>;
|
|
37
|
+
"text-decoration": z.ZodCatch<z.ZodOptional<z.ZodString>>;
|
|
38
|
+
"font-weight": z.ZodCatch<z.ZodOptional<z.ZodString>>;
|
|
39
|
+
"text-transform": z.ZodCatch<z.ZodOptional<z.ZodString>>;
|
|
40
|
+
"letter-spacing": z.ZodCatch<z.ZodOptional<z.ZodString>>;
|
|
21
41
|
"line-height": z.ZodCatch<z.ZodOptional<z.ZodNumber>>;
|
|
22
|
-
}, z.core.$strip>>;
|
|
23
|
-
h1: z.ZodCatch<z.ZodObject<{
|
|
24
42
|
"font-family": z.ZodCatch<z.ZodString>;
|
|
25
43
|
"font-size": z.ZodCatch<z.ZodString>;
|
|
44
|
+
}, z.core.$strip>>;
|
|
45
|
+
h1: z.ZodCatch<z.ZodObject<{
|
|
46
|
+
"font-family": z.ZodCatch<z.ZodOptional<z.ZodString>>;
|
|
47
|
+
"font-size": z.ZodCatch<z.ZodOptional<z.ZodString>>;
|
|
26
48
|
color: z.ZodCatch<z.ZodOptional<z.ZodString>>;
|
|
27
49
|
"font-style": z.ZodCatch<z.ZodOptional<z.ZodString>>;
|
|
28
50
|
"text-decoration": z.ZodCatch<z.ZodOptional<z.ZodString>>;
|
|
@@ -32,8 +54,8 @@ export declare const TopolStyleSchemaWithoutDefaults: z.ZodObject<{
|
|
|
32
54
|
"line-height": z.ZodCatch<z.ZodOptional<z.ZodNumber>>;
|
|
33
55
|
}, z.core.$strip>>;
|
|
34
56
|
a: z.ZodCatch<z.ZodObject<{
|
|
35
|
-
"font-family": z.ZodOptional<z.ZodCatch<z.ZodString
|
|
36
|
-
"font-size": z.ZodOptional<z.ZodCatch<z.ZodString
|
|
57
|
+
"font-family": z.ZodOptional<z.ZodCatch<z.ZodOptional<z.ZodString>>>;
|
|
58
|
+
"font-size": z.ZodOptional<z.ZodCatch<z.ZodOptional<z.ZodString>>>;
|
|
37
59
|
color: z.ZodOptional<z.ZodCatch<z.ZodOptional<z.ZodString>>>;
|
|
38
60
|
"font-style": z.ZodOptional<z.ZodCatch<z.ZodOptional<z.ZodString>>>;
|
|
39
61
|
"text-decoration": z.ZodOptional<z.ZodCatch<z.ZodOptional<z.ZodString>>>;
|
|
@@ -43,8 +65,8 @@ export declare const TopolStyleSchemaWithoutDefaults: z.ZodObject<{
|
|
|
43
65
|
"line-height": z.ZodOptional<z.ZodCatch<z.ZodOptional<z.ZodNumber>>>;
|
|
44
66
|
}, z.core.$strip>>;
|
|
45
67
|
h2: z.ZodCatch<z.ZodObject<{
|
|
46
|
-
"font-family": z.ZodCatch<z.ZodString
|
|
47
|
-
"font-size": z.ZodCatch<z.ZodString
|
|
68
|
+
"font-family": z.ZodCatch<z.ZodOptional<z.ZodString>>;
|
|
69
|
+
"font-size": z.ZodCatch<z.ZodOptional<z.ZodString>>;
|
|
48
70
|
color: z.ZodCatch<z.ZodOptional<z.ZodString>>;
|
|
49
71
|
"font-style": z.ZodCatch<z.ZodOptional<z.ZodString>>;
|
|
50
72
|
"text-decoration": z.ZodCatch<z.ZodOptional<z.ZodString>>;
|
|
@@ -54,19 +76,8 @@ export declare const TopolStyleSchemaWithoutDefaults: z.ZodObject<{
|
|
|
54
76
|
"line-height": z.ZodCatch<z.ZodOptional<z.ZodNumber>>;
|
|
55
77
|
}, z.core.$strip>>;
|
|
56
78
|
h3: z.ZodCatch<z.ZodObject<{
|
|
57
|
-
"font-family": z.ZodCatch<z.ZodString
|
|
58
|
-
"font-size": z.ZodCatch<z.ZodString
|
|
59
|
-
color: z.ZodCatch<z.ZodOptional<z.ZodString>>;
|
|
60
|
-
"font-style": z.ZodCatch<z.ZodOptional<z.ZodString>>;
|
|
61
|
-
"text-decoration": z.ZodCatch<z.ZodOptional<z.ZodString>>;
|
|
62
|
-
"font-weight": z.ZodCatch<z.ZodOptional<z.ZodString>>;
|
|
63
|
-
"text-transform": z.ZodCatch<z.ZodOptional<z.ZodString>>;
|
|
64
|
-
"letter-spacing": z.ZodCatch<z.ZodOptional<z.ZodString>>;
|
|
65
|
-
"line-height": z.ZodCatch<z.ZodOptional<z.ZodNumber>>;
|
|
66
|
-
}, z.core.$strip>>;
|
|
67
|
-
p: z.ZodCatch<z.ZodObject<{
|
|
68
|
-
"font-family": z.ZodCatch<z.ZodString>;
|
|
69
|
-
"font-size": z.ZodCatch<z.ZodString>;
|
|
79
|
+
"font-family": z.ZodCatch<z.ZodOptional<z.ZodString>>;
|
|
80
|
+
"font-size": z.ZodCatch<z.ZodOptional<z.ZodString>>;
|
|
70
81
|
color: z.ZodCatch<z.ZodOptional<z.ZodString>>;
|
|
71
82
|
"font-style": z.ZodCatch<z.ZodOptional<z.ZodString>>;
|
|
72
83
|
"text-decoration": z.ZodCatch<z.ZodOptional<z.ZodString>>;
|
|
@@ -82,8 +93,8 @@ export declare const TopolStyleSchemaWithoutDefaults: z.ZodObject<{
|
|
|
82
93
|
"list-style-type": z.ZodCatch<z.ZodOptional<z.ZodString>>;
|
|
83
94
|
}, z.core.$strip>>;
|
|
84
95
|
li: z.ZodCatch<z.ZodObject<{
|
|
85
|
-
"font-family": z.ZodCatch<z.ZodString
|
|
86
|
-
"font-size": z.ZodCatch<z.ZodString
|
|
96
|
+
"font-family": z.ZodCatch<z.ZodOptional<z.ZodString>>;
|
|
97
|
+
"font-size": z.ZodCatch<z.ZodOptional<z.ZodString>>;
|
|
87
98
|
color: z.ZodCatch<z.ZodOptional<z.ZodString>>;
|
|
88
99
|
"font-style": z.ZodCatch<z.ZodOptional<z.ZodString>>;
|
|
89
100
|
"text-decoration": z.ZodCatch<z.ZodOptional<z.ZodString>>;
|
|
@@ -100,12 +111,23 @@ export declare const TopolStyleSchemaWithoutDefaults: z.ZodObject<{
|
|
|
100
111
|
}, z.core.$strip>>;
|
|
101
112
|
}, z.core.$strip>;
|
|
102
113
|
export declare const TopolStyleSchema: z.ZodDefault<z.ZodObject<{
|
|
114
|
+
"body>div": z.ZodCatch<z.ZodOptional<z.ZodObject<{
|
|
115
|
+
"background-image": z.ZodCatch<z.ZodOptional<z.ZodString>>;
|
|
116
|
+
}, z.core.$strip>>>;
|
|
103
117
|
body: z.ZodCatch<z.ZodObject<{
|
|
118
|
+
color: z.ZodCatch<z.ZodOptional<z.ZodString>>;
|
|
119
|
+
"font-style": z.ZodCatch<z.ZodOptional<z.ZodString>>;
|
|
120
|
+
"text-decoration": z.ZodCatch<z.ZodOptional<z.ZodString>>;
|
|
121
|
+
"font-weight": z.ZodCatch<z.ZodOptional<z.ZodString>>;
|
|
122
|
+
"text-transform": z.ZodCatch<z.ZodOptional<z.ZodString>>;
|
|
123
|
+
"letter-spacing": z.ZodCatch<z.ZodOptional<z.ZodString>>;
|
|
104
124
|
"line-height": z.ZodCatch<z.ZodOptional<z.ZodNumber>>;
|
|
105
|
-
}, z.core.$strip>>;
|
|
106
|
-
h1: z.ZodCatch<z.ZodObject<{
|
|
107
125
|
"font-family": z.ZodCatch<z.ZodString>;
|
|
108
126
|
"font-size": z.ZodCatch<z.ZodString>;
|
|
127
|
+
}, z.core.$strip>>;
|
|
128
|
+
h1: z.ZodCatch<z.ZodObject<{
|
|
129
|
+
"font-family": z.ZodCatch<z.ZodOptional<z.ZodString>>;
|
|
130
|
+
"font-size": z.ZodCatch<z.ZodOptional<z.ZodString>>;
|
|
109
131
|
color: z.ZodCatch<z.ZodOptional<z.ZodString>>;
|
|
110
132
|
"font-style": z.ZodCatch<z.ZodOptional<z.ZodString>>;
|
|
111
133
|
"text-decoration": z.ZodCatch<z.ZodOptional<z.ZodString>>;
|
|
@@ -115,8 +137,8 @@ export declare const TopolStyleSchema: z.ZodDefault<z.ZodObject<{
|
|
|
115
137
|
"line-height": z.ZodCatch<z.ZodOptional<z.ZodNumber>>;
|
|
116
138
|
}, z.core.$strip>>;
|
|
117
139
|
a: z.ZodCatch<z.ZodObject<{
|
|
118
|
-
"font-family": z.ZodOptional<z.ZodCatch<z.ZodString
|
|
119
|
-
"font-size": z.ZodOptional<z.ZodCatch<z.ZodString
|
|
140
|
+
"font-family": z.ZodOptional<z.ZodCatch<z.ZodOptional<z.ZodString>>>;
|
|
141
|
+
"font-size": z.ZodOptional<z.ZodCatch<z.ZodOptional<z.ZodString>>>;
|
|
120
142
|
color: z.ZodOptional<z.ZodCatch<z.ZodOptional<z.ZodString>>>;
|
|
121
143
|
"font-style": z.ZodOptional<z.ZodCatch<z.ZodOptional<z.ZodString>>>;
|
|
122
144
|
"text-decoration": z.ZodOptional<z.ZodCatch<z.ZodOptional<z.ZodString>>>;
|
|
@@ -126,8 +148,8 @@ export declare const TopolStyleSchema: z.ZodDefault<z.ZodObject<{
|
|
|
126
148
|
"line-height": z.ZodOptional<z.ZodCatch<z.ZodOptional<z.ZodNumber>>>;
|
|
127
149
|
}, z.core.$strip>>;
|
|
128
150
|
h2: z.ZodCatch<z.ZodObject<{
|
|
129
|
-
"font-family": z.ZodCatch<z.ZodString
|
|
130
|
-
"font-size": z.ZodCatch<z.ZodString
|
|
151
|
+
"font-family": z.ZodCatch<z.ZodOptional<z.ZodString>>;
|
|
152
|
+
"font-size": z.ZodCatch<z.ZodOptional<z.ZodString>>;
|
|
131
153
|
color: z.ZodCatch<z.ZodOptional<z.ZodString>>;
|
|
132
154
|
"font-style": z.ZodCatch<z.ZodOptional<z.ZodString>>;
|
|
133
155
|
"text-decoration": z.ZodCatch<z.ZodOptional<z.ZodString>>;
|
|
@@ -137,19 +159,8 @@ export declare const TopolStyleSchema: z.ZodDefault<z.ZodObject<{
|
|
|
137
159
|
"line-height": z.ZodCatch<z.ZodOptional<z.ZodNumber>>;
|
|
138
160
|
}, z.core.$strip>>;
|
|
139
161
|
h3: z.ZodCatch<z.ZodObject<{
|
|
140
|
-
"font-family": z.ZodCatch<z.ZodString
|
|
141
|
-
"font-size": z.ZodCatch<z.ZodString
|
|
142
|
-
color: z.ZodCatch<z.ZodOptional<z.ZodString>>;
|
|
143
|
-
"font-style": z.ZodCatch<z.ZodOptional<z.ZodString>>;
|
|
144
|
-
"text-decoration": z.ZodCatch<z.ZodOptional<z.ZodString>>;
|
|
145
|
-
"font-weight": z.ZodCatch<z.ZodOptional<z.ZodString>>;
|
|
146
|
-
"text-transform": z.ZodCatch<z.ZodOptional<z.ZodString>>;
|
|
147
|
-
"letter-spacing": z.ZodCatch<z.ZodOptional<z.ZodString>>;
|
|
148
|
-
"line-height": z.ZodCatch<z.ZodOptional<z.ZodNumber>>;
|
|
149
|
-
}, z.core.$strip>>;
|
|
150
|
-
p: z.ZodCatch<z.ZodObject<{
|
|
151
|
-
"font-family": z.ZodCatch<z.ZodString>;
|
|
152
|
-
"font-size": z.ZodCatch<z.ZodString>;
|
|
162
|
+
"font-family": z.ZodCatch<z.ZodOptional<z.ZodString>>;
|
|
163
|
+
"font-size": z.ZodCatch<z.ZodOptional<z.ZodString>>;
|
|
153
164
|
color: z.ZodCatch<z.ZodOptional<z.ZodString>>;
|
|
154
165
|
"font-style": z.ZodCatch<z.ZodOptional<z.ZodString>>;
|
|
155
166
|
"text-decoration": z.ZodCatch<z.ZodOptional<z.ZodString>>;
|
|
@@ -165,8 +176,8 @@ export declare const TopolStyleSchema: z.ZodDefault<z.ZodObject<{
|
|
|
165
176
|
"list-style-type": z.ZodCatch<z.ZodOptional<z.ZodString>>;
|
|
166
177
|
}, z.core.$strip>>;
|
|
167
178
|
li: z.ZodCatch<z.ZodObject<{
|
|
168
|
-
"font-family": z.ZodCatch<z.ZodString
|
|
169
|
-
"font-size": z.ZodCatch<z.ZodString
|
|
179
|
+
"font-family": z.ZodCatch<z.ZodOptional<z.ZodString>>;
|
|
180
|
+
"font-size": z.ZodCatch<z.ZodOptional<z.ZodString>>;
|
|
170
181
|
color: z.ZodCatch<z.ZodOptional<z.ZodString>>;
|
|
171
182
|
"font-style": z.ZodCatch<z.ZodOptional<z.ZodString>>;
|
|
172
183
|
"text-decoration": z.ZodCatch<z.ZodOptional<z.ZodString>>;
|