pagepilot-visual-editor 1.0.8 → 1.0.10
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/README.md +105 -1
- package/dist/blocks-internal/block-button/src/index.d.ts +10 -10
- package/dist/blocks-internal/block-columns-container/src/index.d.ts +3 -3
- package/dist/blocks-internal/block-container/src/index.d.ts +8 -8
- package/dist/blocks-internal/block-grid/src/index.d.ts +1 -1
- package/dist/blocks-internal/block-heading/src/index.d.ts +7 -7
- package/dist/blocks-internal/block-html/src/index.d.ts +2 -2
- package/dist/blocks-internal/block-iframe/src/index.d.ts +2 -2
- package/dist/blocks-internal/block-image/src/index.d.ts +3 -3
- package/dist/blocks-internal/block-list/src/index.d.ts +6 -6
- package/dist/blocks-internal/block-logo/src/index.d.ts +2 -2
- package/dist/blocks-internal/block-stepper/src/index.d.ts +5 -5
- package/dist/blocks-internal/block-text/src/index.d.ts +4 -4
- package/dist/blocks-internal/block-video/src/index.d.ts +3 -3
- package/dist/blocks-internal/block-youtube-url/src/index.d.ts +3 -3
- package/dist/editor/renderSections.d.ts +2 -0
- package/dist/editor-sample/App/InspectorDrawer/LayersPanelStyles.d.ts +2 -2
- package/dist/editor-sample/App/InspectorDrawer/LayoutPanel/templateApplyHelpers.d.ts +2 -14
- package/dist/editor-sample/App/shared/editor.styles.d.ts +3 -3
- package/dist/editor-sample/documents/blocks/ColumnsContainer/ColumnsContainerPropsSchema.d.ts +3 -3
- package/dist/editor-sample/documents/blocks/Container/ContainerPropsSchema.d.ts +8 -8
- package/dist/editor-sample/documents/blocks/DemoPicker/DemoPropsSchema.d.ts +2 -2
- package/dist/editor-sample/documents/blocks/EmailLayout/EmailLayoutPropsSchema.d.ts +3 -3
- package/dist/editor-sample/documents/blocks/FormsPicker/FormsPropsSchema.d.ts +2 -2
- package/dist/editor-sample/documents/blocks/Grid/GridPropsSchema.d.ts +3 -3
- package/dist/editor-sample/documents/blocks/Marquee/MarqueePropsSchema.d.ts +2 -2
- package/dist/editor-sample/documents/blocks/MenuPicker/MenuPropsSchema.d.ts +2 -2
- package/dist/editor-sample/documents/blocks/PricingAccordion/PricingAccordionPropsSchema.d.ts +2 -2
- package/dist/editor-sample/documents/blocks/Rating/RatingPropsSchema.d.ts +2 -2
- package/dist/editor-sample/documents/blocks/helpers/zod.d.ts +3 -3
- package/dist/editor-sample/documents/editor/EditorContext.d.ts +2 -2
- package/dist/editor-sample/documents/editor/core.d.ts +85 -85
- package/dist/editor-sample/documents/editor/templateVariables.d.ts +4 -75
- package/dist/email-builder-core/blocks/AccessibilityTools/AccessibilityToolsPropsSchema.d.ts +3 -3
- package/dist/email-builder-core/blocks/Calendly/CalendlyPropsSchema.d.ts +2 -2
- package/dist/email-builder-core/blocks/ColumnsContainer/ColumnsContainerPropsSchema.d.ts +3 -3
- package/dist/email-builder-core/blocks/Container/ContainerPropsSchema.d.ts +8 -8
- package/dist/email-builder-core/blocks/DemoPicker/DemoPropsSchema.d.ts +2 -2
- package/dist/email-builder-core/blocks/EmailLayout/EmailLayoutPropsSchema.d.ts +5 -5
- package/dist/email-builder-core/blocks/EmailLayout/EmailLayoutReader.d.ts +1 -1
- package/dist/email-builder-core/blocks/FlexColumns/FlexColumnsPropsSchema.d.ts +2 -2
- package/dist/email-builder-core/blocks/FormsPicker/FormsPropsSchema.d.ts +2 -2
- package/dist/email-builder-core/blocks/Grid/GridPropsSchema.d.ts +3 -3
- package/dist/email-builder-core/blocks/Marquee/MarqueePropsSchema.d.ts +2 -2
- package/dist/email-builder-core/blocks/MenuPicker/MenuPropsSchema.d.ts +4 -4
- package/dist/email-builder-core/blocks/Pagination/PaginationPropsSchema.d.ts +5 -5
- package/dist/email-builder-core/blocks/PricingAccordion/PricingAccordionPropsSchema.d.ts +2 -2
- package/dist/email-builder-core/blocks/Rating/RatingPropsSchema.d.ts +2 -2
- package/dist/email-builder-core/blocks/SkipLink/SkipLinkPropsSchema.d.ts +2 -2
- package/dist/email-builder-core/blocks/Table/TablePropsSchema.d.ts +2 -2
- package/dist/index.cjs +225 -221
- package/dist/index.d.ts +2 -0
- package/dist/index.js +15913 -15530
- package/dist/render-core/collectSubtreeIds.d.ts +1 -0
- package/dist/render-core/combineSections.d.ts +37 -0
- package/dist/render-core/stubs/editorContext.d.ts +10 -0
- package/dist/render-core/stubs/usePreviewScreen.d.ts +7 -0
- package/dist/render-core/templateBaking.d.ts +35 -0
- package/dist/render-core/templateEnvelope.d.ts +11 -0
- package/dist/render.cjs +726 -0
- package/dist/render.d.ts +4 -0
- package/dist/render.js +15085 -0
- package/dist/renderToStaticHtml.d.ts +107 -0
- package/package.json +11 -3
|
@@ -71,18 +71,18 @@ declare const ColumnsContainerPropsSchema: z.ZodObject<{
|
|
|
71
71
|
vertical: "vertical";
|
|
72
72
|
}>>>;
|
|
73
73
|
contentAlignment: z.ZodNullable<z.ZodOptional<z.ZodEnum<{
|
|
74
|
-
bottom: "bottom";
|
|
75
74
|
top: "top";
|
|
75
|
+
bottom: "bottom";
|
|
76
76
|
middle: "middle";
|
|
77
77
|
}>>>;
|
|
78
78
|
contentAlignmentTablet: z.ZodNullable<z.ZodOptional<z.ZodEnum<{
|
|
79
|
-
bottom: "bottom";
|
|
80
79
|
top: "top";
|
|
80
|
+
bottom: "bottom";
|
|
81
81
|
middle: "middle";
|
|
82
82
|
}>>>;
|
|
83
83
|
contentAlignmentMobile: z.ZodNullable<z.ZodOptional<z.ZodEnum<{
|
|
84
|
-
bottom: "bottom";
|
|
85
84
|
top: "top";
|
|
85
|
+
bottom: "bottom";
|
|
86
86
|
middle: "middle";
|
|
87
87
|
}>>>;
|
|
88
88
|
}, z.core.$strip>>>;
|
|
@@ -68,24 +68,24 @@ export declare const ContainerPropsSchema: z.ZodObject<{
|
|
|
68
68
|
heightMobile: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
69
69
|
overflow: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
|
|
70
70
|
alignment: z.ZodNullable<z.ZodOptional<z.ZodEnum<{
|
|
71
|
-
center: "center";
|
|
72
|
-
left: "left";
|
|
73
71
|
right: "right";
|
|
72
|
+
left: "left";
|
|
73
|
+
center: "center";
|
|
74
74
|
}>>>;
|
|
75
75
|
alignmentTablet: z.ZodNullable<z.ZodOptional<z.ZodEnum<{
|
|
76
|
-
center: "center";
|
|
77
|
-
left: "left";
|
|
78
76
|
right: "right";
|
|
77
|
+
left: "left";
|
|
78
|
+
center: "center";
|
|
79
79
|
}>>>;
|
|
80
80
|
alignmentMobile: z.ZodNullable<z.ZodOptional<z.ZodEnum<{
|
|
81
|
-
center: "center";
|
|
82
|
-
left: "left";
|
|
83
81
|
right: "right";
|
|
82
|
+
left: "left";
|
|
83
|
+
center: "center";
|
|
84
84
|
}>>>;
|
|
85
85
|
tag: z.ZodNullable<z.ZodOptional<z.ZodEnum<{
|
|
86
|
+
div: "div";
|
|
86
87
|
article: "article";
|
|
87
88
|
aside: "aside";
|
|
88
|
-
div: "div";
|
|
89
89
|
footer: "footer";
|
|
90
90
|
header: "header";
|
|
91
91
|
main: "main";
|
|
@@ -97,8 +97,8 @@ export declare const ContainerPropsSchema: z.ZodObject<{
|
|
|
97
97
|
showLink: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
|
|
98
98
|
linkHref: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
99
99
|
linkTarget: z.ZodNullable<z.ZodOptional<z.ZodEnum<{
|
|
100
|
-
_blank: "_blank";
|
|
101
100
|
_self: "_self";
|
|
101
|
+
_blank: "_blank";
|
|
102
102
|
}>>>;
|
|
103
103
|
}, z.core.$strip>>>;
|
|
104
104
|
}, z.core.$strip>;
|
|
@@ -18,9 +18,9 @@ export declare const DemoPropsSchema: z.ZodObject<{
|
|
|
18
18
|
left: z.ZodNumber;
|
|
19
19
|
}, z.core.$strip>>>;
|
|
20
20
|
textAlign: z.ZodNullable<z.ZodOptional<z.ZodEnum<{
|
|
21
|
-
center: "center";
|
|
22
|
-
left: "left";
|
|
23
21
|
right: "right";
|
|
22
|
+
left: "left";
|
|
23
|
+
center: "center";
|
|
24
24
|
}>>>;
|
|
25
25
|
}, z.core.$strip>>>;
|
|
26
26
|
props: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
@@ -103,11 +103,11 @@ export declare const EmailLayoutPropsSchema: z.ZodObject<{
|
|
|
103
103
|
}, z.core.$strip>>>;
|
|
104
104
|
behaviour: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
105
105
|
position: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
106
|
-
|
|
106
|
+
top: "top";
|
|
107
107
|
bottom: "bottom";
|
|
108
|
-
left: "left";
|
|
109
108
|
right: "right";
|
|
110
|
-
|
|
109
|
+
left: "left";
|
|
110
|
+
center: "center";
|
|
111
111
|
"top-left": "top-left";
|
|
112
112
|
"top-center": "top-center";
|
|
113
113
|
"top-right": "top-right";
|
|
@@ -122,9 +122,9 @@ export declare const EmailLayoutPropsSchema: z.ZodObject<{
|
|
|
122
122
|
showCloseIcon: z.ZodOptional<z.ZodBoolean>;
|
|
123
123
|
iconCloseColor: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodString, z.ZodString, z.ZodLiteral<"transparent">]>>>;
|
|
124
124
|
closeIconPosition: z.ZodOptional<z.ZodEnum<{
|
|
125
|
-
center: "center";
|
|
126
|
-
left: "left";
|
|
127
125
|
right: "right";
|
|
126
|
+
left: "left";
|
|
127
|
+
center: "center";
|
|
128
128
|
}>>;
|
|
129
129
|
closeIconPaddingTop: z.ZodOptional<z.ZodNumber>;
|
|
130
130
|
closeIconPaddingLeft: z.ZodOptional<z.ZodNumber>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
import { EmailLayoutProps } from './EmailLayoutPropsSchema';
|
|
3
|
-
export default function EmailLayoutReader(props: EmailLayoutProps): string | number | bigint | boolean | Iterable<React.ReactNode> | Promise<string | number | bigint | boolean | React.ReactPortal | React.ReactElement<unknown, string | React.JSXElementConstructor<any>> | Iterable<React.ReactNode
|
|
3
|
+
export default function EmailLayoutReader(props: EmailLayoutProps): string | number | bigint | boolean | import("react/jsx-runtime").JSX.Element | Iterable<React.ReactNode> | Promise<string | number | bigint | boolean | React.ReactPortal | React.ReactElement<unknown, string | React.JSXElementConstructor<any>> | Iterable<React.ReactNode>>;
|
|
@@ -53,9 +53,9 @@ declare const FlexColumnsPropsSchema: z.ZodObject<{
|
|
|
53
53
|
}, z.core.$strip>>>>;
|
|
54
54
|
align: z.ZodNullable<z.ZodOptional<z.ZodEnum<{
|
|
55
55
|
center: "center";
|
|
56
|
-
stretch: "stretch";
|
|
57
|
-
"flex-end": "flex-end";
|
|
58
56
|
"flex-start": "flex-start";
|
|
57
|
+
"flex-end": "flex-end";
|
|
58
|
+
stretch: "stretch";
|
|
59
59
|
}>>>;
|
|
60
60
|
reverseColumns: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
|
|
61
61
|
repeatableEnabled: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
|
|
@@ -10,9 +10,9 @@ export declare const FormsPropsSchema: z.ZodObject<{
|
|
|
10
10
|
heightTablet: z.ZodOptional<z.ZodString>;
|
|
11
11
|
heightMobile: z.ZodOptional<z.ZodString>;
|
|
12
12
|
alignment: z.ZodDefault<z.ZodEnum<{
|
|
13
|
-
center: "center";
|
|
14
|
-
left: "left";
|
|
15
13
|
right: "right";
|
|
14
|
+
left: "left";
|
|
15
|
+
center: "center";
|
|
16
16
|
}>>;
|
|
17
17
|
}, z.core.$strip>>>;
|
|
18
18
|
}, z.core.$strip>;
|
|
@@ -39,14 +39,14 @@ declare const GridPropsSchema: z.ZodObject<{
|
|
|
39
39
|
columnsCountTablet: z.ZodNullable<z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>, z.ZodLiteral<4>, z.ZodLiteral<5>]>>>;
|
|
40
40
|
columnsCountMobile: z.ZodNullable<z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>, z.ZodLiteral<4>, z.ZodLiteral<5>]>>>;
|
|
41
41
|
contentAlignment: z.ZodNullable<z.ZodOptional<z.ZodEnum<{
|
|
42
|
-
bottom: "bottom";
|
|
43
42
|
top: "top";
|
|
43
|
+
bottom: "bottom";
|
|
44
44
|
middle: "middle";
|
|
45
45
|
}>>>;
|
|
46
46
|
horizontalAlignment: z.ZodNullable<z.ZodOptional<z.ZodEnum<{
|
|
47
|
-
center: "center";
|
|
48
|
-
left: "left";
|
|
49
47
|
right: "right";
|
|
48
|
+
left: "left";
|
|
49
|
+
center: "center";
|
|
50
50
|
}>>>;
|
|
51
51
|
columnsCount: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
52
52
|
rowsCount: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
@@ -35,8 +35,8 @@ export declare const MarqueePropsSchema: z.ZodObject<{
|
|
|
35
35
|
}, z.core.$strip>>>;
|
|
36
36
|
props: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
37
37
|
direction: z.ZodNullable<z.ZodOptional<z.ZodEnum<{
|
|
38
|
-
left: "left";
|
|
39
38
|
right: "right";
|
|
39
|
+
left: "left";
|
|
40
40
|
up: "up";
|
|
41
41
|
down: "down";
|
|
42
42
|
}>>>;
|
|
@@ -45,8 +45,8 @@ export declare const MarqueePropsSchema: z.ZodObject<{
|
|
|
45
45
|
repeat: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
46
46
|
fadeEdges: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
|
|
47
47
|
verticalAlign: z.ZodNullable<z.ZodOptional<z.ZodEnum<{
|
|
48
|
-
bottom: "bottom";
|
|
49
48
|
top: "top";
|
|
49
|
+
bottom: "bottom";
|
|
50
50
|
middle: "middle";
|
|
51
51
|
}>>>;
|
|
52
52
|
items: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -4,9 +4,9 @@ declare const MenuPropsInnerSchema: z.ZodObject<{
|
|
|
4
4
|
useCustomMenu: z.ZodDefault<z.ZodBoolean>;
|
|
5
5
|
stickyNav: z.ZodDefault<z.ZodBoolean>;
|
|
6
6
|
position: z.ZodDefault<z.ZodEnum<{
|
|
7
|
-
center: "center";
|
|
8
|
-
left: "left";
|
|
9
7
|
right: "right";
|
|
8
|
+
left: "left";
|
|
9
|
+
center: "center";
|
|
10
10
|
}>>;
|
|
11
11
|
orientation: z.ZodDefault<z.ZodEnum<{
|
|
12
12
|
horizontal: "horizontal";
|
|
@@ -48,9 +48,9 @@ export declare const MenuPropsSchema: z.ZodObject<{
|
|
|
48
48
|
useCustomMenu: z.ZodDefault<z.ZodBoolean>;
|
|
49
49
|
stickyNav: z.ZodDefault<z.ZodBoolean>;
|
|
50
50
|
position: z.ZodDefault<z.ZodEnum<{
|
|
51
|
-
center: "center";
|
|
52
|
-
left: "left";
|
|
53
51
|
right: "right";
|
|
52
|
+
left: "left";
|
|
53
|
+
center: "center";
|
|
54
54
|
}>>;
|
|
55
55
|
orientation: z.ZodDefault<z.ZodEnum<{
|
|
56
56
|
horizontal: "horizontal";
|
|
@@ -32,9 +32,9 @@ export declare const PaginationPropsSchema: z.ZodObject<{
|
|
|
32
32
|
rowsGap: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
33
33
|
controlGap: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
34
34
|
controlAlign: z.ZodNullable<z.ZodOptional<z.ZodEnum<{
|
|
35
|
-
center: "center";
|
|
36
|
-
left: "left";
|
|
37
35
|
right: "right";
|
|
36
|
+
left: "left";
|
|
37
|
+
center: "center";
|
|
38
38
|
"space-between": "space-between";
|
|
39
39
|
}>>>;
|
|
40
40
|
buttonSize: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
@@ -64,14 +64,14 @@ export declare const PaginationPropsSchema: z.ZodObject<{
|
|
|
64
64
|
rowsCountTablet: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
65
65
|
rowsCountMobile: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
66
66
|
contentAlignment: z.ZodNullable<z.ZodOptional<z.ZodEnum<{
|
|
67
|
-
bottom: "bottom";
|
|
68
67
|
top: "top";
|
|
68
|
+
bottom: "bottom";
|
|
69
69
|
middle: "middle";
|
|
70
70
|
}>>>;
|
|
71
71
|
horizontalAlignment: z.ZodNullable<z.ZodOptional<z.ZodEnum<{
|
|
72
|
-
center: "center";
|
|
73
|
-
left: "left";
|
|
74
72
|
right: "right";
|
|
73
|
+
left: "left";
|
|
74
|
+
center: "center";
|
|
75
75
|
}>>>;
|
|
76
76
|
cellsPerPage: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
77
77
|
repeatableEnabled: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
|
|
@@ -34,9 +34,9 @@ export declare const PricingAccordionPropsSchema: z.ZodObject<{
|
|
|
34
34
|
cardFontFamily: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
35
35
|
cardFontWeight: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
36
36
|
cardTextAlign: z.ZodNullable<z.ZodOptional<z.ZodEnum<{
|
|
37
|
-
center: "center";
|
|
38
|
-
left: "left";
|
|
39
37
|
right: "right";
|
|
38
|
+
left: "left";
|
|
39
|
+
center: "center";
|
|
40
40
|
}>>>;
|
|
41
41
|
cardHoverBgColor: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
42
42
|
cardHoverShadow: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
@@ -10,9 +10,9 @@ export declare const RatingPropsSchema: z.ZodObject<{
|
|
|
10
10
|
fontFamily: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
11
11
|
fontWeight: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
12
12
|
textAlign: z.ZodNullable<z.ZodOptional<z.ZodEnum<{
|
|
13
|
-
center: "center";
|
|
14
|
-
left: "left";
|
|
15
13
|
right: "right";
|
|
14
|
+
left: "left";
|
|
15
|
+
center: "center";
|
|
16
16
|
}>>>;
|
|
17
17
|
padding: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
18
18
|
top: z.ZodNumber;
|
|
@@ -14,9 +14,9 @@ export declare const SkipLinkPropsSchema: z.ZodObject<{
|
|
|
14
14
|
left: z.ZodNumber;
|
|
15
15
|
}, z.core.$strip>>>;
|
|
16
16
|
textAlign: z.ZodNullable<z.ZodOptional<z.ZodEnum<{
|
|
17
|
-
center: "center";
|
|
18
|
-
left: "left";
|
|
19
17
|
right: "right";
|
|
18
|
+
left: "left";
|
|
19
|
+
center: "center";
|
|
20
20
|
}>>>;
|
|
21
21
|
}, z.core.$strip>>>;
|
|
22
22
|
props: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
@@ -14,9 +14,9 @@ export declare const TablePropsSchema: z.ZodObject<{
|
|
|
14
14
|
left: z.ZodNumber;
|
|
15
15
|
}, z.core.$strip>>>;
|
|
16
16
|
textAlign: z.ZodNullable<z.ZodOptional<z.ZodEnum<{
|
|
17
|
-
center: "center";
|
|
18
|
-
left: "left";
|
|
19
17
|
right: "right";
|
|
18
|
+
left: "left";
|
|
19
|
+
center: "center";
|
|
20
20
|
}>>>;
|
|
21
21
|
fontSize: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
22
22
|
fontFamily: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|