@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,26 @@
1
+ import type { AppElement } from '@skylivellc/lienzo-core';
2
+ import { type ShallowRef } from 'vue';
3
+ import type { Client } from '../client.ts';
4
+ export type Preview = {
5
+ status: 'loading';
6
+ } | {
7
+ status: 'ready';
8
+ html: string;
9
+ } | {
10
+ status: 'failed';
11
+ };
12
+ export type Previews = {
13
+ /** The preview for this element's type and props, fetching it on a miss. */
14
+ get(element: AppElement): Preview;
15
+ /** Bumps whenever a preview arrives, so the canvas knows to render again. */
16
+ readonly version: ShallowRef<number>;
17
+ };
18
+ /**
19
+ * HTML of app elements, rendered by the backend. Cached by type and props:
20
+ * moving, resizing or restyling an element never refetches, since box and
21
+ * style live on the wrapper core renders around it. Misses are batched into
22
+ * one `POST /preview` per `wait` ms.
23
+ */
24
+ export declare function createPreviews(client: Client, wait?: number): Previews;
25
+ /** Type plus props with sorted keys, so equal props share one preview whatever their key order. */
26
+ export declare function previewKey(element: Pick<AppElement, 'type' | 'props'>): string;
@@ -0,0 +1,7 @@
1
+ import type { Editor } from './editor.ts';
2
+ /**
3
+ * Editor shortcuts: Escape, Delete, arrows, and Ctrl/Cmd with C, V, D, Z,
4
+ * Shift+Z and S. Keys typed into a field are left alone. The canvas iframe and the host
5
+ * page both send their key events here.
6
+ */
7
+ export declare function handleShortcut(editor: Editor, event: KeyboardEvent): void;
@@ -0,0 +1,8 @@
1
+ /** All chrome CSS as one string, adopted by the document or shadow root the editor renders in. */
2
+ export declare const editorCss: string;
3
+ /**
4
+ * Adds the editor's stylesheet to the root `node` renders in, once. A
5
+ * constructed stylesheet works the same in a document and in a shadow root
6
+ * (the custom element), and needs no `<style>` tag a strict CSP would block.
7
+ */
8
+ export declare function adoptEditorStyles(node: Node): void;
@@ -0,0 +1,25 @@
1
+ /** Text button of the editor chrome. `primary` is the one main action of a place. */
2
+ type __VLS_Props = {
3
+ variant?: 'primary' | 'outline' | 'ghost' | 'danger';
4
+ size?: 'sm' | 'md';
5
+ disabled?: boolean;
6
+ title?: string;
7
+ };
8
+ declare var __VLS_1: {};
9
+ type __VLS_Slots = {} & {
10
+ default?: (props: typeof __VLS_1) => any;
11
+ };
12
+ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
13
+ size: "sm" | "md";
14
+ title: string;
15
+ variant: "primary" | "danger" | "outline" | "ghost";
16
+ disabled: boolean;
17
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
18
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
19
+ declare const _default: typeof __VLS_export;
20
+ export default _default;
21
+ type __VLS_WithSlots<T, S> = T & {
22
+ new (): {
23
+ $slots: S;
24
+ };
25
+ };
@@ -0,0 +1,12 @@
1
+ /** An icon from Lienzo's icon catalog (the same strokes the page renders), for pickers and app elements. */
2
+ type __VLS_Props = {
3
+ name: string;
4
+ size?: number;
5
+ stroke?: number;
6
+ };
7
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
8
+ size: number;
9
+ stroke: number;
10
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
11
+ declare const _default: typeof __VLS_export;
12
+ export default _default;
@@ -0,0 +1,20 @@
1
+ type __VLS_Props = {
2
+ label: string;
3
+ };
4
+ type __VLS_ModelProps = {
5
+ /**
6
+ * Picking a theme color keeps it linked: when the palette changes, the page
7
+ * follows. A custom hex is the way out, not the way in.
8
+ */
9
+ modelValue: string | null | undefined;
10
+ };
11
+ type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
12
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
13
+ commit: () => any;
14
+ "update:modelValue": (value: string | null | undefined) => any;
15
+ }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
16
+ onCommit?: (() => any) | undefined;
17
+ "onUpdate:modelValue"?: ((value: string | null | undefined) => any) | undefined;
18
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
19
+ declare const _default: typeof __VLS_export;
20
+ export default _default;
@@ -0,0 +1,33 @@
1
+ type __VLS_Props = {
2
+ title: string;
3
+ description?: string;
4
+ size?: 'md' | 'lg' | 'xl';
5
+ };
6
+ type __VLS_ModelProps = {
7
+ /**
8
+ * A modal dialog on the native `<dialog>`: focus trap, Escape and the top
9
+ * layer for free, and it stays inside the editor's shadow root when there is one.
10
+ */
11
+ 'open': boolean;
12
+ };
13
+ type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
14
+ declare var __VLS_6: {};
15
+ type __VLS_Slots = {} & {
16
+ default?: (props: typeof __VLS_6) => any;
17
+ };
18
+ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
19
+ "update:open": (value: boolean) => any;
20
+ }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
21
+ "onUpdate:open"?: ((value: boolean) => any) | undefined;
22
+ }>, {
23
+ size: "md" | "lg" | "xl";
24
+ description: string;
25
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
26
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
27
+ declare const _default: typeof __VLS_export;
28
+ export default _default;
29
+ type __VLS_WithSlots<T, S> = T & {
30
+ new (): {
31
+ $slots: S;
32
+ };
33
+ };
@@ -0,0 +1,24 @@
1
+ /** A labelled control with an optional hint and error. Put the control in the default slot with `:id="id"`. */
2
+ type __VLS_Props = {
3
+ label: string;
4
+ id?: string;
5
+ hint?: string;
6
+ error?: string | null;
7
+ };
8
+ declare var __VLS_1: {}, __VLS_3: {}, __VLS_5: {};
9
+ type __VLS_Slots = {} & {
10
+ aside?: (props: typeof __VLS_1) => any;
11
+ } & {
12
+ aside?: (props: typeof __VLS_3) => any;
13
+ } & {
14
+ default?: (props: typeof __VLS_5) => any;
15
+ };
16
+ declare const __VLS_base: 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>;
17
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
18
+ declare const _default: typeof __VLS_export;
19
+ export default _default;
20
+ type __VLS_WithSlots<T, S> = T & {
21
+ new (): {
22
+ $slots: S;
23
+ };
24
+ };
@@ -0,0 +1,24 @@
1
+ /** Square icon button with a tooltip; `active` shows a pressed state, like design tools. */
2
+ type __VLS_Props = {
3
+ label: string;
4
+ active?: boolean;
5
+ disabled?: boolean;
6
+ tone?: 'default' | 'danger';
7
+ };
8
+ declare var __VLS_1: {};
9
+ type __VLS_Slots = {} & {
10
+ default?: (props: typeof __VLS_1) => any;
11
+ };
12
+ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
13
+ active: boolean;
14
+ tone: "default" | "danger";
15
+ disabled: boolean;
16
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
17
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
18
+ declare const _default: typeof __VLS_export;
19
+ export default _default;
20
+ type __VLS_WithSlots<T, S> = T & {
21
+ new (): {
22
+ $slots: S;
23
+ };
24
+ };
@@ -0,0 +1,27 @@
1
+ type __VLS_Props = {
2
+ label: string;
3
+ url?: boolean;
4
+ choose?: string;
5
+ thumb?: 'wide' | 'icon';
6
+ };
7
+ type __VLS_ModelProps = {
8
+ /**
9
+ * An image reference (`media:<id>` from the library, or an https URL) with a
10
+ * thumbnail, a library picker and a remove button. `url` adds a field to paste an address.
11
+ */
12
+ modelValue: string | null | undefined;
13
+ };
14
+ type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
15
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
16
+ commit: () => any;
17
+ "update:modelValue": (value: string | null | undefined) => any;
18
+ }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
19
+ onCommit?: (() => any) | undefined;
20
+ "onUpdate:modelValue"?: ((value: string | null | undefined) => any) | undefined;
21
+ }>, {
22
+ url: boolean;
23
+ thumb: "icon" | "wide";
24
+ choose: string;
25
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
26
+ declare const _default: typeof __VLS_export;
27
+ export default _default;
@@ -0,0 +1,22 @@
1
+ type __VLS_Props = {
2
+ label: string;
3
+ min?: number;
4
+ max?: number;
5
+ step?: number;
6
+ suffix?: string;
7
+ disabled?: boolean;
8
+ };
9
+ type __VLS_ModelProps = {
10
+ /** Compact number field: short label on the left, unit on the right. Empty means "not set". */
11
+ modelValue: number | null | undefined;
12
+ };
13
+ type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
14
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
15
+ commit: () => any;
16
+ "update:modelValue": (value: number | null | undefined) => any;
17
+ }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
18
+ onCommit?: (() => any) | undefined;
19
+ "onUpdate:modelValue"?: ((value: number | null | undefined) => any) | undefined;
20
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
21
+ declare const _default: typeof __VLS_export;
22
+ export default _default;
@@ -0,0 +1,20 @@
1
+ /** Collapsible block of the settings panel; the title stays visible when closed. */
2
+ type __VLS_Props = {
3
+ title: string;
4
+ open?: boolean;
5
+ };
6
+ declare var __VLS_6: {};
7
+ type __VLS_Slots = {} & {
8
+ default?: (props: typeof __VLS_6) => any;
9
+ };
10
+ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
11
+ open: boolean;
12
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
13
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
14
+ declare const _default: typeof __VLS_export;
15
+ export default _default;
16
+ type __VLS_WithSlots<T, S> = T & {
17
+ new (): {
18
+ $slots: S;
19
+ };
20
+ };
@@ -0,0 +1,26 @@
1
+ type __VLS_Props = {
2
+ label: string;
3
+ min: number;
4
+ max: number;
5
+ step?: number;
6
+ fallback?: number;
7
+ format?: (value: number) => string;
8
+ };
9
+ type __VLS_ModelProps = {
10
+ /** Slider with its label and current value; moves live, commits when released. */
11
+ modelValue: number | null | undefined;
12
+ };
13
+ type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
14
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
15
+ commit: () => any;
16
+ "update:modelValue": (value: number | null | undefined) => any;
17
+ }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
18
+ onCommit?: (() => any) | undefined;
19
+ "onUpdate:modelValue"?: ((value: number | null | undefined) => any) | undefined;
20
+ }>, {
21
+ step: number;
22
+ format: (value: number) => string;
23
+ fallback: number;
24
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
25
+ declare const _default: typeof __VLS_export;
26
+ export default _default;
@@ -0,0 +1,33 @@
1
+ declare const __VLS_export: <T extends string | number>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
2
+ props: import("vue").PublicProps & __VLS_PrettifyLocal<({
3
+ options: readonly {
4
+ value: T;
5
+ label: string;
6
+ }[];
7
+ id?: string;
8
+ label?: string;
9
+ placeholder?: string;
10
+ compact?: boolean;
11
+ } & {
12
+ /** Native select over typed options; the model keeps the option's own type. */
13
+ modelValue: T | null | undefined;
14
+ }) & {
15
+ onCommit?: (() => any) | undefined;
16
+ "onUpdate:modelValue"?: ((value: T | null | undefined) => any) | undefined;
17
+ }> & (typeof globalThis extends {
18
+ __VLS_PROPS_FALLBACK: infer P;
19
+ } ? P : {});
20
+ expose: (exposed: {}) => void;
21
+ attrs: any;
22
+ slots: {};
23
+ emit: ((evt: "commit") => void) & ((event: "update:modelValue", value: T | null | undefined) => void);
24
+ }>) => import("vue").VNode & {
25
+ __ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
26
+ };
27
+ declare const _default: typeof __VLS_export;
28
+ export default _default;
29
+ type __VLS_PrettifyLocal<T> = (T extends any ? {
30
+ [K in keyof T]: T[K];
31
+ } : {
32
+ [K in keyof T as K]: T[K];
33
+ }) & {};
@@ -0,0 +1,32 @@
1
+ type __VLS_Props = {
2
+ id?: string;
3
+ placeholder?: string;
4
+ maxlength?: number;
5
+ rows?: number;
6
+ label?: string;
7
+ type?: string;
8
+ };
9
+ type __VLS_ModelProps = {
10
+ /**
11
+ * Single or multi-line text. `commit` fires on change (blur or Enter), which
12
+ * is when callers record an undo step; the model updates on every keystroke.
13
+ */
14
+ modelValue: string | null | undefined;
15
+ };
16
+ type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
17
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
18
+ commit: () => any;
19
+ "update:modelValue": (value: string | null | undefined) => any;
20
+ }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
21
+ onCommit?: (() => any) | undefined;
22
+ "onUpdate:modelValue"?: ((value: string | null | undefined) => any) | undefined;
23
+ }>, {
24
+ id: string;
25
+ type: string;
26
+ label: string;
27
+ placeholder: string;
28
+ maxlength: number;
29
+ rows: number;
30
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
31
+ declare const _default: typeof __VLS_export;
32
+ export default _default;
@@ -0,0 +1,3 @@
1
+ declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
2
+ declare const _default: typeof __VLS_export;
3
+ export default _default;
@@ -0,0 +1,17 @@
1
+ type __VLS_Props = {
2
+ label: string;
3
+ };
4
+ type __VLS_ModelProps = {
5
+ /** Checkbox with its label. Toggling is a discrete edit, so it commits right away. */
6
+ modelValue: boolean | null | undefined;
7
+ };
8
+ type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
9
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
10
+ commit: () => any;
11
+ "update:modelValue": (value: boolean | null | undefined) => any;
12
+ }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
13
+ onCommit?: (() => any) | undefined;
14
+ "onUpdate:modelValue"?: ((value: boolean | null | undefined) => any) | undefined;
15
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
16
+ declare const _default: typeof __VLS_export;
17
+ export default _default;
package/package.json CHANGED
@@ -1,6 +1,70 @@
1
1
  {
2
2
  "name": "@skylivellc/lienzo-editor",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
3
+ "version": "0.1.1",
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
+ "keywords": [
6
+ "landing-page",
7
+ "page-builder",
8
+ "visual-editor",
9
+ "vue",
10
+ "custom-element",
11
+ "lienzo"
12
+ ],
13
+ "homepage": "https://github.com/SkyliveLLC/lienzo/tree/main/packages/editor#readme",
14
+ "bugs": "https://github.com/SkyliveLLC/lienzo/issues",
15
+ "repository": {
16
+ "type": "git",
17
+ "url": "git+https://github.com/SkyliveLLC/lienzo.git",
18
+ "directory": "packages/editor"
19
+ },
20
+ "license": "MIT",
21
+ "author": "Skylive LLC",
22
+ "type": "module",
23
+ "sideEffects": [
24
+ "./dist/element.js",
25
+ "./dist/standalone/*"
26
+ ],
27
+ "exports": {
28
+ ".": {
29
+ "types": "./dist/types/index.d.ts",
30
+ "import": "./dist/index.js"
31
+ },
32
+ "./element": {
33
+ "types": "./dist/types/element.d.ts",
34
+ "import": "./dist/element.js"
35
+ },
36
+ "./standalone": "./dist/standalone/lienzo-editor.js"
37
+ },
38
+ "files": [
39
+ "dist",
40
+ "THIRD_PARTY_NOTICES.md"
41
+ ],
42
+ "peerDependencies": {
43
+ "vue": "^3.5.0"
44
+ },
45
+ "dependencies": {
46
+ "@lucide/vue": "^1.52.0",
47
+ "@skylivellc/lienzo-core": "0.1.1"
48
+ },
49
+ "devDependencies": {
50
+ "@playwright/test": "1.63.0",
51
+ "@types/node": "^24.19.1",
52
+ "@vitejs/plugin-vue": "^6.0.9",
53
+ "typescript": "^6.0.3",
54
+ "vite": "^8.3.2",
55
+ "vitest": "^5.0.3",
56
+ "vue": "^3.5.43",
57
+ "vue-tsc": "^3.3.12"
58
+ },
59
+ "publishConfig": {
60
+ "access": "public",
61
+ "provenance": true
62
+ },
63
+ "scripts": {
64
+ "dev": "vite",
65
+ "build": "vite build && vite build --mode standalone && vue-tsc -p tsconfig.build.json",
66
+ "typecheck": "vue-tsc --noEmit",
67
+ "test": "vitest run",
68
+ "e2e": "playwright test"
69
+ }
6
70
  }