@savvycal/mjml-editor 0.0.1 → 0.0.3
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 +191 -0
- package/dist/components/editor/BlockIcon.d.ts +7 -0
- package/dist/components/editor/BlockIcon.d.ts.map +1 -0
- package/dist/components/editor/BlockInspector.d.ts +6 -0
- package/dist/components/editor/BlockInspector.d.ts.map +1 -0
- package/dist/components/editor/BlockInspector.js +380 -0
- package/dist/components/editor/EditorCanvas.d.ts +11 -0
- package/dist/components/editor/EditorCanvas.d.ts.map +1 -0
- package/dist/components/editor/EditorCanvas.js +116 -0
- package/dist/components/editor/FontEditor.d.ts +2 -0
- package/dist/components/editor/FontEditor.d.ts.map +1 -0
- package/dist/components/editor/FontEditor.js +227 -0
- package/dist/components/editor/GlobalStylesPanel.d.ts +7 -0
- package/dist/components/editor/GlobalStylesPanel.d.ts.map +1 -0
- package/dist/components/editor/GlobalStylesPanel.js +310 -0
- package/dist/components/editor/InteractivePreview.d.ts +8 -0
- package/dist/components/editor/InteractivePreview.d.ts.map +1 -0
- package/dist/components/editor/InteractivePreview.js +130 -0
- package/dist/components/editor/LiquidAutocomplete.d.ts +10 -0
- package/dist/components/editor/LiquidAutocomplete.d.ts.map +1 -0
- package/dist/components/editor/LiquidAutocomplete.js +70 -0
- package/dist/components/editor/LiquidInput.d.ts +12 -0
- package/dist/components/editor/LiquidInput.d.ts.map +1 -0
- package/dist/components/editor/LiquidInput.js +185 -0
- package/dist/components/editor/MjmlEditor.d.ts +22 -0
- package/dist/components/editor/MjmlEditor.d.ts.map +1 -0
- package/dist/components/editor/MjmlEditor.js +137 -0
- package/dist/components/editor/OutlineTree.d.ts +7 -0
- package/dist/components/editor/OutlineTree.d.ts.map +1 -0
- package/dist/components/editor/OutlineTree.js +282 -0
- package/dist/components/editor/SourceEditor.d.ts +2 -0
- package/dist/components/editor/SourceEditor.d.ts.map +1 -0
- package/dist/components/editor/SourceEditor.js +70 -0
- package/dist/components/editor/SourcePreview.d.ts +7 -0
- package/dist/components/editor/SourcePreview.d.ts.map +1 -0
- package/dist/components/editor/SourcePreview.js +69 -0
- package/dist/components/editor/TiptapEditor.d.ts +12 -0
- package/dist/components/editor/TiptapEditor.d.ts.map +1 -0
- package/dist/components/editor/TiptapEditor.js +330 -0
- package/dist/components/editor/VisualEditor.d.ts +7 -0
- package/dist/components/editor/VisualEditor.d.ts.map +1 -0
- package/dist/components/editor/VisualEditor.js +51 -0
- package/dist/components/editor/visual-blocks/VisualBlock.d.ts +7 -0
- package/dist/components/editor/visual-blocks/VisualBlock.d.ts.map +1 -0
- package/dist/components/editor/visual-blocks/VisualBlock.js +34 -0
- package/dist/components/editor/visual-blocks/VisualButton.d.ts +7 -0
- package/dist/components/editor/visual-blocks/VisualButton.d.ts.map +1 -0
- package/dist/components/editor/visual-blocks/VisualButton.js +111 -0
- package/dist/components/editor/visual-blocks/VisualColumn.d.ts +8 -0
- package/dist/components/editor/visual-blocks/VisualColumn.d.ts.map +1 -0
- package/dist/components/editor/visual-blocks/VisualColumn.js +44 -0
- package/dist/components/editor/visual-blocks/VisualDivider.d.ts +7 -0
- package/dist/components/editor/visual-blocks/VisualDivider.d.ts.map +1 -0
- package/dist/components/editor/visual-blocks/VisualDivider.js +41 -0
- package/dist/components/editor/visual-blocks/VisualImage.d.ts +7 -0
- package/dist/components/editor/visual-blocks/VisualImage.d.ts.map +1 -0
- package/dist/components/editor/visual-blocks/VisualImage.js +48 -0
- package/dist/components/editor/visual-blocks/VisualRaw.d.ts +7 -0
- package/dist/components/editor/visual-blocks/VisualRaw.d.ts.map +1 -0
- package/dist/components/editor/visual-blocks/VisualRaw.js +32 -0
- package/dist/components/editor/visual-blocks/VisualSection.d.ts +7 -0
- package/dist/components/editor/visual-blocks/VisualSection.d.ts.map +1 -0
- package/dist/components/editor/visual-blocks/VisualSection.js +131 -0
- package/dist/components/editor/visual-blocks/VisualSocial.d.ts +7 -0
- package/dist/components/editor/visual-blocks/VisualSocial.d.ts.map +1 -0
- package/dist/components/editor/visual-blocks/VisualSocial.js +62 -0
- package/dist/components/editor/visual-blocks/VisualSpacer.d.ts +7 -0
- package/dist/components/editor/visual-blocks/VisualSpacer.d.ts.map +1 -0
- package/dist/components/editor/visual-blocks/VisualSpacer.js +30 -0
- package/dist/components/editor/visual-blocks/VisualText.d.ts +7 -0
- package/dist/components/editor/visual-blocks/VisualText.d.ts.map +1 -0
- package/dist/components/editor/visual-blocks/VisualText.js +103 -0
- package/dist/components/editor/visual-blocks/helpers.d.ts +13 -0
- package/dist/components/editor/visual-blocks/helpers.d.ts.map +1 -0
- package/dist/components/editor/visual-blocks/helpers.js +44 -0
- package/dist/components/editor/visual-blocks/useResolvedAttributes.d.ts +7 -0
- package/dist/components/editor/visual-blocks/useResolvedAttributes.d.ts.map +1 -0
- package/dist/components/editor/visual-blocks/useResolvedAttributes.js +12 -0
- package/dist/components/ui/badge.d.ts +10 -0
- package/dist/components/ui/badge.d.ts.map +1 -0
- package/dist/components/ui/badge.js +26 -0
- package/dist/components/ui/button.d.ts +11 -0
- package/dist/components/ui/button.d.ts.map +1 -0
- package/dist/components/ui/button.js +54 -0
- package/dist/components/ui/card.d.ts +10 -0
- package/dist/components/ui/card.d.ts.map +1 -0
- package/dist/components/ui/collapsible.d.ts +6 -0
- package/dist/components/ui/collapsible.d.ts.map +1 -0
- package/dist/components/ui/collapsible.js +7 -0
- package/dist/components/ui/floating-panel.d.ts +12 -0
- package/dist/components/ui/floating-panel.d.ts.map +1 -0
- package/dist/components/ui/floating-panel.js +54 -0
- package/dist/components/ui/input.d.ts +4 -0
- package/dist/components/ui/input.d.ts.map +1 -0
- package/dist/components/ui/input.js +26 -0
- package/dist/components/ui/label.d.ts +5 -0
- package/dist/components/ui/label.d.ts.map +1 -0
- package/dist/components/ui/label.js +23 -0
- package/dist/components/ui/popover.d.ts +8 -0
- package/dist/components/ui/popover.d.ts.map +1 -0
- package/dist/components/ui/popover.js +39 -0
- package/dist/components/ui/resizable-split-pane.d.ts +10 -0
- package/dist/components/ui/resizable-split-pane.d.ts.map +1 -0
- package/dist/components/ui/resizable-split-pane.js +65 -0
- package/dist/components/ui/scroll-area.d.ts +10 -0
- package/dist/components/ui/scroll-area.d.ts.map +1 -0
- package/dist/components/ui/scroll-area.js +69 -0
- package/dist/components/ui/select.d.ts +16 -0
- package/dist/components/ui/select.d.ts.map +1 -0
- package/dist/components/ui/select.js +145 -0
- package/dist/components/ui/separator.d.ts +5 -0
- package/dist/components/ui/separator.d.ts.map +1 -0
- package/dist/components/ui/tabs.d.ts +8 -0
- package/dist/components/ui/tabs.d.ts.map +1 -0
- package/dist/components/ui/tabs.js +68 -0
- package/dist/components/ui/theme-toggle.d.ts +2 -0
- package/dist/components/ui/theme-toggle.d.ts.map +1 -0
- package/dist/components/ui/theme-toggle.js +58 -0
- package/dist/components.css +365 -0
- package/dist/context/EditorContext.d.ts +40 -0
- package/dist/context/EditorContext.d.ts.map +1 -0
- package/dist/context/EditorContext.js +576 -0
- package/dist/context/LiquidSchemaContext.d.ts +10 -0
- package/dist/context/LiquidSchemaContext.d.ts.map +1 -0
- package/dist/context/LiquidSchemaContext.js +16 -0
- package/dist/context/ThemeContext.d.ts +29 -0
- package/dist/context/ThemeContext.d.ts.map +1 -0
- package/dist/context/ThemeContext.js +55 -0
- package/dist/extensions/LiquidHighlight.d.ts +3 -0
- package/dist/extensions/LiquidHighlight.d.ts.map +1 -0
- package/dist/extensions/LiquidHighlight.js +58 -0
- package/dist/extensions/LiquidSuggestion.d.ts +18 -0
- package/dist/extensions/LiquidSuggestion.d.ts.map +1 -0
- package/dist/extensions/LiquidSuggestion.js +119 -0
- package/dist/hooks/useFontLoader.d.ts +6 -0
- package/dist/hooks/useFontLoader.d.ts.map +1 -0
- package/dist/hooks/useFontLoader.js +21 -0
- package/dist/hooks/useStyleLoader.d.ts +11 -0
- package/dist/hooks/useStyleLoader.d.ts.map +1 -0
- package/dist/hooks/useStyleLoader.js +26 -0
- package/dist/index.d.ts +6 -150
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +7 -57452
- package/dist/lib/html-utils.d.ts +23 -0
- package/dist/lib/html-utils.d.ts.map +1 -0
- package/dist/lib/html-utils.js +25 -0
- package/dist/lib/mjml/attributes.d.ts +100 -0
- package/dist/lib/mjml/attributes.d.ts.map +1 -0
- package/dist/lib/mjml/attributes.js +105 -0
- package/dist/lib/mjml/parser.d.ts +67 -0
- package/dist/lib/mjml/parser.d.ts.map +1 -0
- package/dist/lib/mjml/parser.js +184 -0
- package/dist/lib/mjml/parser.test.d.ts +2 -0
- package/dist/lib/mjml/parser.test.d.ts.map +1 -0
- package/dist/lib/mjml/renderer.d.ts +23 -0
- package/dist/lib/mjml/renderer.d.ts.map +1 -0
- package/dist/lib/mjml/renderer.js +75 -0
- package/dist/lib/mjml/schema.d.ts +21 -0
- package/dist/lib/mjml/schema.d.ts.map +1 -0
- package/dist/lib/mjml/schema.js +1307 -0
- package/dist/lib/mjml/scopeCSS.d.ts +21 -0
- package/dist/lib/mjml/scopeCSS.d.ts.map +1 -0
- package/dist/lib/mjml/scopeCSS.js +67 -0
- package/dist/lib/utils.d.ts +3 -0
- package/dist/lib/utils.d.ts.map +1 -0
- package/dist/lib/utils.js +8 -0
- package/dist/preset.css +150 -0
- package/dist/types/liquid.d.ts +28 -0
- package/dist/types/liquid.d.ts.map +1 -0
- package/dist/types/mjml.d.ts +101 -0
- package/dist/types/mjml.d.ts.map +1 -0
- package/package.json +14 -10
- package/dist/styles.css +0 -1
|
@@ -0,0 +1,1307 @@
|
|
|
1
|
+
const l = {
|
|
2
|
+
// Primary attributes (always visible)
|
|
3
|
+
"background-color": {
|
|
4
|
+
type: "color",
|
|
5
|
+
label: "Background Color",
|
|
6
|
+
group: "primary"
|
|
7
|
+
},
|
|
8
|
+
"full-width": {
|
|
9
|
+
type: "select",
|
|
10
|
+
label: "Full Width",
|
|
11
|
+
default: "false",
|
|
12
|
+
options: [
|
|
13
|
+
{ value: "false", label: "No" },
|
|
14
|
+
{ value: "full-width", label: "Yes" }
|
|
15
|
+
],
|
|
16
|
+
group: "primary"
|
|
17
|
+
},
|
|
18
|
+
padding: {
|
|
19
|
+
type: "padding",
|
|
20
|
+
label: "Padding",
|
|
21
|
+
default: "20px 0",
|
|
22
|
+
group: "primary"
|
|
23
|
+
},
|
|
24
|
+
"text-align": {
|
|
25
|
+
type: "select",
|
|
26
|
+
label: "Text Align",
|
|
27
|
+
default: "center",
|
|
28
|
+
options: [
|
|
29
|
+
{ value: "left", label: "Left" },
|
|
30
|
+
{ value: "center", label: "Center" },
|
|
31
|
+
{ value: "right", label: "Right" }
|
|
32
|
+
],
|
|
33
|
+
group: "primary"
|
|
34
|
+
},
|
|
35
|
+
// Background attributes
|
|
36
|
+
"background-url": {
|
|
37
|
+
type: "url",
|
|
38
|
+
label: "Background Image",
|
|
39
|
+
placeholder: "https://...",
|
|
40
|
+
group: "background"
|
|
41
|
+
},
|
|
42
|
+
"background-size": {
|
|
43
|
+
type: "select",
|
|
44
|
+
label: "Background Size",
|
|
45
|
+
default: "auto",
|
|
46
|
+
options: [
|
|
47
|
+
{ value: "auto", label: "Auto" },
|
|
48
|
+
{ value: "cover", label: "Cover" },
|
|
49
|
+
{ value: "contain", label: "Contain" }
|
|
50
|
+
],
|
|
51
|
+
group: "background"
|
|
52
|
+
},
|
|
53
|
+
"background-repeat": {
|
|
54
|
+
type: "select",
|
|
55
|
+
label: "Background Repeat",
|
|
56
|
+
default: "repeat",
|
|
57
|
+
options: [
|
|
58
|
+
{ value: "repeat", label: "Repeat" },
|
|
59
|
+
{ value: "no-repeat", label: "No Repeat" }
|
|
60
|
+
],
|
|
61
|
+
group: "background"
|
|
62
|
+
},
|
|
63
|
+
"background-position": {
|
|
64
|
+
type: "text",
|
|
65
|
+
label: "Background Position",
|
|
66
|
+
default: "top center",
|
|
67
|
+
placeholder: "top center",
|
|
68
|
+
group: "background"
|
|
69
|
+
},
|
|
70
|
+
"background-position-x": {
|
|
71
|
+
type: "select",
|
|
72
|
+
label: "Position X",
|
|
73
|
+
options: [
|
|
74
|
+
{ value: "left", label: "Left" },
|
|
75
|
+
{ value: "center", label: "Center" },
|
|
76
|
+
{ value: "right", label: "Right" }
|
|
77
|
+
],
|
|
78
|
+
group: "background"
|
|
79
|
+
},
|
|
80
|
+
"background-position-y": {
|
|
81
|
+
type: "select",
|
|
82
|
+
label: "Position Y",
|
|
83
|
+
options: [
|
|
84
|
+
{ value: "top", label: "Top" },
|
|
85
|
+
{ value: "center", label: "Center" },
|
|
86
|
+
{ value: "bottom", label: "Bottom" }
|
|
87
|
+
],
|
|
88
|
+
group: "background"
|
|
89
|
+
},
|
|
90
|
+
// Border attributes
|
|
91
|
+
border: {
|
|
92
|
+
type: "text",
|
|
93
|
+
label: "Border",
|
|
94
|
+
placeholder: "1px solid #000",
|
|
95
|
+
group: "border"
|
|
96
|
+
},
|
|
97
|
+
"border-top": {
|
|
98
|
+
type: "text",
|
|
99
|
+
label: "Border Top",
|
|
100
|
+
placeholder: "1px solid #000",
|
|
101
|
+
group: "border"
|
|
102
|
+
},
|
|
103
|
+
"border-right": {
|
|
104
|
+
type: "text",
|
|
105
|
+
label: "Border Right",
|
|
106
|
+
placeholder: "1px solid #000",
|
|
107
|
+
group: "border"
|
|
108
|
+
},
|
|
109
|
+
"border-bottom": {
|
|
110
|
+
type: "text",
|
|
111
|
+
label: "Border Bottom",
|
|
112
|
+
placeholder: "1px solid #000",
|
|
113
|
+
group: "border"
|
|
114
|
+
},
|
|
115
|
+
"border-left": {
|
|
116
|
+
type: "text",
|
|
117
|
+
label: "Border Left",
|
|
118
|
+
placeholder: "1px solid #000",
|
|
119
|
+
group: "border"
|
|
120
|
+
},
|
|
121
|
+
"border-radius": {
|
|
122
|
+
type: "dimension",
|
|
123
|
+
label: "Border Radius",
|
|
124
|
+
placeholder: "0px",
|
|
125
|
+
group: "border"
|
|
126
|
+
},
|
|
127
|
+
// Spacing attributes (granular padding)
|
|
128
|
+
"padding-top": {
|
|
129
|
+
type: "dimension",
|
|
130
|
+
label: "Padding Top",
|
|
131
|
+
placeholder: "20px",
|
|
132
|
+
group: "spacing"
|
|
133
|
+
},
|
|
134
|
+
"padding-right": {
|
|
135
|
+
type: "dimension",
|
|
136
|
+
label: "Padding Right",
|
|
137
|
+
placeholder: "0px",
|
|
138
|
+
group: "spacing"
|
|
139
|
+
},
|
|
140
|
+
"padding-bottom": {
|
|
141
|
+
type: "dimension",
|
|
142
|
+
label: "Padding Bottom",
|
|
143
|
+
placeholder: "20px",
|
|
144
|
+
group: "spacing"
|
|
145
|
+
},
|
|
146
|
+
"padding-left": {
|
|
147
|
+
type: "dimension",
|
|
148
|
+
label: "Padding Left",
|
|
149
|
+
placeholder: "0px",
|
|
150
|
+
group: "spacing"
|
|
151
|
+
},
|
|
152
|
+
// Advanced attributes
|
|
153
|
+
direction: {
|
|
154
|
+
type: "select",
|
|
155
|
+
label: "Direction",
|
|
156
|
+
default: "ltr",
|
|
157
|
+
options: [
|
|
158
|
+
{ value: "ltr", label: "Left to Right" },
|
|
159
|
+
{ value: "rtl", label: "Right to Left" }
|
|
160
|
+
],
|
|
161
|
+
group: "advanced"
|
|
162
|
+
},
|
|
163
|
+
"css-class": {
|
|
164
|
+
type: "text",
|
|
165
|
+
label: "CSS Class",
|
|
166
|
+
placeholder: "custom-class",
|
|
167
|
+
group: "advanced"
|
|
168
|
+
}
|
|
169
|
+
}, a = {
|
|
170
|
+
// Primary attributes (always visible)
|
|
171
|
+
"background-color": {
|
|
172
|
+
type: "color",
|
|
173
|
+
label: "Background Color",
|
|
174
|
+
group: "primary"
|
|
175
|
+
},
|
|
176
|
+
"full-width": {
|
|
177
|
+
type: "select",
|
|
178
|
+
label: "Full Width",
|
|
179
|
+
default: "false",
|
|
180
|
+
options: [
|
|
181
|
+
{ value: "false", label: "No" },
|
|
182
|
+
{ value: "full-width", label: "Yes" }
|
|
183
|
+
],
|
|
184
|
+
group: "primary"
|
|
185
|
+
},
|
|
186
|
+
padding: {
|
|
187
|
+
type: "padding",
|
|
188
|
+
label: "Padding",
|
|
189
|
+
default: "20px 0",
|
|
190
|
+
group: "primary"
|
|
191
|
+
},
|
|
192
|
+
"text-align": {
|
|
193
|
+
type: "select",
|
|
194
|
+
label: "Text Align",
|
|
195
|
+
default: "center",
|
|
196
|
+
options: [
|
|
197
|
+
{ value: "left", label: "Left" },
|
|
198
|
+
{ value: "center", label: "Center" },
|
|
199
|
+
{ value: "right", label: "Right" }
|
|
200
|
+
],
|
|
201
|
+
group: "primary"
|
|
202
|
+
},
|
|
203
|
+
// Background attributes
|
|
204
|
+
"background-url": {
|
|
205
|
+
type: "url",
|
|
206
|
+
label: "Background Image",
|
|
207
|
+
placeholder: "https://...",
|
|
208
|
+
group: "background"
|
|
209
|
+
},
|
|
210
|
+
"background-size": {
|
|
211
|
+
type: "select",
|
|
212
|
+
label: "Background Size",
|
|
213
|
+
default: "auto",
|
|
214
|
+
options: [
|
|
215
|
+
{ value: "auto", label: "Auto" },
|
|
216
|
+
{ value: "cover", label: "Cover" },
|
|
217
|
+
{ value: "contain", label: "Contain" }
|
|
218
|
+
],
|
|
219
|
+
group: "background"
|
|
220
|
+
},
|
|
221
|
+
"background-repeat": {
|
|
222
|
+
type: "select",
|
|
223
|
+
label: "Background Repeat",
|
|
224
|
+
default: "repeat",
|
|
225
|
+
options: [
|
|
226
|
+
{ value: "repeat", label: "Repeat" },
|
|
227
|
+
{ value: "no-repeat", label: "No Repeat" }
|
|
228
|
+
],
|
|
229
|
+
group: "background"
|
|
230
|
+
},
|
|
231
|
+
"background-position": {
|
|
232
|
+
type: "text",
|
|
233
|
+
label: "Background Position",
|
|
234
|
+
default: "top center",
|
|
235
|
+
placeholder: "top center",
|
|
236
|
+
group: "background"
|
|
237
|
+
},
|
|
238
|
+
"background-position-x": {
|
|
239
|
+
type: "select",
|
|
240
|
+
label: "Position X",
|
|
241
|
+
options: [
|
|
242
|
+
{ value: "left", label: "Left" },
|
|
243
|
+
{ value: "center", label: "Center" },
|
|
244
|
+
{ value: "right", label: "Right" }
|
|
245
|
+
],
|
|
246
|
+
group: "background"
|
|
247
|
+
},
|
|
248
|
+
"background-position-y": {
|
|
249
|
+
type: "select",
|
|
250
|
+
label: "Position Y",
|
|
251
|
+
options: [
|
|
252
|
+
{ value: "top", label: "Top" },
|
|
253
|
+
{ value: "center", label: "Center" },
|
|
254
|
+
{ value: "bottom", label: "Bottom" }
|
|
255
|
+
],
|
|
256
|
+
group: "background"
|
|
257
|
+
},
|
|
258
|
+
// Border attributes
|
|
259
|
+
border: {
|
|
260
|
+
type: "text",
|
|
261
|
+
label: "Border",
|
|
262
|
+
placeholder: "1px solid #000",
|
|
263
|
+
group: "border"
|
|
264
|
+
},
|
|
265
|
+
"border-top": {
|
|
266
|
+
type: "text",
|
|
267
|
+
label: "Border Top",
|
|
268
|
+
placeholder: "1px solid #000",
|
|
269
|
+
group: "border"
|
|
270
|
+
},
|
|
271
|
+
"border-right": {
|
|
272
|
+
type: "text",
|
|
273
|
+
label: "Border Right",
|
|
274
|
+
placeholder: "1px solid #000",
|
|
275
|
+
group: "border"
|
|
276
|
+
},
|
|
277
|
+
"border-bottom": {
|
|
278
|
+
type: "text",
|
|
279
|
+
label: "Border Bottom",
|
|
280
|
+
placeholder: "1px solid #000",
|
|
281
|
+
group: "border"
|
|
282
|
+
},
|
|
283
|
+
"border-left": {
|
|
284
|
+
type: "text",
|
|
285
|
+
label: "Border Left",
|
|
286
|
+
placeholder: "1px solid #000",
|
|
287
|
+
group: "border"
|
|
288
|
+
},
|
|
289
|
+
"border-radius": {
|
|
290
|
+
type: "dimension",
|
|
291
|
+
label: "Border Radius",
|
|
292
|
+
placeholder: "0px",
|
|
293
|
+
group: "border"
|
|
294
|
+
},
|
|
295
|
+
// Spacing attributes (granular padding + gap)
|
|
296
|
+
"padding-top": {
|
|
297
|
+
type: "dimension",
|
|
298
|
+
label: "Padding Top",
|
|
299
|
+
placeholder: "20px",
|
|
300
|
+
group: "spacing"
|
|
301
|
+
},
|
|
302
|
+
"padding-right": {
|
|
303
|
+
type: "dimension",
|
|
304
|
+
label: "Padding Right",
|
|
305
|
+
placeholder: "0px",
|
|
306
|
+
group: "spacing"
|
|
307
|
+
},
|
|
308
|
+
"padding-bottom": {
|
|
309
|
+
type: "dimension",
|
|
310
|
+
label: "Padding Bottom",
|
|
311
|
+
placeholder: "20px",
|
|
312
|
+
group: "spacing"
|
|
313
|
+
},
|
|
314
|
+
"padding-left": {
|
|
315
|
+
type: "dimension",
|
|
316
|
+
label: "Padding Left",
|
|
317
|
+
placeholder: "0px",
|
|
318
|
+
group: "spacing"
|
|
319
|
+
},
|
|
320
|
+
gap: {
|
|
321
|
+
type: "dimension",
|
|
322
|
+
label: "Gap",
|
|
323
|
+
placeholder: "0px",
|
|
324
|
+
group: "spacing"
|
|
325
|
+
},
|
|
326
|
+
// Advanced attributes
|
|
327
|
+
"css-class": {
|
|
328
|
+
type: "text",
|
|
329
|
+
label: "CSS Class",
|
|
330
|
+
placeholder: "custom-class",
|
|
331
|
+
group: "advanced"
|
|
332
|
+
}
|
|
333
|
+
}, o = {
|
|
334
|
+
// Primary attributes (always visible)
|
|
335
|
+
width: {
|
|
336
|
+
type: "dimension",
|
|
337
|
+
label: "Width",
|
|
338
|
+
placeholder: "auto, 50%, 200px",
|
|
339
|
+
group: "primary"
|
|
340
|
+
},
|
|
341
|
+
"background-color": {
|
|
342
|
+
type: "color",
|
|
343
|
+
label: "Background Color",
|
|
344
|
+
group: "primary"
|
|
345
|
+
},
|
|
346
|
+
"vertical-align": {
|
|
347
|
+
type: "select",
|
|
348
|
+
label: "Vertical Align",
|
|
349
|
+
default: "top",
|
|
350
|
+
options: [
|
|
351
|
+
{ value: "top", label: "Top" },
|
|
352
|
+
{ value: "middle", label: "Middle" },
|
|
353
|
+
{ value: "bottom", label: "Bottom" }
|
|
354
|
+
],
|
|
355
|
+
group: "primary"
|
|
356
|
+
},
|
|
357
|
+
padding: {
|
|
358
|
+
type: "padding",
|
|
359
|
+
label: "Padding",
|
|
360
|
+
group: "primary"
|
|
361
|
+
},
|
|
362
|
+
// Border attributes
|
|
363
|
+
border: {
|
|
364
|
+
type: "text",
|
|
365
|
+
label: "Border",
|
|
366
|
+
placeholder: "1px solid #000",
|
|
367
|
+
group: "border"
|
|
368
|
+
},
|
|
369
|
+
"border-top": {
|
|
370
|
+
type: "text",
|
|
371
|
+
label: "Border Top",
|
|
372
|
+
placeholder: "1px solid #000",
|
|
373
|
+
group: "border"
|
|
374
|
+
},
|
|
375
|
+
"border-right": {
|
|
376
|
+
type: "text",
|
|
377
|
+
label: "Border Right",
|
|
378
|
+
placeholder: "1px solid #000",
|
|
379
|
+
group: "border"
|
|
380
|
+
},
|
|
381
|
+
"border-bottom": {
|
|
382
|
+
type: "text",
|
|
383
|
+
label: "Border Bottom",
|
|
384
|
+
placeholder: "1px solid #000",
|
|
385
|
+
group: "border"
|
|
386
|
+
},
|
|
387
|
+
"border-left": {
|
|
388
|
+
type: "text",
|
|
389
|
+
label: "Border Left",
|
|
390
|
+
placeholder: "1px solid #000",
|
|
391
|
+
group: "border"
|
|
392
|
+
},
|
|
393
|
+
"border-radius": {
|
|
394
|
+
type: "dimension",
|
|
395
|
+
label: "Border Radius",
|
|
396
|
+
placeholder: "0px",
|
|
397
|
+
group: "border"
|
|
398
|
+
},
|
|
399
|
+
// Inner styling attributes
|
|
400
|
+
"inner-background-color": {
|
|
401
|
+
type: "color",
|
|
402
|
+
label: "Inner Background",
|
|
403
|
+
group: "inner"
|
|
404
|
+
},
|
|
405
|
+
"inner-border": {
|
|
406
|
+
type: "text",
|
|
407
|
+
label: "Inner Border",
|
|
408
|
+
placeholder: "1px solid #000",
|
|
409
|
+
group: "inner"
|
|
410
|
+
},
|
|
411
|
+
"inner-border-top": {
|
|
412
|
+
type: "text",
|
|
413
|
+
label: "Inner Border Top",
|
|
414
|
+
placeholder: "1px solid #000",
|
|
415
|
+
group: "inner"
|
|
416
|
+
},
|
|
417
|
+
"inner-border-right": {
|
|
418
|
+
type: "text",
|
|
419
|
+
label: "Inner Border Right",
|
|
420
|
+
placeholder: "1px solid #000",
|
|
421
|
+
group: "inner"
|
|
422
|
+
},
|
|
423
|
+
"inner-border-bottom": {
|
|
424
|
+
type: "text",
|
|
425
|
+
label: "Inner Border Bottom",
|
|
426
|
+
placeholder: "1px solid #000",
|
|
427
|
+
group: "inner"
|
|
428
|
+
},
|
|
429
|
+
"inner-border-left": {
|
|
430
|
+
type: "text",
|
|
431
|
+
label: "Inner Border Left",
|
|
432
|
+
placeholder: "1px solid #000",
|
|
433
|
+
group: "inner"
|
|
434
|
+
},
|
|
435
|
+
"inner-border-radius": {
|
|
436
|
+
type: "dimension",
|
|
437
|
+
label: "Inner Border Radius",
|
|
438
|
+
placeholder: "0px",
|
|
439
|
+
group: "inner"
|
|
440
|
+
},
|
|
441
|
+
// Spacing attributes (granular padding)
|
|
442
|
+
"padding-top": {
|
|
443
|
+
type: "dimension",
|
|
444
|
+
label: "Padding Top",
|
|
445
|
+
placeholder: "0px",
|
|
446
|
+
group: "spacing"
|
|
447
|
+
},
|
|
448
|
+
"padding-right": {
|
|
449
|
+
type: "dimension",
|
|
450
|
+
label: "Padding Right",
|
|
451
|
+
placeholder: "0px",
|
|
452
|
+
group: "spacing"
|
|
453
|
+
},
|
|
454
|
+
"padding-bottom": {
|
|
455
|
+
type: "dimension",
|
|
456
|
+
label: "Padding Bottom",
|
|
457
|
+
placeholder: "0px",
|
|
458
|
+
group: "spacing"
|
|
459
|
+
},
|
|
460
|
+
"padding-left": {
|
|
461
|
+
type: "dimension",
|
|
462
|
+
label: "Padding Left",
|
|
463
|
+
placeholder: "0px",
|
|
464
|
+
group: "spacing"
|
|
465
|
+
},
|
|
466
|
+
// Advanced attributes
|
|
467
|
+
direction: {
|
|
468
|
+
type: "select",
|
|
469
|
+
label: "Direction",
|
|
470
|
+
default: "ltr",
|
|
471
|
+
options: [
|
|
472
|
+
{ value: "ltr", label: "Left to Right" },
|
|
473
|
+
{ value: "rtl", label: "Right to Left" }
|
|
474
|
+
],
|
|
475
|
+
group: "advanced"
|
|
476
|
+
},
|
|
477
|
+
"css-class": {
|
|
478
|
+
type: "text",
|
|
479
|
+
label: "CSS Class",
|
|
480
|
+
placeholder: "custom-class",
|
|
481
|
+
group: "advanced"
|
|
482
|
+
}
|
|
483
|
+
}, t = {
|
|
484
|
+
// Primary attributes (always visible)
|
|
485
|
+
color: {
|
|
486
|
+
type: "color",
|
|
487
|
+
label: "Text Color",
|
|
488
|
+
default: "#000000",
|
|
489
|
+
group: "primary"
|
|
490
|
+
},
|
|
491
|
+
align: {
|
|
492
|
+
type: "select",
|
|
493
|
+
label: "Alignment",
|
|
494
|
+
default: "left",
|
|
495
|
+
options: [
|
|
496
|
+
{ value: "left", label: "Left" },
|
|
497
|
+
{ value: "center", label: "Center" },
|
|
498
|
+
{ value: "right", label: "Right" },
|
|
499
|
+
{ value: "justify", label: "Justify" }
|
|
500
|
+
],
|
|
501
|
+
group: "primary"
|
|
502
|
+
},
|
|
503
|
+
padding: {
|
|
504
|
+
type: "padding",
|
|
505
|
+
label: "Padding",
|
|
506
|
+
default: "10px 25px",
|
|
507
|
+
group: "primary"
|
|
508
|
+
},
|
|
509
|
+
// Typography attributes
|
|
510
|
+
"font-size": {
|
|
511
|
+
type: "dimension",
|
|
512
|
+
label: "Font Size",
|
|
513
|
+
default: "13px",
|
|
514
|
+
group: "typography"
|
|
515
|
+
},
|
|
516
|
+
"font-family": {
|
|
517
|
+
type: "text",
|
|
518
|
+
label: "Font Family",
|
|
519
|
+
default: "Ubuntu, Helvetica, Arial, sans-serif",
|
|
520
|
+
group: "typography"
|
|
521
|
+
},
|
|
522
|
+
"font-weight": {
|
|
523
|
+
type: "select",
|
|
524
|
+
label: "Font Weight",
|
|
525
|
+
default: "normal",
|
|
526
|
+
options: [
|
|
527
|
+
{ value: "normal", label: "Normal" },
|
|
528
|
+
{ value: "bold", label: "Bold" },
|
|
529
|
+
{ value: "300", label: "Light" },
|
|
530
|
+
{ value: "500", label: "Medium" },
|
|
531
|
+
{ value: "700", label: "Bold (700)" }
|
|
532
|
+
],
|
|
533
|
+
group: "typography"
|
|
534
|
+
},
|
|
535
|
+
"font-style": {
|
|
536
|
+
type: "select",
|
|
537
|
+
label: "Font Style",
|
|
538
|
+
default: "normal",
|
|
539
|
+
options: [
|
|
540
|
+
{ value: "normal", label: "Normal" },
|
|
541
|
+
{ value: "italic", label: "Italic" },
|
|
542
|
+
{ value: "oblique", label: "Oblique" }
|
|
543
|
+
],
|
|
544
|
+
group: "typography"
|
|
545
|
+
},
|
|
546
|
+
"line-height": {
|
|
547
|
+
type: "dimension",
|
|
548
|
+
label: "Line Height",
|
|
549
|
+
default: "1",
|
|
550
|
+
group: "typography"
|
|
551
|
+
},
|
|
552
|
+
"letter-spacing": {
|
|
553
|
+
type: "dimension",
|
|
554
|
+
label: "Letter Spacing",
|
|
555
|
+
placeholder: "0px",
|
|
556
|
+
group: "typography"
|
|
557
|
+
},
|
|
558
|
+
"text-decoration": {
|
|
559
|
+
type: "select",
|
|
560
|
+
label: "Text Decoration",
|
|
561
|
+
default: "none",
|
|
562
|
+
options: [
|
|
563
|
+
{ value: "none", label: "None" },
|
|
564
|
+
{ value: "underline", label: "Underline" },
|
|
565
|
+
{ value: "overline", label: "Overline" },
|
|
566
|
+
{ value: "line-through", label: "Line Through" }
|
|
567
|
+
],
|
|
568
|
+
group: "typography"
|
|
569
|
+
},
|
|
570
|
+
"text-transform": {
|
|
571
|
+
type: "select",
|
|
572
|
+
label: "Text Transform",
|
|
573
|
+
default: "none",
|
|
574
|
+
options: [
|
|
575
|
+
{ value: "none", label: "None" },
|
|
576
|
+
{ value: "capitalize", label: "Capitalize" },
|
|
577
|
+
{ value: "uppercase", label: "Uppercase" },
|
|
578
|
+
{ value: "lowercase", label: "Lowercase" }
|
|
579
|
+
],
|
|
580
|
+
group: "typography"
|
|
581
|
+
},
|
|
582
|
+
// Sizing attributes
|
|
583
|
+
height: {
|
|
584
|
+
type: "dimension",
|
|
585
|
+
label: "Height",
|
|
586
|
+
placeholder: "auto",
|
|
587
|
+
group: "sizing"
|
|
588
|
+
},
|
|
589
|
+
// Spacing attributes (granular padding)
|
|
590
|
+
"padding-top": {
|
|
591
|
+
type: "dimension",
|
|
592
|
+
label: "Padding Top",
|
|
593
|
+
placeholder: "10px",
|
|
594
|
+
group: "spacing"
|
|
595
|
+
},
|
|
596
|
+
"padding-right": {
|
|
597
|
+
type: "dimension",
|
|
598
|
+
label: "Padding Right",
|
|
599
|
+
placeholder: "25px",
|
|
600
|
+
group: "spacing"
|
|
601
|
+
},
|
|
602
|
+
"padding-bottom": {
|
|
603
|
+
type: "dimension",
|
|
604
|
+
label: "Padding Bottom",
|
|
605
|
+
placeholder: "10px",
|
|
606
|
+
group: "spacing"
|
|
607
|
+
},
|
|
608
|
+
"padding-left": {
|
|
609
|
+
type: "dimension",
|
|
610
|
+
label: "Padding Left",
|
|
611
|
+
placeholder: "25px",
|
|
612
|
+
group: "spacing"
|
|
613
|
+
},
|
|
614
|
+
// Advanced attributes
|
|
615
|
+
"container-background-color": {
|
|
616
|
+
type: "color",
|
|
617
|
+
label: "Container Background",
|
|
618
|
+
group: "advanced"
|
|
619
|
+
},
|
|
620
|
+
"css-class": {
|
|
621
|
+
type: "text",
|
|
622
|
+
label: "CSS Class",
|
|
623
|
+
placeholder: "custom-class",
|
|
624
|
+
group: "advanced"
|
|
625
|
+
}
|
|
626
|
+
}, r = {
|
|
627
|
+
// Primary attributes (always visible)
|
|
628
|
+
src: {
|
|
629
|
+
type: "url",
|
|
630
|
+
label: "Image URL",
|
|
631
|
+
placeholder: "https://...",
|
|
632
|
+
group: "primary"
|
|
633
|
+
},
|
|
634
|
+
alt: {
|
|
635
|
+
type: "text",
|
|
636
|
+
label: "Alt Text",
|
|
637
|
+
group: "primary"
|
|
638
|
+
},
|
|
639
|
+
width: {
|
|
640
|
+
type: "dimension",
|
|
641
|
+
label: "Width",
|
|
642
|
+
placeholder: "600px",
|
|
643
|
+
group: "primary"
|
|
644
|
+
},
|
|
645
|
+
height: {
|
|
646
|
+
type: "dimension",
|
|
647
|
+
label: "Height",
|
|
648
|
+
default: "auto",
|
|
649
|
+
group: "primary"
|
|
650
|
+
},
|
|
651
|
+
align: {
|
|
652
|
+
type: "select",
|
|
653
|
+
label: "Alignment",
|
|
654
|
+
default: "center",
|
|
655
|
+
options: [
|
|
656
|
+
{ value: "left", label: "Left" },
|
|
657
|
+
{ value: "center", label: "Center" },
|
|
658
|
+
{ value: "right", label: "Right" }
|
|
659
|
+
],
|
|
660
|
+
group: "primary"
|
|
661
|
+
},
|
|
662
|
+
padding: {
|
|
663
|
+
type: "padding",
|
|
664
|
+
label: "Padding",
|
|
665
|
+
default: "10px 25px",
|
|
666
|
+
group: "primary"
|
|
667
|
+
},
|
|
668
|
+
// Border attributes
|
|
669
|
+
border: {
|
|
670
|
+
type: "text",
|
|
671
|
+
label: "Border",
|
|
672
|
+
placeholder: "1px solid #000",
|
|
673
|
+
default: "0",
|
|
674
|
+
group: "border"
|
|
675
|
+
},
|
|
676
|
+
"border-top": {
|
|
677
|
+
type: "text",
|
|
678
|
+
label: "Border Top",
|
|
679
|
+
placeholder: "1px solid #000",
|
|
680
|
+
group: "border"
|
|
681
|
+
},
|
|
682
|
+
"border-right": {
|
|
683
|
+
type: "text",
|
|
684
|
+
label: "Border Right",
|
|
685
|
+
placeholder: "1px solid #000",
|
|
686
|
+
group: "border"
|
|
687
|
+
},
|
|
688
|
+
"border-bottom": {
|
|
689
|
+
type: "text",
|
|
690
|
+
label: "Border Bottom",
|
|
691
|
+
placeholder: "1px solid #000",
|
|
692
|
+
group: "border"
|
|
693
|
+
},
|
|
694
|
+
"border-left": {
|
|
695
|
+
type: "text",
|
|
696
|
+
label: "Border Left",
|
|
697
|
+
placeholder: "1px solid #000",
|
|
698
|
+
group: "border"
|
|
699
|
+
},
|
|
700
|
+
"border-radius": {
|
|
701
|
+
type: "dimension",
|
|
702
|
+
label: "Border Radius",
|
|
703
|
+
placeholder: "0px",
|
|
704
|
+
group: "border"
|
|
705
|
+
},
|
|
706
|
+
// Sizing attributes
|
|
707
|
+
"max-height": {
|
|
708
|
+
type: "dimension",
|
|
709
|
+
label: "Max Height",
|
|
710
|
+
placeholder: "none",
|
|
711
|
+
group: "sizing"
|
|
712
|
+
},
|
|
713
|
+
"fluid-on-mobile": {
|
|
714
|
+
type: "select",
|
|
715
|
+
label: "Fluid on Mobile",
|
|
716
|
+
default: "false",
|
|
717
|
+
options: [
|
|
718
|
+
{ value: "false", label: "No" },
|
|
719
|
+
{ value: "true", label: "Yes" }
|
|
720
|
+
],
|
|
721
|
+
group: "sizing"
|
|
722
|
+
},
|
|
723
|
+
// Spacing attributes (granular padding)
|
|
724
|
+
"padding-top": {
|
|
725
|
+
type: "dimension",
|
|
726
|
+
label: "Padding Top",
|
|
727
|
+
placeholder: "10px",
|
|
728
|
+
group: "spacing"
|
|
729
|
+
},
|
|
730
|
+
"padding-right": {
|
|
731
|
+
type: "dimension",
|
|
732
|
+
label: "Padding Right",
|
|
733
|
+
placeholder: "25px",
|
|
734
|
+
group: "spacing"
|
|
735
|
+
},
|
|
736
|
+
"padding-bottom": {
|
|
737
|
+
type: "dimension",
|
|
738
|
+
label: "Padding Bottom",
|
|
739
|
+
placeholder: "10px",
|
|
740
|
+
group: "spacing"
|
|
741
|
+
},
|
|
742
|
+
"padding-left": {
|
|
743
|
+
type: "dimension",
|
|
744
|
+
label: "Padding Left",
|
|
745
|
+
placeholder: "25px",
|
|
746
|
+
group: "spacing"
|
|
747
|
+
},
|
|
748
|
+
// Link attributes
|
|
749
|
+
href: {
|
|
750
|
+
type: "url",
|
|
751
|
+
label: "Link URL",
|
|
752
|
+
placeholder: "https://...",
|
|
753
|
+
group: "link"
|
|
754
|
+
},
|
|
755
|
+
target: {
|
|
756
|
+
type: "select",
|
|
757
|
+
label: "Link Target",
|
|
758
|
+
default: "_blank",
|
|
759
|
+
options: [
|
|
760
|
+
{ value: "_blank", label: "New Tab (_blank)" },
|
|
761
|
+
{ value: "_self", label: "Same Tab (_self)" },
|
|
762
|
+
{ value: "_parent", label: "Parent Frame (_parent)" },
|
|
763
|
+
{ value: "_top", label: "Top Frame (_top)" }
|
|
764
|
+
],
|
|
765
|
+
group: "link"
|
|
766
|
+
},
|
|
767
|
+
rel: {
|
|
768
|
+
type: "text",
|
|
769
|
+
label: "Link Rel",
|
|
770
|
+
placeholder: "noopener noreferrer",
|
|
771
|
+
group: "link"
|
|
772
|
+
},
|
|
773
|
+
name: {
|
|
774
|
+
type: "text",
|
|
775
|
+
label: "Link Name",
|
|
776
|
+
placeholder: "image-link",
|
|
777
|
+
group: "link"
|
|
778
|
+
},
|
|
779
|
+
title: {
|
|
780
|
+
type: "text",
|
|
781
|
+
label: "Title / Tooltip",
|
|
782
|
+
placeholder: "Image title",
|
|
783
|
+
group: "link"
|
|
784
|
+
},
|
|
785
|
+
// Advanced attributes
|
|
786
|
+
"container-background-color": {
|
|
787
|
+
type: "color",
|
|
788
|
+
label: "Container Background",
|
|
789
|
+
group: "advanced"
|
|
790
|
+
},
|
|
791
|
+
"font-size": {
|
|
792
|
+
type: "dimension",
|
|
793
|
+
label: "Alt Text Size",
|
|
794
|
+
default: "13px",
|
|
795
|
+
group: "advanced"
|
|
796
|
+
},
|
|
797
|
+
srcset: {
|
|
798
|
+
type: "text",
|
|
799
|
+
label: "Srcset",
|
|
800
|
+
placeholder: "image-300.jpg 300w, image-600.jpg 600w",
|
|
801
|
+
group: "advanced"
|
|
802
|
+
},
|
|
803
|
+
sizes: {
|
|
804
|
+
type: "text",
|
|
805
|
+
label: "Sizes",
|
|
806
|
+
placeholder: "(max-width: 600px) 100vw, 600px",
|
|
807
|
+
group: "advanced"
|
|
808
|
+
},
|
|
809
|
+
usemap: {
|
|
810
|
+
type: "text",
|
|
811
|
+
label: "Image Map",
|
|
812
|
+
placeholder: "#mapname",
|
|
813
|
+
group: "advanced"
|
|
814
|
+
},
|
|
815
|
+
"css-class": {
|
|
816
|
+
type: "text",
|
|
817
|
+
label: "CSS Class",
|
|
818
|
+
placeholder: "custom-class",
|
|
819
|
+
group: "advanced"
|
|
820
|
+
}
|
|
821
|
+
}, p = {
|
|
822
|
+
// Primary attributes (always visible)
|
|
823
|
+
href: {
|
|
824
|
+
type: "url",
|
|
825
|
+
label: "Link URL",
|
|
826
|
+
placeholder: "https://...",
|
|
827
|
+
group: "primary"
|
|
828
|
+
},
|
|
829
|
+
"background-color": {
|
|
830
|
+
type: "color",
|
|
831
|
+
label: "Background Color",
|
|
832
|
+
default: "#414141",
|
|
833
|
+
group: "primary"
|
|
834
|
+
},
|
|
835
|
+
color: {
|
|
836
|
+
type: "color",
|
|
837
|
+
label: "Text Color",
|
|
838
|
+
default: "#ffffff",
|
|
839
|
+
group: "primary"
|
|
840
|
+
},
|
|
841
|
+
align: {
|
|
842
|
+
type: "select",
|
|
843
|
+
label: "Alignment",
|
|
844
|
+
default: "center",
|
|
845
|
+
options: [
|
|
846
|
+
{ value: "left", label: "Left" },
|
|
847
|
+
{ value: "center", label: "Center" },
|
|
848
|
+
{ value: "right", label: "Right" }
|
|
849
|
+
],
|
|
850
|
+
group: "primary"
|
|
851
|
+
},
|
|
852
|
+
"border-radius": {
|
|
853
|
+
type: "dimension",
|
|
854
|
+
label: "Border Radius",
|
|
855
|
+
default: "3px",
|
|
856
|
+
group: "primary"
|
|
857
|
+
},
|
|
858
|
+
"inner-padding": {
|
|
859
|
+
type: "padding",
|
|
860
|
+
label: "Inner Padding",
|
|
861
|
+
default: "10px 25px",
|
|
862
|
+
group: "primary"
|
|
863
|
+
},
|
|
864
|
+
padding: {
|
|
865
|
+
type: "padding",
|
|
866
|
+
label: "Padding",
|
|
867
|
+
default: "10px 25px",
|
|
868
|
+
group: "primary"
|
|
869
|
+
},
|
|
870
|
+
// Typography attributes
|
|
871
|
+
"font-size": {
|
|
872
|
+
type: "dimension",
|
|
873
|
+
label: "Font Size",
|
|
874
|
+
default: "13px",
|
|
875
|
+
group: "typography"
|
|
876
|
+
},
|
|
877
|
+
"font-family": {
|
|
878
|
+
type: "text",
|
|
879
|
+
label: "Font Family",
|
|
880
|
+
default: "Ubuntu, Helvetica, Arial, sans-serif",
|
|
881
|
+
group: "typography"
|
|
882
|
+
},
|
|
883
|
+
"font-weight": {
|
|
884
|
+
type: "select",
|
|
885
|
+
label: "Font Weight",
|
|
886
|
+
default: "normal",
|
|
887
|
+
options: [
|
|
888
|
+
{ value: "normal", label: "Normal" },
|
|
889
|
+
{ value: "bold", label: "Bold" },
|
|
890
|
+
{ value: "300", label: "Light" },
|
|
891
|
+
{ value: "500", label: "Medium" },
|
|
892
|
+
{ value: "700", label: "Bold (700)" }
|
|
893
|
+
],
|
|
894
|
+
group: "typography"
|
|
895
|
+
},
|
|
896
|
+
"font-style": {
|
|
897
|
+
type: "select",
|
|
898
|
+
label: "Font Style",
|
|
899
|
+
default: "normal",
|
|
900
|
+
options: [
|
|
901
|
+
{ value: "normal", label: "Normal" },
|
|
902
|
+
{ value: "italic", label: "Italic" },
|
|
903
|
+
{ value: "oblique", label: "Oblique" }
|
|
904
|
+
],
|
|
905
|
+
group: "typography"
|
|
906
|
+
},
|
|
907
|
+
"line-height": {
|
|
908
|
+
type: "dimension",
|
|
909
|
+
label: "Line Height",
|
|
910
|
+
default: "120%",
|
|
911
|
+
group: "typography"
|
|
912
|
+
},
|
|
913
|
+
"letter-spacing": {
|
|
914
|
+
type: "dimension",
|
|
915
|
+
label: "Letter Spacing",
|
|
916
|
+
placeholder: "0px",
|
|
917
|
+
group: "typography"
|
|
918
|
+
},
|
|
919
|
+
"text-align": {
|
|
920
|
+
type: "select",
|
|
921
|
+
label: "Text Align",
|
|
922
|
+
default: "center",
|
|
923
|
+
options: [
|
|
924
|
+
{ value: "left", label: "Left" },
|
|
925
|
+
{ value: "center", label: "Center" },
|
|
926
|
+
{ value: "right", label: "Right" }
|
|
927
|
+
],
|
|
928
|
+
group: "typography"
|
|
929
|
+
},
|
|
930
|
+
"text-decoration": {
|
|
931
|
+
type: "select",
|
|
932
|
+
label: "Text Decoration",
|
|
933
|
+
default: "none",
|
|
934
|
+
options: [
|
|
935
|
+
{ value: "none", label: "None" },
|
|
936
|
+
{ value: "underline", label: "Underline" },
|
|
937
|
+
{ value: "overline", label: "Overline" },
|
|
938
|
+
{ value: "line-through", label: "Line Through" }
|
|
939
|
+
],
|
|
940
|
+
group: "typography"
|
|
941
|
+
},
|
|
942
|
+
"text-transform": {
|
|
943
|
+
type: "select",
|
|
944
|
+
label: "Text Transform",
|
|
945
|
+
default: "none",
|
|
946
|
+
options: [
|
|
947
|
+
{ value: "none", label: "None" },
|
|
948
|
+
{ value: "capitalize", label: "Capitalize" },
|
|
949
|
+
{ value: "uppercase", label: "Uppercase" },
|
|
950
|
+
{ value: "lowercase", label: "Lowercase" }
|
|
951
|
+
],
|
|
952
|
+
group: "typography"
|
|
953
|
+
},
|
|
954
|
+
// Border attributes
|
|
955
|
+
border: {
|
|
956
|
+
type: "text",
|
|
957
|
+
label: "Border",
|
|
958
|
+
placeholder: "1px solid #000",
|
|
959
|
+
group: "border"
|
|
960
|
+
},
|
|
961
|
+
"border-top": {
|
|
962
|
+
type: "text",
|
|
963
|
+
label: "Border Top",
|
|
964
|
+
placeholder: "1px solid #000",
|
|
965
|
+
group: "border"
|
|
966
|
+
},
|
|
967
|
+
"border-right": {
|
|
968
|
+
type: "text",
|
|
969
|
+
label: "Border Right",
|
|
970
|
+
placeholder: "1px solid #000",
|
|
971
|
+
group: "border"
|
|
972
|
+
},
|
|
973
|
+
"border-bottom": {
|
|
974
|
+
type: "text",
|
|
975
|
+
label: "Border Bottom",
|
|
976
|
+
placeholder: "1px solid #000",
|
|
977
|
+
group: "border"
|
|
978
|
+
},
|
|
979
|
+
"border-left": {
|
|
980
|
+
type: "text",
|
|
981
|
+
label: "Border Left",
|
|
982
|
+
placeholder: "1px solid #000",
|
|
983
|
+
group: "border"
|
|
984
|
+
},
|
|
985
|
+
// Sizing attributes
|
|
986
|
+
width: {
|
|
987
|
+
type: "dimension",
|
|
988
|
+
label: "Width",
|
|
989
|
+
placeholder: "auto",
|
|
990
|
+
group: "sizing"
|
|
991
|
+
},
|
|
992
|
+
height: {
|
|
993
|
+
type: "dimension",
|
|
994
|
+
label: "Height",
|
|
995
|
+
placeholder: "auto",
|
|
996
|
+
group: "sizing"
|
|
997
|
+
},
|
|
998
|
+
// Spacing attributes (granular padding)
|
|
999
|
+
"padding-top": {
|
|
1000
|
+
type: "dimension",
|
|
1001
|
+
label: "Padding Top",
|
|
1002
|
+
placeholder: "10px",
|
|
1003
|
+
group: "spacing"
|
|
1004
|
+
},
|
|
1005
|
+
"padding-right": {
|
|
1006
|
+
type: "dimension",
|
|
1007
|
+
label: "Padding Right",
|
|
1008
|
+
placeholder: "25px",
|
|
1009
|
+
group: "spacing"
|
|
1010
|
+
},
|
|
1011
|
+
"padding-bottom": {
|
|
1012
|
+
type: "dimension",
|
|
1013
|
+
label: "Padding Bottom",
|
|
1014
|
+
placeholder: "10px",
|
|
1015
|
+
group: "spacing"
|
|
1016
|
+
},
|
|
1017
|
+
"padding-left": {
|
|
1018
|
+
type: "dimension",
|
|
1019
|
+
label: "Padding Left",
|
|
1020
|
+
placeholder: "25px",
|
|
1021
|
+
group: "spacing"
|
|
1022
|
+
},
|
|
1023
|
+
// Link attributes
|
|
1024
|
+
target: {
|
|
1025
|
+
type: "select",
|
|
1026
|
+
label: "Link Target",
|
|
1027
|
+
default: "_blank",
|
|
1028
|
+
options: [
|
|
1029
|
+
{ value: "_blank", label: "New Tab (_blank)" },
|
|
1030
|
+
{ value: "_self", label: "Same Tab (_self)" },
|
|
1031
|
+
{ value: "_parent", label: "Parent Frame (_parent)" },
|
|
1032
|
+
{ value: "_top", label: "Top Frame (_top)" }
|
|
1033
|
+
],
|
|
1034
|
+
group: "link"
|
|
1035
|
+
},
|
|
1036
|
+
rel: {
|
|
1037
|
+
type: "text",
|
|
1038
|
+
label: "Link Rel",
|
|
1039
|
+
placeholder: "noopener noreferrer",
|
|
1040
|
+
group: "link"
|
|
1041
|
+
},
|
|
1042
|
+
name: {
|
|
1043
|
+
type: "text",
|
|
1044
|
+
label: "Link Name",
|
|
1045
|
+
placeholder: "button-name",
|
|
1046
|
+
group: "link"
|
|
1047
|
+
},
|
|
1048
|
+
title: {
|
|
1049
|
+
type: "text",
|
|
1050
|
+
label: "Tooltip",
|
|
1051
|
+
placeholder: "Button tooltip",
|
|
1052
|
+
group: "link"
|
|
1053
|
+
},
|
|
1054
|
+
// Advanced attributes
|
|
1055
|
+
"container-background-color": {
|
|
1056
|
+
type: "color",
|
|
1057
|
+
label: "Container Background",
|
|
1058
|
+
group: "advanced"
|
|
1059
|
+
},
|
|
1060
|
+
"vertical-align": {
|
|
1061
|
+
type: "select",
|
|
1062
|
+
label: "Vertical Align",
|
|
1063
|
+
default: "middle",
|
|
1064
|
+
options: [
|
|
1065
|
+
{ value: "top", label: "Top" },
|
|
1066
|
+
{ value: "middle", label: "Middle" },
|
|
1067
|
+
{ value: "bottom", label: "Bottom" }
|
|
1068
|
+
],
|
|
1069
|
+
group: "advanced"
|
|
1070
|
+
},
|
|
1071
|
+
"css-class": {
|
|
1072
|
+
type: "text",
|
|
1073
|
+
label: "CSS Class",
|
|
1074
|
+
placeholder: "custom-class",
|
|
1075
|
+
group: "advanced"
|
|
1076
|
+
}
|
|
1077
|
+
}, d = {
|
|
1078
|
+
// Primary attributes (always visible)
|
|
1079
|
+
"border-color": {
|
|
1080
|
+
type: "color",
|
|
1081
|
+
label: "Color",
|
|
1082
|
+
default: "#000000",
|
|
1083
|
+
group: "primary"
|
|
1084
|
+
},
|
|
1085
|
+
"border-width": {
|
|
1086
|
+
type: "dimension",
|
|
1087
|
+
label: "Thickness",
|
|
1088
|
+
default: "4px",
|
|
1089
|
+
group: "primary"
|
|
1090
|
+
},
|
|
1091
|
+
"border-style": {
|
|
1092
|
+
type: "select",
|
|
1093
|
+
label: "Style",
|
|
1094
|
+
default: "solid",
|
|
1095
|
+
options: [
|
|
1096
|
+
{ value: "solid", label: "Solid" },
|
|
1097
|
+
{ value: "dashed", label: "Dashed" },
|
|
1098
|
+
{ value: "dotted", label: "Dotted" }
|
|
1099
|
+
],
|
|
1100
|
+
group: "primary"
|
|
1101
|
+
},
|
|
1102
|
+
width: {
|
|
1103
|
+
type: "dimension",
|
|
1104
|
+
label: "Width",
|
|
1105
|
+
default: "100%",
|
|
1106
|
+
group: "primary"
|
|
1107
|
+
},
|
|
1108
|
+
align: {
|
|
1109
|
+
type: "select",
|
|
1110
|
+
label: "Alignment",
|
|
1111
|
+
default: "center",
|
|
1112
|
+
options: [
|
|
1113
|
+
{ value: "left", label: "Left" },
|
|
1114
|
+
{ value: "center", label: "Center" },
|
|
1115
|
+
{ value: "right", label: "Right" }
|
|
1116
|
+
],
|
|
1117
|
+
group: "primary"
|
|
1118
|
+
},
|
|
1119
|
+
padding: {
|
|
1120
|
+
type: "padding",
|
|
1121
|
+
label: "Padding",
|
|
1122
|
+
default: "10px 25px",
|
|
1123
|
+
group: "primary"
|
|
1124
|
+
},
|
|
1125
|
+
// Spacing attributes (granular padding)
|
|
1126
|
+
"padding-top": {
|
|
1127
|
+
type: "dimension",
|
|
1128
|
+
label: "Padding Top",
|
|
1129
|
+
placeholder: "10px",
|
|
1130
|
+
group: "spacing"
|
|
1131
|
+
},
|
|
1132
|
+
"padding-right": {
|
|
1133
|
+
type: "dimension",
|
|
1134
|
+
label: "Padding Right",
|
|
1135
|
+
placeholder: "25px",
|
|
1136
|
+
group: "spacing"
|
|
1137
|
+
},
|
|
1138
|
+
"padding-bottom": {
|
|
1139
|
+
type: "dimension",
|
|
1140
|
+
label: "Padding Bottom",
|
|
1141
|
+
placeholder: "10px",
|
|
1142
|
+
group: "spacing"
|
|
1143
|
+
},
|
|
1144
|
+
"padding-left": {
|
|
1145
|
+
type: "dimension",
|
|
1146
|
+
label: "Padding Left",
|
|
1147
|
+
placeholder: "25px",
|
|
1148
|
+
group: "spacing"
|
|
1149
|
+
},
|
|
1150
|
+
// Advanced attributes
|
|
1151
|
+
"container-background-color": {
|
|
1152
|
+
type: "color",
|
|
1153
|
+
label: "Container Background",
|
|
1154
|
+
group: "advanced"
|
|
1155
|
+
},
|
|
1156
|
+
"css-class": {
|
|
1157
|
+
type: "text",
|
|
1158
|
+
label: "CSS Class",
|
|
1159
|
+
placeholder: "custom-class",
|
|
1160
|
+
group: "advanced"
|
|
1161
|
+
}
|
|
1162
|
+
}, n = {
|
|
1163
|
+
// Primary attributes (always visible)
|
|
1164
|
+
height: {
|
|
1165
|
+
type: "dimension",
|
|
1166
|
+
label: "Height",
|
|
1167
|
+
default: "20px",
|
|
1168
|
+
group: "primary"
|
|
1169
|
+
},
|
|
1170
|
+
padding: {
|
|
1171
|
+
type: "padding",
|
|
1172
|
+
label: "Padding",
|
|
1173
|
+
group: "primary"
|
|
1174
|
+
},
|
|
1175
|
+
// Spacing attributes (granular padding)
|
|
1176
|
+
"padding-top": {
|
|
1177
|
+
type: "dimension",
|
|
1178
|
+
label: "Padding Top",
|
|
1179
|
+
group: "spacing"
|
|
1180
|
+
},
|
|
1181
|
+
"padding-right": {
|
|
1182
|
+
type: "dimension",
|
|
1183
|
+
label: "Padding Right",
|
|
1184
|
+
group: "spacing"
|
|
1185
|
+
},
|
|
1186
|
+
"padding-bottom": {
|
|
1187
|
+
type: "dimension",
|
|
1188
|
+
label: "Padding Bottom",
|
|
1189
|
+
group: "spacing"
|
|
1190
|
+
},
|
|
1191
|
+
"padding-left": {
|
|
1192
|
+
type: "dimension",
|
|
1193
|
+
label: "Padding Left",
|
|
1194
|
+
group: "spacing"
|
|
1195
|
+
},
|
|
1196
|
+
// Advanced attributes
|
|
1197
|
+
"container-background-color": {
|
|
1198
|
+
type: "color",
|
|
1199
|
+
label: "Container Background",
|
|
1200
|
+
group: "advanced"
|
|
1201
|
+
},
|
|
1202
|
+
"css-class": {
|
|
1203
|
+
type: "text",
|
|
1204
|
+
label: "CSS Class",
|
|
1205
|
+
placeholder: "custom-class",
|
|
1206
|
+
group: "advanced"
|
|
1207
|
+
}
|
|
1208
|
+
}, i = {
|
|
1209
|
+
// Primary attributes (always visible)
|
|
1210
|
+
width: {
|
|
1211
|
+
type: "dimension",
|
|
1212
|
+
label: "Width",
|
|
1213
|
+
default: "600px",
|
|
1214
|
+
placeholder: "600px",
|
|
1215
|
+
group: "primary"
|
|
1216
|
+
},
|
|
1217
|
+
"background-color": {
|
|
1218
|
+
type: "color",
|
|
1219
|
+
label: "Background Color",
|
|
1220
|
+
group: "primary"
|
|
1221
|
+
},
|
|
1222
|
+
// Advanced attributes
|
|
1223
|
+
"css-class": {
|
|
1224
|
+
type: "text",
|
|
1225
|
+
label: "CSS Class",
|
|
1226
|
+
placeholder: "custom-class",
|
|
1227
|
+
group: "advanced"
|
|
1228
|
+
}
|
|
1229
|
+
};
|
|
1230
|
+
function g(e) {
|
|
1231
|
+
switch (e) {
|
|
1232
|
+
case "mj-body":
|
|
1233
|
+
return i;
|
|
1234
|
+
case "mj-wrapper":
|
|
1235
|
+
return a;
|
|
1236
|
+
case "mj-section":
|
|
1237
|
+
return l;
|
|
1238
|
+
case "mj-column":
|
|
1239
|
+
return o;
|
|
1240
|
+
case "mj-text":
|
|
1241
|
+
return t;
|
|
1242
|
+
case "mj-image":
|
|
1243
|
+
return r;
|
|
1244
|
+
case "mj-button":
|
|
1245
|
+
return p;
|
|
1246
|
+
case "mj-divider":
|
|
1247
|
+
return d;
|
|
1248
|
+
case "mj-spacer":
|
|
1249
|
+
return n;
|
|
1250
|
+
default:
|
|
1251
|
+
return null;
|
|
1252
|
+
}
|
|
1253
|
+
}
|
|
1254
|
+
const u = [
|
|
1255
|
+
{ type: "mj-text", label: "Text", icon: "T" },
|
|
1256
|
+
{ type: "mj-image", label: "Image", icon: "🖼" },
|
|
1257
|
+
{ type: "mj-button", label: "Button", icon: "▢" },
|
|
1258
|
+
{ type: "mj-divider", label: "Divider", icon: "―" },
|
|
1259
|
+
{ type: "mj-spacer", label: "Spacer", icon: "↕" }
|
|
1260
|
+
];
|
|
1261
|
+
function b(e) {
|
|
1262
|
+
switch (e) {
|
|
1263
|
+
case "mj-text":
|
|
1264
|
+
return {
|
|
1265
|
+
attributes: {},
|
|
1266
|
+
content: "Enter your text here"
|
|
1267
|
+
};
|
|
1268
|
+
case "mj-image":
|
|
1269
|
+
return {
|
|
1270
|
+
attributes: {
|
|
1271
|
+
src: "https://via.placeholder.com/600x300",
|
|
1272
|
+
alt: "Image description"
|
|
1273
|
+
}
|
|
1274
|
+
};
|
|
1275
|
+
case "mj-button":
|
|
1276
|
+
return {
|
|
1277
|
+
attributes: {
|
|
1278
|
+
href: "#"
|
|
1279
|
+
},
|
|
1280
|
+
content: "Click me"
|
|
1281
|
+
};
|
|
1282
|
+
case "mj-divider":
|
|
1283
|
+
return {
|
|
1284
|
+
attributes: {}
|
|
1285
|
+
};
|
|
1286
|
+
case "mj-spacer":
|
|
1287
|
+
return {
|
|
1288
|
+
attributes: {
|
|
1289
|
+
height: "20px"
|
|
1290
|
+
}
|
|
1291
|
+
};
|
|
1292
|
+
}
|
|
1293
|
+
}
|
|
1294
|
+
export {
|
|
1295
|
+
i as bodySchema,
|
|
1296
|
+
p as buttonSchema,
|
|
1297
|
+
o as columnSchema,
|
|
1298
|
+
u as contentBlockTypes,
|
|
1299
|
+
d as dividerSchema,
|
|
1300
|
+
b as getDefaultBlock,
|
|
1301
|
+
g as getSchemaForTag,
|
|
1302
|
+
r as imageSchema,
|
|
1303
|
+
l as sectionSchema,
|
|
1304
|
+
n as spacerSchema,
|
|
1305
|
+
t as textSchema,
|
|
1306
|
+
a as wrapperSchema
|
|
1307
|
+
};
|