@lit-pigeon/editor 0.3.4 → 0.4.0
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 +38 -12
- package/dist/ar.js +272 -0
- package/dist/de.js +272 -0
- package/dist/es.js +272 -0
- package/dist/fr.js +272 -0
- package/dist/hi.js +272 -0
- package/dist/index.d.ts +85 -2
- package/dist/index.js +1416 -915
- package/dist/it.js +272 -0
- package/dist/ja.js +272 -0
- package/dist/nl.js +272 -0
- package/dist/pt-BR.js +272 -0
- package/dist/rich-text-bridge.js +108 -40
- package/dist/rich-text.js +2225 -2042
- package/dist/zh-CN.js +272 -0
- package/package.json +4 -4
package/dist/hi.js
ADDED
|
@@ -0,0 +1,272 @@
|
|
|
1
|
+
const e = {
|
|
2
|
+
// toolbar
|
|
3
|
+
"toolbar.undo": "पूर्ववत करें",
|
|
4
|
+
"toolbar.redo": "फिर से करें",
|
|
5
|
+
"toolbar.preview-device": "प्रीव्यू डिवाइस",
|
|
6
|
+
"toolbar.desktop-view": "डेस्कटॉप व्यू",
|
|
7
|
+
"toolbar.tablet-view-title": "टैबलेट व्यू (768px)",
|
|
8
|
+
"toolbar.tablet-view": "टैबलेट व्यू",
|
|
9
|
+
"toolbar.mobile-view-title": "मोबाइल व्यू (375px)",
|
|
10
|
+
"toolbar.mobile-view": "मोबाइल व्यू",
|
|
11
|
+
"toolbar.fullscreen": "फ़ुलस्क्रीन",
|
|
12
|
+
"toolbar.exit-fullscreen": "फ़ुलस्क्रीन से बाहर निकलें",
|
|
13
|
+
"toolbar.enter-fullscreen": "फ़ुलस्क्रीन में देखें",
|
|
14
|
+
"toolbar.templates": "टेम्पलेट",
|
|
15
|
+
"toolbar.preview": "प्रीव्यू",
|
|
16
|
+
"toolbar.export": "एक्सपोर्ट",
|
|
17
|
+
"toolbar.export-format": "एक्सपोर्ट फ़ॉर्मैट",
|
|
18
|
+
"toolbar.export-html": "HTML एक्सपोर्ट करें",
|
|
19
|
+
"toolbar.export-mjml": "MJML एक्सपोर्ट करें",
|
|
20
|
+
"toolbar.export-json": "JSON एक्सपोर्ट करें",
|
|
21
|
+
// palette
|
|
22
|
+
"palette.label": "पैलेट",
|
|
23
|
+
"palette.tab.content": "सामग्री",
|
|
24
|
+
"palette.tab.layers": "लेयर",
|
|
25
|
+
"palette.tab.brand": "ब्रांड",
|
|
26
|
+
"palette.tab.saved": "सहेजे गए",
|
|
27
|
+
// palette — layout section
|
|
28
|
+
"palette.layout.section-content": "सामग्री",
|
|
29
|
+
"palette.layout.section-layout": "लेआउट",
|
|
30
|
+
"palette.layout.1-col": "1 कॉलम",
|
|
31
|
+
"palette.layout.2-col": "2 कॉलम",
|
|
32
|
+
"palette.layout.3-col": "3 कॉलम",
|
|
33
|
+
"palette.layout.4-col": "4 कॉलम",
|
|
34
|
+
// palette — brand tab
|
|
35
|
+
"palette.brand.colors": "रंग",
|
|
36
|
+
"palette.brand.fonts": "फ़ॉन्ट",
|
|
37
|
+
"palette.brand.logos": "लोगो",
|
|
38
|
+
"palette.brand.add": "+ जोड़ें",
|
|
39
|
+
"palette.brand.no-colors": "अभी कोई रंग नहीं",
|
|
40
|
+
"palette.brand.no-fonts": "अभी कोई फ़ॉन्ट नहीं",
|
|
41
|
+
"palette.brand.no-logos": "अभी कोई लोगो नहीं",
|
|
42
|
+
"palette.brand.color-name-label": "रंग का नाम",
|
|
43
|
+
"palette.brand.color-value-label": "रंग का मान",
|
|
44
|
+
"palette.brand.delete-title": "हटाएँ",
|
|
45
|
+
"palette.brand.insert-logo-title": "लोगो डालें",
|
|
46
|
+
// palette — saved tab
|
|
47
|
+
"palette.saved.empty": "अभी कोई सहेजी गई पंक्ति नहीं है। किसी पंक्ति को यहाँ सहेजने के लिए उस पर बुकमार्क ऐक्शन का उपयोग करें।",
|
|
48
|
+
"palette.saved.delete-title": "हटाएँ",
|
|
49
|
+
// preview
|
|
50
|
+
"preview.heading": "प्रीव्यू",
|
|
51
|
+
"preview.tab-group-label": "प्रीव्यू फ़ॉर्मैट",
|
|
52
|
+
"preview.tab.preview": "प्रीव्यू",
|
|
53
|
+
"preview.tab.html": "HTML",
|
|
54
|
+
"preview.tab.mjml": "MJML",
|
|
55
|
+
"preview.tab.json": "JSON",
|
|
56
|
+
"preview.device.desktop": "डेस्कटॉप प्रीव्यू",
|
|
57
|
+
"preview.device.mobile": "मोबाइल प्रीव्यू",
|
|
58
|
+
"preview.close": "प्रीव्यू बंद करें",
|
|
59
|
+
"preview.loading": "रेंडर हो रहा है...",
|
|
60
|
+
// template picker
|
|
61
|
+
"template.heading": "टेम्पलेट",
|
|
62
|
+
"template.close": "बंद करें",
|
|
63
|
+
"template.section.choose": "टेम्पलेट चुनें",
|
|
64
|
+
"template.empty": "अभी कोई टेम्पलेट उपलब्ध नहीं है।",
|
|
65
|
+
"template.section.save": "वर्तमान को टेम्पलेट के रूप में सहेजें",
|
|
66
|
+
"template.field.name": "नाम",
|
|
67
|
+
"template.field.name-placeholder": "मेरा टेम्पलेट",
|
|
68
|
+
"template.field.category": "श्रेणी",
|
|
69
|
+
"template.field.description": "विवरण (वैकल्पिक)",
|
|
70
|
+
"template.field.description-placeholder": "यह टेम्पलेट किसलिए है?",
|
|
71
|
+
"template.cancel": "रद्द करें",
|
|
72
|
+
"template.save": "टेम्पलेट सहेजें",
|
|
73
|
+
"template.error.name-required": "नाम आवश्यक है",
|
|
74
|
+
// asset manager
|
|
75
|
+
"asset.title": "एसेट चुनें",
|
|
76
|
+
"asset.title-upload": "इमेज चुनें",
|
|
77
|
+
"asset.close": "बंद करें",
|
|
78
|
+
"asset.tab.library": "लाइब्रेरी",
|
|
79
|
+
"asset.tab.upload": "अपलोड",
|
|
80
|
+
"asset.folder.all": "सभी फ़ोल्डर",
|
|
81
|
+
"asset.search": "एसेट खोजें",
|
|
82
|
+
"asset.tag-filter-label": "टैग से फ़िल्टर करें",
|
|
83
|
+
"asset.loading": "लोड हो रहा है…",
|
|
84
|
+
"asset.empty.filtered": "आपके फ़िल्टर से कोई एसेट मेल नहीं खाता।",
|
|
85
|
+
"asset.empty.no-assets": "अभी कोई सहेजा गया एसेट नहीं है। शुरू करने के लिए एक अपलोड करें।",
|
|
86
|
+
"asset.drop-zone.label": "इमेज को यहाँ ड्रैग और ड्रॉप करें",
|
|
87
|
+
"asset.drop-zone.hint": "या ब्राउज़ करने के लिए क्लिक करें",
|
|
88
|
+
"asset.url.separator": "या URL डालें",
|
|
89
|
+
"asset.url.placeholder": "https://example.com/image.jpg",
|
|
90
|
+
"asset.url.use": "URL उपयोग करें",
|
|
91
|
+
// asset manager — stock tab
|
|
92
|
+
"asset.tab.stock": "स्टॉक",
|
|
93
|
+
"asset.stock.search": "मुफ़्त फ़ोटो खोजें…",
|
|
94
|
+
"asset.stock.idle": "मुफ़्त फ़ोटो के लिए Unsplash और Pexels में खोजें।",
|
|
95
|
+
"asset.stock.empty": "कोई फ़ोटो नहीं मिली। कुछ और खोजकर देखें।",
|
|
96
|
+
"asset.stock.load-more": "और लोड करें",
|
|
97
|
+
"asset.stock.photo-by": "फ़ोटो:",
|
|
98
|
+
"asset.stock.on": "पर",
|
|
99
|
+
"asset.stock.error": "फ़ोटो लोड नहीं हो सकीं। API कुंजी जाँचें या फिर से कोशिश करें।",
|
|
100
|
+
"asset.stock.rate-limited": "रेट लिमिट पूरी हो गई। थोड़ी देर बाद फिर से कोशिश करें।",
|
|
101
|
+
// property panels — shared (common) labels
|
|
102
|
+
"panel.common.backgroundColor": "बैकग्राउंड रंग",
|
|
103
|
+
"panel.common.padding": "पैडिंग",
|
|
104
|
+
"panel.common.outerPadding": "बाहरी पैडिंग",
|
|
105
|
+
"panel.common.innerPadding": "भीतरी पैडिंग",
|
|
106
|
+
"panel.common.alignment": "संरेखण",
|
|
107
|
+
"panel.common.fontSize": "फ़ॉन्ट आकार",
|
|
108
|
+
"panel.common.borderRadius": "बॉर्डर रेडियस",
|
|
109
|
+
"panel.common.linkUrl": "लिंक URL",
|
|
110
|
+
"panel.common.urlPlaceholder": "https://example.com",
|
|
111
|
+
"panel.common.contentHtml": "सामग्री (HTML)",
|
|
112
|
+
"panel.common.displayCondition": "प्रदर्शन शर्त",
|
|
113
|
+
"panel.common.insertMergeTag": "मर्ज टैग डालें",
|
|
114
|
+
"panel.common.tagBtn": "{ } टैग",
|
|
115
|
+
"panel.common.uploadImage": "इमेज अपलोड करें",
|
|
116
|
+
"panel.common.left": "बाएँ",
|
|
117
|
+
"panel.common.center": "बीच में",
|
|
118
|
+
// property panels — body
|
|
119
|
+
"panel.body.title": "ईमेल बॉडी",
|
|
120
|
+
"panel.body.contentWidth": "सामग्री की चौड़ाई",
|
|
121
|
+
"panel.body.fontFamily": "फ़ॉन्ट फ़ैमिली",
|
|
122
|
+
"panel.body.contentAlignment": "सामग्री संरेखण",
|
|
123
|
+
"panel.body.linkColor": "लिंक का रंग",
|
|
124
|
+
"panel.body.linkUnderline": "लिंक रेखांकित करें",
|
|
125
|
+
"panel.body.emailName": "ईमेल का नाम",
|
|
126
|
+
"panel.body.previewText": "प्रीव्यू टेक्स्ट",
|
|
127
|
+
"panel.body.previewTextPlaceholder": "ईमेल प्रीव्यू टेक्स्ट...",
|
|
128
|
+
"panel.body.language": "भाषा",
|
|
129
|
+
"panel.body.languagePlaceholder": "उदा. en, pt-BR",
|
|
130
|
+
"panel.body.textDirection": "पाठ दिशा",
|
|
131
|
+
"panel.body.directionAuto": "स्वचालित",
|
|
132
|
+
"panel.body.directionLtr": "बाएँ से दाएँ",
|
|
133
|
+
"panel.body.directionRtl": "दाएँ से बाएँ",
|
|
134
|
+
// property panels — text
|
|
135
|
+
"panel.text.title": "टेक्स्ट गुण",
|
|
136
|
+
"panel.text.textAlign": "टेक्स्ट संरेखण",
|
|
137
|
+
"panel.text.lineHeight": "पंक्ति ऊँचाई",
|
|
138
|
+
// property panels — button
|
|
139
|
+
"panel.button.title": "बटन गुण",
|
|
140
|
+
"panel.button.buttonText": "बटन टेक्स्ट",
|
|
141
|
+
"panel.button.textColor": "टेक्स्ट रंग",
|
|
142
|
+
"panel.button.fontWeight": "फ़ॉन्ट वेट",
|
|
143
|
+
"panel.button.fontWeight.normal": "सामान्य (400)",
|
|
144
|
+
"panel.button.fontWeight.medium": "मध्यम (500)",
|
|
145
|
+
"panel.button.fontWeight.semibold": "अर्ध-बोल्ड (600)",
|
|
146
|
+
"panel.button.fontWeight.bold": "बोल्ड (700)",
|
|
147
|
+
"panel.button.border": "बॉर्डर",
|
|
148
|
+
"panel.button.borderNone": "कोई नहीं",
|
|
149
|
+
"panel.button.borderSolid": "ठोस",
|
|
150
|
+
"panel.button.borderDashed": "डैश वाली",
|
|
151
|
+
"panel.button.borderDotted": "बिंदुदार",
|
|
152
|
+
"panel.button.borderWidth": "बॉर्डर चौड़ाई",
|
|
153
|
+
"panel.button.borderColor": "बॉर्डर रंग",
|
|
154
|
+
"panel.button.fullWidth": "पूरी चौड़ाई",
|
|
155
|
+
// property panels — image
|
|
156
|
+
"panel.image.title": "इमेज गुण",
|
|
157
|
+
"panel.image.imageUrl": "इमेज URL",
|
|
158
|
+
"panel.image.urlPlaceholder": "https://example.com/image.jpg",
|
|
159
|
+
"panel.image.altText": "Alt टेक्स्ट",
|
|
160
|
+
"panel.image.altPlaceholder": "इमेज का विवरण",
|
|
161
|
+
"panel.image.width": "चौड़ाई (0 = ऑटो)",
|
|
162
|
+
// property panels — hero
|
|
163
|
+
"panel.hero.title": "हीरो गुण",
|
|
164
|
+
"panel.hero.backgroundUrl": "बैकग्राउंड URL",
|
|
165
|
+
"panel.hero.backgroundUrlPlaceholder": "https://example.com/hero.jpg",
|
|
166
|
+
"panel.hero.backgroundPosition": "बैकग्राउंड स्थिति",
|
|
167
|
+
"panel.hero.mode": "मोड",
|
|
168
|
+
"panel.hero.modeFluidHeight": "फ़्लूइड ऊँचाई",
|
|
169
|
+
"panel.hero.modeFixedHeight": "निश्चित ऊँचाई",
|
|
170
|
+
"panel.hero.height": "ऊँचाई",
|
|
171
|
+
"panel.hero.width": "चौड़ाई",
|
|
172
|
+
"panel.hero.verticalAlign": "लंबवत संरेखण",
|
|
173
|
+
"panel.hero.verticalAlignTop": "ऊपर",
|
|
174
|
+
"panel.hero.verticalAlignMiddle": "बीच में",
|
|
175
|
+
"panel.hero.verticalAlignBottom": "नीचे",
|
|
176
|
+
// property panels — navbar
|
|
177
|
+
"panel.navbar.title": "नेवबार गुण",
|
|
178
|
+
"panel.navbar.links": "लिंक",
|
|
179
|
+
"panel.navbar.linkLabel": "लिंक",
|
|
180
|
+
"panel.navbar.removeLink": "हटाएँ",
|
|
181
|
+
"panel.navbar.linkText": "टेक्स्ट",
|
|
182
|
+
"panel.navbar.url": "URL",
|
|
183
|
+
"panel.navbar.addLink": "+ लिंक जोड़ें",
|
|
184
|
+
"panel.navbar.hamburger": "हैमबर्गर (मोबाइल)",
|
|
185
|
+
"panel.navbar.hamburgerShow": "दिखाएँ",
|
|
186
|
+
"panel.navbar.hamburgerHide": "छिपाएँ",
|
|
187
|
+
"panel.navbar.linkColor": "लिंक रंग",
|
|
188
|
+
"panel.navbar.linkFontSize": "लिंक फ़ॉन्ट आकार",
|
|
189
|
+
"panel.navbar.linkPadding": "लिंक पैडिंग",
|
|
190
|
+
// property panels — divider
|
|
191
|
+
"panel.divider.title": "डिवाइडर गुण",
|
|
192
|
+
"panel.divider.style": "शैली",
|
|
193
|
+
"panel.divider.styleSolid": "ठोस",
|
|
194
|
+
"panel.divider.styleDashed": "डैश वाली",
|
|
195
|
+
"panel.divider.styleDotted": "बिंदुदार",
|
|
196
|
+
"panel.divider.color": "रंग",
|
|
197
|
+
"panel.divider.width": "चौड़ाई",
|
|
198
|
+
"panel.divider.lineWidth": "रेखा की मोटाई",
|
|
199
|
+
// property panels — spacer
|
|
200
|
+
"panel.spacer.title": "स्पेसर गुण",
|
|
201
|
+
"panel.spacer.height": "ऊँचाई",
|
|
202
|
+
// property panels — social
|
|
203
|
+
"panel.social.title": "सोशल गुण",
|
|
204
|
+
"panel.social.icons": "आइकन",
|
|
205
|
+
"panel.social.iconLabel": "आइकन",
|
|
206
|
+
"panel.social.removeIcon": "हटाएँ",
|
|
207
|
+
"panel.social.network": "नेटवर्क",
|
|
208
|
+
"panel.social.url": "URL",
|
|
209
|
+
"panel.social.iconUrl": "आइकन URL",
|
|
210
|
+
"panel.social.altText": "लेबल (alt टेक्स्ट)",
|
|
211
|
+
"panel.social.addIcon": "+ आइकन जोड़ें",
|
|
212
|
+
"panel.social.iconSize": "आइकन आकार",
|
|
213
|
+
"panel.social.spacing": "अंतराल",
|
|
214
|
+
// property panels — html
|
|
215
|
+
"panel.html.title": "HTML गुण",
|
|
216
|
+
"panel.html.rawHtml": "रॉ HTML",
|
|
217
|
+
// property panels — row
|
|
218
|
+
"panel.row.title": "पंक्ति गुण",
|
|
219
|
+
"panel.row.columnLayout": "कॉलम लेआउट",
|
|
220
|
+
"panel.row.layout1col": "1 कॉलम",
|
|
221
|
+
"panel.row.layout2col": "2 बराबर",
|
|
222
|
+
"panel.row.layout3col": "3 बराबर",
|
|
223
|
+
"panel.row.layout4col": "4 बराबर",
|
|
224
|
+
"panel.row.backgroundImageUrl": "बैकग्राउंड इमेज URL",
|
|
225
|
+
"panel.row.backgroundRepeat": "बैकग्राउंड दोहराव",
|
|
226
|
+
"panel.row.backgroundRepeatNone": "न दोहराएँ",
|
|
227
|
+
"panel.row.backgroundRepeatTile": "टाइल",
|
|
228
|
+
"panel.row.backgroundSize": "बैकग्राउंड आकार",
|
|
229
|
+
"panel.row.backgroundPosition": "बैकग्राउंड स्थिति",
|
|
230
|
+
"panel.row.fullWidth": "पूरी चौड़ाई",
|
|
231
|
+
"panel.row.noStackOnMobile": "मोबाइल पर स्टैक न करें",
|
|
232
|
+
"panel.row.displayCondition": "प्रदर्शन शर्त",
|
|
233
|
+
"panel.row.repeat": "प्रत्येक के लिए दोहराएँ",
|
|
234
|
+
// controls — color picker
|
|
235
|
+
"control.color.label": "रंग",
|
|
236
|
+
// controls — font picker
|
|
237
|
+
"control.fontPicker.label": "फ़ॉन्ट फ़ैमिली",
|
|
238
|
+
// controls — link type picker
|
|
239
|
+
"control.linkType.ariaLabel": "विशेष लिंक डालें",
|
|
240
|
+
"control.linkType.placeholder": "+ विशेष लिंक",
|
|
241
|
+
"control.linkType.emailPrompt": "ईमेल पता",
|
|
242
|
+
"control.linkType.telPrompt": "फ़ोन नंबर",
|
|
243
|
+
// controls — spacing input
|
|
244
|
+
"control.spacing.top": "ऊपर",
|
|
245
|
+
"control.spacing.right": "दाएँ",
|
|
246
|
+
"control.spacing.bottom": "नीचे",
|
|
247
|
+
"control.spacing.left": "बाएँ",
|
|
248
|
+
"control.spacing.topTitle": "ऊपर (px)",
|
|
249
|
+
"control.spacing.rightTitle": "दाएँ (px)",
|
|
250
|
+
"control.spacing.bottomTitle": "नीचे (px)",
|
|
251
|
+
"control.spacing.leftTitle": "बाएँ (px)",
|
|
252
|
+
// controls — alignment picker
|
|
253
|
+
"control.alignment.left": "बाएँ संरेखित करें",
|
|
254
|
+
"control.alignment.center": "बीच में संरेखित करें",
|
|
255
|
+
"control.alignment.right": "दाएँ संरेखित करें",
|
|
256
|
+
// controls — merge tag picker
|
|
257
|
+
"control.mergeTag.searchPlaceholder": "टैग खोजें...",
|
|
258
|
+
"control.mergeTag.noMatches": "कोई मेल खाता टैग नहीं",
|
|
259
|
+
// rich text bubble toolbar
|
|
260
|
+
"richtext.bold": "बोल्ड (Cmd+B)",
|
|
261
|
+
"richtext.italic": "इटैलिक (Cmd+I)",
|
|
262
|
+
"richtext.underline": "अंडरलाइन (Cmd+U)",
|
|
263
|
+
"richtext.strike": "स्ट्राइकथ्रू",
|
|
264
|
+
"richtext.code": "कोड",
|
|
265
|
+
"richtext.link": "लिंक",
|
|
266
|
+
"richtext.apply": "लागू करें",
|
|
267
|
+
"richtext.removeLink": "लिंक हटाएँ",
|
|
268
|
+
"richtext.urlPlaceholder": "https://…"
|
|
269
|
+
};
|
|
270
|
+
export {
|
|
271
|
+
e as default
|
|
272
|
+
};
|
package/dist/index.d.ts
CHANGED
|
@@ -28,6 +28,8 @@ import { TemplateResult } from 'lit';
|
|
|
28
28
|
import { TemplateStorage } from '@lit-pigeon/core';
|
|
29
29
|
import { TextBlock } from '@lit-pigeon/core';
|
|
30
30
|
|
|
31
|
+
export declare const BUILT_IN_LOCALES: string[];
|
|
32
|
+
|
|
31
33
|
/**
|
|
32
34
|
* Given a Y coordinate and a list of block elements within a column,
|
|
33
35
|
* determine which block gap the cursor is closest to.
|
|
@@ -40,6 +42,8 @@ export declare function calculateBlockDropIndex(clientY: number, blockElements:
|
|
|
40
42
|
*/
|
|
41
43
|
export declare function calculateRowDropIndex(clientY: number, rowElements: HTMLElement[]): number;
|
|
42
44
|
|
|
45
|
+
declare type Catalog = Record<string, string>;
|
|
46
|
+
|
|
43
47
|
export declare function clearDragData(): void;
|
|
44
48
|
|
|
45
49
|
export declare interface DragData {
|
|
@@ -77,6 +81,14 @@ export declare interface DropTarget {
|
|
|
77
81
|
|
|
78
82
|
export declare function getDragData(): DragData | null;
|
|
79
83
|
|
|
84
|
+
/**
|
|
85
|
+
* Load a built-in catalog for `locale`, matching the full tag first
|
|
86
|
+
* (`pt-BR`) and then its language subtag (`pt` → `pt-BR`). Resolves to
|
|
87
|
+
* `undefined` for English or an unsupported locale. Pass the result to
|
|
88
|
+
* `config.messages`.
|
|
89
|
+
*/
|
|
90
|
+
export declare function loadLocale(locale: string): Promise<Catalog | undefined>;
|
|
91
|
+
|
|
80
92
|
export declare class PigeonAlignmentPicker extends LitElement {
|
|
81
93
|
label: string;
|
|
82
94
|
value: 'left' | 'center' | 'right';
|
|
@@ -170,7 +182,17 @@ export declare class PigeonBodyPanel extends LitElement {
|
|
|
170
182
|
private _onWidthChange;
|
|
171
183
|
private _onBgColorChange;
|
|
172
184
|
private _onFontFamilyChange;
|
|
185
|
+
/**
|
|
186
|
+
* Each part of `linkStyle` is set on its own, and clearing the colour drops
|
|
187
|
+
* the whole field when nothing else is set — so a document that never had a
|
|
188
|
+
* link style renders exactly as it did before anyone opened this panel.
|
|
189
|
+
*/
|
|
190
|
+
private _onLinkColorChange;
|
|
191
|
+
private _onLinkUnderlineChange;
|
|
192
|
+
private _emitLinkStyle;
|
|
173
193
|
private _onAlignChange;
|
|
194
|
+
private _onLanguageChange;
|
|
195
|
+
private _onDirectionChange;
|
|
174
196
|
private _onNameChange;
|
|
175
197
|
private _onPreviewTextChange;
|
|
176
198
|
}
|
|
@@ -188,7 +210,6 @@ export declare class PigeonButtonBlock extends LitElement {
|
|
|
188
210
|
private _mountEditor;
|
|
189
211
|
private _teardownEditor;
|
|
190
212
|
private _commit;
|
|
191
|
-
private _exit;
|
|
192
213
|
private _preventNav;
|
|
193
214
|
private _handleClick;
|
|
194
215
|
private _handleDblClick;
|
|
@@ -210,6 +231,15 @@ export declare class PigeonButtonPanel extends LitElement {
|
|
|
210
231
|
private _onBgColorChange;
|
|
211
232
|
private _onTextColorChange;
|
|
212
233
|
private _onBorderRadiusChange;
|
|
234
|
+
/**
|
|
235
|
+
* "None" clears the border rather than storing a zero-width one, so the
|
|
236
|
+
* renderer leaves the attribute off and MJML's own `border: none` stands.
|
|
237
|
+
* Turning one on starts from the text colour, which is the edge an outline
|
|
238
|
+
* button almost always wants.
|
|
239
|
+
*/
|
|
240
|
+
private _onBorderStyleChange;
|
|
241
|
+
private _onBorderWidthChange;
|
|
242
|
+
private _onBorderColorChange;
|
|
213
243
|
private _onFontSizeChange;
|
|
214
244
|
private _onFontWeightChange;
|
|
215
245
|
private _onAlignChange;
|
|
@@ -228,6 +258,7 @@ export declare class PigeonCanvas extends LitElement {
|
|
|
228
258
|
* `desktop` shows no frame, `tablet`/`mobile` wrap the sheet in a bezel.
|
|
229
259
|
*/
|
|
230
260
|
device: 'desktop' | 'tablet' | 'mobile';
|
|
261
|
+
readonly: boolean;
|
|
231
262
|
private _rowDropIndex;
|
|
232
263
|
private _isDragOver;
|
|
233
264
|
/** Row currently under the pointer, or null. Drives which single row shows
|
|
@@ -275,6 +306,9 @@ export declare class PigeonColumn extends LitElement {
|
|
|
275
306
|
rowId: string;
|
|
276
307
|
selection: Selection_2 | null;
|
|
277
308
|
editingBlockId: string | null;
|
|
309
|
+
device: string;
|
|
310
|
+
/** Set for a locked row or a readonly editor: no block drags in or out. */
|
|
311
|
+
locked: boolean;
|
|
278
312
|
private _dropIndex;
|
|
279
313
|
private _isDragOver;
|
|
280
314
|
/** Id of the block currently being dragged from this column, or null. Dims
|
|
@@ -370,12 +404,21 @@ export declare class PigeonEditor extends LitElement {
|
|
|
370
404
|
themeOverrides: Record<string, string>;
|
|
371
405
|
/** Additional editor configuration passed to EditorState.create(). */
|
|
372
406
|
config: Partial<EditorConfig>;
|
|
407
|
+
/**
|
|
408
|
+
* Render-only mode (`<pigeon-editor readonly>`). Hides the palette,
|
|
409
|
+
* properties panel and editing affordances, and drops every document change
|
|
410
|
+
* at the central dispatch, so keyboard shortcuts and events can't edit
|
|
411
|
+
* either. Preview, export, device and fullscreen still work.
|
|
412
|
+
*/
|
|
413
|
+
readonly: boolean;
|
|
373
414
|
/** Optional renderer for preview mode. */
|
|
374
415
|
renderer?: Renderer;
|
|
375
416
|
/** Optional function to convert document to MJML. */
|
|
376
417
|
documentToMjml?: (doc: PigeonDocument, options?: {
|
|
377
418
|
fonts?: FontDefinition[];
|
|
378
419
|
}) => string;
|
|
420
|
+
/** Optional function to convert document to plain text. */
|
|
421
|
+
documentToPlainText?: (doc: PigeonDocument) => string;
|
|
379
422
|
/**
|
|
380
423
|
* Optional template storage backend. When unset, the editor falls back to
|
|
381
424
|
* an in-memory storage seeded with the starter templates so the picker is
|
|
@@ -433,10 +476,24 @@ export declare class PigeonEditor extends LitElement {
|
|
|
433
476
|
undo(): boolean;
|
|
434
477
|
/** Redo the last undone change. */
|
|
435
478
|
redo(): boolean;
|
|
479
|
+
/** Whether {@link undo} would change anything, for a host rendering its own toolbar. */
|
|
480
|
+
canUndo(): boolean;
|
|
481
|
+
/** Whether {@link redo} would change anything, for a host rendering its own toolbar. */
|
|
482
|
+
canRedo(): boolean;
|
|
483
|
+
/**
|
|
484
|
+
* Open the built-in preview panel, as the toolbar's own preview button does:
|
|
485
|
+
* without a `renderer` there is nothing to preview, so it dispatches
|
|
486
|
+
* `pigeon:preview` for the host to handle and returns false.
|
|
487
|
+
*/
|
|
488
|
+
showPreview(): boolean;
|
|
489
|
+
/** Close the built-in preview panel. */
|
|
490
|
+
hidePreview(): void;
|
|
436
491
|
/** Export the document as JSON. */
|
|
437
492
|
exportJson(): PigeonDocument;
|
|
438
493
|
/** Export the document as MJML. Requires documentToMjml to be set. */
|
|
439
494
|
exportMjml(): string | null;
|
|
495
|
+
/** Export the document as plain text. Requires documentToPlainText to be set. */
|
|
496
|
+
exportPlainText(): string | null;
|
|
440
497
|
/** Export the document as HTML. Requires renderer to be set. */
|
|
441
498
|
exportHtml(): Promise<string | null>;
|
|
442
499
|
/** Set merge tags dynamically (for lazy loading). */
|
|
@@ -473,6 +530,12 @@ export declare class PigeonEditor extends LitElement {
|
|
|
473
530
|
private _handleRedo;
|
|
474
531
|
private _handleDevice;
|
|
475
532
|
private _handleFullscreen;
|
|
533
|
+
/**
|
|
534
|
+
* The single point every preview open/close goes through, so `pigeon:preview-open`
|
|
535
|
+
* and `pigeon:preview-close` fire whether the toolbar, the overlay or a host
|
|
536
|
+
* method moved it, and a host's own button can stay in sync with the built-in one.
|
|
537
|
+
*/
|
|
538
|
+
private _setPreviewOpen;
|
|
476
539
|
private _handlePreview;
|
|
477
540
|
private _handleExport;
|
|
478
541
|
private _handleExportHtml;
|
|
@@ -519,6 +582,7 @@ export declare class PigeonEditor extends LitElement {
|
|
|
519
582
|
private _handlePaletteActivate;
|
|
520
583
|
private _handlePropertyChange;
|
|
521
584
|
private _handleRowPropertyChange;
|
|
585
|
+
private _handleColumnPropertyChange;
|
|
522
586
|
private _handleRowLayoutChange;
|
|
523
587
|
private _handleBodyPropertyChange;
|
|
524
588
|
}
|
|
@@ -536,7 +600,6 @@ export declare class PigeonHeroBlock extends LitElement {
|
|
|
536
600
|
private _mountEditor;
|
|
537
601
|
private _teardownEditor;
|
|
538
602
|
private _commit;
|
|
539
|
-
private _exit;
|
|
540
603
|
private _handleClick;
|
|
541
604
|
private _handleDblClick;
|
|
542
605
|
}
|
|
@@ -664,12 +727,18 @@ export declare class PigeonPalette extends LitElement {
|
|
|
664
727
|
selection: Selection_2 | null;
|
|
665
728
|
brandKit: BrandKit | null;
|
|
666
729
|
rowLibrary: RowLibraryStorage | null;
|
|
730
|
+
/**
|
|
731
|
+
* The host's `EditorConfig.blocks`. Only a change signal — the definitions
|
|
732
|
+
* themselves come from the registry, which the editor has already set.
|
|
733
|
+
*/
|
|
734
|
+
blocks?: string[];
|
|
667
735
|
private _blockDefs;
|
|
668
736
|
private _activeTab;
|
|
669
737
|
private _brandTabLoaded;
|
|
670
738
|
private _savedTabLoaded;
|
|
671
739
|
static styles: CSSResult;
|
|
672
740
|
connectedCallback(): void;
|
|
741
|
+
willUpdate(changed: PropertyValues): void;
|
|
673
742
|
updated(changed: PropertyValues): void;
|
|
674
743
|
render(): TemplateResult<1>;
|
|
675
744
|
private _renderContentTab;
|
|
@@ -758,7 +827,12 @@ export declare class PigeonProperties extends LitElement {
|
|
|
758
827
|
* a column selection (`current` omitted) `Column` is the trailing crumb.
|
|
759
828
|
*/
|
|
760
829
|
private _renderBreadcrumb;
|
|
830
|
+
/** A locked row's panels stay readable but inert, with a note saying why. */
|
|
831
|
+
private _lockGuard;
|
|
761
832
|
private _select;
|
|
833
|
+
private _emit;
|
|
834
|
+
/** Hide-on-mobile / hide-on-desktop toggles shared by every block and column. */
|
|
835
|
+
private _renderVisibility;
|
|
762
836
|
private _blockLabel;
|
|
763
837
|
private _renderBlockPanel;
|
|
764
838
|
private _findRow;
|
|
@@ -774,6 +848,8 @@ export declare class PigeonRow extends LitElement {
|
|
|
774
848
|
/** Whether to show this row's action bar / label. The canvas drives this so
|
|
775
849
|
* that only one row shows its bar at a time (see pigeon-canvas). */
|
|
776
850
|
showActions: boolean;
|
|
851
|
+
device: string;
|
|
852
|
+
readonly: boolean;
|
|
777
853
|
private _dragging;
|
|
778
854
|
static styles: CSSResult;
|
|
779
855
|
render(): TemplateResult<1>;
|
|
@@ -796,9 +872,14 @@ export declare class PigeonRowPanel extends LitElement {
|
|
|
796
872
|
private _onLayoutSelect;
|
|
797
873
|
private _onBgColorChange;
|
|
798
874
|
private _onBgImageChange;
|
|
875
|
+
private _onBgRepeatChange;
|
|
876
|
+
private _onBgSizeChange;
|
|
877
|
+
private _onBgPositionChange;
|
|
799
878
|
private _onFullWidthChange;
|
|
879
|
+
private _onNoStackChange;
|
|
800
880
|
private _onPaddingChange;
|
|
801
881
|
private _onConditionChange;
|
|
882
|
+
private _onRepeatChange;
|
|
802
883
|
}
|
|
803
884
|
|
|
804
885
|
export declare class PigeonSliderInput extends LitElement {
|
|
@@ -915,6 +996,8 @@ export declare class PigeonToolbar extends LitElement {
|
|
|
915
996
|
canRedo: boolean;
|
|
916
997
|
device: 'desktop' | 'tablet' | 'mobile';
|
|
917
998
|
fullscreen: boolean;
|
|
999
|
+
/** Hides the actions that change the document (undo, redo, templates). */
|
|
1000
|
+
readonly: boolean;
|
|
918
1001
|
private _exportMenuOpen;
|
|
919
1002
|
connectedCallback(): void;
|
|
920
1003
|
static styles: CSSResult;
|