pagepilot-visual-editor 1.0.4 → 1.0.6
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 +277 -54
- package/dist/api/ApiClientContext.d.ts +17 -0
- package/dist/api/PagepilotApiClient.d.ts +63 -0
- package/dist/api/useTenantPlan.d.ts +25 -0
- package/dist/blocks-internal/block-button/src/index.d.ts +32 -1
- package/dist/blocks-internal/block-button-group/src/index.d.ts +20 -1
- package/dist/blocks-internal/block-columns-container/src/index.d.ts +38 -0
- package/dist/blocks-internal/block-container/src/index.d.ts +44 -5
- package/dist/blocks-internal/block-divider/src/index.d.ts +6 -0
- package/dist/blocks-internal/block-grid/src/index.d.ts +6 -0
- package/dist/blocks-internal/block-heading/src/index.d.ts +3 -2
- package/dist/blocks-internal/block-html/src/index.d.ts +6 -0
- package/dist/blocks-internal/block-iframe/src/index.d.ts +4 -0
- package/dist/blocks-internal/block-image/src/index.d.ts +17 -0
- package/dist/blocks-internal/block-logo/src/index.d.ts +20 -7
- package/dist/blocks-internal/block-stepper/src/index.d.ts +2 -2
- package/dist/blocks-internal/block-text/src/index.d.ts +1 -1
- package/dist/blocks-internal/block-video/src/index.d.ts +4 -0
- package/dist/blocks-internal/block-youtube-url/src/index.d.ts +4 -0
- package/dist/editor/Shell.d.ts +1 -1
- package/dist/editor/blockToggles.d.ts +1 -1
- package/dist/editor/publish/PagePublishDialog.d.ts +21 -0
- package/dist/editor/types.d.ts +63 -0
- package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/ResponsiveModeContext.d.ts +12 -0
- package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/blockStyleClipboard.d.ts +4 -4
- package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/AppBannerPickerSidebarPanel.d.ts +19 -0
- package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/DemoPickerSidebarPanel.d.ts +31 -0
- package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/EmailLayoutSidebarPanel.d.ts +26 -0
- package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/FaqPickerSidebarPanel.d.ts +18 -0
- package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/FormsPickerSidebarPanel.d.ts +18 -0
- package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/MenuPickerSidebarPanel.d.ts +34 -0
- package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/PaginationSidebarPanel.d.ts +7 -0
- package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/TableSidebarPanel.d.ts +9 -0
- package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/TimerSidebarPanel.d.ts +7 -0
- package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/CollapsibleSection.d.ts +8 -2
- package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/MediaLibraryButton.d.ts +1 -1
- package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/SectionWrapper.d.ts +2 -1
- package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/deviceProp.d.ts +14 -0
- package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/ColorInput/BaseColorInput.d.ts +4 -2
- package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/ColorInput/Picker.d.ts +7 -1
- package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/ColorInput/index.d.ts +3 -0
- package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/PaddingInput.d.ts +4 -1
- package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/RadiusInput.d.ts +13 -11
- package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/SelectInput.d.ts +15 -0
- package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/StepperInput.d.ts +19 -0
- package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/WidthInputWithSelect.d.ts +4 -1
- package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/sanitizeAgainstSchema.d.ts +11 -0
- package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/style-inputs/MultiStylePropertyPanel.d.ts +2 -1
- package/dist/editor-sample/App/InspectorDrawer/EditorBehavior.d.ts +16 -0
- package/dist/editor-sample/App/InspectorDrawer/LayersPanelStyles.d.ts +2 -2
- package/dist/editor-sample/App/InspectorDrawer/LayoutPanel/SectionsModal.d.ts +15 -0
- package/dist/editor-sample/App/InspectorDrawer/LayoutPanel/TemplatePreviewDialog.d.ts +14 -0
- package/dist/editor-sample/App/InspectorDrawer/LayoutPanel/TemplatesList.d.ts +45 -0
- package/dist/editor-sample/App/InspectorDrawer/LayoutPanel/icons/index.d.ts +37 -1
- package/dist/editor-sample/App/InspectorDrawer/LayoutPanel/templateApplyHelpers.d.ts +101 -0
- package/dist/editor-sample/App/InspectorDrawer/PagePilotAiPanel.d.ts +1 -0
- package/dist/editor-sample/App/InspectorDrawer/SeoPanel/SeoFieldLabel.d.ts +7 -0
- package/dist/editor-sample/App/InspectorDrawer/SeoPanel/SeoPanel.styled.d.ts +12 -0
- package/dist/editor-sample/App/InspectorDrawer/SeoPanel/index.d.ts +6 -0
- package/dist/editor-sample/App/InspectorDrawer/VariablesPanel/ApiResponseDialog.d.ts +10 -0
- package/dist/editor-sample/App/InspectorDrawer/VariablesPanel/ArrayFieldEditor.d.ts +14 -0
- package/dist/editor-sample/App/InspectorDrawer/VariablesPanel/ContainerRepeatSection.d.ts +9 -0
- package/dist/editor-sample/App/InspectorDrawer/VariablesPanel/DataReferenceDialog.d.ts +15 -0
- package/dist/editor-sample/App/InspectorDrawer/VariablesPanel/DataReferencePanel.d.ts +20 -0
- package/dist/editor-sample/App/InspectorDrawer/VariablesPanel/GrowDirectionDialog.d.ts +13 -0
- package/dist/editor-sample/App/InspectorDrawer/VariablesPanel/RowCard.d.ts +23 -0
- package/dist/editor-sample/App/InspectorDrawer/VariablesPanel/SectionHeader.d.ts +13 -0
- package/dist/editor-sample/App/InspectorDrawer/VariablesPanel/VariablesPaywall.d.ts +1 -0
- package/dist/editor-sample/App/InspectorDrawer/VariablesPanel/constants.d.ts +2 -0
- package/dist/editor-sample/App/InspectorDrawer/VariablesPanel/dataReferenceUtils.d.ts +34 -0
- package/dist/editor-sample/App/InspectorDrawer/VariablesPanel/index.d.ts +1 -0
- package/dist/editor-sample/App/InspectorDrawer/VariablesPanel/repeatRowActions.d.ts +31 -0
- package/dist/editor-sample/App/InspectorDrawer/VariablesPanel/styles.d.ts +53 -0
- package/dist/editor-sample/App/InspectorDrawer/VariablesPanel/upgradeDialog.d.ts +4 -0
- package/dist/editor-sample/App/InspectorDrawer/components/MiniRichTextInput.d.ts +7 -0
- package/dist/editor-sample/App/InspectorDrawer/components/ScalarFieldInput.d.ts +10 -0
- package/dist/editor-sample/App/shared/editor.styles.d.ts +3 -3
- package/dist/editor-sample/documents/blocks/Accordion/AccordionPropsSchema.d.ts +6 -0
- package/dist/editor-sample/documents/blocks/AppBannerPicker/AppBannerEditor.d.ts +18 -0
- package/dist/editor-sample/documents/blocks/AppBannerPicker/AppBannerPropsSchema.d.ts +14 -0
- package/dist/editor-sample/documents/blocks/AppBannerPicker/appBanner.styled.d.ts +2 -0
- package/dist/editor-sample/documents/blocks/ButtonGroup/ButtonGroupPropsSchema.d.ts +20 -1
- package/dist/editor-sample/documents/blocks/Carousel/CarouselPropsSchema.d.ts +7 -0
- package/dist/editor-sample/documents/blocks/ColumnsContainer/ColumnsContainerPropsSchema.d.ts +38 -0
- package/dist/editor-sample/documents/blocks/Container/ContainerPropsSchema.d.ts +56 -3
- package/dist/editor-sample/documents/blocks/DemoPicker/DemoEditor.d.ts +3 -0
- package/dist/editor-sample/documents/blocks/DemoPicker/DemoPropsSchema.d.ts +37 -0
- package/dist/editor-sample/documents/blocks/EmailLayout/EmailLayoutEditor.d.ts +2 -0
- package/dist/editor-sample/documents/blocks/{PagePilotLayout/PagePilotLayoutPropsSchema.d.ts → EmailLayout/EmailLayoutPropsSchema.d.ts} +51 -4
- package/dist/editor-sample/documents/blocks/FaqPicker/FaqEditor.d.ts +18 -0
- package/dist/editor-sample/documents/blocks/FaqPicker/FaqPickerPropsSchema.d.ts +14 -0
- package/dist/editor-sample/documents/blocks/FaqPicker/faqPicker.styled.d.ts +3 -0
- package/dist/editor-sample/documents/blocks/FlexColumns/FlexColumnsEditor.d.ts +6 -0
- package/dist/editor-sample/documents/blocks/FormsPicker/FormsEditor.d.ts +3 -0
- package/dist/editor-sample/documents/blocks/FormsPicker/FormsPropsSchema.d.ts +33 -0
- package/dist/editor-sample/documents/blocks/Grid/GridPropsSchema.d.ts +13 -2
- package/dist/editor-sample/documents/blocks/Marquee/MarqueePropsSchema.d.ts +12 -0
- package/dist/editor-sample/documents/blocks/MenuPicker/MenuEditor.d.ts +7 -0
- package/dist/editor-sample/documents/blocks/MenuPicker/MenuPropsSchema.d.ts +45 -0
- package/dist/editor-sample/documents/blocks/MenuPicker/mergeMenuItems.d.ts +13 -0
- package/dist/editor-sample/documents/blocks/Pagination/PaginationEditor.d.ts +2 -0
- package/dist/editor-sample/documents/blocks/Pagination/PaginationPropsSchema.d.ts +4 -0
- package/dist/editor-sample/documents/blocks/Table/TableCellEditor.d.ts +11 -0
- package/dist/editor-sample/documents/blocks/Table/TableEditor.d.ts +2 -0
- package/dist/editor-sample/documents/blocks/Table/TablePropsSchema.d.ts +1 -0
- package/dist/editor-sample/documents/blocks/TabsBlock/TabsBlockPropsSchema.d.ts +12 -0
- package/dist/editor-sample/documents/blocks/Timer/TimerEditor.d.ts +2 -0
- package/dist/editor-sample/documents/blocks/Timer/TimerPropsSchema.d.ts +38 -0
- package/dist/editor-sample/documents/blocks/Timer/timerMath.d.ts +9 -0
- package/dist/editor-sample/documents/blocks/Timer/variants/CircularProgressView.d.ts +9 -0
- package/dist/editor-sample/documents/blocks/Timer/variants/DigitalFlipView.d.ts +9 -0
- package/dist/editor-sample/documents/blocks/Timer/variants/TextInlineView.d.ts +9 -0
- package/dist/editor-sample/documents/blocks/helpers/BlockCategories.d.ts +1 -0
- package/dist/editor-sample/documents/blocks/helpers/EditorChildrenIds/AddBlockMenu/BlockButton.d.ts +1 -1
- package/dist/editor-sample/documents/blocks/helpers/EditorChildrenIds/AddBlockMenu/BlocksMenu.d.ts +1 -1
- package/dist/editor-sample/documents/blocks/helpers/EditorChildrenIds/AddBlockMenu/DividerButton.d.ts +2 -1
- package/dist/editor-sample/documents/blocks/helpers/EditorChildrenIds/AddBlockMenu/PlaceholderButton.d.ts +2 -1
- package/dist/editor-sample/documents/blocks/helpers/EditorChildrenIds/AddBlockMenu/blockMenuStyles.d.ts +11 -0
- package/dist/editor-sample/documents/blocks/helpers/EditorChildrenIds/AddBlockMenu/brandButtonDefaults.d.ts +4 -2
- package/dist/editor-sample/documents/blocks/helpers/EditorChildrenIds/AddBlockMenu/buttons.d.ts +8 -0
- package/dist/editor-sample/documents/blocks/helpers/EditorChildrenIds/AddBlockMenu/gridPresets.d.ts +17 -0
- package/dist/editor-sample/documents/blocks/helpers/EditorChildrenIds/AddBlockMenu/index.d.ts +3 -2
- package/dist/editor-sample/documents/blocks/helpers/EditorChildrenIds/index.d.ts +2 -1
- package/dist/editor-sample/documents/blocks/helpers/TStyle.d.ts +2 -0
- package/dist/editor-sample/documents/blocks/helpers/block-wrappers/saveAsTemplateUtils.d.ts +97 -0
- package/dist/editor-sample/documents/blocks/helpers/documentUtils.d.ts +96 -17
- package/dist/editor-sample/documents/blocks/helpers/responsiveStyle.d.ts +106 -0
- package/dist/editor-sample/documents/blocks/helpers/zod.d.ts +1 -1
- package/dist/editor-sample/documents/editor/EditorContext.d.ts +11 -2
- package/dist/editor-sample/documents/editor/core.d.ts +575 -16
- package/dist/editor-sample/documents/editor/templateVariables.d.ts +73 -0
- package/dist/email-builder-core/blocks/Accordion/AccordionPropsSchema.d.ts +6 -0
- package/dist/email-builder-core/blocks/AppBannerPicker/AppBannerPropsSchema.d.ts +16 -0
- package/dist/email-builder-core/blocks/AppBannerPicker/AppBannerReader.d.ts +3 -0
- package/dist/email-builder-core/blocks/ButtonGroup/ButtonGroupPropsSchema.d.ts +20 -1
- package/dist/email-builder-core/blocks/Calendly/CalendlyPropsSchema.d.ts +4 -0
- package/dist/email-builder-core/blocks/Carousel/CarouselPropsSchema.d.ts +6 -0
- package/dist/email-builder-core/blocks/ColumnsContainer/ColumnsContainerPropsSchema.d.ts +38 -0
- package/dist/email-builder-core/blocks/Container/ContainerPropsSchema.d.ts +56 -3
- package/dist/email-builder-core/blocks/DemoPicker/DemoPropsSchema.d.ts +36 -0
- package/dist/email-builder-core/blocks/DemoPicker/DemoReader.d.ts +3 -0
- package/dist/email-builder-core/blocks/{PagePilotLayout/PagePilotLayoutPropsSchema.d.ts → EmailLayout/EmailLayoutPropsSchema.d.ts} +41 -2
- package/dist/email-builder-core/blocks/EmailLayout/EmailLayoutReader.d.ts +3 -0
- package/dist/email-builder-core/blocks/EmailLayout/emailLayoutResponsive.d.ts +46 -0
- package/dist/email-builder-core/blocks/FaqPicker/FaqPickerPropsSchema.d.ts +16 -0
- package/dist/email-builder-core/blocks/FaqPicker/FaqReader.d.ts +3 -0
- package/dist/email-builder-core/blocks/FlexColumns/FlexColumnsPropsSchema.d.ts +23 -2
- package/dist/email-builder-core/blocks/FlexColumns/FlexColumnsReader.d.ts +6 -0
- package/dist/email-builder-core/blocks/FlexColumns/flexColumnsHelpers.d.ts +71 -1
- package/dist/email-builder-core/blocks/FormsPicker/FormsPropsSchema.d.ts +19 -0
- package/dist/email-builder-core/blocks/FormsPicker/FormsReader.d.ts +3 -0
- package/dist/email-builder-core/blocks/Grid/GridPropsSchema.d.ts +12 -2
- package/dist/email-builder-core/blocks/Marquee/MarqueePropsSchema.d.ts +16 -0
- package/dist/email-builder-core/blocks/Marquee/MarqueeReader.d.ts +1 -1
- package/dist/email-builder-core/blocks/Marquee/marqueeMotion.d.ts +40 -0
- package/dist/email-builder-core/blocks/MenuPicker/MenuPropsSchema.d.ts +87 -0
- package/dist/email-builder-core/blocks/MenuPicker/MenuReader.d.ts +3 -0
- package/dist/email-builder-core/blocks/MenuPicker/menuResponsiveCss.d.ts +27 -0
- package/dist/email-builder-core/blocks/Pagination/PaginationPropsSchema.d.ts +119 -0
- package/dist/email-builder-core/blocks/Pagination/PaginationReader.d.ts +2 -0
- package/dist/email-builder-core/blocks/Pagination/paginationShared.d.ts +74 -0
- package/dist/email-builder-core/blocks/Table/TablePropsSchema.d.ts +48 -0
- package/dist/email-builder-core/blocks/Table/TableReader.d.ts +13 -0
- package/dist/email-builder-core/blocks/TabsBlock/TabsBlockPropsSchema.d.ts +12 -0
- package/dist/email-builder-core/blocks/Timer/TimerPropsSchema.d.ts +38 -0
- package/dist/email-builder-core/blocks/Timer/TimerReader.d.ts +2 -0
- package/dist/email-builder-core/blocks/Timer/variants/CircularProgressView.d.ts +11 -0
- package/dist/email-builder-core/blocks/Timer/variants/DigitalFlipView.d.ts +11 -0
- package/dist/email-builder-core/blocks/Timer/variants/TextInlineView.d.ts +11 -0
- package/dist/email-builder-core/blocks/responsiveBreakpoints.d.ts +32 -0
- package/dist/host-stubs/modules/_hostListShim.d.ts +18 -0
- package/dist/host-stubs/modules/appBannerV2/list/appBannerListActions.d.ts +1 -0
- package/dist/host-stubs/modules/appBannerV2/list/appBannerListSelectors.d.ts +1 -0
- package/dist/host-stubs/modules/demo/list/demoListActions.d.ts +1 -0
- package/dist/host-stubs/modules/demo/list/demoListSelectors.d.ts +1 -0
- package/dist/host-stubs/modules/faqGroup/list/faqGroupListActions.d.ts +1 -0
- package/dist/host-stubs/modules/faqGroup/list/faqGroupListSelectors.d.ts +1 -0
- package/dist/host-stubs/modules/forms/formsService.d.ts +9 -0
- package/dist/host-stubs/modules/menu/list/menuListActions.d.ts +1 -0
- package/dist/host-stubs/modules/menu/list/menuListSelectors.d.ts +1 -0
- package/dist/host-stubs/modules/store.d.ts +3 -0
- package/dist/host-stubs/react-redux.d.ts +3 -0
- package/dist/host-stubs/style/menu.styled.d.ts +73 -15
- package/dist/host-stubs/tanstack-react-query.d.ts +9 -0
- package/dist/host-stubs/view/shared/htmlSanitize.d.ts +15 -0
- package/dist/index.cjs +381 -817
- package/dist/index.d.ts +2 -0
- package/dist/index.js +64041 -101752
- package/dist/style.css +1 -1
- package/package.json +2 -10
- package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/PagePilotLayoutSidebarPanel.d.ts +0 -24
- package/dist/editor-sample/documents/blocks/PagePilotLayout/PagePilotLayoutEditor.d.ts +0 -2
- package/dist/email-builder-core/blocks/PagePilotLayout/PagePilotLayoutReader.d.ts +0 -3
package/dist/editor-sample/documents/blocks/ColumnsContainer/ColumnsContainerPropsSchema.d.ts
CHANGED
|
@@ -21,6 +21,12 @@ declare const ColumnsContainerPropsSchema: z.ZodObject<{
|
|
|
21
21
|
right: z.ZodNumber;
|
|
22
22
|
left: z.ZodNumber;
|
|
23
23
|
}, z.core.$strip>>>;
|
|
24
|
+
margin: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
25
|
+
top: z.ZodNumber;
|
|
26
|
+
bottom: z.ZodNumber;
|
|
27
|
+
right: z.ZodNumber;
|
|
28
|
+
left: z.ZodNumber;
|
|
29
|
+
}, z.core.$strip>>>;
|
|
24
30
|
}, z.core.$strip>>>;
|
|
25
31
|
props: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
26
32
|
columns: z.ZodArray<z.ZodObject<{
|
|
@@ -31,18 +37,50 @@ declare const ColumnsContainerPropsSchema: z.ZodObject<{
|
|
|
31
37
|
fixed: "fixed";
|
|
32
38
|
fit: "fit";
|
|
33
39
|
}>>>;
|
|
40
|
+
widthTypeTablet: z.ZodNullable<z.ZodOptional<z.ZodEnum<{
|
|
41
|
+
fill: "fill";
|
|
42
|
+
fixed: "fixed";
|
|
43
|
+
fit: "fit";
|
|
44
|
+
}>>>;
|
|
45
|
+
widthTypeMobile: z.ZodNullable<z.ZodOptional<z.ZodEnum<{
|
|
46
|
+
fill: "fill";
|
|
47
|
+
fixed: "fixed";
|
|
48
|
+
fit: "fit";
|
|
49
|
+
}>>>;
|
|
34
50
|
fixedWidths: z.ZodNullable<z.ZodOptional<z.ZodTuple<[z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>, z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>, z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>, z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>, z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>], null>>>;
|
|
51
|
+
fixedWidthsTablet: z.ZodNullable<z.ZodOptional<z.ZodTuple<[z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>, z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>, z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>, z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>, z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>], null>>>;
|
|
52
|
+
fixedWidthsMobile: z.ZodNullable<z.ZodOptional<z.ZodTuple<[z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>, z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>, z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>, z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>, z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>], null>>>;
|
|
35
53
|
columnsCount: z.ZodNullable<z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<2>, z.ZodLiteral<3>, z.ZodLiteral<4>, z.ZodLiteral<5>]>>>;
|
|
36
54
|
columnsGap: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
55
|
+
columnsGapTablet: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
56
|
+
columnsGapMobile: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
37
57
|
columnsDirection: z.ZodNullable<z.ZodOptional<z.ZodEnum<{
|
|
38
58
|
horizontal: "horizontal";
|
|
39
59
|
vertical: "vertical";
|
|
40
60
|
}>>>;
|
|
61
|
+
columnsDirectionTablet: z.ZodNullable<z.ZodOptional<z.ZodEnum<{
|
|
62
|
+
horizontal: "horizontal";
|
|
63
|
+
vertical: "vertical";
|
|
64
|
+
}>>>;
|
|
65
|
+
columnsDirectionMobile: z.ZodNullable<z.ZodOptional<z.ZodEnum<{
|
|
66
|
+
horizontal: "horizontal";
|
|
67
|
+
vertical: "vertical";
|
|
68
|
+
}>>>;
|
|
41
69
|
contentAlignment: z.ZodNullable<z.ZodOptional<z.ZodEnum<{
|
|
42
70
|
top: "top";
|
|
43
71
|
bottom: "bottom";
|
|
44
72
|
middle: "middle";
|
|
45
73
|
}>>>;
|
|
74
|
+
contentAlignmentTablet: z.ZodNullable<z.ZodOptional<z.ZodEnum<{
|
|
75
|
+
top: "top";
|
|
76
|
+
bottom: "bottom";
|
|
77
|
+
middle: "middle";
|
|
78
|
+
}>>>;
|
|
79
|
+
contentAlignmentMobile: z.ZodNullable<z.ZodOptional<z.ZodEnum<{
|
|
80
|
+
top: "top";
|
|
81
|
+
bottom: "bottom";
|
|
82
|
+
middle: "middle";
|
|
83
|
+
}>>>;
|
|
46
84
|
}, z.core.$strip>>>;
|
|
47
85
|
}, z.core.$strip>;
|
|
48
86
|
export type ColumnsContainerProps = z.infer<typeof ColumnsContainerPropsSchema>;
|
|
@@ -4,6 +4,10 @@ declare const ContainerPropsSchema: z.ZodObject<{
|
|
|
4
4
|
backgroundColor: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodString, z.ZodString, z.ZodLiteral<"transparent">]>>>;
|
|
5
5
|
backgroundImage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
6
6
|
backgroundSize: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
7
|
+
backgroundRepeat: z.ZodNullable<z.ZodOptional<z.ZodEnum<{
|
|
8
|
+
repeat: "repeat";
|
|
9
|
+
"no-repeat": "no-repeat";
|
|
10
|
+
}>>>;
|
|
7
11
|
borderColor: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodString, z.ZodString, z.ZodLiteral<"transparent">]>>>;
|
|
8
12
|
borderRadius: z.ZodNullable<z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
|
|
9
13
|
topLeft: z.ZodNumber;
|
|
@@ -17,6 +21,12 @@ declare const ContainerPropsSchema: z.ZodObject<{
|
|
|
17
21
|
right: z.ZodNumber;
|
|
18
22
|
left: z.ZodNumber;
|
|
19
23
|
}, z.core.$strip>>>;
|
|
24
|
+
margin: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
25
|
+
top: z.ZodNumber;
|
|
26
|
+
bottom: z.ZodNumber;
|
|
27
|
+
right: z.ZodNumber;
|
|
28
|
+
left: z.ZodNumber;
|
|
29
|
+
}, z.core.$strip>>>;
|
|
20
30
|
borderWidth: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
21
31
|
top: z.ZodNumber;
|
|
22
32
|
bottom: z.ZodNumber;
|
|
@@ -24,6 +34,10 @@ declare const ContainerPropsSchema: z.ZodObject<{
|
|
|
24
34
|
left: z.ZodNumber;
|
|
25
35
|
}, z.core.$strip>>>;
|
|
26
36
|
}, z.core.$strip>>>;
|
|
37
|
+
responsive: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
38
|
+
tablet: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
39
|
+
mobile: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
40
|
+
}, z.core.$strip>>>;
|
|
27
41
|
props: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
28
42
|
childrenIds: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
29
43
|
widthType: z.ZodNullable<z.ZodOptional<z.ZodEnum<{
|
|
@@ -31,21 +45,60 @@ declare const ContainerPropsSchema: z.ZodObject<{
|
|
|
31
45
|
fixed: "fixed";
|
|
32
46
|
fit: "fit";
|
|
33
47
|
}>>>;
|
|
48
|
+
widthTypeTablet: z.ZodNullable<z.ZodOptional<z.ZodEnum<{
|
|
49
|
+
fill: "fill";
|
|
50
|
+
fixed: "fixed";
|
|
51
|
+
fit: "fit";
|
|
52
|
+
}>>>;
|
|
53
|
+
widthTypeMobile: z.ZodNullable<z.ZodOptional<z.ZodEnum<{
|
|
54
|
+
fill: "fill";
|
|
55
|
+
fixed: "fixed";
|
|
56
|
+
fit: "fit";
|
|
57
|
+
}>>>;
|
|
34
58
|
width: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
59
|
+
widthUnit: z.ZodNullable<z.ZodOptional<z.ZodEnum<{
|
|
60
|
+
px: "px";
|
|
61
|
+
"%": "%";
|
|
62
|
+
}>>>;
|
|
63
|
+
widthTablet: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
64
|
+
widthMobile: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
35
65
|
height: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
66
|
+
heightTablet: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
67
|
+
heightMobile: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
36
68
|
overflow: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
|
|
69
|
+
alignment: z.ZodNullable<z.ZodOptional<z.ZodEnum<{
|
|
70
|
+
right: "right";
|
|
71
|
+
left: "left";
|
|
72
|
+
center: "center";
|
|
73
|
+
}>>>;
|
|
74
|
+
alignmentTablet: z.ZodNullable<z.ZodOptional<z.ZodEnum<{
|
|
75
|
+
right: "right";
|
|
76
|
+
left: "left";
|
|
77
|
+
center: "center";
|
|
78
|
+
}>>>;
|
|
79
|
+
alignmentMobile: z.ZodNullable<z.ZodOptional<z.ZodEnum<{
|
|
80
|
+
right: "right";
|
|
81
|
+
left: "left";
|
|
82
|
+
center: "center";
|
|
83
|
+
}>>>;
|
|
37
84
|
tag: z.ZodNullable<z.ZodOptional<z.ZodEnum<{
|
|
38
85
|
div: "div";
|
|
86
|
+
section: "section";
|
|
39
87
|
article: "article";
|
|
88
|
+
nav: "nav";
|
|
40
89
|
aside: "aside";
|
|
41
|
-
footer: "footer";
|
|
42
90
|
header: "header";
|
|
91
|
+
footer: "footer";
|
|
43
92
|
main: "main";
|
|
44
|
-
nav: "nav";
|
|
45
|
-
section: "section";
|
|
46
93
|
}>>>;
|
|
47
94
|
ariaLabel: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
48
95
|
elementId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
96
|
+
showLink: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
|
|
97
|
+
linkHref: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
98
|
+
linkTarget: z.ZodNullable<z.ZodOptional<z.ZodEnum<{
|
|
99
|
+
_self: "_self";
|
|
100
|
+
_blank: "_blank";
|
|
101
|
+
}>>>;
|
|
49
102
|
}, z.core.$strip>>>;
|
|
50
103
|
}, z.core.$strip>;
|
|
51
104
|
export default ContainerPropsSchema;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
declare const DemoPropsSchema: z.ZodObject<{
|
|
3
|
+
responsive: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
4
|
+
tablet: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
5
|
+
mobile: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
6
|
+
}, z.core.$strip>>>;
|
|
7
|
+
style: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
8
|
+
padding: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
9
|
+
top: z.ZodNumber;
|
|
10
|
+
bottom: z.ZodNumber;
|
|
11
|
+
right: z.ZodNumber;
|
|
12
|
+
left: z.ZodNumber;
|
|
13
|
+
}, z.core.$strip>>>;
|
|
14
|
+
margin: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
15
|
+
top: z.ZodNumber;
|
|
16
|
+
bottom: z.ZodNumber;
|
|
17
|
+
right: z.ZodNumber;
|
|
18
|
+
left: z.ZodNumber;
|
|
19
|
+
}, z.core.$strip>>>;
|
|
20
|
+
textAlign: z.ZodNullable<z.ZodOptional<z.ZodEnum<{
|
|
21
|
+
right: "right";
|
|
22
|
+
left: "left";
|
|
23
|
+
center: "center";
|
|
24
|
+
}>>>;
|
|
25
|
+
}, z.core.$strip>>>;
|
|
26
|
+
props: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
27
|
+
demoId: z.ZodDefault<z.ZodString>;
|
|
28
|
+
iframeSrc: z.ZodDefault<z.ZodString>;
|
|
29
|
+
width: z.ZodNullable<z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>>;
|
|
30
|
+
height: z.ZodNullable<z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>>;
|
|
31
|
+
borderRadius: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
32
|
+
borderColor: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
33
|
+
borderWidth: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
34
|
+
}, z.core.$strip>>>;
|
|
35
|
+
}, z.core.$strip>;
|
|
36
|
+
export default DemoPropsSchema;
|
|
37
|
+
export type DemoPickerProps = z.infer<typeof DemoPropsSchema>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
declare const
|
|
2
|
+
declare const EmailLayoutPropsSchema: z.ZodObject<{
|
|
3
3
|
lang: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
4
4
|
skipLink: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
5
5
|
enabled: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
|
|
@@ -9,6 +9,8 @@ declare const PagePilotLayoutPropsSchema: z.ZodObject<{
|
|
|
9
9
|
borderRadius: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
10
10
|
paddingX: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
11
11
|
paddingY: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
12
|
+
marginX: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
13
|
+
marginY: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
12
14
|
position: z.ZodNullable<z.ZodOptional<z.ZodEnum<{
|
|
13
15
|
"top-left": "top-left";
|
|
14
16
|
"top-center": "top-center";
|
|
@@ -56,13 +58,46 @@ declare const PagePilotLayoutPropsSchema: z.ZodObject<{
|
|
|
56
58
|
bottomRight: z.ZodNumber;
|
|
57
59
|
bottomLeft: z.ZodNumber;
|
|
58
60
|
}, z.core.$strip>]>>>;
|
|
59
|
-
margin: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
60
61
|
padding: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
61
62
|
top: z.ZodNumber;
|
|
62
63
|
bottom: z.ZodNumber;
|
|
63
64
|
right: z.ZodNumber;
|
|
64
65
|
left: z.ZodNumber;
|
|
65
66
|
}, z.core.$strip>>>;
|
|
67
|
+
margin: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
68
|
+
top: z.ZodNumber;
|
|
69
|
+
bottom: z.ZodNumber;
|
|
70
|
+
right: z.ZodNumber;
|
|
71
|
+
left: z.ZodNumber;
|
|
72
|
+
}, z.core.$strip>>>;
|
|
73
|
+
maxWidthTablet: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
74
|
+
maxWidthMobile: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
75
|
+
maxHeightTablet: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
76
|
+
maxHeightMobile: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
77
|
+
paddingTablet: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
78
|
+
top: z.ZodNumber;
|
|
79
|
+
bottom: z.ZodNumber;
|
|
80
|
+
right: z.ZodNumber;
|
|
81
|
+
left: z.ZodNumber;
|
|
82
|
+
}, z.core.$strip>>>;
|
|
83
|
+
paddingMobile: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
84
|
+
top: z.ZodNumber;
|
|
85
|
+
bottom: z.ZodNumber;
|
|
86
|
+
right: z.ZodNumber;
|
|
87
|
+
left: z.ZodNumber;
|
|
88
|
+
}, z.core.$strip>>>;
|
|
89
|
+
marginTablet: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
90
|
+
top: z.ZodNumber;
|
|
91
|
+
bottom: z.ZodNumber;
|
|
92
|
+
right: z.ZodNumber;
|
|
93
|
+
left: z.ZodNumber;
|
|
94
|
+
}, z.core.$strip>>>;
|
|
95
|
+
marginMobile: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
96
|
+
top: z.ZodNumber;
|
|
97
|
+
bottom: z.ZodNumber;
|
|
98
|
+
right: z.ZodNumber;
|
|
99
|
+
left: z.ZodNumber;
|
|
100
|
+
}, z.core.$strip>>>;
|
|
66
101
|
canvasColor: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodString, z.ZodString, z.ZodLiteral<"transparent">]>>>>;
|
|
67
102
|
textColor: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodString, z.ZodString, z.ZodLiteral<"transparent">]>>>;
|
|
68
103
|
fontFamily: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
@@ -114,8 +149,20 @@ declare const PagePilotLayoutPropsSchema: z.ZodObject<{
|
|
|
114
149
|
inset: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
115
150
|
}, z.core.$strip>>>;
|
|
116
151
|
backgroundImage: z.ZodNullable<z.ZodDefault<z.ZodString>>;
|
|
152
|
+
backgroundSize: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
153
|
+
backgroundRepeat: z.ZodNullable<z.ZodOptional<z.ZodEnum<{
|
|
154
|
+
repeat: "repeat";
|
|
155
|
+
"no-repeat": "no-repeat";
|
|
156
|
+
}>>>;
|
|
117
157
|
canvasWidth: z.ZodNullable<z.ZodDefault<z.ZodString>>;
|
|
118
158
|
canvasHeight: z.ZodNullable<z.ZodDefault<z.ZodString>>;
|
|
159
|
+
highlightStyle: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
160
|
+
color: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodString, z.ZodString, z.ZodLiteral<"transparent">]>>>>;
|
|
161
|
+
opacity: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>;
|
|
162
|
+
borderColor: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodString, z.ZodString, z.ZodLiteral<"transparent">]>>>>;
|
|
163
|
+
borderWidth: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>;
|
|
164
|
+
borderRadius: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>;
|
|
165
|
+
}, z.core.$strip>>>;
|
|
119
166
|
behaviour: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
120
167
|
position: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
121
168
|
top: "top";
|
|
@@ -147,5 +194,5 @@ declare const PagePilotLayoutPropsSchema: z.ZodObject<{
|
|
|
147
194
|
"bottom-center": "bottom-center";
|
|
148
195
|
}>>>;
|
|
149
196
|
}, z.core.$strip>;
|
|
150
|
-
export default
|
|
151
|
-
export type
|
|
197
|
+
export default EmailLayoutPropsSchema;
|
|
198
|
+
export type EmailLayoutProps = z.infer<typeof EmailLayoutPropsSchema>;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { TReaderDocument } from '../../../../email-builder-core/index.ts';
|
|
3
|
+
type PaddingValue = {
|
|
4
|
+
top: number;
|
|
5
|
+
right: number;
|
|
6
|
+
bottom: number;
|
|
7
|
+
left: number;
|
|
8
|
+
};
|
|
9
|
+
type FaqEditorProps = {
|
|
10
|
+
props?: {
|
|
11
|
+
faqGroupId?: string;
|
|
12
|
+
faqGroupName?: string | null;
|
|
13
|
+
contentDocument?: TReaderDocument | null;
|
|
14
|
+
padding?: PaddingValue | null;
|
|
15
|
+
} | null;
|
|
16
|
+
};
|
|
17
|
+
declare const FaqEditor: React.FC<FaqEditorProps>;
|
|
18
|
+
export default FaqEditor;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
declare const FaqPickerPropsSchema: z.ZodObject<{
|
|
3
|
+
faqGroupId: z.ZodDefault<z.ZodString>;
|
|
4
|
+
faqGroupName: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
5
|
+
contentDocument: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
6
|
+
padding: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
7
|
+
top: z.ZodNumber;
|
|
8
|
+
right: z.ZodNumber;
|
|
9
|
+
bottom: z.ZodNumber;
|
|
10
|
+
left: z.ZodNumber;
|
|
11
|
+
}, z.core.$strip>>>;
|
|
12
|
+
}, z.core.$strip>;
|
|
13
|
+
export default FaqPickerPropsSchema;
|
|
14
|
+
export type FaqPickerProps = z.infer<typeof FaqPickerPropsSchema>;
|
|
@@ -1,2 +1,8 @@
|
|
|
1
1
|
import { FlexColumnsProps } from './FlexColumnsPropsSchema';
|
|
2
|
+
/**
|
|
3
|
+
* The canvas renders without the reader's per-instance stylesheet, so it applies
|
|
4
|
+
* the ACTIVE device's layout inline instead. Both paths resolve that layout with
|
|
5
|
+
* the same `resolveDeviceLayout` / `buildColumnStyle`, so what you see here is
|
|
6
|
+
* what the published CSS will produce.
|
|
7
|
+
*/
|
|
2
8
|
export default function FlexColumnsEditor({ style, props }: FlexColumnsProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
declare const FormsPropsSchema: z.ZodObject<{
|
|
3
|
+
style: z.ZodNullable<z.ZodOptional<z.ZodObject<{}, z.core.$loose>>>;
|
|
4
|
+
props: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
5
|
+
formId: z.ZodDefault<z.ZodString>;
|
|
6
|
+
formName: z.ZodDefault<z.ZodString>;
|
|
7
|
+
iframeSrc: z.ZodDefault<z.ZodString>;
|
|
8
|
+
width: z.ZodDefault<z.ZodString>;
|
|
9
|
+
height: z.ZodDefault<z.ZodString>;
|
|
10
|
+
heightTablet: z.ZodOptional<z.ZodString>;
|
|
11
|
+
heightMobile: z.ZodOptional<z.ZodString>;
|
|
12
|
+
alignment: z.ZodDefault<z.ZodEnum<{
|
|
13
|
+
right: "right";
|
|
14
|
+
left: "left";
|
|
15
|
+
center: "center";
|
|
16
|
+
}>>;
|
|
17
|
+
}, z.core.$strip>>>;
|
|
18
|
+
}, z.core.$strip>;
|
|
19
|
+
export default FormsPropsSchema;
|
|
20
|
+
export type FormsPickerPropsType = z.infer<typeof FormsPropsSchema>;
|
|
21
|
+
export type FormsPickerProps = {
|
|
22
|
+
style?: any;
|
|
23
|
+
props?: {
|
|
24
|
+
formId: string;
|
|
25
|
+
formName?: string;
|
|
26
|
+
iframeSrc?: string;
|
|
27
|
+
width: string;
|
|
28
|
+
height: string;
|
|
29
|
+
heightTablet?: string;
|
|
30
|
+
heightMobile?: string;
|
|
31
|
+
alignment?: 'left' | 'center' | 'right';
|
|
32
|
+
};
|
|
33
|
+
};
|
|
@@ -8,6 +8,12 @@ declare const GridPropsSchema: z.ZodObject<{
|
|
|
8
8
|
bottom: z.ZodNumber;
|
|
9
9
|
left: z.ZodNumber;
|
|
10
10
|
}, z.core.$strip>>>;
|
|
11
|
+
margin: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
12
|
+
top: z.ZodNumber;
|
|
13
|
+
right: z.ZodNumber;
|
|
14
|
+
bottom: z.ZodNumber;
|
|
15
|
+
left: z.ZodNumber;
|
|
16
|
+
}, z.core.$strip>>>;
|
|
11
17
|
borderRadius: z.ZodNullable<z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
|
|
12
18
|
topLeft: z.ZodNumber;
|
|
13
19
|
topRight: z.ZodNumber;
|
|
@@ -25,7 +31,13 @@ declare const GridPropsSchema: z.ZodObject<{
|
|
|
25
31
|
props: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
26
32
|
cells: z.ZodArray<z.ZodObject<{
|
|
27
33
|
childrenIds: z.ZodArray<z.ZodString>;
|
|
34
|
+
colStart: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
35
|
+
colSpan: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
36
|
+
rowStart: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
37
|
+
rowSpan: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
28
38
|
}, z.core.$strip>>;
|
|
39
|
+
columnsCountTablet: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
40
|
+
columnsCountMobile: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
29
41
|
contentAlignment: z.ZodNullable<z.ZodOptional<z.ZodEnum<{
|
|
30
42
|
top: "top";
|
|
31
43
|
bottom: "bottom";
|
|
@@ -36,9 +48,8 @@ declare const GridPropsSchema: z.ZodObject<{
|
|
|
36
48
|
left: "left";
|
|
37
49
|
center: "center";
|
|
38
50
|
}>>>;
|
|
51
|
+
repeatableEnabled: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
|
|
39
52
|
columnsCount: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
40
|
-
columnsCountTablet: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
41
|
-
columnsCountMobile: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
42
53
|
rowsCount: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
43
54
|
columnsGap: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
44
55
|
rowsGap: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
@@ -3,6 +3,12 @@ declare const MarqueePropsSchema: z.ZodObject<{
|
|
|
3
3
|
style: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
4
4
|
backgroundColor: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
5
5
|
borderColor: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
6
|
+
borderWidth: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
7
|
+
top: z.ZodNumber;
|
|
8
|
+
bottom: z.ZodNumber;
|
|
9
|
+
right: z.ZodNumber;
|
|
10
|
+
left: z.ZodNumber;
|
|
11
|
+
}, z.core.$strip>>>;
|
|
6
12
|
borderRadius: z.ZodNullable<z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString, z.ZodObject<{
|
|
7
13
|
topLeft: z.ZodNumber;
|
|
8
14
|
topRight: z.ZodNumber;
|
|
@@ -15,6 +21,12 @@ declare const MarqueePropsSchema: z.ZodObject<{
|
|
|
15
21
|
right: z.ZodNumber;
|
|
16
22
|
left: z.ZodNumber;
|
|
17
23
|
}, z.core.$strip>>>;
|
|
24
|
+
margin: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
25
|
+
top: z.ZodNumber;
|
|
26
|
+
bottom: z.ZodNumber;
|
|
27
|
+
right: z.ZodNumber;
|
|
28
|
+
left: z.ZodNumber;
|
|
29
|
+
}, z.core.$strip>>>;
|
|
18
30
|
itemGap: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
19
31
|
}, z.core.$strip>>>;
|
|
20
32
|
props: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
declare const MenuPropsSchema: z.ZodObject<{
|
|
3
|
+
menuId: z.ZodDefault<z.ZodString>;
|
|
4
|
+
useCustomMenu: z.ZodDefault<z.ZodBoolean>;
|
|
5
|
+
stickyNav: z.ZodDefault<z.ZodBoolean>;
|
|
6
|
+
position: z.ZodDefault<z.ZodEnum<{
|
|
7
|
+
right: "right";
|
|
8
|
+
left: "left";
|
|
9
|
+
center: "center";
|
|
10
|
+
}>>;
|
|
11
|
+
orientation: z.ZodDefault<z.ZodEnum<{
|
|
12
|
+
horizontal: "horizontal";
|
|
13
|
+
vertical: "vertical";
|
|
14
|
+
}>>;
|
|
15
|
+
menuItems: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodType<any, unknown, z.core.$ZodTypeInternals<any, unknown>>>>>;
|
|
16
|
+
startChildrenIds: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
17
|
+
endChildrenIds: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
18
|
+
layout: z.ZodDefault<z.ZodEnum<{
|
|
19
|
+
"menu-only": "menu-only";
|
|
20
|
+
"logo-menu": "logo-menu";
|
|
21
|
+
"menu-cta": "menu-cta";
|
|
22
|
+
"logo-menu-cta": "logo-menu-cta";
|
|
23
|
+
}>>;
|
|
24
|
+
backgroundColor: z.ZodDefault<z.ZodString>;
|
|
25
|
+
textColor: z.ZodDefault<z.ZodString>;
|
|
26
|
+
fontSize: z.ZodDefault<z.ZodString>;
|
|
27
|
+
fontFamily: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
28
|
+
fontWeight: z.ZodDefault<z.ZodString>;
|
|
29
|
+
padding: z.ZodDefault<z.ZodString>;
|
|
30
|
+
blockPadding: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
31
|
+
top: z.ZodNumber;
|
|
32
|
+
right: z.ZodNumber;
|
|
33
|
+
bottom: z.ZodNumber;
|
|
34
|
+
left: z.ZodNumber;
|
|
35
|
+
}, z.core.$strip>>>;
|
|
36
|
+
gap: z.ZodDefault<z.ZodString>;
|
|
37
|
+
showIcons: z.ZodDefault<z.ZodBoolean>;
|
|
38
|
+
iconSize: z.ZodDefault<z.ZodString>;
|
|
39
|
+
responsive: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
40
|
+
tablet: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
41
|
+
mobile: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
42
|
+
}, z.core.$strip>>>;
|
|
43
|
+
}, z.core.$strip>;
|
|
44
|
+
export default MenuPropsSchema;
|
|
45
|
+
export type MenuPickerProps = z.infer<typeof MenuPropsSchema>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
type MenuItem = {
|
|
2
|
+
id?: string;
|
|
3
|
+
href?: string;
|
|
4
|
+
children?: MenuItem[];
|
|
5
|
+
[key: string]: any;
|
|
6
|
+
};
|
|
7
|
+
/**
|
|
8
|
+
* Takes fresh items from the menu store and overlays user-edited hrefs saved
|
|
9
|
+
* on the block. Fresh items remain the source of truth for everything else
|
|
10
|
+
* (name, image, structure); href is the only field the sidebar can override.
|
|
11
|
+
*/
|
|
12
|
+
export declare const mergeMenuItems: (fresh: MenuItem[] | null | undefined, overrides: MenuItem[] | null | undefined) => MenuItem[] | null;
|
|
13
|
+
export {};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { PaginationPropsSchema, PaginationProps, PaginationPage, PaginationCell, PaginationDevice, resolvePaginationGrid, resolveCellsPerPage, slicePagesFromCells, PAGINATION_GRID_DEFAULTS } from '../../../../email-builder-core/blocks/Pagination/PaginationPropsSchema';
|
|
2
|
+
export { PaginationPropsSchema, resolvePaginationGrid, resolveCellsPerPage, slicePagesFromCells, PAGINATION_GRID_DEFAULTS, };
|
|
3
|
+
export type { PaginationProps, PaginationPage, PaginationCell, PaginationDevice };
|
|
4
|
+
export default PaginationPropsSchema;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
type Props = {
|
|
3
|
+
html: string;
|
|
4
|
+
row: number;
|
|
5
|
+
col: number;
|
|
6
|
+
isHeader: boolean;
|
|
7
|
+
onCommit: (html: string) => void;
|
|
8
|
+
onContextMenu: (e: React.MouseEvent<HTMLDivElement>, row: number, col: number) => void;
|
|
9
|
+
};
|
|
10
|
+
export default function TableCellEditor({ html, row, col, isHeader, onCommit, onContextMenu, }: Props): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { TablePropsSchema as default, type TableProps, TableDefaults, buildDefaultCells, } from '../../../../email-builder-core/blocks/Table/TablePropsSchema';
|
|
@@ -4,6 +4,10 @@ declare const TabsBlockItemSchema: z.ZodObject<{
|
|
|
4
4
|
contentChildrenIds: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
5
5
|
}, z.core.$strip>;
|
|
6
6
|
declare const TabsBlockPropsSchema: z.ZodObject<{
|
|
7
|
+
responsive: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
8
|
+
tablet: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
9
|
+
mobile: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
10
|
+
}, z.core.$strip>>>;
|
|
7
11
|
style: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
8
12
|
backgroundColor: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
9
13
|
borderColor: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
@@ -36,6 +40,14 @@ declare const TabsBlockPropsSchema: z.ZodObject<{
|
|
|
36
40
|
horizontal: "horizontal";
|
|
37
41
|
vertical: "vertical";
|
|
38
42
|
}>>>;
|
|
43
|
+
orientationTablet: z.ZodNullable<z.ZodOptional<z.ZodEnum<{
|
|
44
|
+
horizontal: "horizontal";
|
|
45
|
+
vertical: "vertical";
|
|
46
|
+
}>>>;
|
|
47
|
+
orientationMobile: z.ZodNullable<z.ZodOptional<z.ZodEnum<{
|
|
48
|
+
horizontal: "horizontal";
|
|
49
|
+
vertical: "vertical";
|
|
50
|
+
}>>>;
|
|
39
51
|
behavior: z.ZodNullable<z.ZodOptional<z.ZodEnum<{
|
|
40
52
|
showSelectedSection: "showSelectedSection";
|
|
41
53
|
scrollToSelectedSection: "scrollToSelectedSection";
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
declare const TimerPropsSchema: z.ZodObject<{
|
|
3
|
+
style: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
4
|
+
backgroundColor: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
5
|
+
textColor: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
6
|
+
accentColor: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
7
|
+
borderColor: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
8
|
+
borderRadius: z.ZodNullable<z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString, z.ZodObject<{
|
|
9
|
+
topLeft: z.ZodNumber;
|
|
10
|
+
topRight: z.ZodNumber;
|
|
11
|
+
bottomRight: z.ZodNumber;
|
|
12
|
+
bottomLeft: z.ZodNumber;
|
|
13
|
+
}, z.core.$strip>]>>>;
|
|
14
|
+
padding: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
15
|
+
top: z.ZodNumber;
|
|
16
|
+
right: z.ZodNumber;
|
|
17
|
+
bottom: z.ZodNumber;
|
|
18
|
+
left: z.ZodNumber;
|
|
19
|
+
}, z.core.$strip>>>;
|
|
20
|
+
}, z.core.$strip>>>;
|
|
21
|
+
props: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
22
|
+
layout: z.ZodDefault<z.ZodEnum<{
|
|
23
|
+
digitalFlip: "digitalFlip";
|
|
24
|
+
circularProgress: "circularProgress";
|
|
25
|
+
textInline: "textInline";
|
|
26
|
+
}>>;
|
|
27
|
+
targetDate: z.ZodDefault<z.ZodString>;
|
|
28
|
+
showLabels: z.ZodDefault<z.ZodBoolean>;
|
|
29
|
+
expiredBehavior: z.ZodDefault<z.ZodEnum<{
|
|
30
|
+
hide: "hide";
|
|
31
|
+
showMessage: "showMessage";
|
|
32
|
+
showZeros: "showZeros";
|
|
33
|
+
}>>;
|
|
34
|
+
expiredMessage: z.ZodDefault<z.ZodString>;
|
|
35
|
+
}, z.core.$strip>>>;
|
|
36
|
+
}, z.core.$strip>;
|
|
37
|
+
export type TimerProps = z.infer<typeof TimerPropsSchema>;
|
|
38
|
+
export default TimerPropsSchema;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export type TimeParts = {
|
|
2
|
+
days: number;
|
|
3
|
+
hours: number;
|
|
4
|
+
minutes: number;
|
|
5
|
+
seconds: number;
|
|
6
|
+
completed: boolean;
|
|
7
|
+
};
|
|
8
|
+
export declare function computeTimeParts(targetDate: string | null | undefined, now?: number): TimeParts;
|
|
9
|
+
export declare function pad2(n: number): string;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { TimeParts } from '../timerMath';
|
|
2
|
+
type Props = {
|
|
3
|
+
parts: TimeParts;
|
|
4
|
+
showLabels: boolean;
|
|
5
|
+
accentColor?: string | null;
|
|
6
|
+
textColor?: string | null;
|
|
7
|
+
};
|
|
8
|
+
export default function CircularProgressView({ parts, showLabels, accentColor, textColor }: Props): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export {};
|