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
|
@@ -12,18 +12,37 @@ export declare const ButtonGroupPropsSchema: z.ZodObject<{
|
|
|
12
12
|
}, z.core.$strip>>>;
|
|
13
13
|
props: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
14
14
|
direction: z.ZodNullable<z.ZodOptional<z.ZodEnum<{
|
|
15
|
+
row: "row";
|
|
16
|
+
column: "column";
|
|
17
|
+
}>>>;
|
|
18
|
+
directionTablet: z.ZodNullable<z.ZodOptional<z.ZodEnum<{
|
|
19
|
+
row: "row";
|
|
15
20
|
column: "column";
|
|
21
|
+
}>>>;
|
|
22
|
+
directionMobile: z.ZodNullable<z.ZodOptional<z.ZodEnum<{
|
|
16
23
|
row: "row";
|
|
24
|
+
column: "column";
|
|
17
25
|
}>>>;
|
|
18
26
|
gap: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
19
27
|
alignment: z.ZodNullable<z.ZodOptional<z.ZodEnum<{
|
|
20
28
|
center: "center";
|
|
29
|
+
"space-between": "space-between";
|
|
30
|
+
start: "start";
|
|
21
31
|
end: "end";
|
|
32
|
+
}>>>;
|
|
33
|
+
alignmentTablet: z.ZodNullable<z.ZodOptional<z.ZodEnum<{
|
|
34
|
+
center: "center";
|
|
35
|
+
"space-between": "space-between";
|
|
22
36
|
start: "start";
|
|
37
|
+
end: "end";
|
|
38
|
+
}>>>;
|
|
39
|
+
alignmentMobile: z.ZodNullable<z.ZodOptional<z.ZodEnum<{
|
|
40
|
+
center: "center";
|
|
23
41
|
"space-between": "space-between";
|
|
42
|
+
start: "start";
|
|
43
|
+
end: "end";
|
|
24
44
|
}>>>;
|
|
25
45
|
wrap: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
|
|
26
|
-
fullWidthOnMobile: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
|
|
27
46
|
ariaLabel: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
28
47
|
}, z.core.$strip>>>;
|
|
29
48
|
}, z.core.$strip>;
|
|
@@ -9,6 +9,12 @@ export declare const ColumnsContainerPropsSchema: z.ZodObject<{
|
|
|
9
9
|
right: z.ZodNumber;
|
|
10
10
|
left: z.ZodNumber;
|
|
11
11
|
}, z.core.$strip>>>;
|
|
12
|
+
margin: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
13
|
+
top: z.ZodNumber;
|
|
14
|
+
bottom: z.ZodNumber;
|
|
15
|
+
right: z.ZodNumber;
|
|
16
|
+
left: z.ZodNumber;
|
|
17
|
+
}, z.core.$strip>>>;
|
|
12
18
|
}, z.core.$strip>>>;
|
|
13
19
|
props: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
14
20
|
widthType: z.ZodNullable<z.ZodOptional<z.ZodEnum<{
|
|
@@ -16,18 +22,50 @@ export declare const ColumnsContainerPropsSchema: z.ZodObject<{
|
|
|
16
22
|
fixed: "fixed";
|
|
17
23
|
fit: "fit";
|
|
18
24
|
}>>>;
|
|
25
|
+
widthTypeTablet: z.ZodNullable<z.ZodOptional<z.ZodEnum<{
|
|
26
|
+
fill: "fill";
|
|
27
|
+
fixed: "fixed";
|
|
28
|
+
fit: "fit";
|
|
29
|
+
}>>>;
|
|
30
|
+
widthTypeMobile: z.ZodNullable<z.ZodOptional<z.ZodEnum<{
|
|
31
|
+
fill: "fill";
|
|
32
|
+
fixed: "fixed";
|
|
33
|
+
fit: "fit";
|
|
34
|
+
}>>>;
|
|
19
35
|
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>>>;
|
|
36
|
+
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>>>;
|
|
37
|
+
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>>>;
|
|
20
38
|
columnsCount: z.ZodNullable<z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<2>, z.ZodLiteral<3>, z.ZodLiteral<4>, z.ZodLiteral<5>]>>>;
|
|
21
39
|
columnsGap: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
40
|
+
columnsGapTablet: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
41
|
+
columnsGapMobile: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
22
42
|
columnsDirection: z.ZodNullable<z.ZodOptional<z.ZodEnum<{
|
|
23
43
|
horizontal: "horizontal";
|
|
24
44
|
vertical: "vertical";
|
|
25
45
|
}>>>;
|
|
46
|
+
columnsDirectionTablet: z.ZodNullable<z.ZodOptional<z.ZodEnum<{
|
|
47
|
+
horizontal: "horizontal";
|
|
48
|
+
vertical: "vertical";
|
|
49
|
+
}>>>;
|
|
50
|
+
columnsDirectionMobile: z.ZodNullable<z.ZodOptional<z.ZodEnum<{
|
|
51
|
+
horizontal: "horizontal";
|
|
52
|
+
vertical: "vertical";
|
|
53
|
+
}>>>;
|
|
26
54
|
contentAlignment: z.ZodNullable<z.ZodOptional<z.ZodEnum<{
|
|
27
55
|
top: "top";
|
|
28
56
|
bottom: "bottom";
|
|
29
57
|
middle: "middle";
|
|
30
58
|
}>>>;
|
|
59
|
+
contentAlignmentTablet: z.ZodNullable<z.ZodOptional<z.ZodEnum<{
|
|
60
|
+
top: "top";
|
|
61
|
+
bottom: "bottom";
|
|
62
|
+
middle: "middle";
|
|
63
|
+
}>>>;
|
|
64
|
+
contentAlignmentMobile: z.ZodNullable<z.ZodOptional<z.ZodEnum<{
|
|
65
|
+
top: "top";
|
|
66
|
+
bottom: "bottom";
|
|
67
|
+
middle: "middle";
|
|
68
|
+
}>>>;
|
|
31
69
|
}, z.core.$strip>>>;
|
|
32
70
|
}, z.core.$strip>;
|
|
33
71
|
type TColumn = React.JSX.Element | React.JSX.Element[] | null;
|
|
@@ -1,10 +1,14 @@
|
|
|
1
|
-
import
|
|
1
|
+
import * as React from 'react';
|
|
2
2
|
import * as z from 'zod';
|
|
3
3
|
export declare const ContainerPropsSchema: z.ZodObject<{
|
|
4
4
|
style: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
5
5
|
backgroundColor: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodString, z.ZodString, z.ZodLiteral<"transparent">]>>>;
|
|
6
6
|
backgroundImage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
7
7
|
backgroundSize: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
8
|
+
backgroundRepeat: z.ZodNullable<z.ZodOptional<z.ZodEnum<{
|
|
9
|
+
repeat: "repeat";
|
|
10
|
+
"no-repeat": "no-repeat";
|
|
11
|
+
}>>>;
|
|
8
12
|
borderColor: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodString, z.ZodString, z.ZodLiteral<"transparent">]>>>;
|
|
9
13
|
borderRadius: z.ZodNullable<z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
|
|
10
14
|
topLeft: z.ZodNumber;
|
|
@@ -18,6 +22,12 @@ export declare const ContainerPropsSchema: z.ZodObject<{
|
|
|
18
22
|
right: z.ZodNumber;
|
|
19
23
|
left: z.ZodNumber;
|
|
20
24
|
}, z.core.$strip>>>;
|
|
25
|
+
margin: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
26
|
+
top: z.ZodNumber;
|
|
27
|
+
bottom: z.ZodNumber;
|
|
28
|
+
right: z.ZodNumber;
|
|
29
|
+
left: z.ZodNumber;
|
|
30
|
+
}, z.core.$strip>>>;
|
|
21
31
|
borderWidth: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
22
32
|
top: z.ZodNumber;
|
|
23
33
|
bottom: z.ZodNumber;
|
|
@@ -32,31 +42,59 @@ export declare const ContainerPropsSchema: z.ZodObject<{
|
|
|
32
42
|
fixed: "fixed";
|
|
33
43
|
fit: "fit";
|
|
34
44
|
}>>>;
|
|
45
|
+
widthTypeTablet: z.ZodNullable<z.ZodOptional<z.ZodEnum<{
|
|
46
|
+
fill: "fill";
|
|
47
|
+
fixed: "fixed";
|
|
48
|
+
fit: "fit";
|
|
49
|
+
}>>>;
|
|
50
|
+
widthTypeMobile: z.ZodNullable<z.ZodOptional<z.ZodEnum<{
|
|
51
|
+
fill: "fill";
|
|
52
|
+
fixed: "fixed";
|
|
53
|
+
fit: "fit";
|
|
54
|
+
}>>>;
|
|
35
55
|
width: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
56
|
+
widthUnit: z.ZodNullable<z.ZodOptional<z.ZodEnum<{
|
|
57
|
+
px: "px";
|
|
58
|
+
"%": "%";
|
|
59
|
+
}>>>;
|
|
60
|
+
widthTablet: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
61
|
+
widthMobile: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
36
62
|
height: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
63
|
+
heightTablet: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
64
|
+
heightMobile: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
37
65
|
overflow: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
|
|
38
66
|
alignment: z.ZodNullable<z.ZodOptional<z.ZodEnum<{
|
|
39
67
|
right: "right";
|
|
40
68
|
left: "left";
|
|
41
69
|
center: "center";
|
|
42
70
|
}>>>;
|
|
71
|
+
alignmentTablet: z.ZodNullable<z.ZodOptional<z.ZodEnum<{
|
|
72
|
+
right: "right";
|
|
73
|
+
left: "left";
|
|
74
|
+
center: "center";
|
|
75
|
+
}>>>;
|
|
76
|
+
alignmentMobile: z.ZodNullable<z.ZodOptional<z.ZodEnum<{
|
|
77
|
+
right: "right";
|
|
78
|
+
left: "left";
|
|
79
|
+
center: "center";
|
|
80
|
+
}>>>;
|
|
43
81
|
tag: z.ZodNullable<z.ZodOptional<z.ZodEnum<{
|
|
44
82
|
div: "div";
|
|
83
|
+
section: "section";
|
|
45
84
|
article: "article";
|
|
85
|
+
nav: "nav";
|
|
46
86
|
aside: "aside";
|
|
47
|
-
footer: "footer";
|
|
48
87
|
header: "header";
|
|
88
|
+
footer: "footer";
|
|
49
89
|
main: "main";
|
|
50
|
-
nav: "nav";
|
|
51
|
-
section: "section";
|
|
52
90
|
}>>>;
|
|
53
91
|
ariaLabel: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
54
92
|
elementId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
55
93
|
showLink: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
|
|
56
94
|
linkHref: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
57
95
|
linkTarget: z.ZodNullable<z.ZodOptional<z.ZodEnum<{
|
|
58
|
-
_blank: "_blank";
|
|
59
96
|
_self: "_self";
|
|
97
|
+
_blank: "_blank";
|
|
60
98
|
}>>>;
|
|
61
99
|
}, z.core.$strip>>>;
|
|
62
100
|
}, z.core.$strip>;
|
|
@@ -67,6 +105,7 @@ export declare const ContainerPropsDefaults: {
|
|
|
67
105
|
readonly fullWidth: false;
|
|
68
106
|
readonly widthType: "fit";
|
|
69
107
|
readonly width: 300;
|
|
108
|
+
readonly widthUnit: "px";
|
|
70
109
|
readonly alignment: "left";
|
|
71
110
|
};
|
|
72
111
|
export declare function Container({ style, props, children }: ContainerProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -8,6 +8,12 @@ export declare const DividerPropsSchema: z.ZodObject<{
|
|
|
8
8
|
right: 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
|
+
bottom: z.ZodNumber;
|
|
14
|
+
right: z.ZodNumber;
|
|
15
|
+
left: z.ZodNumber;
|
|
16
|
+
}, z.core.$strip>>>;
|
|
11
17
|
}, z.core.$strip>>>;
|
|
12
18
|
props: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
13
19
|
lineColor: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodString, z.ZodString, z.ZodLiteral<"transparent">]>>>;
|
|
@@ -9,6 +9,12 @@ export declare const GridPropsSchema: z.ZodObject<{
|
|
|
9
9
|
right: z.ZodNumber;
|
|
10
10
|
left: z.ZodNumber;
|
|
11
11
|
}, z.core.$strip>>>;
|
|
12
|
+
margin: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
13
|
+
top: z.ZodNumber;
|
|
14
|
+
bottom: z.ZodNumber;
|
|
15
|
+
right: z.ZodNumber;
|
|
16
|
+
left: z.ZodNumber;
|
|
17
|
+
}, z.core.$strip>>>;
|
|
12
18
|
}, z.core.$strip>>>;
|
|
13
19
|
props: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
14
20
|
columnsCount: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
@@ -55,12 +55,12 @@ export declare const HeadingPropsSchema: z.ZodObject<{
|
|
|
55
55
|
}>>>;
|
|
56
56
|
fontSize: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
57
57
|
fontWeight: z.ZodNullable<z.ZodOptional<z.ZodEnum<{
|
|
58
|
+
bold: "bold";
|
|
58
59
|
400: "400";
|
|
59
60
|
500: "500";
|
|
60
61
|
600: "600";
|
|
61
62
|
700: "700";
|
|
62
63
|
normal: "normal";
|
|
63
|
-
bold: "bold";
|
|
64
64
|
}>>>;
|
|
65
65
|
fontStyle: z.ZodNullable<z.ZodOptional<z.ZodEnum<{
|
|
66
66
|
normal: "normal";
|
|
@@ -68,8 +68,8 @@ export declare const HeadingPropsSchema: z.ZodObject<{
|
|
|
68
68
|
}>>>;
|
|
69
69
|
textDecoration: z.ZodNullable<z.ZodOptional<z.ZodEnum<{
|
|
70
70
|
none: "none";
|
|
71
|
-
"line-through": "line-through";
|
|
72
71
|
underline: "underline";
|
|
72
|
+
"line-through": "line-through";
|
|
73
73
|
"underline line-through": "underline line-through";
|
|
74
74
|
}>>>;
|
|
75
75
|
textAlign: z.ZodNullable<z.ZodOptional<z.ZodEnum<{
|
|
@@ -96,3 +96,4 @@ export declare const HeadingPropsDefaults: {
|
|
|
96
96
|
readonly openInNewTab: false;
|
|
97
97
|
};
|
|
98
98
|
export declare function Heading({ props, style }: HeadingProps): import("react/jsx-runtime").JSX.Element;
|
|
99
|
+
export declare function getFontSize(level: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6'): 16 | 32 | 20 | 24 | 18 | 14;
|
|
@@ -46,6 +46,12 @@ export declare const HtmlPropsSchema: z.ZodObject<{
|
|
|
46
46
|
right: z.ZodNumber;
|
|
47
47
|
left: z.ZodNumber;
|
|
48
48
|
}, z.core.$strip>>>;
|
|
49
|
+
margin: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
50
|
+
top: z.ZodNumber;
|
|
51
|
+
bottom: z.ZodNumber;
|
|
52
|
+
right: z.ZodNumber;
|
|
53
|
+
left: z.ZodNumber;
|
|
54
|
+
}, z.core.$strip>>>;
|
|
49
55
|
}, z.core.$strip>>>;
|
|
50
56
|
props: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
51
57
|
contents: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
export declare const IframePropsSchema: 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>>>;
|
|
3
7
|
style: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
4
8
|
padding: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
5
9
|
top: z.ZodNumber;
|
|
@@ -16,15 +16,23 @@ export declare const ImagePropsSchema: z.ZodObject<{
|
|
|
16
16
|
}, z.core.$strip>>>;
|
|
17
17
|
props: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
18
18
|
width: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
19
|
+
widthUnit: z.ZodNullable<z.ZodOptional<z.ZodEnum<{
|
|
20
|
+
px: "px";
|
|
21
|
+
"%": "%";
|
|
22
|
+
}>>>;
|
|
19
23
|
widthTablet: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
20
24
|
widthMobile: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
21
25
|
height: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
26
|
+
heightTablet: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
27
|
+
heightMobile: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
22
28
|
widthType: z.ZodNullable<z.ZodOptional<z.ZodEnum<{
|
|
23
29
|
fill: "fill";
|
|
24
30
|
fixed: "fixed";
|
|
25
31
|
fit: "fit";
|
|
26
32
|
}>>>;
|
|
27
33
|
url: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
34
|
+
urlTablet: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
35
|
+
urlMobile: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
28
36
|
alt: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
29
37
|
decorative: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
|
|
30
38
|
linkHref: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
@@ -46,16 +54,24 @@ export declare const ImagePropsSchema: z.ZodObject<{
|
|
|
46
54
|
right: z.ZodNumber;
|
|
47
55
|
left: z.ZodNumber;
|
|
48
56
|
}, z.core.$strip>>>;
|
|
57
|
+
rotation: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
58
|
+
rotationTablet: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
59
|
+
rotationMobile: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
49
60
|
}, z.core.$strip>>>;
|
|
50
61
|
}, z.core.$strip>;
|
|
51
62
|
export type ImageProps = z.infer<typeof ImagePropsSchema>;
|
|
52
63
|
export declare const ImagePropsDefaults: {
|
|
53
64
|
readonly widthType: "fit";
|
|
54
65
|
readonly width: 300;
|
|
66
|
+
readonly widthUnit: "px";
|
|
55
67
|
readonly widthTablet: any;
|
|
56
68
|
readonly widthMobile: any;
|
|
57
69
|
readonly height: any;
|
|
70
|
+
readonly heightTablet: any;
|
|
71
|
+
readonly heightMobile: any;
|
|
58
72
|
readonly url: "";
|
|
73
|
+
readonly urlTablet: any;
|
|
74
|
+
readonly urlMobile: any;
|
|
59
75
|
readonly alt: "";
|
|
60
76
|
readonly decorative: false;
|
|
61
77
|
readonly linkHref: any;
|
|
@@ -63,5 +79,6 @@ export declare const ImagePropsDefaults: {
|
|
|
63
79
|
readonly borderRadius: 0;
|
|
64
80
|
readonly borderColor: any;
|
|
65
81
|
readonly borderWidth: any;
|
|
82
|
+
readonly rotation: 0;
|
|
66
83
|
};
|
|
67
84
|
export declare function Image({ style, props }: ImageProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -16,6 +16,8 @@ export declare const LogoPropsSchema: z.ZodObject<{
|
|
|
16
16
|
}, z.core.$strip>>>;
|
|
17
17
|
props: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
18
18
|
url: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
19
|
+
urlTablet: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
20
|
+
urlMobile: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
19
21
|
alt: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
20
22
|
decorative: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
|
|
21
23
|
linkHref: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
@@ -35,11 +37,19 @@ export declare const LogoPropsSchema: z.ZodObject<{
|
|
|
35
37
|
right: z.ZodNumber;
|
|
36
38
|
left: z.ZodNumber;
|
|
37
39
|
}, z.core.$strip>>>;
|
|
40
|
+
iconName: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
41
|
+
iconNameTablet: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
42
|
+
iconNameMobile: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
43
|
+
iconFillColor: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodString, z.ZodString, z.ZodLiteral<"transparent">]>>>>;
|
|
44
|
+
iconFillColorTablet: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodString, z.ZodString, z.ZodLiteral<"transparent">]>>>>;
|
|
45
|
+
iconFillColorMobile: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodString, z.ZodString, z.ZodLiteral<"transparent">]>>>>;
|
|
38
46
|
}, z.core.$strip>>>;
|
|
39
47
|
}, z.core.$strip>;
|
|
40
48
|
export type LogoProps = z.infer<typeof LogoPropsSchema>;
|
|
41
49
|
export declare const LogoPropsDefaults: {
|
|
42
50
|
readonly url: "";
|
|
51
|
+
readonly urlTablet: any;
|
|
52
|
+
readonly urlMobile: any;
|
|
43
53
|
readonly alt: "Logo";
|
|
44
54
|
readonly decorative: false;
|
|
45
55
|
readonly linkHref: "https://pagepilot.fabbuilder.com/";
|
|
@@ -49,15 +59,18 @@ export declare const LogoPropsDefaults: {
|
|
|
49
59
|
readonly borderRadius: 0;
|
|
50
60
|
readonly borderColor: any;
|
|
51
61
|
readonly borderWidth: any;
|
|
62
|
+
readonly iconName: any;
|
|
63
|
+
readonly iconNameTablet: any;
|
|
64
|
+
readonly iconNameMobile: any;
|
|
65
|
+
readonly iconFillColor: any;
|
|
66
|
+
readonly iconFillColorTablet: any;
|
|
67
|
+
readonly iconFillColorMobile: any;
|
|
52
68
|
};
|
|
53
69
|
/**
|
|
54
70
|
* The Logo block renders an image at a fixed pixel width that the author
|
|
55
|
-
* controls per breakpoint.
|
|
56
|
-
*
|
|
57
|
-
*
|
|
58
|
-
*
|
|
59
|
-
* --ahd-logo-w-tablet tablet width (≤1024px)
|
|
60
|
-
* --ahd-logo-w-mobile mobile width (≤600px)
|
|
61
|
-
* The logo CSS in renderDynamicCss reads these and applies them per breakpoint.
|
|
71
|
+
* controls per breakpoint. Like the Image block, it emits its OWN scoped
|
|
72
|
+
* `@media` CSS (keyed off a per-instance class) for the tablet/mobile widths —
|
|
73
|
+
* the global page CSS carries only overflow guards and must not set a width,
|
|
74
|
+
* or the two would fight at different breakpoints.
|
|
62
75
|
*/
|
|
63
76
|
export declare function Logo({ style, props }: LogoProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -16,9 +16,9 @@ export declare const StepperPropsSchema: z.ZodObject<{
|
|
|
16
16
|
}, z.core.$strip>>>;
|
|
17
17
|
props: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
18
18
|
stepperType: z.ZodNullable<z.ZodOptional<z.ZodEnum<{
|
|
19
|
-
both: "both";
|
|
20
|
-
numeric: "numeric";
|
|
21
19
|
dots: "dots";
|
|
20
|
+
numeric: "numeric";
|
|
21
|
+
both: "both";
|
|
22
22
|
}>>>;
|
|
23
23
|
totalDots: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
24
24
|
activeIndex: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
@@ -36,12 +36,12 @@ export declare const TextPropsSchema: z.ZodObject<{
|
|
|
36
36
|
BEBAS_NEUE: "BEBAS_NEUE";
|
|
37
37
|
}>>>;
|
|
38
38
|
fontWeight: z.ZodNullable<z.ZodOptional<z.ZodEnum<{
|
|
39
|
+
bold: "bold";
|
|
39
40
|
400: "400";
|
|
40
41
|
500: "500";
|
|
41
42
|
600: "600";
|
|
42
43
|
700: "700";
|
|
43
44
|
normal: "normal";
|
|
44
|
-
bold: "bold";
|
|
45
45
|
}>>>;
|
|
46
46
|
textAlign: z.ZodNullable<z.ZodOptional<z.ZodEnum<{
|
|
47
47
|
right: "right";
|
|
@@ -17,6 +17,10 @@ export declare const VideoPropsSchema: z.ZodObject<{
|
|
|
17
17
|
props: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
18
18
|
width: z.ZodNullable<z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>>;
|
|
19
19
|
height: z.ZodNullable<z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>>;
|
|
20
|
+
widthTablet: z.ZodNullable<z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>>;
|
|
21
|
+
widthMobile: z.ZodNullable<z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>>;
|
|
22
|
+
heightTablet: z.ZodNullable<z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>>;
|
|
23
|
+
heightMobile: z.ZodNullable<z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>>;
|
|
20
24
|
url: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
21
25
|
alt: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
22
26
|
linkHref: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
@@ -17,6 +17,10 @@ export declare const YouTubeUrlPropsSchema: z.ZodObject<{
|
|
|
17
17
|
props: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
18
18
|
width: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
19
19
|
height: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
20
|
+
widthTablet: z.ZodNullable<z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>>;
|
|
21
|
+
widthMobile: z.ZodNullable<z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>>;
|
|
22
|
+
heightTablet: z.ZodNullable<z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>>;
|
|
23
|
+
heightMobile: z.ZodNullable<z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>>;
|
|
20
24
|
url: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
21
25
|
alt: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
22
26
|
linkHref: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
package/dist/editor/Shell.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { PagePilotEditorProps } from './types';
|
|
2
|
-
export default function Shell({ record, contentMetadata, behaviour, steps, sections, activeStepIndex, panels, title, recordTitle, recordStatus, headerExtra, children, onUpdateRecord, onChange, onSaveChanges, onPublish, onPublishMenu, renderPublish, onBack, onTogglePreview, onBackgroundChange, onNavigateBranding, onAddSection, topbar, mode, onToggleMode, }: PagePilotEditorProps & {
|
|
2
|
+
export default function Shell({ record, contentMetadata, behaviour, steps, sections, activeStepIndex, panels, title, recordTitle, recordStatus, headerExtra, children, onUpdateRecord, onChange, onSaveChanges, onPublish, onPublishMenu, renderPublish, onBack, onTogglePreview, onBackgroundChange, onNavigateBranding, onAddSection, onApiError, topbar, mode, onToggleMode, }: PagePilotEditorProps & {
|
|
3
3
|
mode?: "light" | "dark";
|
|
4
4
|
onToggleMode?: () => void;
|
|
5
5
|
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/** All block tile keys exposed in the Add-Block menu. */
|
|
2
|
-
export type BlockKey = "heading" | "text" | "button" | "image" | "logo" | "video" | "avatar" | "divider" | "spacer" | "html" | "columns" | "flexColumns" | "grid" | "buttonGroup" | "container" | "stepper" | "accordion" | "pricingAccordion" | "tabs" | "carousel" | "rating" | "marquee" | "iframe" | "skipToMain" | "accessibilityTools";
|
|
2
|
+
export type BlockKey = "heading" | "text" | "button" | "image" | "logo" | "video" | "avatar" | "divider" | "spacer" | "html" | "columns" | "flexColumns" | "grid" | "buttonGroup" | "container" | "stepper" | "accordion" | "pricingAccordion" | "tabs" | "carousel" | "rating" | "marquee" | "iframe" | "skipToMain" | "accessibilityTools" | "timer" | "pagination" | "table" | "demoPicker" | "menuPicker" | "formsPicker" | "appBannerPicker" | "faqPicker";
|
|
3
3
|
export type BlockToggles = Partial<Record<BlockKey, boolean>>;
|
|
4
4
|
/** Maps a block's `type` string to the BlockKey that controls its tile. */
|
|
5
5
|
export declare const BLOCK_TYPE_TO_KEY: Record<string, BlockKey>;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { PagepilotApiClient } from '../../api/PagepilotApiClient';
|
|
2
|
+
import { PageRecord } from '../types';
|
|
3
|
+
interface PagePublishDialogProps {
|
|
4
|
+
open: boolean;
|
|
5
|
+
onClose: () => void;
|
|
6
|
+
record: PageRecord;
|
|
7
|
+
apiClient: PagepilotApiClient | null;
|
|
8
|
+
/**
|
|
9
|
+
* Called when the user hits Save Draft or Publish. Should trigger the
|
|
10
|
+
* matching Shell action (`runPublishAction`) — the dialog awaits it and
|
|
11
|
+
* only closes on `true`.
|
|
12
|
+
*/
|
|
13
|
+
onSubmit: (action: "save" | "publish", opts: {
|
|
14
|
+
schedule: {
|
|
15
|
+
startDate: Date | null;
|
|
16
|
+
endDate: Date | null;
|
|
17
|
+
};
|
|
18
|
+
}) => Promise<boolean>;
|
|
19
|
+
}
|
|
20
|
+
export default function PagePublishDialog({ open, onClose, record, apiClient, onSubmit, }: PagePublishDialogProps): import("react/jsx-runtime").JSX.Element;
|
|
21
|
+
export {};
|
package/dist/editor/types.d.ts
CHANGED
|
@@ -2,6 +2,7 @@ import { ReactNode } from 'react';
|
|
|
2
2
|
import { Theme } from '@mui/material';
|
|
3
3
|
import { EditorPanelToggles } from '../editor-sample/App/InspectorDrawer/EditorBehavior';
|
|
4
4
|
import { BlockToggles } from './blockToggles';
|
|
5
|
+
import { PagepilotApiConfig } from '../api/PagepilotApiClient';
|
|
5
6
|
export interface PageRecord {
|
|
6
7
|
/** Stable record id. */
|
|
7
8
|
id?: string;
|
|
@@ -75,6 +76,12 @@ export interface TopbarToggles {
|
|
|
75
76
|
sectionsDropdown?: boolean;
|
|
76
77
|
undo?: boolean;
|
|
77
78
|
redo?: boolean;
|
|
79
|
+
/**
|
|
80
|
+
* "Deselect block" button — auto-hides when nothing is selected on the
|
|
81
|
+
* canvas. Clicking clears `selectedBlockId`, collapsing the block's
|
|
82
|
+
* TuneMenu / handles. Matches ahd-fe's `TabUnselectedOutlined` button.
|
|
83
|
+
*/
|
|
84
|
+
unselect?: boolean;
|
|
78
85
|
save?: boolean;
|
|
79
86
|
/** Sun/moon button that flips between the built-in light + dark themes
|
|
80
87
|
* at runtime. Defaults to `true`. Hidden automatically when the host
|
|
@@ -108,6 +115,62 @@ export interface PagePilotEditorProps {
|
|
|
108
115
|
translations?: Record<string, string>;
|
|
109
116
|
topbar?: TopbarToggles;
|
|
110
117
|
blocks?: BlockToggles;
|
|
118
|
+
/**
|
|
119
|
+
* Service-account API config. Follows the same auth pattern as
|
|
120
|
+
* ahd-fe's `CreateMenuAndPageModal` — pass a base URL, tenant id, and
|
|
121
|
+
* pre-issued bearer token, and every save / publish call is sent as:
|
|
122
|
+
*
|
|
123
|
+
* ```ts
|
|
124
|
+
* fetch(`${baseUrl}/tenant/${tenantId}/page/${record.id}`, {
|
|
125
|
+
* method: "PUT",
|
|
126
|
+
* headers: {
|
|
127
|
+
* "Content-Type": "application/json",
|
|
128
|
+
* Authorization: `Bearer ${authToken}`,
|
|
129
|
+
* },
|
|
130
|
+
* body: JSON.stringify({ id: record.id, data: record }),
|
|
131
|
+
* });
|
|
132
|
+
* ```
|
|
133
|
+
*
|
|
134
|
+
* When set, the editor:
|
|
135
|
+
* - saves via `PUT /tenant/:tenantId/page/:id` on the pagepilot API
|
|
136
|
+
* (matches `PageService.update`).
|
|
137
|
+
* - publishes with the same PUT plus `status: "live"` (matches
|
|
138
|
+
* ahd-fe's publish dialog).
|
|
139
|
+
* - shows the Layout panel's Templates + Saved tabs, backed by
|
|
140
|
+
* `/global-template` and `/tenant/:tenantId/mytemplate`.
|
|
141
|
+
*
|
|
142
|
+
* `onSaveChanges` / `onPublish` still fire *after* a successful API
|
|
143
|
+
* write, so hosts can react to the persisted state (e.g. clear a redux
|
|
144
|
+
* dirty flag, refresh a listing). `record.id` must be a real backend
|
|
145
|
+
* id — the built-in `"doc-1"` seed is skipped to keep the demo record
|
|
146
|
+
* from hitting the API.
|
|
147
|
+
*/
|
|
148
|
+
apiConfig?: PagepilotApiConfig;
|
|
149
|
+
/**
|
|
150
|
+
* Base URL used for the Templates tab's public `/global-template` fetch.
|
|
151
|
+
* The endpoint is unauthenticated — no tenant id or bearer token — so the
|
|
152
|
+
* tab works even when `apiConfig` isn't wired. Defaults to
|
|
153
|
+
* `DEFAULT_GLOBAL_TEMPLATES_BASE_URL` (`https://pagepilot.fabbuilder.com/api`);
|
|
154
|
+
* when `apiConfig.baseUrl` is present it wins so the authed and public
|
|
155
|
+
* calls hit the same origin.
|
|
156
|
+
*/
|
|
157
|
+
globalTemplatesBaseUrl?: string;
|
|
158
|
+
/**
|
|
159
|
+
* Fired when a save or publish through `apiConfig` fails (network
|
|
160
|
+
* error, non-2xx response, invalid credentials, missing page id, etc.).
|
|
161
|
+
* Without this callback, failures are only surfaced via `console.error`
|
|
162
|
+
* and the Save button stays "dirty" — the host has no other signal.
|
|
163
|
+
* Use it to show a toast, redirect to a login screen, or re-issue the
|
|
164
|
+
* service-account token.
|
|
165
|
+
*/
|
|
166
|
+
onApiError?: (error: Error, action: "save" | "publish") => void;
|
|
167
|
+
/**
|
|
168
|
+
* Fired when the user clicks "Upgrade" on the Variables-panel paywall
|
|
169
|
+
* (Variables tab is gated behind `tenant.plan === proCombo | enterprise`).
|
|
170
|
+
* Use it to open your billing / upgrade UI. Without this callback the
|
|
171
|
+
* button is a no-op and a message is logged to the console.
|
|
172
|
+
*/
|
|
173
|
+
onUpgrade?: () => void;
|
|
111
174
|
onUpdateRecord?: (record: PageRecord) => void;
|
|
112
175
|
onChange?: (document: any) => void;
|
|
113
176
|
onSaveChanges?: (payload: SaveChangesPayload) => Promise<boolean | void> | boolean | void;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* True while the sidebar is editing a non-desktop device (Tablet / Mobile).
|
|
3
|
+
* Shared controls read this to hide themselves on those tabs, so a block's
|
|
4
|
+
* Tablet/Mobile panel shows ONLY the responsive-relevant controls (typography,
|
|
5
|
+
* spacing, size, layout) — not content, colours, or other props that are the
|
|
6
|
+
* same on every device and edited on Desktop.
|
|
7
|
+
*
|
|
8
|
+
* ConfigurationPanel provides it; `SettingRow`, `CollapsibleSection` and the
|
|
9
|
+
* colour inputs consume it. Desktop = false, so nothing is hidden there.
|
|
10
|
+
*/
|
|
11
|
+
export declare const ResponsiveModeContext: import('react').Context<boolean>;
|
|
12
|
+
export declare function useIsResponsiveMode(): boolean;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Shared "style painter" clipboard for the inspector.
|
|
3
3
|
*
|
|
4
4
|
* Two block shapes live in the editor:
|
|
5
|
-
* -
|
|
5
|
+
* - EmailLayout (the section root): style fields live flat on `data`
|
|
6
6
|
* (canvasColor, fontFamily, padding, borderRadius, …)
|
|
7
7
|
* - Every other block (Text, Heading, Button, Container, …): style fields
|
|
8
8
|
* live under `data.style`, content under `data.props`.
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
* sessionStorage is intentional: persists across section/block selection
|
|
21
21
|
* changes within the editor session, gone after the tab closes.
|
|
22
22
|
*/
|
|
23
|
-
export type ClipboardKind = '
|
|
23
|
+
export type ClipboardKind = 'EmailLayout' | 'Block';
|
|
24
24
|
export type StyleClipboard = {
|
|
25
25
|
kind: ClipboardKind;
|
|
26
26
|
/**
|
|
@@ -57,7 +57,7 @@ export type StyleClipboard = {
|
|
|
57
57
|
/** Section root: a curated whitelist of "visual" fields. We deliberately skip
|
|
58
58
|
* content-ish fields (backgroundImage, CTA text/link, language, demo positioning). */
|
|
59
59
|
export declare const PAGE_PILOT_LAYOUT_STYLE_FIELDS: readonly ["canvasColor", "fontFamily", "textColor", "borderRadius", "borderColor", "borderWidth", "maxWidth", "maxHeight", "padding", "margin", "backdropColor", "ctaButtonBgColor", "ctaButtonTextColor", "ctaButtonPosition"];
|
|
60
|
-
export declare function
|
|
60
|
+
export declare function pickEmailLayoutStyle(data: Record<string, any>): Record<string, any>;
|
|
61
61
|
export declare function readClipboard(): StyleClipboard | null;
|
|
62
62
|
export declare function writeClipboard(c: StyleClipboard): void;
|
|
63
63
|
/**
|
|
@@ -69,7 +69,7 @@ export declare function writeClipboard(c: StyleClipboard): void;
|
|
|
69
69
|
export declare function clearClipboard(): void;
|
|
70
70
|
/**
|
|
71
71
|
* Decide what to copy off a given block.
|
|
72
|
-
* -
|
|
72
|
+
* - EmailLayout → curated flat fields
|
|
73
73
|
* - any other block → the entire `data.style` object (if any)
|
|
74
74
|
*
|
|
75
75
|
* Returns null if the block has no copyable style (e.g. a block whose data has
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
type PaddingValue = {
|
|
2
|
+
top: number;
|
|
3
|
+
right: number;
|
|
4
|
+
bottom: number;
|
|
5
|
+
left: number;
|
|
6
|
+
};
|
|
7
|
+
type Props = {
|
|
8
|
+
data: {
|
|
9
|
+
props: {
|
|
10
|
+
bannerId: string;
|
|
11
|
+
bannerName?: string | null;
|
|
12
|
+
contentHtml?: string | null;
|
|
13
|
+
padding?: PaddingValue | null;
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
setData: (data: any) => void;
|
|
17
|
+
};
|
|
18
|
+
declare const AppBannerPickerSidebarPanel: ({ data, setData }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
19
|
+
export default AppBannerPickerSidebarPanel;
|