@skylivellc/lienzo-editor 0.0.0-stage → 0.1.1

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.
Files changed (89) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +61 -2
  3. package/THIRD_PARTY_NOTICES.md +101 -0
  4. package/dist/LienzoEditor-CQyoS5M0.js +8503 -0
  5. package/dist/LienzoEditor-CQyoS5M0.js.map +1 -0
  6. package/dist/element.js +12 -0
  7. package/dist/element.js.map +1 -0
  8. package/dist/index.js +2 -0
  9. package/dist/standalone/lienzo-editor.js +377 -0
  10. package/dist/standalone/lienzo-editor.js.map +1 -0
  11. package/dist/types/LienzoEditor.vue.d.ts +21 -0
  12. package/dist/types/canvas/Canvas.vue.d.ts +14 -0
  13. package/dist/types/canvas/Overlay.vue.d.ts +38 -0
  14. package/dist/types/canvas/Preview.vue.d.ts +3 -0
  15. package/dist/types/canvas/frame.d.ts +52 -0
  16. package/dist/types/canvas/frameCss.d.ts +6 -0
  17. package/dist/types/canvas/render.d.ts +37 -0
  18. package/dist/types/client.d.ts +48 -0
  19. package/dist/types/dialogs/ConflictDialog.vue.d.ts +3 -0
  20. package/dist/types/dialogs/MediaLibrary.vue.d.ts +3 -0
  21. package/dist/types/dialogs/NewPageDialog.vue.d.ts +3 -0
  22. package/dist/types/dialogs/SiteDialog.vue.d.ts +3 -0
  23. package/dist/types/dialogs/SubmissionsDialog.vue.d.ts +3 -0
  24. package/dist/types/dialogs/ThemeDialog.vue.d.ts +3 -0
  25. package/dist/types/dialogs/VersionsDialog.vue.d.ts +3 -0
  26. package/dist/types/element.d.ts +21 -0
  27. package/dist/types/i18n/en.d.ts +512 -0
  28. package/dist/types/i18n/es.d.ts +2 -0
  29. package/dist/types/i18n/index.d.ts +18 -0
  30. package/dist/types/index.d.ts +7 -0
  31. package/dist/types/model/document.d.ts +46 -0
  32. package/dist/types/model/elements.d.ts +280 -0
  33. package/dist/types/model/geometry.d.ts +74 -0
  34. package/dist/types/model/history.d.ts +17 -0
  35. package/dist/types/model/icons.d.ts +5 -0
  36. package/dist/types/model/templates.d.ts +29 -0
  37. package/dist/types/model/theme.d.ts +40 -0
  38. package/dist/types/panels/ActionPicker.vue.d.ts +25 -0
  39. package/dist/types/panels/AlignButtons.vue.d.ts +3 -0
  40. package/dist/types/panels/DesignPanel.vue.d.ts +3 -0
  41. package/dist/types/panels/ElementPanel.vue.d.ts +8 -0
  42. package/dist/types/panels/FieldControl.vue.d.ts +18 -0
  43. package/dist/types/panels/GradientEditor.vue.d.ts +24 -0
  44. package/dist/types/panels/ModalPanel.vue.d.ts +8 -0
  45. package/dist/types/panels/MultiPanel.vue.d.ts +3 -0
  46. package/dist/types/panels/PagePanel.vue.d.ts +3 -0
  47. package/dist/types/panels/SectionPanel.vue.d.ts +8 -0
  48. package/dist/types/panels/actions.d.ts +52 -0
  49. package/dist/types/panels/content/AppContent.vue.d.ts +9 -0
  50. package/dist/types/panels/content/ButtonContent.vue.d.ts +7 -0
  51. package/dist/types/panels/content/FormFieldContent.vue.d.ts +8 -0
  52. package/dist/types/panels/content/IconContent.vue.d.ts +7 -0
  53. package/dist/types/panels/content/ImageContent.vue.d.ts +7 -0
  54. package/dist/types/panels/content/NavbarContent.vue.d.ts +7 -0
  55. package/dist/types/panels/content/ShapeContent.vue.d.ts +7 -0
  56. package/dist/types/panels/content/TextContent.vue.d.ts +8 -0
  57. package/dist/types/panels/content/VideoContent.vue.d.ts +7 -0
  58. package/dist/types/panels/content/shapes.d.ts +9 -0
  59. package/dist/types/panels/style/FillStyle.vue.d.ts +7 -0
  60. package/dist/types/panels/style/FrameStyle.vue.d.ts +7 -0
  61. package/dist/types/panels/style/MotionStyle.vue.d.ts +7 -0
  62. package/dist/types/panels/style/PositionSection.vue.d.ts +8 -0
  63. package/dist/types/panels/style/TextStyle.vue.d.ts +7 -0
  64. package/dist/types/panels/style/TransformStyle.vue.d.ts +7 -0
  65. package/dist/types/shell/ElementIcon.vue.d.ts +11 -0
  66. package/dist/types/shell/LeftSidebar.vue.d.ts +11 -0
  67. package/dist/types/shell/RightPanel.vue.d.ts +3 -0
  68. package/dist/types/shell/Toolbar.vue.d.ts +3 -0
  69. package/dist/types/shell/typeIcons.d.ts +4 -0
  70. package/dist/types/state/autosave.d.ts +63 -0
  71. package/dist/types/state/editor.d.ts +993 -0
  72. package/dist/types/state/previews.d.ts +26 -0
  73. package/dist/types/state/shortcuts.d.ts +7 -0
  74. package/dist/types/styles/index.d.ts +8 -0
  75. package/dist/types/ui/Button.vue.d.ts +25 -0
  76. package/dist/types/ui/CatalogIcon.vue.d.ts +12 -0
  77. package/dist/types/ui/ColorPicker.vue.d.ts +20 -0
  78. package/dist/types/ui/Dialog.vue.d.ts +33 -0
  79. package/dist/types/ui/Field.vue.d.ts +24 -0
  80. package/dist/types/ui/IconButton.vue.d.ts +24 -0
  81. package/dist/types/ui/ImageField.vue.d.ts +27 -0
  82. package/dist/types/ui/NumberInput.vue.d.ts +22 -0
  83. package/dist/types/ui/PanelSection.vue.d.ts +20 -0
  84. package/dist/types/ui/RangeInput.vue.d.ts +26 -0
  85. package/dist/types/ui/SelectInput.vue.d.ts +33 -0
  86. package/dist/types/ui/TextInput.vue.d.ts +32 -0
  87. package/dist/types/ui/Toasts.vue.d.ts +3 -0
  88. package/dist/types/ui/Toggle.vue.d.ts +17 -0
  89. package/package.json +67 -3
