@skylivellc/lienzo-editor 0.0.0-stage → 0.2.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/LICENSE +21 -0
- package/README.md +61 -2
- package/THIRD_PARTY_NOTICES.md +101 -0
- package/dist/LienzoEditor-tPV_sD5K.js +8988 -0
- package/dist/LienzoEditor-tPV_sD5K.js.map +1 -0
- package/dist/element.js +12 -0
- package/dist/element.js.map +1 -0
- package/dist/index.js +2 -0
- package/dist/standalone/lienzo-editor.js +389 -0
- package/dist/standalone/lienzo-editor.js.map +1 -0
- package/dist/types/LienzoEditor.vue.d.ts +21 -0
- package/dist/types/canvas/Canvas.vue.d.ts +14 -0
- package/dist/types/canvas/ContextMenu.vue.d.ts +18 -0
- package/dist/types/canvas/Overlay.vue.d.ts +38 -0
- package/dist/types/canvas/Preview.vue.d.ts +3 -0
- package/dist/types/canvas/frame.d.ts +52 -0
- package/dist/types/canvas/frameCss.d.ts +6 -0
- package/dist/types/canvas/render.d.ts +37 -0
- package/dist/types/client.d.ts +48 -0
- package/dist/types/dialogs/ConflictDialog.vue.d.ts +3 -0
- package/dist/types/dialogs/MediaLibrary.vue.d.ts +3 -0
- package/dist/types/dialogs/NewPageDialog.vue.d.ts +3 -0
- package/dist/types/dialogs/SiteDialog.vue.d.ts +3 -0
- package/dist/types/dialogs/SubmissionsDialog.vue.d.ts +3 -0
- package/dist/types/dialogs/ThemeDialog.vue.d.ts +3 -0
- package/dist/types/dialogs/VersionsDialog.vue.d.ts +3 -0
- package/dist/types/element.d.ts +21 -0
- package/dist/types/i18n/en.d.ts +535 -0
- package/dist/types/i18n/es.d.ts +2 -0
- package/dist/types/i18n/index.d.ts +18 -0
- package/dist/types/index.d.ts +7 -0
- package/dist/types/model/document.d.ts +46 -0
- package/dist/types/model/elements.d.ts +280 -0
- package/dist/types/model/geometry.d.ts +74 -0
- package/dist/types/model/history.d.ts +17 -0
- package/dist/types/model/icons.d.ts +5 -0
- package/dist/types/model/templates.d.ts +29 -0
- package/dist/types/model/theme.d.ts +40 -0
- package/dist/types/panels/ActionPicker.vue.d.ts +25 -0
- package/dist/types/panels/AlignButtons.vue.d.ts +3 -0
- package/dist/types/panels/DesignPanel.vue.d.ts +3 -0
- package/dist/types/panels/ElementPanel.vue.d.ts +8 -0
- package/dist/types/panels/FieldControl.vue.d.ts +18 -0
- package/dist/types/panels/GradientEditor.vue.d.ts +24 -0
- package/dist/types/panels/ModalPanel.vue.d.ts +8 -0
- package/dist/types/panels/MultiPanel.vue.d.ts +3 -0
- package/dist/types/panels/PagePanel.vue.d.ts +3 -0
- package/dist/types/panels/SectionPanel.vue.d.ts +8 -0
- package/dist/types/panels/actions.d.ts +52 -0
- package/dist/types/panels/content/AppContent.vue.d.ts +9 -0
- package/dist/types/panels/content/ButtonContent.vue.d.ts +7 -0
- package/dist/types/panels/content/FormFieldContent.vue.d.ts +8 -0
- package/dist/types/panels/content/IconContent.vue.d.ts +7 -0
- package/dist/types/panels/content/ImageContent.vue.d.ts +7 -0
- package/dist/types/panels/content/NavbarContent.vue.d.ts +7 -0
- package/dist/types/panels/content/ShapeContent.vue.d.ts +7 -0
- package/dist/types/panels/content/TextContent.vue.d.ts +8 -0
- package/dist/types/panels/content/VideoContent.vue.d.ts +7 -0
- package/dist/types/panels/content/shapes.d.ts +9 -0
- package/dist/types/panels/style/FillStyle.vue.d.ts +7 -0
- package/dist/types/panels/style/FrameStyle.vue.d.ts +7 -0
- package/dist/types/panels/style/MotionStyle.vue.d.ts +7 -0
- package/dist/types/panels/style/PositionSection.vue.d.ts +8 -0
- package/dist/types/panels/style/TextStyle.vue.d.ts +7 -0
- package/dist/types/panels/style/TransformStyle.vue.d.ts +7 -0
- package/dist/types/shell/ElementIcon.vue.d.ts +11 -0
- package/dist/types/shell/LeftSidebar.vue.d.ts +11 -0
- package/dist/types/shell/RightPanel.vue.d.ts +3 -0
- package/dist/types/shell/Toolbar.vue.d.ts +3 -0
- package/dist/types/shell/typeIcons.d.ts +4 -0
- package/dist/types/state/autosave.d.ts +63 -0
- package/dist/types/state/editor.d.ts +1010 -0
- package/dist/types/state/previews.d.ts +26 -0
- package/dist/types/state/shortcuts.d.ts +7 -0
- package/dist/types/styles/index.d.ts +8 -0
- package/dist/types/ui/Button.vue.d.ts +25 -0
- package/dist/types/ui/CatalogIcon.vue.d.ts +12 -0
- package/dist/types/ui/ColorPicker.vue.d.ts +20 -0
- package/dist/types/ui/Dialog.vue.d.ts +33 -0
- package/dist/types/ui/Field.vue.d.ts +24 -0
- package/dist/types/ui/IconButton.vue.d.ts +24 -0
- package/dist/types/ui/ImageField.vue.d.ts +27 -0
- package/dist/types/ui/NumberInput.vue.d.ts +22 -0
- package/dist/types/ui/PanelSection.vue.d.ts +20 -0
- package/dist/types/ui/RangeInput.vue.d.ts +26 -0
- package/dist/types/ui/SelectInput.vue.d.ts +33 -0
- package/dist/types/ui/TextInput.vue.d.ts +32 -0
- package/dist/types/ui/Toasts.vue.d.ts +3 -0
- package/dist/types/ui/Toggle.vue.d.ts +17 -0
- package/package.json +67 -3
|
@@ -0,0 +1,535 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Every string the editor shows, in English (the fallback). Other packs are
|
|
3
|
+
* typed `Messages`, so a missing or misspelled key does not compile.
|
|
4
|
+
* `{name}` placeholders are filled by `t(key, { name })`.
|
|
5
|
+
*/
|
|
6
|
+
export declare const en: {
|
|
7
|
+
'load.loading': string;
|
|
8
|
+
'load.failed': string;
|
|
9
|
+
'load.retry': string;
|
|
10
|
+
'load.invalidDraft': string;
|
|
11
|
+
'load.offline': string;
|
|
12
|
+
'toolbar.pageSelect': string;
|
|
13
|
+
'toolbar.newPage': string;
|
|
14
|
+
'toolbar.newPageHint': string;
|
|
15
|
+
'toolbar.desktop': string;
|
|
16
|
+
'toolbar.mobile': string;
|
|
17
|
+
'toolbar.device': string;
|
|
18
|
+
'toolbar.undo': string;
|
|
19
|
+
'toolbar.redo': string;
|
|
20
|
+
'toolbar.preview': string;
|
|
21
|
+
'toolbar.previewHint': string;
|
|
22
|
+
'toolbar.edit': string;
|
|
23
|
+
'toolbar.editHint': string;
|
|
24
|
+
'toolbar.versions': string;
|
|
25
|
+
'toolbar.versionsHint': string;
|
|
26
|
+
'toolbar.theme': string;
|
|
27
|
+
'toolbar.site': string;
|
|
28
|
+
'toolbar.siteHint': string;
|
|
29
|
+
'toolbar.viewSite': string;
|
|
30
|
+
'toolbar.publish': string;
|
|
31
|
+
'toolbar.publishing': string;
|
|
32
|
+
'status.published': string;
|
|
33
|
+
'status.unpublished': string;
|
|
34
|
+
'save.idle': string;
|
|
35
|
+
'save.pending': string;
|
|
36
|
+
'save.saving': string;
|
|
37
|
+
'save.saved': string;
|
|
38
|
+
'save.offline': string;
|
|
39
|
+
'save.failed': string;
|
|
40
|
+
'save.retry': string;
|
|
41
|
+
'save.invalid': string;
|
|
42
|
+
'save.conflict': string;
|
|
43
|
+
'conflict.title': string;
|
|
44
|
+
'conflict.body': string;
|
|
45
|
+
'conflict.reload': string;
|
|
46
|
+
'common.duplicate': string;
|
|
47
|
+
'common.delete': string;
|
|
48
|
+
'common.cancel': string;
|
|
49
|
+
'common.close': string;
|
|
50
|
+
'common.remove': string;
|
|
51
|
+
'common.choose': string;
|
|
52
|
+
'common.add': string;
|
|
53
|
+
'common.new': string;
|
|
54
|
+
'tabs.elements': string;
|
|
55
|
+
'tabs.layers': string;
|
|
56
|
+
'tabs.modals': string;
|
|
57
|
+
'tabs.media': string;
|
|
58
|
+
'elements.addHint': string;
|
|
59
|
+
'elements.app': string;
|
|
60
|
+
'elements.appHint': string;
|
|
61
|
+
'elements.sections': string;
|
|
62
|
+
'elements.form': string;
|
|
63
|
+
'elements.formHint': string;
|
|
64
|
+
'layers.count': string;
|
|
65
|
+
'layers.modal': string;
|
|
66
|
+
'layers.section': string;
|
|
67
|
+
'layers.expand': string;
|
|
68
|
+
'layers.collapse': string;
|
|
69
|
+
'layers.up': string;
|
|
70
|
+
'layers.down': string;
|
|
71
|
+
'layers.lock': string;
|
|
72
|
+
'layers.unlock': string;
|
|
73
|
+
'layers.empty': string;
|
|
74
|
+
'modals.hint': string;
|
|
75
|
+
'modals.defaultTitle': string;
|
|
76
|
+
'modals.titleLabel': string;
|
|
77
|
+
'modals.delete': string;
|
|
78
|
+
'modals.elements': string;
|
|
79
|
+
'modals.edit': string;
|
|
80
|
+
'modals.empty': string;
|
|
81
|
+
'media.hint': string;
|
|
82
|
+
'media.upload': string;
|
|
83
|
+
'media.empty': string;
|
|
84
|
+
'type.heading': string;
|
|
85
|
+
'type.text': string;
|
|
86
|
+
'type.image': string;
|
|
87
|
+
'type.button': string;
|
|
88
|
+
'type.divider': string;
|
|
89
|
+
'type.video': string;
|
|
90
|
+
'type.shape': string;
|
|
91
|
+
'type.icon': string;
|
|
92
|
+
'type.navbar': string;
|
|
93
|
+
'type.input': string;
|
|
94
|
+
'type.textarea': string;
|
|
95
|
+
'type.select': string;
|
|
96
|
+
'type.checkbox': string;
|
|
97
|
+
'type.unknown': string;
|
|
98
|
+
'menu.copy': string;
|
|
99
|
+
'menu.paste': string;
|
|
100
|
+
'menu.lock': string;
|
|
101
|
+
'menu.unlock': string;
|
|
102
|
+
'zoom.label': string;
|
|
103
|
+
'zoom.in': string;
|
|
104
|
+
'zoom.out': string;
|
|
105
|
+
'zoom.fit': string;
|
|
106
|
+
'zoom.actual': string;
|
|
107
|
+
'canvas.title': string;
|
|
108
|
+
'canvas.editingModal': string;
|
|
109
|
+
'canvas.backToPage': string;
|
|
110
|
+
'canvas.emptyPage': string;
|
|
111
|
+
'canvas.emptyModal': string;
|
|
112
|
+
'canvas.toolbar': string;
|
|
113
|
+
'canvas.front': string;
|
|
114
|
+
'canvas.back': string;
|
|
115
|
+
'canvas.radius': string;
|
|
116
|
+
'canvas.rotate': string;
|
|
117
|
+
'canvas.resize': string;
|
|
118
|
+
'canvas.corners': string;
|
|
119
|
+
'canvas.sticky': string;
|
|
120
|
+
'canvas.emptyImage': string;
|
|
121
|
+
'canvas.emptyVideo': string;
|
|
122
|
+
'canvas.stacked': string;
|
|
123
|
+
'canvas.loadingPreview': string;
|
|
124
|
+
'canvas.previewFailed': string;
|
|
125
|
+
'canvas.invalid': string;
|
|
126
|
+
'canvas.locked': string;
|
|
127
|
+
'panel.design': string;
|
|
128
|
+
'panel.page': string;
|
|
129
|
+
'panel.nothing': string;
|
|
130
|
+
'multi.count': string;
|
|
131
|
+
'multi.align': string;
|
|
132
|
+
'multi.distribute': string;
|
|
133
|
+
'multi.distributeX': string;
|
|
134
|
+
'multi.distributeY': string;
|
|
135
|
+
'multi.distributeHint': string;
|
|
136
|
+
'multi.group': string;
|
|
137
|
+
'multi.ungroup': string;
|
|
138
|
+
'multi.lock': string;
|
|
139
|
+
'multi.menuHint': string;
|
|
140
|
+
'multi.hint': string;
|
|
141
|
+
'align.left': string;
|
|
142
|
+
'align.hcenter': string;
|
|
143
|
+
'align.right': string;
|
|
144
|
+
'align.top': string;
|
|
145
|
+
'align.vmiddle': string;
|
|
146
|
+
'align.bottom': string;
|
|
147
|
+
'modal.heading': string;
|
|
148
|
+
'modal.title': string;
|
|
149
|
+
'modal.showTitle': string;
|
|
150
|
+
'modal.showTitleHint': string;
|
|
151
|
+
'modal.size': string;
|
|
152
|
+
'modal.size.sm': string;
|
|
153
|
+
'modal.size.md': string;
|
|
154
|
+
'modal.size.lg': string;
|
|
155
|
+
'modal.size.xl': string;
|
|
156
|
+
'modal.size.full': string;
|
|
157
|
+
'modal.width': string;
|
|
158
|
+
'modal.fullHint': string;
|
|
159
|
+
'modal.background': string;
|
|
160
|
+
'section.heading': string;
|
|
161
|
+
'section.delete': string;
|
|
162
|
+
'section.shownAs': string;
|
|
163
|
+
'section.alone': string;
|
|
164
|
+
'section.tab': string;
|
|
165
|
+
'section.step': string;
|
|
166
|
+
'section.groupLabel': string;
|
|
167
|
+
'section.groupHint': string;
|
|
168
|
+
'section.stepLabel': string;
|
|
169
|
+
'section.anchor': string;
|
|
170
|
+
'section.anchorHint': string;
|
|
171
|
+
'section.fitHeight': string;
|
|
172
|
+
'section.generateMobile': string;
|
|
173
|
+
'section.heightDesktop': string;
|
|
174
|
+
'section.heightMobile': string;
|
|
175
|
+
'section.background': string;
|
|
176
|
+
'section.color': string;
|
|
177
|
+
'section.image': string;
|
|
178
|
+
'section.chooseImage': string;
|
|
179
|
+
'section.parallax': string;
|
|
180
|
+
'section.overlay': string;
|
|
181
|
+
'fill.color': string;
|
|
182
|
+
'fill.gradient': string;
|
|
183
|
+
'fill.image': string;
|
|
184
|
+
'gradient.from': string;
|
|
185
|
+
'gradient.to': string;
|
|
186
|
+
'gradient.shape': string;
|
|
187
|
+
'gradient.linear': string;
|
|
188
|
+
'gradient.radial': string;
|
|
189
|
+
'gradient.angle': string;
|
|
190
|
+
'gradient.preset.primary': string;
|
|
191
|
+
'gradient.preset.soft': string;
|
|
192
|
+
'gradient.preset.halo': string;
|
|
193
|
+
'gradient.preset.night': string;
|
|
194
|
+
'page.title': string;
|
|
195
|
+
'page.address': string;
|
|
196
|
+
'page.home': string;
|
|
197
|
+
'page.saveAddress': string;
|
|
198
|
+
'page.addressSaved': string;
|
|
199
|
+
'page.delete': string;
|
|
200
|
+
'page.deleteConfirm': string;
|
|
201
|
+
'page.deleted': string;
|
|
202
|
+
'page.templates': string;
|
|
203
|
+
'page.seoTitle': string;
|
|
204
|
+
'page.seoTitleHint': string;
|
|
205
|
+
'page.description': string;
|
|
206
|
+
'page.shortcuts': string;
|
|
207
|
+
'page.shortcutUndo': string;
|
|
208
|
+
'page.shortcutSave': string;
|
|
209
|
+
'page.shortcutCopy': string;
|
|
210
|
+
'page.shortcutNudge': string;
|
|
211
|
+
'newPage.title': string;
|
|
212
|
+
'newPage.description': string;
|
|
213
|
+
'newPage.titleLabel': string;
|
|
214
|
+
'newPage.slug': string;
|
|
215
|
+
'newPage.slugPlaceholder': string;
|
|
216
|
+
'newPage.at': string;
|
|
217
|
+
'newPage.create': string;
|
|
218
|
+
'toolbar.submissions': string;
|
|
219
|
+
'toolbar.submissionsHint': string;
|
|
220
|
+
'submissions.title': string;
|
|
221
|
+
'submissions.description': string;
|
|
222
|
+
'submissions.empty': string;
|
|
223
|
+
'submissions.more': string;
|
|
224
|
+
'submissions.from': string;
|
|
225
|
+
'submissions.failed': string;
|
|
226
|
+
'submissions.checked': string;
|
|
227
|
+
'submissions.unchecked': string;
|
|
228
|
+
'versions.title': string;
|
|
229
|
+
'versions.description': string;
|
|
230
|
+
'versions.by': string;
|
|
231
|
+
'versions.restore': string;
|
|
232
|
+
'versions.restored': string;
|
|
233
|
+
'versions.empty': string;
|
|
234
|
+
'publish.done': string;
|
|
235
|
+
'publish.failed': string;
|
|
236
|
+
'theme.title': string;
|
|
237
|
+
'theme.description': string;
|
|
238
|
+
'theme.palettes': string;
|
|
239
|
+
'theme.colors': string;
|
|
240
|
+
'theme.link': string;
|
|
241
|
+
'theme.linkHint': string;
|
|
242
|
+
'theme.headingFont': string;
|
|
243
|
+
'theme.bodyFont': string;
|
|
244
|
+
'theme.radius': string;
|
|
245
|
+
'theme.maxWidth': string;
|
|
246
|
+
'theme.width.1080': string;
|
|
247
|
+
'theme.width.1200': string;
|
|
248
|
+
'theme.width.1320': string;
|
|
249
|
+
'theme.width.1440': string;
|
|
250
|
+
'theme.previewLabel': string;
|
|
251
|
+
'theme.previewHeading': string;
|
|
252
|
+
'theme.previewText': string;
|
|
253
|
+
'theme.previewButton': string;
|
|
254
|
+
'theme.save': string;
|
|
255
|
+
'theme.saved': string;
|
|
256
|
+
'palette.blue': string;
|
|
257
|
+
'palette.mint': string;
|
|
258
|
+
'palette.sand': string;
|
|
259
|
+
'palette.indigo': string;
|
|
260
|
+
'palette.graphite': string;
|
|
261
|
+
'token.primary': string;
|
|
262
|
+
'token.secondary': string;
|
|
263
|
+
'token.background': string;
|
|
264
|
+
'token.surface': string;
|
|
265
|
+
'token.text': string;
|
|
266
|
+
'token.muted': string;
|
|
267
|
+
'font.Inter': string;
|
|
268
|
+
'font.Poppins': string;
|
|
269
|
+
'font.Montserrat': string;
|
|
270
|
+
'font.DM Sans': string;
|
|
271
|
+
'font.Work Sans': string;
|
|
272
|
+
'font.Nunito': string;
|
|
273
|
+
'font.Lora': string;
|
|
274
|
+
'font.Playfair Display': string;
|
|
275
|
+
'font.Merriweather': string;
|
|
276
|
+
'font.Source Sans 3': string;
|
|
277
|
+
'site.title': string;
|
|
278
|
+
'site.description': string;
|
|
279
|
+
'site.seoTitle': string;
|
|
280
|
+
'site.seoDescription': string;
|
|
281
|
+
'site.shareImage': string;
|
|
282
|
+
'site.shareImageHint': string;
|
|
283
|
+
'site.favicon': string;
|
|
284
|
+
'site.locale': string;
|
|
285
|
+
'site.details': string;
|
|
286
|
+
'site.save': string;
|
|
287
|
+
'site.saved': string;
|
|
288
|
+
'library.title': string;
|
|
289
|
+
'library.description': string;
|
|
290
|
+
'library.upload': string;
|
|
291
|
+
'library.uploading': string;
|
|
292
|
+
'library.formats': string;
|
|
293
|
+
'library.use': string;
|
|
294
|
+
'library.delete': string;
|
|
295
|
+
'library.uploadFailed': string;
|
|
296
|
+
'library.deleteFailed': string;
|
|
297
|
+
'library.quota': string;
|
|
298
|
+
'el.text': string;
|
|
299
|
+
'el.accent': string;
|
|
300
|
+
'el.accentPlaceholder': string;
|
|
301
|
+
'el.accentColor': string;
|
|
302
|
+
'el.level': string;
|
|
303
|
+
'el.level.1': string;
|
|
304
|
+
'el.level.2': string;
|
|
305
|
+
'el.level.3': string;
|
|
306
|
+
'el.level.4': string;
|
|
307
|
+
'el.image': string;
|
|
308
|
+
'el.chooseFromLibrary': string;
|
|
309
|
+
'el.imageUrl': string;
|
|
310
|
+
'el.alt': string;
|
|
311
|
+
'el.altPlaceholder': string;
|
|
312
|
+
'el.fit': string;
|
|
313
|
+
'el.fit.cover': string;
|
|
314
|
+
'el.fit.contain': string;
|
|
315
|
+
'el.crop': string;
|
|
316
|
+
'el.shape': string;
|
|
317
|
+
'el.opacity': string;
|
|
318
|
+
'shape.rectangle': string;
|
|
319
|
+
'shape.ellipse': string;
|
|
320
|
+
'shape.triangle': string;
|
|
321
|
+
'shape.blob': string;
|
|
322
|
+
'shape.arch': string;
|
|
323
|
+
'shape.diagonal': string;
|
|
324
|
+
'shape.dots': string;
|
|
325
|
+
'shape.grid': string;
|
|
326
|
+
'el.videoUrl': string;
|
|
327
|
+
'el.videoHint': string;
|
|
328
|
+
'el.buttonLabel': string;
|
|
329
|
+
'el.action': string;
|
|
330
|
+
'action.none': string;
|
|
331
|
+
'action.whatsapp': string;
|
|
332
|
+
'action.phone': string;
|
|
333
|
+
'action.email': string;
|
|
334
|
+
'action.url': string;
|
|
335
|
+
'action.anchor': string;
|
|
336
|
+
'action.modal': string;
|
|
337
|
+
'action.submit': string;
|
|
338
|
+
'action.page': string;
|
|
339
|
+
'action.top': string;
|
|
340
|
+
'action.back': string;
|
|
341
|
+
'action.step_next': string;
|
|
342
|
+
'action.step_prev': string;
|
|
343
|
+
'action.chooseModal': string;
|
|
344
|
+
'action.choosePage': string;
|
|
345
|
+
'action.placeholder.whatsapp': string;
|
|
346
|
+
'action.placeholder.phone': string;
|
|
347
|
+
'action.placeholder.email': string;
|
|
348
|
+
'action.placeholder.anchor': string;
|
|
349
|
+
'action.placeholder.url': string;
|
|
350
|
+
'action.submitHint': string;
|
|
351
|
+
'el.presets': string;
|
|
352
|
+
'navbar.preset.split': string;
|
|
353
|
+
'navbar.preset.center': string;
|
|
354
|
+
'navbar.preset.dark': string;
|
|
355
|
+
'navbar.preset.pill': string;
|
|
356
|
+
'navbar.preset.card': string;
|
|
357
|
+
'navbar.preset.underline': string;
|
|
358
|
+
'navbar.preset.divided': string;
|
|
359
|
+
'el.navbarTemplate': string;
|
|
360
|
+
'el.navbarTemplate.plain': string;
|
|
361
|
+
'el.navbarTemplate.pill': string;
|
|
362
|
+
'el.navbarTemplate.card': string;
|
|
363
|
+
'el.navbarTemplate.underline': string;
|
|
364
|
+
'el.navbarTemplate.divided': string;
|
|
365
|
+
'el.brand': string;
|
|
366
|
+
'el.brandPlaceholder': string;
|
|
367
|
+
'el.sticky': string;
|
|
368
|
+
'el.scrollStyle': string;
|
|
369
|
+
'el.scroll.same': string;
|
|
370
|
+
'el.scroll.shadow': string;
|
|
371
|
+
'el.scroll.solid': string;
|
|
372
|
+
'el.scroll.compact': string;
|
|
373
|
+
'el.notSticky': string;
|
|
374
|
+
'el.layout': string;
|
|
375
|
+
'el.layout.split': string;
|
|
376
|
+
'el.layout.left': string;
|
|
377
|
+
'el.layout.center': string;
|
|
378
|
+
'el.links': string;
|
|
379
|
+
'el.linkLabel': string;
|
|
380
|
+
'el.removeLink': string;
|
|
381
|
+
'el.linksHint': string;
|
|
382
|
+
'el.icon': string;
|
|
383
|
+
'el.iconSearch': string;
|
|
384
|
+
'el.noResults': string;
|
|
385
|
+
'el.stroke': string;
|
|
386
|
+
'el.fieldLabel': string;
|
|
387
|
+
'el.inputType': string;
|
|
388
|
+
'el.inputType.text': string;
|
|
389
|
+
'el.inputType.email': string;
|
|
390
|
+
'el.inputType.tel': string;
|
|
391
|
+
'el.inputType.number': string;
|
|
392
|
+
'el.inputType.date': string;
|
|
393
|
+
'el.options': string;
|
|
394
|
+
'el.optionsHint': string;
|
|
395
|
+
'el.placeholder': string;
|
|
396
|
+
'el.multiple': string;
|
|
397
|
+
'el.required': string;
|
|
398
|
+
'el.unknown': string;
|
|
399
|
+
'style.fill': string;
|
|
400
|
+
'style.color': string;
|
|
401
|
+
'style.background': string;
|
|
402
|
+
'style.backgroundType': string;
|
|
403
|
+
'style.backgroundColor': string;
|
|
404
|
+
'style.transparency': string;
|
|
405
|
+
'style.glass': string;
|
|
406
|
+
'style.glassHint': string;
|
|
407
|
+
'style.text': string;
|
|
408
|
+
'style.fontHeading': string;
|
|
409
|
+
'style.fontBody': string;
|
|
410
|
+
'style.size': string;
|
|
411
|
+
'style.weight': string;
|
|
412
|
+
'style.weight.300': string;
|
|
413
|
+
'style.weight.400': string;
|
|
414
|
+
'style.weight.500': string;
|
|
415
|
+
'style.weight.600': string;
|
|
416
|
+
'style.weight.700': string;
|
|
417
|
+
'style.weight.800': string;
|
|
418
|
+
'style.align.left': string;
|
|
419
|
+
'style.align.center': string;
|
|
420
|
+
'style.align.right': string;
|
|
421
|
+
'style.lineHeight': string;
|
|
422
|
+
'style.frame': string;
|
|
423
|
+
'style.radius': string;
|
|
424
|
+
'style.padding': string;
|
|
425
|
+
'style.border': string;
|
|
426
|
+
'style.layer': string;
|
|
427
|
+
'style.borderColor': string;
|
|
428
|
+
'style.shadow': string;
|
|
429
|
+
'style.shadow.none': string;
|
|
430
|
+
'style.shadow.sm': string;
|
|
431
|
+
'style.shadow.md': string;
|
|
432
|
+
'style.shadow.lg': string;
|
|
433
|
+
'style.shadow.custom': string;
|
|
434
|
+
'style.customShadow': string;
|
|
435
|
+
'style.shadowBlur': string;
|
|
436
|
+
'style.shadowSpread': string;
|
|
437
|
+
'style.shadowColor': string;
|
|
438
|
+
'style.shadowOpacity': string;
|
|
439
|
+
'style.transform': string;
|
|
440
|
+
'style.rotate': string;
|
|
441
|
+
'style.straighten': string;
|
|
442
|
+
'style.flipX': string;
|
|
443
|
+
'style.flipY': string;
|
|
444
|
+
'style.overflow': string;
|
|
445
|
+
'style.overflow.visible': string;
|
|
446
|
+
'style.overflow.hidden': string;
|
|
447
|
+
'style.overflow.scroll-x': string;
|
|
448
|
+
'style.overflow.scroll-y': string;
|
|
449
|
+
'style.visibleOn': string;
|
|
450
|
+
'style.visible.all': string;
|
|
451
|
+
'style.visible.desktop': string;
|
|
452
|
+
'style.visible.mobile': string;
|
|
453
|
+
'style.transformHint': string;
|
|
454
|
+
'style.motion': string;
|
|
455
|
+
'style.entrance': string;
|
|
456
|
+
'style.anim.none': string;
|
|
457
|
+
'style.anim.fade': string;
|
|
458
|
+
'style.anim.up': string;
|
|
459
|
+
'style.anim.down': string;
|
|
460
|
+
'style.anim.left': string;
|
|
461
|
+
'style.anim.right': string;
|
|
462
|
+
'style.anim.zoom': string;
|
|
463
|
+
'style.delay': string;
|
|
464
|
+
'style.duration': string;
|
|
465
|
+
'style.hover': string;
|
|
466
|
+
'style.hover.none': string;
|
|
467
|
+
'style.hover.lift': string;
|
|
468
|
+
'style.hover.grow': string;
|
|
469
|
+
'style.hover.fade': string;
|
|
470
|
+
'style.motionHint': string;
|
|
471
|
+
'position.title': string;
|
|
472
|
+
'position.desktop': string;
|
|
473
|
+
'position.mobile': string;
|
|
474
|
+
'position.width': string;
|
|
475
|
+
'position.height': string;
|
|
476
|
+
'position.pinned': string;
|
|
477
|
+
'position.pinnedHint': string;
|
|
478
|
+
'position.own': string;
|
|
479
|
+
'position.inherit': string;
|
|
480
|
+
'position.inherited': string;
|
|
481
|
+
'color.custom': string;
|
|
482
|
+
'color.customLabel': string;
|
|
483
|
+
'toast.copied': string;
|
|
484
|
+
'toast.copiedMany': string;
|
|
485
|
+
'toast.copyFailed': string;
|
|
486
|
+
'toast.pasted': string;
|
|
487
|
+
'toast.mobileGenerated': string;
|
|
488
|
+
'toast.pageCreated': string;
|
|
489
|
+
'toast.failed': string;
|
|
490
|
+
'toast.dismiss': string;
|
|
491
|
+
'default.heading': string;
|
|
492
|
+
'default.text': string;
|
|
493
|
+
'default.button': string;
|
|
494
|
+
'default.video': string;
|
|
495
|
+
'default.field': string;
|
|
496
|
+
'default.fieldPlaceholder': string;
|
|
497
|
+
'default.checkbox': string;
|
|
498
|
+
'default.option': string;
|
|
499
|
+
'default.brand': string;
|
|
500
|
+
'default.link': string;
|
|
501
|
+
'default.link.home': string;
|
|
502
|
+
'default.link.features': string;
|
|
503
|
+
'default.link.about': string;
|
|
504
|
+
'default.link.contact': string;
|
|
505
|
+
'default.link.start': string;
|
|
506
|
+
'template.hero': string;
|
|
507
|
+
'template.features': string;
|
|
508
|
+
'template.about': string;
|
|
509
|
+
'template.cta': string;
|
|
510
|
+
'template.contact': string;
|
|
511
|
+
'template.footer': string;
|
|
512
|
+
'pageTemplate.full': string;
|
|
513
|
+
'pageTemplate.full.note': string;
|
|
514
|
+
'pageTemplate.simple': string;
|
|
515
|
+
'pageTemplate.simple.note': string;
|
|
516
|
+
'pageTemplate.landing': string;
|
|
517
|
+
'pageTemplate.landing.note': string;
|
|
518
|
+
'position.x': string;
|
|
519
|
+
'position.y': string;
|
|
520
|
+
'style.font': string;
|
|
521
|
+
'style.align': string;
|
|
522
|
+
'gradient.presets': string;
|
|
523
|
+
'action.target': string;
|
|
524
|
+
'action.unknown': string;
|
|
525
|
+
'el.linkN': string;
|
|
526
|
+
'el.videoPlaceholder': string;
|
|
527
|
+
'el.iconOptions': string;
|
|
528
|
+
'page.homeHint': string;
|
|
529
|
+
'section.anchorInvalid': string;
|
|
530
|
+
'newPage.slugFallback': string;
|
|
531
|
+
'theme.hex': string;
|
|
532
|
+
'site.localeHint': string;
|
|
533
|
+
};
|
|
534
|
+
export type MessageKey = keyof typeof en;
|
|
535
|
+
export type Messages = Record<MessageKey, string>;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { Localized } from '@skylivellc/lienzo-core';
|
|
2
|
+
import { en, type MessageKey, type Messages } from './en.ts';
|
|
3
|
+
import { es } from './es.ts';
|
|
4
|
+
export { en, es };
|
|
5
|
+
export type { MessageKey, Messages };
|
|
6
|
+
/** Packs shipped with the editor. Apps add or override locales through the `messages` prop. */
|
|
7
|
+
export declare const packs: Readonly<Record<string, Messages>>;
|
|
8
|
+
/** Extra or overriding strings, by locale. A partial pack falls back to English per key. */
|
|
9
|
+
export type MessageOverrides = Readonly<Record<string, Partial<Messages>>>;
|
|
10
|
+
export type Translator = {
|
|
11
|
+
locale: string;
|
|
12
|
+
t(key: MessageKey, params?: Readonly<Record<string, string | number>>): string;
|
|
13
|
+
/** Text the app declared in its catalog, in the editor's locale. */
|
|
14
|
+
localized(text: Localized): string;
|
|
15
|
+
};
|
|
16
|
+
/** `es-MX` reads `es-MX`, then `es`, then English, for each key. */
|
|
17
|
+
export declare function createTranslator(locale: string, overrides?: MessageOverrides): Translator;
|
|
18
|
+
export declare function format(template: string, params?: Readonly<Record<string, string | number>>): string;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `@skylivellc/lienzo-editor`: the Lienzo visual editor as a Vue 3 component.
|
|
3
|
+
* For any other stack, `@skylivellc/lienzo-editor/element` registers the
|
|
4
|
+
* `<lienzo-editor>` custom element.
|
|
5
|
+
*/
|
|
6
|
+
export { default as LienzoEditor } from './LienzoEditor.vue';
|
|
7
|
+
export { en, es, type MessageKey, type MessageOverrides, type Messages } from './i18n/index.ts';
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import type { Box, CoreElementType, Document, Element, Modal, Section } from '@skylivellc/lienzo-core';
|
|
2
|
+
/** Lienzo designs every page twice: on a desktop frame and on a phone frame. */
|
|
3
|
+
export type Device = 'desktop' | 'mobile';
|
|
4
|
+
/** Reference width of each frame, in design pixels. Desktop follows the theme's max width. */
|
|
5
|
+
export declare const MOBILE_WIDTH = 390;
|
|
6
|
+
/** A section or a modal: both are free-layout canvases of elements. */
|
|
7
|
+
export type Canvas = Section | Modal;
|
|
8
|
+
export declare const CORE_TYPES: readonly ["heading", "text", "image", "button", "divider", "video", "shape", "icon", "navbar", "input", "textarea", "select", "checkbox"];
|
|
9
|
+
export declare const isCoreType: (type: string) => type is CoreElementType;
|
|
10
|
+
export declare const isModal: (canvas: Canvas) => canvas is Modal;
|
|
11
|
+
export declare function canvasesOf(document: Document): Canvas[];
|
|
12
|
+
export declare function findCanvas(document: Document, id: string): Canvas | undefined;
|
|
13
|
+
/** The box edited on this device. A phone without its own box shows the desktop one. */
|
|
14
|
+
export declare function boxOf(element: Element, device: Device): Box;
|
|
15
|
+
export declare function writeBox(element: Element, device: Device, box: Box): void;
|
|
16
|
+
export declare function canvasHeight(canvas: Canvas, device: Device): number;
|
|
17
|
+
/**
|
|
18
|
+
* On a phone a canvas keeps free positions only when every element has its
|
|
19
|
+
* own mobile box; otherwise core stacks its elements in reading order.
|
|
20
|
+
*/
|
|
21
|
+
export declare const stacksOnMobile: (canvas: Canvas) => boolean;
|
|
22
|
+
/** Ids are prefixed by kind so stored documents stay readable. */
|
|
23
|
+
export declare function newId(prefix: string): string;
|
|
24
|
+
/** A fresh copy of an element with a new id, nudged down so it does not hide the original. */
|
|
25
|
+
export declare function copyElement(element: Element, offset?: number): Element;
|
|
26
|
+
/** A deep copy as plain data, also out of a reactive proxy. Documents are JSON by definition. */
|
|
27
|
+
export declare function plain<T>(value: T): T;
|
|
28
|
+
export declare function emptySection(): Section;
|
|
29
|
+
/** Modal sizes with a fixed width. At full screen the design is made on 1200. */
|
|
30
|
+
export declare const MODAL_SIZES: readonly [{
|
|
31
|
+
readonly key: "sm";
|
|
32
|
+
readonly width: 420;
|
|
33
|
+
}, {
|
|
34
|
+
readonly key: "md";
|
|
35
|
+
readonly width: 560;
|
|
36
|
+
}, {
|
|
37
|
+
readonly key: "lg";
|
|
38
|
+
readonly width: 760;
|
|
39
|
+
}, {
|
|
40
|
+
readonly key: "xl";
|
|
41
|
+
readonly width: 960;
|
|
42
|
+
}, {
|
|
43
|
+
readonly key: "full";
|
|
44
|
+
readonly width: 1200;
|
|
45
|
+
}];
|
|
46
|
+
export declare function emptyModal(title: string): Modal;
|