@skylivellc/lienzo-editor 0.9.1 → 0.10.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/dist/{LienzoEditor-dSKBP4Pb.js → LienzoEditor-C0NiJyAv.js} +1124 -984
- package/dist/LienzoEditor-C0NiJyAv.js.map +1 -0
- package/dist/element.js +1 -1
- package/dist/index.js +1 -1
- package/dist/standalone/lienzo-editor.js +97 -85
- package/dist/standalone/lienzo-editor.js.map +1 -1
- package/dist/types/i18n/en.d.ts +10 -0
- package/dist/types/model/document.d.ts +1 -1
- package/dist/types/model/elements.d.ts +21 -0
- package/dist/types/panels/content/GalleryContent.vue.d.ts +8 -0
- package/dist/types/state/editor.d.ts +6 -2
- package/package.json +2 -2
- package/dist/LienzoEditor-dSKBP4Pb.js.map +0 -1
package/dist/types/i18n/en.d.ts
CHANGED
|
@@ -89,6 +89,16 @@ export declare const en: {
|
|
|
89
89
|
'type.video': string;
|
|
90
90
|
'type.shape': string;
|
|
91
91
|
'type.icon': string;
|
|
92
|
+
'type.gallery': string;
|
|
93
|
+
'el.galleryItem': string;
|
|
94
|
+
'el.gallery': string;
|
|
95
|
+
'el.galleryAdd': string;
|
|
96
|
+
'el.galleryHint': string;
|
|
97
|
+
'el.galleryLayout': string;
|
|
98
|
+
'el.gallery.grid': string;
|
|
99
|
+
'el.gallery.strip': string;
|
|
100
|
+
'el.galleryColumns': string;
|
|
101
|
+
'el.galleryRemove': string;
|
|
92
102
|
'type.navbar': string;
|
|
93
103
|
'type.input': string;
|
|
94
104
|
'type.textarea': string;
|
|
@@ -5,7 +5,7 @@ export type Device = 'desktop' | 'mobile';
|
|
|
5
5
|
export declare const MOBILE_WIDTH = 390;
|
|
6
6
|
/** A section or a modal: both are free-layout canvases of elements. */
|
|
7
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"];
|
|
8
|
+
export declare const CORE_TYPES: readonly ["heading", "text", "image", "button", "divider", "video", "shape", "icon", "navbar", "gallery", "input", "textarea", "select", "checkbox"];
|
|
9
9
|
export declare const isCoreType: (type: string) => type is CoreElementType;
|
|
10
10
|
export declare const isModal: (canvas: Canvas) => canvas is Modal;
|
|
11
11
|
export declare function canvasesOf(document: Document): Canvas[];
|
|
@@ -216,6 +216,27 @@ export declare const coreSpecs: {
|
|
|
216
216
|
};
|
|
217
217
|
};
|
|
218
218
|
};
|
|
219
|
+
gallery: {
|
|
220
|
+
label: "type.gallery";
|
|
221
|
+
group: "content";
|
|
222
|
+
styles: readonly StyleGroup[];
|
|
223
|
+
inline: null;
|
|
224
|
+
create: () => {
|
|
225
|
+
box: {
|
|
226
|
+
x: number;
|
|
227
|
+
w: number;
|
|
228
|
+
h: number;
|
|
229
|
+
};
|
|
230
|
+
props: {
|
|
231
|
+
images: never[];
|
|
232
|
+
layout: "grid";
|
|
233
|
+
columns: number;
|
|
234
|
+
};
|
|
235
|
+
style: {
|
|
236
|
+
radius: number;
|
|
237
|
+
};
|
|
238
|
+
};
|
|
239
|
+
};
|
|
219
240
|
input: {
|
|
220
241
|
label: "type.input";
|
|
221
242
|
group: "form";
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { CoreElement } from '@skylivellc/lienzo-core';
|
|
2
|
+
/** A gallery is a list of pictures: one field per slot, in the order shown. */
|
|
3
|
+
type __VLS_Props = {
|
|
4
|
+
element: CoreElement;
|
|
5
|
+
};
|
|
6
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
7
|
+
declare const _default: typeof __VLS_export;
|
|
8
|
+
export default _default;
|
|
@@ -484,9 +484,11 @@ export declare function createEditor({ client, i18n }: EditorDeps): {
|
|
|
484
484
|
required?: boolean | null | undefined;
|
|
485
485
|
input_type?: "number" | "text" | "email" | "date" | "tel" | null | undefined;
|
|
486
486
|
options?: string[] | null | undefined;
|
|
487
|
+
images?: string[] | null | undefined;
|
|
488
|
+
columns?: number | null | undefined;
|
|
487
489
|
multiple?: boolean | null | undefined;
|
|
488
490
|
brand?: string | null | undefined;
|
|
489
|
-
layout?: "center" | "left" | "split" | null | undefined;
|
|
491
|
+
layout?: "center" | "left" | "grid" | "split" | "strip" | null | undefined;
|
|
490
492
|
template?: "plain" | "pill" | "card" | "underline" | "divided" | "floating" | "boxed" | "tracked" | null | undefined;
|
|
491
493
|
links?: {
|
|
492
494
|
label: string;
|
|
@@ -757,9 +759,11 @@ export declare function createEditor({ client, i18n }: EditorDeps): {
|
|
|
757
759
|
required?: boolean | null | undefined;
|
|
758
760
|
input_type?: "number" | "text" | "email" | "date" | "tel" | null | undefined;
|
|
759
761
|
options?: string[] | null | undefined;
|
|
762
|
+
images?: string[] | null | undefined;
|
|
763
|
+
columns?: number | null | undefined;
|
|
760
764
|
multiple?: boolean | null | undefined;
|
|
761
765
|
brand?: string | null | undefined;
|
|
762
|
-
layout?: "center" | "left" | "split" | null | undefined;
|
|
766
|
+
layout?: "center" | "left" | "grid" | "split" | "strip" | null | undefined;
|
|
763
767
|
template?: "plain" | "pill" | "card" | "underline" | "divided" | "floating" | "boxed" | "tracked" | null | undefined;
|
|
764
768
|
links?: {
|
|
765
769
|
label: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@skylivellc/lienzo-editor",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.10.0",
|
|
4
4
|
"description": "Visual editor for Lienzo landing pages. A Vue 3 component and a <lienzo-editor> custom element that talk to any backend over the Lienzo protocol.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"landing-page",
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
},
|
|
45
45
|
"dependencies": {
|
|
46
46
|
"@lucide/vue": "^1.52.0",
|
|
47
|
-
"@skylivellc/lienzo-core": "0.
|
|
47
|
+
"@skylivellc/lienzo-core": "0.10.0"
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
50
50
|
"@playwright/test": "1.63.0",
|