@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
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Skylive LLC
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,3 +1,62 @@
|
|
|
1
|
-
#
|
|
1
|
+
# @skylivellc/lienzo-editor
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
The visual editor of [Lienzo](https://github.com/SkyliveLLC/lienzo), an open-source landing page builder. Admins place headings, images, forms and your app's own elements on a free-form canvas, with a separate phone layout, then publish. The canvas renders through `@skylivellc/lienzo-core` in an iframe, so it shows the same markup and styles visitors get, and your app's CSS cannot leak into it.
|
|
4
|
+
|
|
5
|
+
The editor talks to a backend over the Lienzo protocol. The Laravel package `skylive/lienzo` implements it and ships this editor prebuilt, so Laravel apps do not install this package. For other backends, see [Other backends](https://github.com/SkyliveLLC/lienzo#other-backends).
|
|
6
|
+
|
|
7
|
+
The editor comes in three forms. Pick the one that matches your frontend.
|
|
8
|
+
|
|
9
|
+
## Use it as a Vue 3 component
|
|
10
|
+
|
|
11
|
+
```sh
|
|
12
|
+
npm install @skylivellc/lienzo-editor vue
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
```vue
|
|
16
|
+
<script setup lang="ts">
|
|
17
|
+
import { LienzoEditor } from '@skylivellc/lienzo-editor';
|
|
18
|
+
</script>
|
|
19
|
+
|
|
20
|
+
<template>
|
|
21
|
+
<LienzoEditor endpoint="/admin/site/1" locale="en" style="height: 100vh" />
|
|
22
|
+
</template>
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
## Use it as a custom element with your bundler
|
|
26
|
+
|
|
27
|
+
`@skylivellc/lienzo-editor/element` registers `<lienzo-editor>`. Install `vue` next to it, as for the component, because your bundler resolves it. The editor renders in a shadow root, so page CSS does not reach it.
|
|
28
|
+
|
|
29
|
+
```ts
|
|
30
|
+
import '@skylivellc/lienzo-editor/element';
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
```html
|
|
34
|
+
<lienzo-editor endpoint="/admin/site/1" locale="en" style="display: block; height: 100vh"></lienzo-editor>
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
## Use the standalone file with no build step
|
|
38
|
+
|
|
39
|
+
`@skylivellc/lienzo-editor/standalone` is one ES module with Vue and the editor's CSS inside. The file is `dist/standalone/lienzo-editor.js` in the package. Serve it as a static file and load it with a script tag:
|
|
40
|
+
|
|
41
|
+
```html
|
|
42
|
+
<script type="module" src="/assets/lienzo-editor.js"></script>
|
|
43
|
+
<lienzo-editor endpoint="/api/lienzo" style="display: block; height: 100vh"></lienzo-editor>
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
## Options
|
|
47
|
+
|
|
48
|
+
| Option | Type | Description |
|
|
49
|
+
| --- | --- | --- |
|
|
50
|
+
| `endpoint` | `string` | Base URL of the protocol routes. Required. |
|
|
51
|
+
| `locale` | `string` | Language of the editor. English (`en`) and Spanish (`es`) ship. Defaults to `en`. |
|
|
52
|
+
| `messages` | `Record<locale, Partial<Messages>>` | Strings to add or override, by locale. Missing keys fall back to English. |
|
|
53
|
+
| `headers` | `Record<string, string>` | Extra request headers, such as a bearer token. |
|
|
54
|
+
| `fetch` | `typeof fetch` | A fetch implementation to use instead of the global one. |
|
|
55
|
+
|
|
56
|
+
On the custom element, `endpoint` and `locale` are attributes. `messages`, `headers` and `fetch` are properties: set them before you attach the element, because the editor reads them once.
|
|
57
|
+
|
|
58
|
+
Requests send cookies for the same origin. If the page has Laravel's `XSRF-TOKEN` cookie, the editor sends it back as the `X-XSRF-TOKEN` header, so session-authenticated Laravel backends need no extra setup.
|
|
59
|
+
|
|
60
|
+
## License
|
|
61
|
+
|
|
62
|
+
MIT. The standalone file includes Vue, Zod and Lucide icons. See [THIRD_PARTY_NOTICES.md](THIRD_PARTY_NOTICES.md).
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
Lienzo bundles third-party material under the licenses below.
|
|
2
|
+
|
|
3
|
+
## Lucide icons
|
|
4
|
+
|
|
5
|
+
The icon catalog (packages/core/src/icons.json) is derived from Lucide (https://lucide.dev). The editor's standalone bundle also includes @lucide/vue, under the same ISC license.
|
|
6
|
+
|
|
7
|
+
ISC License
|
|
8
|
+
|
|
9
|
+
Copyright (c) 2026 Lucide Icons and Contributors
|
|
10
|
+
|
|
11
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
12
|
+
purpose with or without fee is hereby granted, provided that the above
|
|
13
|
+
copyright notice and this permission notice appear in all copies.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
|
|
16
|
+
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
|
|
17
|
+
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
|
|
18
|
+
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
|
19
|
+
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
|
|
20
|
+
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
|
|
21
|
+
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
|
22
|
+
|
|
23
|
+
---
|
|
24
|
+
|
|
25
|
+
The following Lucide icons are derived from the Feather project:
|
|
26
|
+
|
|
27
|
+
airplay, alert-circle, alert-octagon, alert-triangle, aperture, arrow-down-circle, arrow-down-left, arrow-down-right, arrow-down, arrow-left-circle, arrow-left, arrow-right-circle, arrow-right, arrow-up-circle, arrow-up-left, arrow-up-right, arrow-up, at-sign, calendar, cast, check, chevron-down, chevron-left, chevron-right, chevron-up, chevrons-down, chevrons-left, chevrons-right, chevrons-up, circle, clipboard, clock, code, columns, command, compass, corner-down-left, corner-down-right, corner-left-down, corner-left-up, corner-right-down, corner-right-up, corner-up-left, corner-up-right, crosshair, database, divide-circle, divide-square, dollar-sign, download, external-link, feather, frown, hash, headphones, help-circle, info, italic, key, layout, life-buoy, link-2, link, loader, lock, log-in, log-out, maximize, meh, minimize, minimize-2, minus-circle, minus-square, minus, monitor, moon, more-horizontal, more-vertical, move, music, navigation-2, navigation, octagon, pause-circle, percent, plus-circle, plus-square, plus, power, radio, rss, search, server, share, shopping-bag, sidebar, smartphone, smile, square, table-2, tablet, target, terminal, trash-2, trash, triangle, tv, type, upload, x-circle, x-octagon, x-square, x, zoom-in, zoom-out
|
|
28
|
+
|
|
29
|
+
The MIT License (MIT) (for the icons listed above)
|
|
30
|
+
|
|
31
|
+
Copyright (c) 2013-present Cole Bemis
|
|
32
|
+
|
|
33
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
34
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
35
|
+
in the Software without restriction, including without limitation the rights
|
|
36
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
37
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
38
|
+
furnished to do so, subject to the following conditions:
|
|
39
|
+
|
|
40
|
+
The above copyright notice and this permission notice shall be included in all
|
|
41
|
+
copies or substantial portions of the Software.
|
|
42
|
+
|
|
43
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
44
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
45
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
46
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
47
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
48
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
49
|
+
SOFTWARE.
|
|
50
|
+
|
|
51
|
+
## Vue
|
|
52
|
+
|
|
53
|
+
The editor's standalone bundle (packages/editor/dist/standalone, shipped as packages/laravel/dist/editor) includes Vue (https://vuejs.org): @vue/shared, @vue/reactivity, @vue/runtime-core and @vue/runtime-dom.
|
|
54
|
+
|
|
55
|
+
The MIT License (MIT)
|
|
56
|
+
|
|
57
|
+
Copyright (c) 2018-present, Yuxi (Evan) You
|
|
58
|
+
|
|
59
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
60
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
61
|
+
in the Software without restriction, including without limitation the rights
|
|
62
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
63
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
64
|
+
furnished to do so, subject to the following conditions:
|
|
65
|
+
|
|
66
|
+
The above copyright notice and this permission notice shall be included in
|
|
67
|
+
all copies or substantial portions of the Software.
|
|
68
|
+
|
|
69
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
70
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
71
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
72
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
73
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
74
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
75
|
+
THE SOFTWARE.
|
|
76
|
+
|
|
77
|
+
## Zod
|
|
78
|
+
|
|
79
|
+
@skylivellc/lienzo-core depends on Zod (https://zod.dev), and the editor's standalone bundle includes it.
|
|
80
|
+
|
|
81
|
+
MIT License
|
|
82
|
+
|
|
83
|
+
Copyright (c) 2025 Colin McDonnell
|
|
84
|
+
|
|
85
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
86
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
87
|
+
in the Software without restriction, including without limitation the rights
|
|
88
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
89
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
90
|
+
furnished to do so, subject to the following conditions:
|
|
91
|
+
|
|
92
|
+
The above copyright notice and this permission notice shall be included in all
|
|
93
|
+
copies or substantial portions of the Software.
|
|
94
|
+
|
|
95
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
96
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
97
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
98
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
99
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
100
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
101
|
+
SOFTWARE.
|