pagepilot-visual-editor 1.0.38 → 1.0.40
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/blocks-internal/block-button/src/index.d.ts +29 -4
- package/dist/blocks-internal/block-columns-container/src/index.d.ts +3 -3
- package/dist/blocks-internal/block-container/src/index.d.ts +17 -4
- package/dist/blocks-internal/block-heading/src/index.d.ts +26 -1
- package/dist/blocks-internal/block-image/src/index.d.ts +17 -4
- package/dist/blocks-internal/block-logo/src/index.d.ts +25 -0
- package/dist/blocks-internal/block-mdx/src/index.d.ts +1 -1
- package/dist/blocks-internal/block-quill/src/index.d.ts +1 -1
- package/dist/blocks-internal/block-text/src/index.d.ts +26 -1
- package/dist/editor-sample/App/InspectorDrawer/BehaviourPanel.d.ts +2 -2
- package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/HoverEffectSection.d.ts +6 -1
- package/dist/editor-sample/App/InspectorDrawer/LayersPanelStyles.d.ts +2 -2
- 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 +17 -4
- package/dist/editor-sample/documents/blocks/Marquee/MarqueePropsSchema.d.ts +25 -0
- package/dist/editor-sample/documents/blocks/Table/TableImportDialog.styles.d.ts +9 -9
- package/dist/editor-sample/documents/blocks/Timer/TimerPropsSchema.d.ts +25 -0
- package/dist/editor-sample/documents/blocks/helpers/zod.d.ts +1 -1
- package/dist/editor-sample/documents/editor/core.d.ts +195 -19
- package/dist/email-builder-core/blocks/ColumnsContainer/ColumnsContainerPropsSchema.d.ts +3 -3
- package/dist/email-builder-core/blocks/Container/ContainerPropsSchema.d.ts +17 -4
- package/dist/email-builder-core/blocks/EmailLayout/EmailLayoutReader.d.ts +1 -1
- package/dist/email-builder-core/blocks/HoverEffectWrapper.d.ts +6 -0
- package/dist/email-builder-core/blocks/Marquee/MarqueePropsSchema.d.ts +25 -0
- package/dist/email-builder-core/blocks/Timer/TimerPropsSchema.d.ts +25 -0
- package/dist/email-builder-core/blocks/hoverEffectSchema.d.ts +27 -5
- package/dist/email-builder-core/renderers/pageScripts.d.ts +1 -0
- package/dist/host-stubs/view/shared/styles/Table.styles.d.ts +1 -1
- package/dist/{index-BCXN3RVI.js → index-Bj8aEC5x.js} +28655 -28378
- package/dist/{index-dv-Dnodb.cjs → index-CHnw7-jn.cjs} +302 -306
- package/dist/{index-B3at_QxY.cjs → index-D169496I.cjs} +1 -1
- package/dist/{index-CrB7O57y.js → index-DVR0Xke0.js} +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/render.cjs +150 -154
- package/dist/render.js +5399 -5276
- package/dist/{xlsx-C0eQGSMm.js → xlsx-D1z_8D-l.js} +1 -1
- package/dist/{xlsx-DCfe7eEJ.cjs → xlsx-D6z6jSsp.cjs} +1 -1
- package/package.json +1 -1
|
@@ -50,18 +50,18 @@ export declare const ContainerPropsSchema: z.ZodObject<{
|
|
|
50
50
|
childrenIds: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
51
51
|
fullWidth: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
|
|
52
52
|
widthType: z.ZodNullable<z.ZodOptional<z.ZodEnum<{
|
|
53
|
-
fill: "fill";
|
|
54
53
|
fixed: "fixed";
|
|
54
|
+
fill: "fill";
|
|
55
55
|
fit: "fit";
|
|
56
56
|
}>>>;
|
|
57
57
|
widthTypeTablet: z.ZodNullable<z.ZodOptional<z.ZodEnum<{
|
|
58
|
-
fill: "fill";
|
|
59
58
|
fixed: "fixed";
|
|
59
|
+
fill: "fill";
|
|
60
60
|
fit: "fit";
|
|
61
61
|
}>>>;
|
|
62
62
|
widthTypeMobile: z.ZodNullable<z.ZodOptional<z.ZodEnum<{
|
|
63
|
-
fill: "fill";
|
|
64
63
|
fixed: "fixed";
|
|
64
|
+
fill: "fill";
|
|
65
65
|
fit: "fit";
|
|
66
66
|
}>>>;
|
|
67
67
|
width: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
@@ -140,10 +140,23 @@ export declare const ContainerPropsSchema: z.ZodObject<{
|
|
|
140
140
|
easing: z.ZodNullable<z.ZodOptional<z.ZodEnum<{
|
|
141
141
|
ease: "ease";
|
|
142
142
|
"ease-in": "ease-in";
|
|
143
|
-
"ease-in-out": "ease-in-out";
|
|
144
143
|
"ease-out": "ease-out";
|
|
144
|
+
"ease-in-out": "ease-in-out";
|
|
145
145
|
linear: "linear";
|
|
146
146
|
}>>>;
|
|
147
|
+
borderColor: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
148
|
+
borderWidth: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
149
|
+
borderStyle: z.ZodNullable<z.ZodOptional<z.ZodEnum<{
|
|
150
|
+
solid: "solid";
|
|
151
|
+
dashed: "dashed";
|
|
152
|
+
dotted: "dotted";
|
|
153
|
+
}>>>;
|
|
154
|
+
textDecoration: z.ZodNullable<z.ZodOptional<z.ZodEnum<{
|
|
155
|
+
none: "none";
|
|
156
|
+
underline: "underline";
|
|
157
|
+
overline: "overline";
|
|
158
|
+
"line-through": "line-through";
|
|
159
|
+
}>>>;
|
|
147
160
|
}, z.core.$strip>>>;
|
|
148
161
|
}, z.core.$strip>>>;
|
|
149
162
|
}, z.core.$strip>;
|
|
@@ -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 |
|
|
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>> | import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { THoverEffect } from './hoverEffectSchema';
|
|
3
|
+
export default function HoverEffectWrapper({ hoverEffect, children, }: {
|
|
4
|
+
hoverEffect: THoverEffect;
|
|
5
|
+
children: React.ReactNode;
|
|
6
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -50,6 +50,31 @@ export declare const MarqueePropsSchema: z.ZodObject<{
|
|
|
50
50
|
bottom: "bottom";
|
|
51
51
|
middle: "middle";
|
|
52
52
|
}>>>;
|
|
53
|
+
hoverEffect: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
54
|
+
enabled: z.ZodBoolean;
|
|
55
|
+
scale: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
56
|
+
duration: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
57
|
+
easing: z.ZodNullable<z.ZodOptional<z.ZodEnum<{
|
|
58
|
+
ease: "ease";
|
|
59
|
+
"ease-in": "ease-in";
|
|
60
|
+
"ease-out": "ease-out";
|
|
61
|
+
"ease-in-out": "ease-in-out";
|
|
62
|
+
linear: "linear";
|
|
63
|
+
}>>>;
|
|
64
|
+
borderColor: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
65
|
+
borderWidth: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
66
|
+
borderStyle: z.ZodNullable<z.ZodOptional<z.ZodEnum<{
|
|
67
|
+
solid: "solid";
|
|
68
|
+
dashed: "dashed";
|
|
69
|
+
dotted: "dotted";
|
|
70
|
+
}>>>;
|
|
71
|
+
textDecoration: z.ZodNullable<z.ZodOptional<z.ZodEnum<{
|
|
72
|
+
none: "none";
|
|
73
|
+
underline: "underline";
|
|
74
|
+
overline: "overline";
|
|
75
|
+
"line-through": "line-through";
|
|
76
|
+
}>>>;
|
|
77
|
+
}, z.core.$strip>>>;
|
|
53
78
|
items: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
54
79
|
contentChildrenIds: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
55
80
|
}, z.core.$strip>>>>;
|
|
@@ -41,6 +41,31 @@ export declare const TimerPropsSchema: z.ZodObject<{
|
|
|
41
41
|
}>>;
|
|
42
42
|
expiredMessage: z.ZodDefault<z.ZodString>;
|
|
43
43
|
showConfetti: z.ZodDefault<z.ZodBoolean>;
|
|
44
|
+
hoverEffect: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
45
|
+
enabled: z.ZodBoolean;
|
|
46
|
+
scale: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
47
|
+
duration: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
48
|
+
easing: z.ZodNullable<z.ZodOptional<z.ZodEnum<{
|
|
49
|
+
ease: "ease";
|
|
50
|
+
"ease-in": "ease-in";
|
|
51
|
+
"ease-out": "ease-out";
|
|
52
|
+
"ease-in-out": "ease-in-out";
|
|
53
|
+
linear: "linear";
|
|
54
|
+
}>>>;
|
|
55
|
+
borderColor: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
56
|
+
borderWidth: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
57
|
+
borderStyle: z.ZodNullable<z.ZodOptional<z.ZodEnum<{
|
|
58
|
+
solid: "solid";
|
|
59
|
+
dashed: "dashed";
|
|
60
|
+
dotted: "dotted";
|
|
61
|
+
}>>>;
|
|
62
|
+
textDecoration: z.ZodNullable<z.ZodOptional<z.ZodEnum<{
|
|
63
|
+
none: "none";
|
|
64
|
+
underline: "underline";
|
|
65
|
+
overline: "overline";
|
|
66
|
+
"line-through": "line-through";
|
|
67
|
+
}>>>;
|
|
68
|
+
}, z.core.$strip>>>;
|
|
44
69
|
}, z.core.$strip>>>;
|
|
45
70
|
}, z.core.$strip>;
|
|
46
71
|
export type TimerProps = z.infer<typeof TimerPropsSchema>;
|
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
/**
|
|
3
|
-
* Per-block CSS `:hover`
|
|
4
|
-
*
|
|
5
|
-
* Distinct from AnimationSection's trigger-based keyframe animations —
|
|
6
|
-
* this is a plain `:hover { transform: scale(x); }` transition.
|
|
3
|
+
* Per-block CSS `:hover` config (see HoverEffectSection.tsx sidebar UI).
|
|
4
|
+
* Distinct from AnimationSection's trigger-based keyframe animations.
|
|
7
5
|
*/
|
|
8
6
|
export declare const HOVER_EFFECT_SCHEMA: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
9
7
|
enabled: z.ZodBoolean;
|
|
@@ -12,9 +10,33 @@ export declare const HOVER_EFFECT_SCHEMA: z.ZodNullable<z.ZodOptional<z.ZodObjec
|
|
|
12
10
|
easing: z.ZodNullable<z.ZodOptional<z.ZodEnum<{
|
|
13
11
|
ease: "ease";
|
|
14
12
|
"ease-in": "ease-in";
|
|
15
|
-
"ease-in-out": "ease-in-out";
|
|
16
13
|
"ease-out": "ease-out";
|
|
14
|
+
"ease-in-out": "ease-in-out";
|
|
17
15
|
linear: "linear";
|
|
18
16
|
}>>>;
|
|
17
|
+
borderColor: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
18
|
+
borderWidth: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
19
|
+
borderStyle: z.ZodNullable<z.ZodOptional<z.ZodEnum<{
|
|
20
|
+
solid: "solid";
|
|
21
|
+
dashed: "dashed";
|
|
22
|
+
dotted: "dotted";
|
|
23
|
+
}>>>;
|
|
24
|
+
textDecoration: z.ZodNullable<z.ZodOptional<z.ZodEnum<{
|
|
25
|
+
none: "none";
|
|
26
|
+
underline: "underline";
|
|
27
|
+
overline: "overline";
|
|
28
|
+
"line-through": "line-through";
|
|
29
|
+
}>>>;
|
|
19
30
|
}, z.core.$strip>>>;
|
|
20
31
|
export type THoverEffect = z.infer<typeof HOVER_EFFECT_SCHEMA>;
|
|
32
|
+
type HoverCssOptions = {
|
|
33
|
+
themedBorderColor?: string | null;
|
|
34
|
+
scaleTarget?: string;
|
|
35
|
+
borderTarget?: string;
|
|
36
|
+
scaleFromContainer?: boolean;
|
|
37
|
+
borderFromContainer?: boolean;
|
|
38
|
+
defaultScale?: number;
|
|
39
|
+
scaleBaseCss?: string;
|
|
40
|
+
};
|
|
41
|
+
export declare function buildHoverEffectCss(instanceClass: string, hoverEffect: THoverEffect, { themedBorderColor, scaleTarget, borderTarget, scaleFromContainer, borderFromContainer, defaultScale, scaleBaseCss, }?: HoverCssOptions): string | null;
|
|
42
|
+
export {};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { TReaderDocument } from '../Reader/core';
|
|
2
2
|
export declare const buildTemplateVarSubstitutionMarkup: () => string;
|
|
3
3
|
export declare const buildPostMessageActionMarkup: () => string;
|
|
4
|
+
export declare const buildScriptLoaderMarkup: (urls: string[]) => string;
|
|
4
5
|
export declare const hasPostMessageButton: (document: TReaderDocument) => boolean;
|
|
5
6
|
export declare const hasTabsBlock: (document: TReaderDocument) => boolean;
|
|
6
7
|
export declare const hasDemoBlock: (document: TReaderDocument) => boolean;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export declare const StyledCellContainer: import('@emotion/styled').StyledComponent<import('@mui/system').BoxOwnProps<import('@mui/material').Theme> & Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('@mui/system').BoxOwnProps<import('@mui/material').Theme>> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, {}, {}>;
|
|
2
|
-
export declare const StyledCellValue: import('@emotion/styled').StyledComponent<import('@mui/material').TypographyOwnProps & import('@mui/material/OverridableComponent').CommonProps & Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "border" | "
|
|
2
|
+
export declare const StyledCellValue: import('@emotion/styled').StyledComponent<import('@mui/material').TypographyOwnProps & import('@mui/material/OverridableComponent').CommonProps & Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "borderColor" | "border" | "children" | "flex" | "className" | "style" | "top" | "bottom" | "right" | "left" | "padding" | "margin" | "lineHeight" | "fontSize" | "fontFamily" | "fontWeight" | "fontStyle" | "textAlign" | "marginBottom" | "width" | "height" | "borderRadius" | "gap" | "p" | "color" | "display" | "position" | "paddingBottom" | "align" | "bgcolor" | "borderTop" | "px" | "boxShadow" | "overflow" | "variant" | "paddingX" | "paddingY" | "marginX" | "marginY" | "maxWidth" | "maxHeight" | "classes" | "sx" | "letterSpacing" | "order" | "visibility" | "zIndex" | "alignContent" | "alignItems" | "alignSelf" | "boxSizing" | "columnGap" | "flexBasis" | "flexDirection" | "flexGrow" | "flexShrink" | "flexWrap" | "gridAutoColumns" | "gridAutoFlow" | "gridAutoRows" | "gridTemplateAreas" | "gridTemplateColumns" | "gridTemplateRows" | "justifyContent" | "justifyItems" | "justifySelf" | "marginBlockEnd" | "marginBlockStart" | "marginInlineEnd" | "marginInlineStart" | "marginLeft" | "marginRight" | "marginTop" | "minHeight" | "minWidth" | "paddingBlockEnd" | "paddingBlockStart" | "paddingInlineEnd" | "paddingInlineStart" | "paddingLeft" | "paddingRight" | "paddingTop" | "rowGap" | "textOverflow" | "textTransform" | "whiteSpace" | "borderBottom" | "borderLeft" | "borderRight" | "gridArea" | "gridColumn" | "gridRow" | "marginBlock" | "marginInline" | "paddingBlock" | "paddingInline" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "my" | "pt" | "pr" | "pb" | "pl" | "py" | "typography" | "displayPrint" | "gutterBottom" | "noWrap" | "paragraph" | "variantMapping"> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, {}, {}>;
|
|
3
3
|
export declare const StyledCopyIconContainer: import('@emotion/styled').StyledComponent<import('@mui/system').BoxOwnProps<import('@mui/material').Theme> & Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('@mui/system').BoxOwnProps<import('@mui/material').Theme>> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, {}, {}>;
|