@@ -0,0 +1,512 @@
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
+ 'canvas.title': string;
99
+ 'canvas.editingModal': string;
100
+ 'canvas.backToPage': string;
101
+ 'canvas.emptyPage': string;
102
+ 'canvas.emptyModal': string;
103
+ 'canvas.toolbar': string;
104
+ 'canvas.front': string;
105
+ 'canvas.back': string;
106
+ 'canvas.radius': string;
107
+ 'canvas.rotate': string;
108
+ 'canvas.resize': string;
109
+ 'canvas.corners': string;
110
+ 'canvas.sticky': string;
111
+ 'canvas.emptyImage': string;
112
+ 'canvas.emptyVideo': string;
113
+ 'canvas.stacked': string;
114
+ 'canvas.loadingPreview': string;
115
+ 'canvas.previewFailed': string;
116
+ 'canvas.invalid': string;
117
+ 'canvas.locked': string;
118
+ 'panel.design': string;
119
+ 'panel.page': string;
120
+ 'panel.nothing': string;
121
+ 'multi.count': string;
122
+ 'multi.align': string;
123
+ 'multi.distribute': string;
124
+ 'multi.distributeX': string;
125
+ 'multi.distributeY': string;
126
+ 'multi.distributeHint': string;
127
+ 'multi.group': string;
128
+ 'multi.ungroup': string;
129
+ 'multi.lock': string;
130
+ 'multi.hint': string;
131
+ 'align.left': string;
132
+ 'align.hcenter': string;
133
+ 'align.right': string;
134
+ 'align.top': string;
135
+ 'align.vmiddle': string;
136
+ 'align.bottom': string;
137
+ 'modal.heading': string;
138
+ 'modal.title': string;
139
+ 'modal.showTitle': string;
140
+ 'modal.showTitleHint': string;
141
+ 'modal.size': string;
142
+ 'modal.size.sm': string;
143
+ 'modal.size.md': string;
144
+ 'modal.size.lg': string;
145
+ 'modal.size.xl': string;
146
+ 'modal.size.full': string;
147
+ 'modal.width': string;
148
+ 'modal.fullHint': string;
149
+ 'modal.background': string;
150
+ 'section.heading': string;
151
+ 'section.delete': string;
152
+ 'section.shownAs': string;
153
+ 'section.alone': string;
154
+ 'section.tab': string;
155
+ 'section.step': string;
156
+ 'section.groupLabel': string;
157
+ 'section.groupHint': string;
158
+ 'section.stepLabel': string;
159
+ 'section.anchor': string;
160
+ 'section.anchorHint': string;
161
+ 'section.fitHeight': string;
162
+ 'section.generateMobile': string;
163
+ 'section.heightDesktop': string;
164
+ 'section.heightMobile': string;
165
+ 'section.background': string;
166
+ 'section.color': string;
167
+ 'section.image': string;
168
+ 'section.chooseImage': string;
169
+ 'section.parallax': string;
170
+ 'section.overlay': string;
171
+ 'fill.color': string;
172
+ 'fill.gradient': string;
173
+ 'fill.image': string;
174
+ 'gradient.from': string;
175
+ 'gradient.to': string;
176
+ 'gradient.shape': string;
177
+ 'gradient.linear': string;
178
+ 'gradient.radial': string;
179
+ 'gradient.angle': string;
180
+ 'gradient.preset.primary': string;
181
+ 'gradient.preset.soft': string;
182
+ 'gradient.preset.halo': string;
183
+ 'gradient.preset.night': string;
184
+ 'page.title': string;
185
+ 'page.address': string;
186
+ 'page.home': string;
187
+ 'page.saveAddress': string;
188
+ 'page.addressSaved': string;
189
+ 'page.delete': string;
190
+ 'page.deleteConfirm': string;
191
+ 'page.deleted': string;
192
+ 'page.templates': string;
193
+ 'page.seoTitle': string;
194
+ 'page.seoTitleHint': string;
195
+ 'page.description': string;
196
+ 'page.shortcuts': string;
197
+ 'page.shortcutUndo': string;
198
+ 'page.shortcutSave': string;
199
+ 'page.shortcutCopy': string;
200
+ 'page.shortcutNudge': string;
201
+ 'newPage.title': string;
202
+ 'newPage.description': string;
203
+ 'newPage.titleLabel': string;
204
+ 'newPage.slug': string;
205
+ 'newPage.slugPlaceholder': string;
206
+ 'newPage.at': string;
207
+ 'newPage.create': string;
208
+ 'toolbar.submissions': string;
209
+ 'toolbar.submissionsHint': string;
210
+ 'submissions.title': string;
211
+ 'submissions.description': string;
212
+ 'submissions.empty': string;
213
+ 'submissions.more': string;
214
+ 'submissions.from': string;
215
+ 'submissions.failed': string;
216
+ 'submissions.checked': string;
217
+ 'submissions.unchecked': string;
218
+ 'versions.title': string;
219
+ 'versions.description': string;
220
+ 'versions.by': string;
221
+ 'versions.restore': string;
222
+ 'versions.restored': string;
223
+ 'versions.empty': string;
224
+ 'publish.done': string;
225
+ 'publish.failed': string;
226
+ 'theme.title': string;
227
+ 'theme.description': string;
228
+ 'theme.palettes': string;
229
+ 'theme.colors': string;
230
+ 'theme.link': string;
231
+ 'theme.linkHint': string;
232
+ 'theme.headingFont': string;
233
+ 'theme.bodyFont': string;
234
+ 'theme.radius': string;
235
+ 'theme.maxWidth': string;
236
+ 'theme.width.1080': string;
237
+ 'theme.width.1200': string;
238
+ 'theme.width.1320': string;
239
+ 'theme.width.1440': string;
240
+ 'theme.previewLabel': string;
241
+ 'theme.previewHeading': string;
242
+ 'theme.previewText': string;
243
+ 'theme.previewButton': string;
244
+ 'theme.save': string;
245
+ 'theme.saved': string;
246
+ 'palette.blue': string;
247
+ 'palette.mint': string;
248
+ 'palette.sand': string;
249
+ 'palette.indigo': string;
250
+ 'palette.graphite': string;
251
+ 'token.primary': string;
252
+ 'token.secondary': string;
253
+ 'token.background': string;
254
+ 'token.surface': string;
255
+ 'token.text': string;
256
+ 'token.muted': string;
257
+ 'font.Inter': string;
258
+ 'font.Poppins': string;
259
+ 'font.Montserrat': string;
260
+ 'font.DM Sans': string;
261
+ 'font.Work Sans': string;
262
+ 'font.Nunito': string;
263
+ 'font.Lora': string;
264
+ 'font.Playfair Display': string;
265
+ 'font.Merriweather': string;
266
+ 'font.Source Sans 3': string;
267
+ 'site.title': string;
268
+ 'site.description': string;
269
+ 'site.seoTitle': string;
270
+ 'site.seoDescription': string;
271
+ 'site.shareImage': string;
272
+ 'site.shareImageHint': string;
273
+ 'site.favicon': string;
274
+ 'site.locale': string;
275
+ 'site.details': string;
276
+ 'site.save': string;
277
+ 'site.saved': string;
278
+ 'library.title': string;
279
+ 'library.description': string;
280
+ 'library.upload': string;
281
+ 'library.uploading': string;
282
+ 'library.formats': string;
283
+ 'library.use': string;
284
+ 'library.delete': string;
285
+ 'library.uploadFailed': string;
286
+ 'library.deleteFailed': string;
287
+ 'library.quota': string;
288
+ 'el.text': string;
289
+ 'el.accent': string;
290
+ 'el.accentPlaceholder': string;
291
+ 'el.accentColor': string;
292
+ 'el.level': string;
293
+ 'el.level.1': string;
294
+ 'el.level.2': string;
295
+ 'el.level.3': string;
296
+ 'el.level.4': string;
297
+ 'el.image': string;
298
+ 'el.chooseFromLibrary': string;
299
+ 'el.imageUrl': string;
300
+ 'el.alt': string;
301
+ 'el.altPlaceholder': string;
302
+ 'el.fit': string;
303
+ 'el.fit.cover': string;
304
+ 'el.fit.contain': string;
305
+ 'el.crop': string;
306
+ 'el.shape': string;
307
+ 'el.opacity': string;
308
+ 'shape.rectangle': string;
309
+ 'shape.ellipse': string;
310
+ 'shape.triangle': string;
311
+ 'shape.blob': string;
312
+ 'shape.arch': string;
313
+ 'shape.diagonal': string;
314
+ 'shape.dots': string;
315
+ 'shape.grid': string;
316
+ 'el.videoUrl': string;
317
+ 'el.videoHint': string;
318
+ 'el.buttonLabel': string;
319
+ 'el.action': string;
320
+ 'action.none': string;
321
+ 'action.whatsapp': string;
322
+ 'action.phone': string;
323
+ 'action.email': string;
324
+ 'action.url': string;
325
+ 'action.anchor': string;
326
+ 'action.modal': string;
327
+ 'action.submit': string;
328
+ 'action.page': string;
329
+ 'action.top': string;
330
+ 'action.back': string;
331
+ 'action.step_next': string;
332
+ 'action.step_prev': string;
333
+ 'action.chooseModal': string;
334
+ 'action.choosePage': string;
335
+ 'action.placeholder.whatsapp': string;
336
+ 'action.placeholder.phone': string;
337
+ 'action.placeholder.email': string;
338
+ 'action.placeholder.anchor': string;
339
+ 'action.placeholder.url': string;
340
+ 'action.submitHint': string;
341
+ 'el.presets': string;
342
+ 'navbar.preset.split': string;
343
+ 'navbar.preset.center': string;
344
+ 'navbar.preset.dark': string;
345
+ 'el.brand': string;
346
+ 'el.brandPlaceholder': string;
347
+ 'el.sticky': string;
348
+ 'el.scrollStyle': string;
349
+ 'el.scroll.same': string;
350
+ 'el.scroll.shadow': string;
351
+ 'el.scroll.solid': string;
352
+ 'el.scroll.compact': string;
353
+ 'el.notSticky': string;
354
+ 'el.layout': string;
355
+ 'el.layout.split': string;
356
+ 'el.layout.left': string;
357
+ 'el.layout.center': string;
358
+ 'el.links': string;
359
+ 'el.linkLabel': string;
360
+ 'el.removeLink': string;
361
+ 'el.linksHint': string;
362
+ 'el.icon': string;
363
+ 'el.iconSearch': string;
364
+ 'el.noResults': string;
365
+ 'el.stroke': string;
366
+ 'el.fieldLabel': string;
367
+ 'el.inputType': string;
368
+ 'el.inputType.text': string;
369
+ 'el.inputType.email': string;
370
+ 'el.inputType.tel': string;
371
+ 'el.inputType.number': string;
372
+ 'el.inputType.date': string;
373
+ 'el.options': string;
374
+ 'el.optionsHint': string;
375
+ 'el.placeholder': string;
376
+ 'el.required': string;
377
+ 'el.unknown': string;
378
+ 'style.fill': string;
379
+ 'style.color': string;
380
+ 'style.background': string;
381
+ 'style.backgroundType': string;
382
+ 'style.backgroundColor': string;
383
+ 'style.transparency': string;
384
+ 'style.glass': string;
385
+ 'style.glassHint': string;
386
+ 'style.text': string;
387
+ 'style.fontHeading': string;
388
+ 'style.fontBody': string;
389
+ 'style.size': string;
390
+ 'style.weight': string;
391
+ 'style.weight.300': string;
392
+ 'style.weight.400': string;
393
+ 'style.weight.500': string;
394
+ 'style.weight.600': string;
395
+ 'style.weight.700': string;
396
+ 'style.weight.800': string;
397
+ 'style.align.left': string;
398
+ 'style.align.center': string;
399
+ 'style.align.right': string;
400
+ 'style.lineHeight': string;
401
+ 'style.frame': string;
402
+ 'style.radius': string;
403
+ 'style.padding': string;
404
+ 'style.border': string;
405
+ 'style.layer': string;
406
+ 'style.borderColor': string;
407
+ 'style.shadow': string;
408
+ 'style.shadow.none': string;
409
+ 'style.shadow.sm': string;
410
+ 'style.shadow.md': string;
411
+ 'style.shadow.lg': string;
412
+ 'style.shadow.custom': string;
413
+ 'style.customShadow': string;
414
+ 'style.shadowBlur': string;
415
+ 'style.shadowSpread': string;
416
+ 'style.shadowColor': string;
417
+ 'style.shadowOpacity': string;
418
+ 'style.transform': string;
419
+ 'style.rotate': string;
420
+ 'style.straighten': string;
421
+ 'style.flipX': string;
422
+ 'style.flipY': string;
423
+ 'style.overflow': string;
424
+ 'style.overflow.visible': string;
425
+ 'style.overflow.hidden': string;
426
+ 'style.overflow.scroll-x': string;
427
+ 'style.overflow.scroll-y': string;
428
+ 'style.visibleOn': string;
429
+ 'style.visible.all': string;
430
+ 'style.visible.desktop': string;
431
+ 'style.visible.mobile': string;
432
+ 'style.transformHint': string;
433
+ 'style.motion': string;
434
+ 'style.entrance': string;
435
+ 'style.anim.none': string;
436
+ 'style.anim.fade': string;
437
+ 'style.anim.up': string;
438
+ 'style.anim.down': string;
439
+ 'style.anim.left': string;
440
+ 'style.anim.right': string;
441
+ 'style.anim.zoom': string;
442
+ 'style.delay': string;
443
+ 'style.duration': string;
444
+ 'style.hover': string;
445
+ 'style.hover.none': string;
446
+ 'style.hover.lift': string;
447
+ 'style.hover.grow': string;
448
+ 'style.hover.fade': string;
449
+ 'style.motionHint': string;
450
+ 'position.title': string;
451
+ 'position.desktop': string;
452
+ 'position.mobile': string;
453
+ 'position.width': string;
454
+ 'position.height': string;
455
+ 'position.own': string;
456
+ 'position.inherit': string;
457
+ 'position.inherited': string;
458
+ 'color.custom': string;
459
+ 'color.customLabel': string;
460
+ 'toast.copied': string;
461
+ 'toast.copiedMany': string;
462
+ 'toast.copyFailed': string;
463
+ 'toast.pasted': string;
464
+ 'toast.mobileGenerated': string;
465
+ 'toast.pageCreated': string;
466
+ 'toast.failed': string;
467
+ 'toast.dismiss': string;
468
+ 'default.heading': string;
469
+ 'default.text': string;
470
+ 'default.button': string;
471
+ 'default.video': string;
472
+ 'default.field': string;
473
+ 'default.fieldPlaceholder': string;
474
+ 'default.checkbox': string;
475
+ 'default.option': string;
476
+ 'default.brand': string;
477
+ 'default.link': string;
478
+ 'default.link.home': string;
479
+ 'default.link.features': string;
480
+ 'default.link.about': string;
481
+ 'default.link.contact': string;
482
+ 'default.link.start': string;
483
+ 'template.hero': string;
484
+ 'template.features': string;
485
+ 'template.about': string;
486
+ 'template.cta': string;
487
+ 'template.contact': string;
488
+ 'template.footer': string;
489
+ 'pageTemplate.full': string;
490
+ 'pageTemplate.full.note': string;
491
+ 'pageTemplate.simple': string;
492
+ 'pageTemplate.simple.note': string;
493
+ 'pageTemplate.landing': string;
494
+ 'pageTemplate.landing.note': string;
495
+ 'position.x': string;
496
+ 'position.y': string;
497
+ 'style.font': string;
498
+ 'style.align': string;
499
+ 'gradient.presets': string;
500
+ 'action.target': string;
501
+ 'action.unknown': string;
502
+ 'el.linkN': string;
503
+ 'el.videoPlaceholder': string;
504
+ 'el.iconOptions': string;
505
+ 'page.homeHint': string;
506
+ 'section.anchorInvalid': string;
507
+ 'newPage.slugFallback': string;
508
+ 'theme.hex': string;
509
+ 'site.localeHint': string;
510
+ };
511
+ export type MessageKey = keyof typeof en;
512
+ export type Messages = Record<MessageKey, string>;
@@ -0,0 +1,2 @@
1
+ import type { Messages } from './en.ts';
2
+ export declare const es: Messages;
@@ -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;