pagepilot-visual-editor 1.0.2
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/CHANGELOG.md +64 -0
- package/LICENSE +21 -0
- package/README.md +553 -0
- package/dist/PagePilotEditor.d.ts +17 -0
- package/dist/blocks-internal/block-button/src/NudegeIcons.d.ts +18 -0
- package/dist/blocks-internal/block-button/src/icons.d.ts +5 -0
- package/dist/blocks-internal/block-button/src/index.d.ts +145 -0
- package/dist/blocks-internal/block-button-group/src/index.d.ts +35 -0
- package/dist/blocks-internal/block-columns-container/src/index.d.ts +38 -0
- package/dist/blocks-internal/block-container/src/index.d.ts +72 -0
- package/dist/blocks-internal/block-divider/src/index.d.ts +23 -0
- package/dist/blocks-internal/block-grid/src/index.d.ts +32 -0
- package/dist/blocks-internal/block-heading/src/index.d.ts +99 -0
- package/dist/blocks-internal/block-html/src/index.d.ts +56 -0
- package/dist/blocks-internal/block-iframe/src/index.d.ts +26 -0
- package/dist/blocks-internal/block-image/src/index.d.ts +68 -0
- package/dist/blocks-internal/block-logo/src/index.d.ts +64 -0
- package/dist/blocks-internal/block-stepper/src/index.d.ts +52 -0
- package/dist/blocks-internal/block-text/src/EmailMarkdown.d.ts +8 -0
- package/dist/blocks-internal/block-text/src/index.d.ts +70 -0
- package/dist/blocks-internal/block-video/src/index.d.ts +46 -0
- package/dist/blocks-internal/block-youtube-url/src/index.d.ts +32 -0
- package/dist/editor/Shell.d.ts +6 -0
- package/dist/editor/StatusPill.d.ts +3 -0
- package/dist/editor/Topbar.d.ts +27 -0
- package/dist/editor/blockToggles.d.ts +12 -0
- package/dist/editor/theme.d.ts +10 -0
- package/dist/editor/types.d.ts +128 -0
- package/dist/editor-sample/App/InspectorDrawer/BehaviourPanel.d.ts +1 -0
- package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/BlockStyleClipboardBar.d.ts +16 -0
- package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/blockStyleClipboard.d.ts +83 -0
- package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/index.d.ts +5 -0
- package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/AccessibilityToolsSidebarPanel.d.ts +8 -0
- package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/AccordionSidebarPanel.d.ts +8 -0
- package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/AvatarSidebarPanel.d.ts +8 -0
- package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/ButtonGroupSidebarPanel.d.ts +8 -0
- package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/ButtonSidebarPanel.d.ts +7 -0
- package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/CalendlySidebarPanel.d.ts +8 -0
- package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/CarouselSidebarPanel.d.ts +8 -0
- package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/ColumnsContainerSidebarPanel.d.ts +8 -0
- package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/ContainerSidebarPanel.d.ts +8 -0
- package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/DividerSidebarPanel.d.ts +8 -0
- package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/FlexColumns/ColumnSection.d.ts +10 -0
- package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/FlexColumnsSidebarPanel.d.ts +8 -0
- package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/GridSidebarPanel.d.ts +8 -0
- package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/HeadingSidebarPanel.d.ts +8 -0
- package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/HtmlSidebarPanel.d.ts +8 -0
- package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/IframeSidebarPanel.d.ts +8 -0
- package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/ImageSidebarPanel.d.ts +8 -0
- package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/LogoSidebarPanel.d.ts +8 -0
- package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/MarqueeSidebarPanel.d.ts +8 -0
- package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/PagePilotLayoutSidebarPanel.d.ts +24 -0
- package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/PricingAccordionSidebarPanel.d.ts +8 -0
- package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/PricingAccordionSidebarPanel.styled.d.ts +7 -0
- package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/RatingSidebarPanel.d.ts +8 -0
- package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/SkipLinkSidebarPanel.d.ts +8 -0
- package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/SpacerSidebarPanel.d.ts +8 -0
- package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/StepperSidebarPanel.d.ts +9 -0
- package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/TabsBlockSidebarPanel.d.ts +8 -0
- package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/TextSidebarPanel.d.ts +8 -0
- package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/VideoSidebarPanel.d.ts +8 -0
- package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/BaseSidebarPanel.d.ts +9 -0
- package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/CollapsibleSection.d.ts +13 -0
- package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/ContrastWarning.d.ts +9 -0
- package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/MediaLibraryButton.d.ts +17 -0
- package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/SectionWrapper.d.ts +8 -0
- package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/contrast.d.ts +10 -0
- package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/BooleanInput.d.ts +8 -0
- package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/CodeEditor.d.ts +7 -0
- package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/ColorInput/BaseColorInput.d.ts +14 -0
- package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/ColorInput/Picker.d.ts +28 -0
- package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/ColorInput/Swatch.d.ts +7 -0
- package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/ColorInput/index.d.ts +14 -0
- package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/ColumnWidthsInput.d.ts +10 -0
- package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/FontFamily.d.ts +11 -0
- package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/FontSizeInput.d.ts +9 -0
- package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/FontStyleInput.d.ts +8 -0
- package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/FontWeightInput.d.ts +9 -0
- package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/NumberInput.d.ts +22 -0
- package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/PaddingInput.d.ts +16 -0
- package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/RadioGroupInput.d.ts +9 -0
- package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/RadiusInput.d.ts +20 -0
- package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/SliderInput.d.ts +14 -0
- package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/SwitchInput.d.ts +9 -0
- package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/TextAlignInput.d.ts +8 -0
- package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/TextDecorationInput.d.ts +8 -0
- package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/TextDimensionInput.d.ts +9 -0
- package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/TextInput.d.ts +24 -0
- package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/WidthInputWithSelect.d.ts +12 -0
- package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/raw/RawSliderInput.d.ts +13 -0
- package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/style-inputs/MultiStylePropertyPanel.d.ts +9 -0
- package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/style-inputs/SingleStylePropertyPanel.d.ts +9 -0
- package/dist/editor-sample/App/InspectorDrawer/EditorBehavior.d.ts +21 -0
- package/dist/editor-sample/App/InspectorDrawer/LayersPanel.d.ts +2 -0
- package/dist/editor-sample/App/InspectorDrawer/LayersPanelStyles.d.ts +27 -0
- package/dist/editor-sample/App/InspectorDrawer/LayoutPanel/BlocksPanel.d.ts +3 -0
- package/dist/editor-sample/App/InspectorDrawer/LayoutPanel/icons/index.d.ts +16 -0
- package/dist/editor-sample/App/InspectorDrawer/LayoutPanel/index.d.ts +6 -0
- package/dist/editor-sample/App/InspectorDrawer/LayoutPanel/templateHelpers.d.ts +1 -0
- package/dist/editor-sample/App/InspectorDrawer/StylesPanel.d.ts +6 -0
- package/dist/editor-sample/App/InspectorDrawer/hooks/useScalarFieldInput.d.ts +23 -0
- package/dist/editor-sample/App/InspectorDrawer/icons/index.d.ts +53 -0
- package/dist/editor-sample/App/InspectorDrawer/index.d.ts +16 -0
- package/dist/editor-sample/App/InspectorDrawer/layerClipboard.d.ts +7 -0
- package/dist/editor-sample/App/InspectorDrawer/useLayerNode.d.ts +35 -0
- package/dist/editor-sample/App/SelectionOverlay/index.d.ts +0 -0
- package/dist/editor-sample/App/TemplatePanel/HtmlPanel.d.ts +2 -0
- package/dist/editor-sample/App/TemplatePanel/JsonPanel.d.ts +2 -0
- package/dist/editor-sample/App/TemplatePanel/helper/HighlightedCodePanel.d.ts +7 -0
- package/dist/editor-sample/App/TemplatePanel/helper/highlighters.d.ts +2 -0
- package/dist/editor-sample/App/TemplatePanel/hooks/index.d.ts +3 -0
- package/dist/editor-sample/App/TemplatePanel/hooks/useDragSelection.d.ts +23 -0
- package/dist/editor-sample/App/TemplatePanel/hooks/useMainBoxStyles.d.ts +12 -0
- package/dist/editor-sample/App/TemplatePanel/hooks/usePanelPositioning.d.ts +25 -0
- package/dist/editor-sample/App/TemplatePanel/index.d.ts +17 -0
- package/dist/editor-sample/App/TemplatePanel/pageGuide/AhdMarkerLayer.d.ts +19 -0
- package/dist/editor-sample/App/TemplatePanel/pageGuide/elementBounds.d.ts +24 -0
- package/dist/editor-sample/App/TemplatePanel/pageGuide/iframeSrcDoc.d.ts +6 -0
- package/dist/editor-sample/App/TemplatePanel/pageGuide/useAhdMarkers.d.ts +28 -0
- package/dist/editor-sample/App/TemplatePanel/types.d.ts +36 -0
- package/dist/editor-sample/App/TemplatePanel/utils/index.d.ts +1 -0
- package/dist/editor-sample/App/TemplatePanel/utils/positioningUtils.d.ts +16 -0
- package/dist/editor-sample/App/hooks/constants.d.ts +10 -0
- package/dist/editor-sample/App/hooks/page/menuHrefBaselines.d.ts +10 -0
- package/dist/editor-sample/App/hooks/page/saveMenuHrefEdits.d.ts +1 -0
- package/dist/editor-sample/App/hooks/page/useSaveHandler.d.ts +21 -0
- package/dist/editor-sample/App/hooks/useGetPageType.d.ts +3 -0
- package/dist/editor-sample/App/hooks/usePreviewScreen.d.ts +8 -0
- package/dist/editor-sample/App/shared/AddSectionDialog.d.ts +12 -0
- package/dist/editor-sample/App/shared/PagePreviewFrame.d.ts +16 -0
- package/dist/editor-sample/App/shared/PreviewDialog.d.ts +15 -0
- package/dist/editor-sample/App/shared/SectionsDropdown.d.ts +10 -0
- package/dist/editor-sample/App/shared/editor.styles.d.ts +21 -0
- package/dist/editor-sample/App/shared/multipleSections.styled.d.ts +18 -0
- package/dist/editor-sample/App/shared/pageSections.d.ts +28 -0
- package/dist/editor-sample/documents/blocks/AccessibilityTools/AccessibilityToolsEditor.d.ts +3 -0
- package/dist/editor-sample/documents/blocks/AccessibilityTools/AccessibilityToolsPropsSchema.d.ts +1 -0
- package/dist/editor-sample/documents/blocks/Accordion/AccordionEditor.d.ts +3 -0
- package/dist/editor-sample/documents/blocks/Accordion/AccordionPropsSchema.d.ts +41 -0
- package/dist/editor-sample/documents/blocks/ButtonGroup/ButtonGroupEditor.d.ts +3 -0
- package/dist/editor-sample/documents/blocks/ButtonGroup/ButtonGroupPropsSchema.d.ts +31 -0
- package/dist/editor-sample/documents/blocks/Carousel/CarouselEditor.d.ts +3 -0
- package/dist/editor-sample/documents/blocks/Carousel/CarouselPropsSchema.d.ts +47 -0
- package/dist/editor-sample/documents/blocks/ColumnsContainer/ColumnsContainerEditor.d.ts +3 -0
- package/dist/editor-sample/documents/blocks/ColumnsContainer/ColumnsContainerPropsSchema.d.ts +49 -0
- package/dist/editor-sample/documents/blocks/Container/ContainerEditor.d.ts +3 -0
- package/dist/editor-sample/documents/blocks/Container/ContainerPropsSchema.d.ts +52 -0
- package/dist/editor-sample/documents/blocks/FlexColumns/FlexColumnsEditor.d.ts +3 -0
- package/dist/editor-sample/documents/blocks/FlexColumns/FlexColumnsPropsSchema.d.ts +1 -0
- package/dist/editor-sample/documents/blocks/Grid/GridEditor.d.ts +3 -0
- package/dist/editor-sample/documents/blocks/Grid/GridPropsSchema.d.ts +48 -0
- package/dist/editor-sample/documents/blocks/Marquee/MarqueeEditor.d.ts +3 -0
- package/dist/editor-sample/documents/blocks/Marquee/MarqueePropsSchema.d.ts +37 -0
- package/dist/editor-sample/documents/blocks/PagePilotLayout/PagePilotLayoutEditor.d.ts +2 -0
- package/dist/editor-sample/documents/blocks/PagePilotLayout/PagePilotLayoutPropsSchema.d.ts +151 -0
- package/dist/editor-sample/documents/blocks/PricingAccordion/PricingAccordionEditor.d.ts +3 -0
- package/dist/editor-sample/documents/blocks/PricingAccordion/PricingAccordionPropsSchema.d.ts +77 -0
- package/dist/editor-sample/documents/blocks/Rating/RatingEditor.d.ts +3 -0
- package/dist/editor-sample/documents/blocks/Rating/RatingPropsSchema.d.ts +31 -0
- package/dist/editor-sample/documents/blocks/SkipLink/SkipLinkEditor.d.ts +3 -0
- package/dist/editor-sample/documents/blocks/SkipLink/SkipLinkPropsSchema.d.ts +1 -0
- package/dist/editor-sample/documents/blocks/TabsBlock/TabsBlockEditor.d.ts +3 -0
- package/dist/editor-sample/documents/blocks/TabsBlock/TabsBlockPropsSchema.d.ts +53 -0
- package/dist/editor-sample/documents/blocks/helpers/EditorChildrenIds/AddBlockMenu/BlockButton.d.ts +9 -0
- package/dist/editor-sample/documents/blocks/helpers/EditorChildrenIds/AddBlockMenu/BlockInsertAboveContext.d.ts +2 -0
- package/dist/editor-sample/documents/blocks/helpers/EditorChildrenIds/AddBlockMenu/BlocksMenu.d.ts +10 -0
- package/dist/editor-sample/documents/blocks/helpers/EditorChildrenIds/AddBlockMenu/DividerButton.d.ts +7 -0
- package/dist/editor-sample/documents/blocks/helpers/EditorChildrenIds/AddBlockMenu/PlaceholderButton.d.ts +6 -0
- package/dist/editor-sample/documents/blocks/helpers/EditorChildrenIds/AddBlockMenu/ScopePickerMenu.d.ts +14 -0
- package/dist/editor-sample/documents/blocks/helpers/EditorChildrenIds/AddBlockMenu/brandButtonDefaults.d.ts +14 -0
- package/dist/editor-sample/documents/blocks/helpers/EditorChildrenIds/AddBlockMenu/buttons.d.ts +9 -0
- package/dist/editor-sample/documents/blocks/helpers/EditorChildrenIds/AddBlockMenu/index.d.ts +16 -0
- package/dist/editor-sample/documents/blocks/helpers/EditorChildrenIds/index.d.ts +16 -0
- package/dist/editor-sample/documents/blocks/helpers/InlineEditableText.d.ts +6 -0
- package/dist/editor-sample/documents/blocks/helpers/InlineTextToolbar/FullscreenOverlay.d.ts +20 -0
- package/dist/editor-sample/documents/blocks/helpers/InlineTextToolbar/constants.d.ts +22 -0
- package/dist/editor-sample/documents/blocks/helpers/InlineTextToolbar/dialogs/ImageDialog.d.ts +20 -0
- package/dist/editor-sample/documents/blocks/helpers/InlineTextToolbar/dialogs/LinkDialog.d.ts +23 -0
- package/dist/editor-sample/documents/blocks/helpers/InlineTextToolbar/dialogs/VideoDialog.d.ts +9 -0
- package/dist/editor-sample/documents/blocks/helpers/InlineTextToolbar/dom.d.ts +6 -0
- package/dist/editor-sample/documents/blocks/helpers/InlineTextToolbar/focusGuard.d.ts +7 -0
- package/dist/editor-sample/documents/blocks/helpers/InlineTextToolbar/format.d.ts +19 -0
- package/dist/editor-sample/documents/blocks/helpers/InlineTextToolbar/hooks/useCodeView.d.ts +35 -0
- package/dist/editor-sample/documents/blocks/helpers/InlineTextToolbar/hooks/useFormatPainter.d.ts +18 -0
- package/dist/editor-sample/documents/blocks/helpers/InlineTextToolbar/hooks/useFormatState.d.ts +11 -0
- package/dist/editor-sample/documents/blocks/helpers/InlineTextToolbar/hooks/useFullscreen.d.ts +24 -0
- package/dist/editor-sample/documents/blocks/helpers/InlineTextToolbar/hooks/useToolbarCommands.d.ts +66 -0
- package/dist/editor-sample/documents/blocks/helpers/InlineTextToolbar/hooks/useToolbarDrag.d.ts +21 -0
- package/dist/editor-sample/documents/blocks/helpers/InlineTextToolbar/hooks/useToolbarPosition.d.ts +7 -0
- package/dist/editor-sample/documents/blocks/helpers/InlineTextToolbar/index.d.ts +17 -0
- package/dist/editor-sample/documents/blocks/helpers/InlineTextToolbar/inlineEditChrome.d.ts +6 -0
- package/dist/editor-sample/documents/blocks/helpers/InlineTextToolbar/popovers/ColorSwatchPopover.d.ts +21 -0
- package/dist/editor-sample/documents/blocks/helpers/InlineTextToolbar/popovers/ImagePopover.d.ts +16 -0
- package/dist/editor-sample/documents/blocks/helpers/InlineTextToolbar/popovers/OverflowMenu.d.ts +13 -0
- package/dist/editor-sample/documents/blocks/helpers/InlineTextToolbar/popovers/TableGridPicker.d.ts +10 -0
- package/dist/editor-sample/documents/blocks/helpers/InlineTextToolbar/primitives/Divider.d.ts +8 -0
- package/dist/editor-sample/documents/blocks/helpers/InlineTextToolbar/primitives/Dropdown.d.ts +27 -0
- package/dist/editor-sample/documents/blocks/helpers/InlineTextToolbar/primitives/HoverButton.d.ts +27 -0
- package/dist/editor-sample/documents/blocks/helpers/InlineTextToolbar/primitives/IconBtn.d.ts +16 -0
- package/dist/editor-sample/documents/blocks/helpers/InlineTextToolbar/primitives/MenuItem.d.ts +32 -0
- package/dist/editor-sample/documents/blocks/helpers/InlineTextToolbar/primitives/MicIcon.d.ts +7 -0
- package/dist/editor-sample/documents/blocks/helpers/InlineTextToolbar/primitives/NoteIcon.d.ts +15 -0
- package/dist/editor-sample/documents/blocks/helpers/InlineTextToolbar/selection.d.ts +17 -0
- package/dist/editor-sample/documents/blocks/helpers/InlineTextToolbar/styles.d.ts +14 -0
- package/dist/editor-sample/documents/blocks/helpers/InlineTextToolbar/types.d.ts +36 -0
- package/dist/editor-sample/documents/blocks/helpers/TStyle.d.ts +17 -0
- package/dist/editor-sample/documents/blocks/helpers/TemplateTokenOverlay.d.ts +44 -0
- package/dist/editor-sample/documents/blocks/helpers/block-wrappers/EditorBlockWrapper.d.ts +6 -0
- package/dist/editor-sample/documents/blocks/helpers/block-wrappers/ReaderBlockWrapper.d.ts +8 -0
- package/dist/editor-sample/documents/blocks/helpers/block-wrappers/TuneMenu.d.ts +6 -0
- package/dist/editor-sample/documents/blocks/helpers/block-wrappers/useCanvasDrop.d.ts +18 -0
- package/dist/editor-sample/documents/blocks/helpers/blockVisibility.d.ts +27 -0
- package/dist/editor-sample/documents/blocks/helpers/documentUtils.d.ts +126 -0
- package/dist/editor-sample/documents/blocks/helpers/fontFamily.d.ts +33 -0
- package/dist/editor-sample/documents/blocks/helpers/fontWeight.d.ts +13 -0
- package/dist/editor-sample/documents/blocks/helpers/zod.d.ts +48 -0
- package/dist/editor-sample/documents/editor/EditorBlock.d.ts +13 -0
- package/dist/editor-sample/documents/editor/EditorContext.d.ts +347 -0
- package/dist/editor-sample/documents/editor/EditorVariantContext.d.ts +4 -0
- package/dist/editor-sample/documents/editor/LazyEditorBlock.d.ts +26 -0
- package/dist/editor-sample/documents/editor/core.d.ts +1212 -0
- package/dist/editor-sample/documents/editor/prefillDefaultValues.d.ts +12 -0
- package/dist/editor-sample/documents/editor/templateVariables.d.ts +50 -0
- package/dist/editor-sample/getConfiguration/index.d.ts +1 -0
- package/dist/editor-sample/getConfiguration/sample/empty-email-message.d.ts +3 -0
- package/dist/editor-sample/getConfiguration/sample/one-time-passcode.d.ts +3 -0
- package/dist/editor-sample/getConfiguration/sample/order-ecommerce.d.ts +3 -0
- package/dist/editor-sample/getConfiguration/sample/post-metrics-report.d.ts +3 -0
- package/dist/editor-sample/getConfiguration/sample/reservation-reminder.d.ts +3 -0
- package/dist/editor-sample/getConfiguration/sample/reset-password.d.ts +3 -0
- package/dist/editor-sample/getConfiguration/sample/respond-to-message.d.ts +3 -0
- package/dist/editor-sample/getConfiguration/sample/subscription-receipt.d.ts +3 -0
- package/dist/editor-sample/getConfiguration/sample/welcome.d.ts +3 -0
- package/dist/editor-sample/utils/editorKvStore.d.ts +5 -0
- package/dist/email-builder-core/Reader/ReaderBlockShim.d.ts +10 -0
- package/dist/email-builder-core/Reader/core.d.ts +35 -0
- package/dist/email-builder-core/blocks/AccessibilityTools/AccessibilityToolsPropsSchema.d.ts +79 -0
- package/dist/email-builder-core/blocks/AccessibilityTools/AccessibilityToolsReader.d.ts +3 -0
- package/dist/email-builder-core/blocks/AccessibilityTools/icons.d.ts +4 -0
- package/dist/email-builder-core/blocks/Accordion/AccordionPropsSchema.d.ts +35 -0
- package/dist/email-builder-core/blocks/Accordion/AccordionReader.d.ts +3 -0
- package/dist/email-builder-core/blocks/ButtonGroup/ButtonGroupPropsSchema.d.ts +31 -0
- package/dist/email-builder-core/blocks/ButtonGroup/ButtonGroupReader.d.ts +3 -0
- package/dist/email-builder-core/blocks/Calendly/CalendlyPropsSchema.d.ts +24 -0
- package/dist/email-builder-core/blocks/Calendly/CalendlyReader.d.ts +3 -0
- package/dist/email-builder-core/blocks/Carousel/CarouselPropsSchema.d.ts +47 -0
- package/dist/email-builder-core/blocks/Carousel/CarouselReader.d.ts +3 -0
- package/dist/email-builder-core/blocks/ColumnsContainer/ColumnsContainerPropsSchema.d.ts +53 -0
- package/dist/email-builder-core/blocks/ColumnsContainer/ColumnsContainerReader.d.ts +3 -0
- package/dist/email-builder-core/blocks/Container/ContainerPropsSchema.d.ts +52 -0
- package/dist/email-builder-core/blocks/Container/ContainerReader.d.ts +3 -0
- package/dist/email-builder-core/blocks/FlexColumns/FlexColumnsPropsSchema.d.ts +44 -0
- package/dist/email-builder-core/blocks/FlexColumns/FlexColumnsReader.d.ts +2 -0
- package/dist/email-builder-core/blocks/FlexColumns/flexColumnsHelpers.d.ts +10 -0
- package/dist/email-builder-core/blocks/Grid/GridPropsSchema.d.ts +48 -0
- package/dist/email-builder-core/blocks/Grid/GridReader.d.ts +3 -0
- package/dist/email-builder-core/blocks/Marquee/MarqueePropsSchema.d.ts +36 -0
- package/dist/email-builder-core/blocks/Marquee/MarqueeReader.d.ts +3 -0
- package/dist/email-builder-core/blocks/PagePilotLayout/PagePilotLayoutPropsSchema.d.ts +103 -0
- package/dist/email-builder-core/blocks/PagePilotLayout/PagePilotLayoutReader.d.ts +3 -0
- package/dist/email-builder-core/blocks/PricingAccordion/PricingAccordionPropsSchema.d.ts +77 -0
- package/dist/email-builder-core/blocks/PricingAccordion/PricingAccordionReader.d.ts +3 -0
- package/dist/email-builder-core/blocks/Rating/RatingPropsSchema.d.ts +30 -0
- package/dist/email-builder-core/blocks/Rating/RatingReader.d.ts +3 -0
- package/dist/email-builder-core/blocks/SkipLink/SkipLinkPropsSchema.d.ts +42 -0
- package/dist/email-builder-core/blocks/SkipLink/SkipLinkReader.d.ts +3 -0
- package/dist/email-builder-core/blocks/TabsBlock/TabsBlockPropsSchema.d.ts +53 -0
- package/dist/email-builder-core/blocks/TabsBlock/TabsBlockReader.d.ts +3 -0
- package/dist/email-builder-core/blocks/helpers/blockStyleHelpers.d.ts +15 -0
- package/dist/email-builder-core/helpers/fontFamily.d.ts +33 -0
- package/dist/email-builder-core/helpers/fontWeight.d.ts +13 -0
- package/dist/email-builder-core/helpers/screen.d.ts +13 -0
- package/dist/email-builder-core/helpers/templateVariables.d.ts +14 -0
- package/dist/email-builder-core/index.d.ts +3 -0
- package/dist/email-builder-core/renderers/accessibilityTools.d.ts +35 -0
- package/dist/email-builder-core/renderers/pageScripts.d.ts +7 -0
- package/dist/email-builder-core/renderers/renderDynamicCss.d.ts +1 -0
- package/dist/email-builder-core/renderers/renderToStaticMarkup.d.ts +41 -0
- package/dist/host-stubs/_passthrough.d.ts +2 -0
- package/dist/host-stubs/i18n.d.ts +8 -0
- package/dist/host-stubs/style/menu.styled.d.ts +15 -0
- package/dist/host-stubs/style/styled.d.ts +34 -0
- package/dist/host-stubs/theme/theme.d.ts +2 -0
- package/dist/host-stubs/view/images/Icons.d.ts +649 -0
- package/dist/host-stubs/view/media/MediaGalleryDialog.d.ts +2 -0
- package/dist/host-stubs/view/shared/message.d.ts +11 -0
- package/dist/host-stubs/view/shared/modals/PopupConfirm.d.ts +11 -0
- package/dist/index.cjs +1630 -0
- package/dist/index.d.ts +8 -0
- package/dist/index.js +168332 -0
- package/dist/style.css +1 -0
- package/package.json +115 -0
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { TemplateFormField } from './templateVariables';
|
|
2
|
+
/**
|
|
3
|
+
* Seeds empty field values from their `defaultValue` when a template is applied.
|
|
4
|
+
*
|
|
5
|
+
* - Scalar fields: fills `value` only when it is empty/undefined.
|
|
6
|
+
* - Array fields: ensures at least one row exists and fills any empty sub-field
|
|
7
|
+
* cells from the sub-field's `defaultValue`.
|
|
8
|
+
*
|
|
9
|
+
* Returns the SAME reference when nothing changed so callers can skip a write.
|
|
10
|
+
*/
|
|
11
|
+
declare const prefillDefaultValues: (fields: TemplateFormField[] | null | undefined) => TemplateFormField[];
|
|
12
|
+
export default prefillDefaultValues;
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { TEditorConfiguration } from './core';
|
|
2
|
+
/**
|
|
3
|
+
* The kinds of single-value template field. `array` is repeatable and handled
|
|
4
|
+
* separately. `text` / `textarea` substitute as plain strings, `number` as a
|
|
5
|
+
* numeric string, `image` as an image URL (used in Image/Avatar/Logo blocks).
|
|
6
|
+
*/
|
|
7
|
+
export type TemplateScalarType = 'text' | 'textarea' | 'number' | 'image';
|
|
8
|
+
export type TemplateFormType = TemplateScalarType | 'array';
|
|
9
|
+
/** All scalar types — used by both top-level fields and array sub-fields. */
|
|
10
|
+
export declare const TEMPLATE_SCALAR_TYPES: TemplateScalarType[];
|
|
11
|
+
export type TemplateItemFieldDef = {
|
|
12
|
+
id: string;
|
|
13
|
+
name: string;
|
|
14
|
+
/** Sub-field input kind. Defaults to `text` when absent (legacy rows). */
|
|
15
|
+
type?: TemplateScalarType;
|
|
16
|
+
/** Author-set default value, used to prefill the row when a template is applied. */
|
|
17
|
+
defaultValue?: string;
|
|
18
|
+
};
|
|
19
|
+
export type TemplateArrayRow = Record<string, string>;
|
|
20
|
+
export type TemplateFormField = {
|
|
21
|
+
id: string;
|
|
22
|
+
name: string;
|
|
23
|
+
type: TemplateFormType;
|
|
24
|
+
value?: string | TemplateArrayRow[];
|
|
25
|
+
defaultValue?: string;
|
|
26
|
+
itemFields?: TemplateItemFieldDef[];
|
|
27
|
+
sourceBlockId?: string;
|
|
28
|
+
rowIds?: string[];
|
|
29
|
+
};
|
|
30
|
+
export declare function buildRepeatRowIndex(document: TEditorConfiguration | null | undefined, fields: TemplateFormField[] | null | undefined): Map<string, TemplateArrayRow>;
|
|
31
|
+
/**
|
|
32
|
+
* Drop / repair form fields whose tokens or blocks were deleted from the editor
|
|
33
|
+
* so the Variables tab stays in sync in real time.
|
|
34
|
+
*
|
|
35
|
+
* - Scalar fields (text / textarea / number / image) and plain array fields
|
|
36
|
+
* (no sourceBlockId): removed when their {{id}} token no longer appears in
|
|
37
|
+
* any remaining block's text props.
|
|
38
|
+
* - Container-repeat array fields (sourceBlockId set):
|
|
39
|
+
* • sourceBlockId gone → whole field removed.
|
|
40
|
+
* • individual rowIds gone → those rows pruned.
|
|
41
|
+
*
|
|
42
|
+
* Returns the SAME reference when nothing changed so callers can skip a write.
|
|
43
|
+
*/
|
|
44
|
+
export declare function pruneOrphanFormFields(document: TEditorConfiguration | null | undefined, fields: TemplateFormField[] | null | undefined): TemplateFormField[];
|
|
45
|
+
export declare function getTextFieldsForType(type: string | undefined): string[] | undefined;
|
|
46
|
+
export declare function getTemplateForms(document: TEditorConfiguration | null | undefined): TemplateFormField[];
|
|
47
|
+
export declare function applyVariables(input: string | null | undefined, fields: TemplateFormField[] | null | undefined, rowContext?: TemplateArrayRow | null): string;
|
|
48
|
+
export declare function substituteBlockText(block: any, fields: TemplateFormField[] | null | undefined, rowContext?: TemplateArrayRow | null): any;
|
|
49
|
+
export declare function bakeTemplateValues<T extends TEditorConfiguration>(document: T, fields: TemplateFormField[] | null | undefined): T;
|
|
50
|
+
export declare function withPersistedFormFields<T extends TEditorConfiguration>(document: T, fields: TemplateFormField[] | null | undefined): T;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function getConfiguration(template: string): any;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export declare function init(): Promise<void>;
|
|
2
|
+
export declare function whenReady(): Promise<void>;
|
|
3
|
+
export declare function getItem(key: string): string | null;
|
|
4
|
+
export declare function setItem(key: string, value: string): void;
|
|
5
|
+
export declare function removeItem(key: string): void;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
type Impl = (props: {
|
|
3
|
+
id: string;
|
|
4
|
+
}) => React.ReactElement | null;
|
|
5
|
+
/** Called by `Reader/core.tsx` at module-end to wire up the real renderer. */
|
|
6
|
+
export declare function registerReaderBlock(real: Impl): void;
|
|
7
|
+
export declare function ReaderBlock(props: {
|
|
8
|
+
id: string;
|
|
9
|
+
}): React.ReactElement | null;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { z } from 'zod';
|
|
3
|
+
type TReaderRenderOptions = {
|
|
4
|
+
staticRender?: boolean;
|
|
5
|
+
injectElementIds?: boolean;
|
|
6
|
+
mainBlockId?: string;
|
|
7
|
+
hoistedSkipLinkId?: string;
|
|
8
|
+
hoistedA11yToolsId?: string;
|
|
9
|
+
isBanner?: boolean;
|
|
10
|
+
};
|
|
11
|
+
export declare function useReaderRenderOptions(): TReaderRenderOptions;
|
|
12
|
+
export declare const ReaderBlockSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"type", any>, import('@usewaypoint/document-core').BlockConfiguration<T>, any>;
|
|
13
|
+
export type TReaderBlock = z.infer<typeof ReaderBlockSchema>;
|
|
14
|
+
export declare const ReaderDocumentSchema: z.ZodRecord<z.ZodString, z.ZodEffects<z.ZodDiscriminatedUnion<"type", any>, import('@usewaypoint/document-core').BlockConfiguration<T>, any>>;
|
|
15
|
+
export type TReaderDocument = Record<string, TReaderBlock>;
|
|
16
|
+
export type TReaderBlockProps = {
|
|
17
|
+
id: string;
|
|
18
|
+
};
|
|
19
|
+
export declare function ReaderBlock({ id }: TReaderBlockProps): React.JSX.Element;
|
|
20
|
+
export type TReaderProps = {
|
|
21
|
+
document: Record<string, z.infer<typeof ReaderBlockSchema>>;
|
|
22
|
+
rootBlockId: string;
|
|
23
|
+
staticRender?: boolean;
|
|
24
|
+
injectElementIds?: boolean;
|
|
25
|
+
isBanner?: boolean;
|
|
26
|
+
};
|
|
27
|
+
export default function Reader({ document, rootBlockId, staticRender, injectElementIds, isBanner, mainBlockId, hoistedSkipLinkId, hoistedA11yToolsId }: TReaderProps & {
|
|
28
|
+
mainBlockId?: string;
|
|
29
|
+
hoistedSkipLinkId?: string;
|
|
30
|
+
hoistedA11yToolsId?: string;
|
|
31
|
+
}): React.JSX.Element;
|
|
32
|
+
export declare function findSkipLinkBlockId(document: TReaderDocument): string | undefined;
|
|
33
|
+
export declare function findAccessibilityToolsBlockId(document: TReaderDocument): string | undefined;
|
|
34
|
+
export declare function findAuthorMainBlockId(document: TReaderDocument, rootBlockId: string): string | undefined;
|
|
35
|
+
export {};
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const AccessibilityToolsPropsSchema: z.ZodObject<{
|
|
3
|
+
style: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
4
|
+
padding: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
5
|
+
top: z.ZodNumber;
|
|
6
|
+
right: z.ZodNumber;
|
|
7
|
+
bottom: z.ZodNumber;
|
|
8
|
+
left: z.ZodNumber;
|
|
9
|
+
}, z.core.$strip>>>;
|
|
10
|
+
textAlign: z.ZodNullable<z.ZodOptional<z.ZodEnum<{
|
|
11
|
+
right: "right";
|
|
12
|
+
left: "left";
|
|
13
|
+
center: "center";
|
|
14
|
+
}>>>;
|
|
15
|
+
}, z.core.$strip>>>;
|
|
16
|
+
props: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
17
|
+
renderMode: z.ZodNullable<z.ZodOptional<z.ZodEnum<{
|
|
18
|
+
inline: "inline";
|
|
19
|
+
floating: "floating";
|
|
20
|
+
}>>>;
|
|
21
|
+
position: z.ZodNullable<z.ZodOptional<z.ZodEnum<{
|
|
22
|
+
"top-left": "top-left";
|
|
23
|
+
"top-right": "top-right";
|
|
24
|
+
"bottom-right": "bottom-right";
|
|
25
|
+
"bottom-left": "bottom-left";
|
|
26
|
+
}>>>;
|
|
27
|
+
triggerLabel: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
28
|
+
triggerText: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
29
|
+
showLabelText: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
|
|
30
|
+
triggerBg: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
31
|
+
triggerColor: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
32
|
+
triggerFontSize: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
33
|
+
triggerBorderRadius: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
34
|
+
triggerPadding: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
35
|
+
top: z.ZodNumber;
|
|
36
|
+
right: z.ZodNumber;
|
|
37
|
+
bottom: z.ZodNumber;
|
|
38
|
+
left: z.ZodNumber;
|
|
39
|
+
}, z.core.$strip>>>;
|
|
40
|
+
icon: z.ZodNullable<z.ZodOptional<z.ZodEnum<{
|
|
41
|
+
accessibility: "accessibility";
|
|
42
|
+
"universal-access": "universal-access";
|
|
43
|
+
person: "person";
|
|
44
|
+
eye: "eye";
|
|
45
|
+
info: "info";
|
|
46
|
+
}>>>;
|
|
47
|
+
features: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
48
|
+
contrast: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
|
|
49
|
+
invert: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
|
|
50
|
+
saturation: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
|
|
51
|
+
highlightLinks: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
|
|
52
|
+
textSize: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
|
|
53
|
+
textSpacing: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
|
|
54
|
+
lineHeight: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
|
|
55
|
+
hideImages: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
|
|
56
|
+
bigCursor: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
|
|
57
|
+
reset: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
|
|
58
|
+
}, z.core.$strip>>>;
|
|
59
|
+
}, z.core.$strip>>>;
|
|
60
|
+
}, z.core.$strip>;
|
|
61
|
+
export type AccessibilityToolsProps = z.infer<typeof AccessibilityToolsPropsSchema>;
|
|
62
|
+
export declare const AccessibilityToolsDefaults: {
|
|
63
|
+
renderMode: "floating";
|
|
64
|
+
position: "top-right";
|
|
65
|
+
triggerLabel: string;
|
|
66
|
+
triggerText: string;
|
|
67
|
+
showLabelText: boolean;
|
|
68
|
+
triggerBg: string;
|
|
69
|
+
triggerColor: string;
|
|
70
|
+
triggerFontSize: number;
|
|
71
|
+
triggerBorderRadius: number;
|
|
72
|
+
triggerPadding: {
|
|
73
|
+
top: number;
|
|
74
|
+
right: number;
|
|
75
|
+
bottom: number;
|
|
76
|
+
left: number;
|
|
77
|
+
};
|
|
78
|
+
icon: "accessibility";
|
|
79
|
+
};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export type TA11yToolsIconName = 'accessibility' | 'universal-access' | 'person' | 'eye' | 'info';
|
|
2
|
+
export declare const ACCESSIBILITY_TOOLS_ICON_PATHS: Record<TA11yToolsIconName, string>;
|
|
3
|
+
export declare function getIconPath(name: TA11yToolsIconName | null | undefined): string;
|
|
4
|
+
export declare function getIconSvg(name: TA11yToolsIconName | null | undefined): string;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const AccordionPropsSchema: z.ZodObject<{
|
|
3
|
+
style: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
4
|
+
backgroundColor: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
5
|
+
borderColor: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
6
|
+
borderWidth: 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
|
+
borderRadius: z.ZodNullable<z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString, z.ZodObject<{
|
|
13
|
+
topLeft: z.ZodNumber;
|
|
14
|
+
topRight: z.ZodNumber;
|
|
15
|
+
bottomRight: z.ZodNumber;
|
|
16
|
+
bottomLeft: z.ZodNumber;
|
|
17
|
+
}, z.core.$strip>]>>>;
|
|
18
|
+
marginBottom: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
19
|
+
padding: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
20
|
+
top: z.ZodNumber;
|
|
21
|
+
bottom: z.ZodNumber;
|
|
22
|
+
right: z.ZodNumber;
|
|
23
|
+
left: z.ZodNumber;
|
|
24
|
+
}, z.core.$strip>>>;
|
|
25
|
+
}, z.core.$strip>>>;
|
|
26
|
+
props: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
27
|
+
items: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
28
|
+
titleChildrenIds: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
29
|
+
contentChildrenIds: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
30
|
+
}, z.core.$strip>>>>;
|
|
31
|
+
iconColor: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
32
|
+
iconSize: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
33
|
+
}, z.core.$strip>>>;
|
|
34
|
+
}, z.core.$strip>;
|
|
35
|
+
export type AccordionProps = z.infer<typeof AccordionPropsSchema>;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
declare const ButtonGroupPropsSchema: z.ZodObject<{
|
|
3
|
+
style: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
4
|
+
backgroundColor: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodString, z.ZodString, z.ZodLiteral<"transparent">]>>>;
|
|
5
|
+
padding: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
6
|
+
top: z.ZodNumber;
|
|
7
|
+
bottom: z.ZodNumber;
|
|
8
|
+
right: z.ZodNumber;
|
|
9
|
+
left: z.ZodNumber;
|
|
10
|
+
}, z.core.$strip>>>;
|
|
11
|
+
}, z.core.$strip>>>;
|
|
12
|
+
props: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
13
|
+
childrenIds: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
14
|
+
direction: z.ZodNullable<z.ZodOptional<z.ZodEnum<{
|
|
15
|
+
column: "column";
|
|
16
|
+
row: "row";
|
|
17
|
+
}>>>;
|
|
18
|
+
gap: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
19
|
+
alignment: z.ZodNullable<z.ZodOptional<z.ZodEnum<{
|
|
20
|
+
center: "center";
|
|
21
|
+
end: "end";
|
|
22
|
+
start: "start";
|
|
23
|
+
"space-between": "space-between";
|
|
24
|
+
}>>>;
|
|
25
|
+
wrap: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
|
|
26
|
+
fullWidthOnMobile: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
|
|
27
|
+
ariaLabel: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
28
|
+
}, z.core.$strip>>>;
|
|
29
|
+
}, z.core.$strip>;
|
|
30
|
+
export default ButtonGroupPropsSchema;
|
|
31
|
+
export type ButtonGroupReaderProps = z.infer<typeof ButtonGroupPropsSchema>;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const CalendlyPropsSchema: z.ZodObject<{
|
|
3
|
+
style: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
4
|
+
padding: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
5
|
+
top: z.ZodNumber;
|
|
6
|
+
bottom: z.ZodNumber;
|
|
7
|
+
right: z.ZodNumber;
|
|
8
|
+
left: z.ZodNumber;
|
|
9
|
+
}, z.core.$strip>>>;
|
|
10
|
+
textAlign: z.ZodNullable<z.ZodOptional<z.ZodEnum<{
|
|
11
|
+
right: "right";
|
|
12
|
+
left: "left";
|
|
13
|
+
center: "center";
|
|
14
|
+
}>>>;
|
|
15
|
+
}, z.core.$strip>>>;
|
|
16
|
+
props: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
17
|
+
src: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
18
|
+
width: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
19
|
+
height: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
20
|
+
title: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
21
|
+
allowFullscreen: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
|
|
22
|
+
}, z.core.$strip>>>;
|
|
23
|
+
}, z.core.$strip>;
|
|
24
|
+
export type CalendlyProps = z.infer<typeof CalendlyPropsSchema>;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
declare const CarouselSlideSchema: z.ZodObject<{
|
|
3
|
+
contentChildrenIds: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
4
|
+
}, z.core.$strip>;
|
|
5
|
+
export declare const CarouselPropsSchema: z.ZodObject<{
|
|
6
|
+
style: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
7
|
+
backgroundColor: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
8
|
+
borderColor: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
9
|
+
borderRadius: z.ZodNullable<z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString, z.ZodObject<{
|
|
10
|
+
topLeft: z.ZodNumber;
|
|
11
|
+
topRight: z.ZodNumber;
|
|
12
|
+
bottomRight: z.ZodNumber;
|
|
13
|
+
bottomLeft: z.ZodNumber;
|
|
14
|
+
}, z.core.$strip>]>>>;
|
|
15
|
+
padding: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
16
|
+
top: z.ZodNumber;
|
|
17
|
+
bottom: z.ZodNumber;
|
|
18
|
+
right: z.ZodNumber;
|
|
19
|
+
left: z.ZodNumber;
|
|
20
|
+
}, z.core.$strip>>>;
|
|
21
|
+
slideGap: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
22
|
+
arrowColor: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
23
|
+
arrowBgColor: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
24
|
+
arrowBorderColor: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
25
|
+
arrowSize: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
26
|
+
dotColor: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
27
|
+
dotActiveColor: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
28
|
+
dotSize: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
29
|
+
}, z.core.$strip>>>;
|
|
30
|
+
props: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
31
|
+
slidesPerView: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
32
|
+
slidesPerViewTablet: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
33
|
+
slidesPerViewMobile: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
34
|
+
showArrows: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
|
|
35
|
+
showDots: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
|
|
36
|
+
autoplay: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
|
|
37
|
+
autoplayInterval: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
38
|
+
loop: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
|
|
39
|
+
transitionMs: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
40
|
+
items: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
41
|
+
contentChildrenIds: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
42
|
+
}, z.core.$strip>>>>;
|
|
43
|
+
}, z.core.$strip>>>;
|
|
44
|
+
}, z.core.$strip>;
|
|
45
|
+
export type CarouselProps = z.infer<typeof CarouselPropsSchema>;
|
|
46
|
+
export type CarouselSlide = z.infer<typeof CarouselSlideSchema>;
|
|
47
|
+
export {};
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
declare const ColumnsContainerPropsSchema: z.ZodObject<{
|
|
3
|
+
style: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
4
|
+
borderRadius: z.ZodNullable<z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
|
|
5
|
+
topLeft: z.ZodNumber;
|
|
6
|
+
topRight: z.ZodNumber;
|
|
7
|
+
bottomRight: z.ZodNumber;
|
|
8
|
+
bottomLeft: z.ZodNumber;
|
|
9
|
+
}, z.core.$strip>]>>>;
|
|
10
|
+
borderColor: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
11
|
+
borderWidth: 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>>>;
|
|
17
|
+
backgroundColor: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodString, z.ZodString, z.ZodLiteral<"transparent">]>>>;
|
|
18
|
+
padding: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
19
|
+
top: z.ZodNumber;
|
|
20
|
+
bottom: z.ZodNumber;
|
|
21
|
+
right: z.ZodNumber;
|
|
22
|
+
left: z.ZodNumber;
|
|
23
|
+
}, z.core.$strip>>>;
|
|
24
|
+
}, z.core.$strip>>>;
|
|
25
|
+
props: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
26
|
+
columns: z.ZodTuple<[z.ZodObject<{
|
|
27
|
+
childrenIds: z.ZodArray<z.ZodString>;
|
|
28
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
29
|
+
childrenIds: z.ZodArray<z.ZodString>;
|
|
30
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
31
|
+
childrenIds: z.ZodArray<z.ZodString>;
|
|
32
|
+
}, z.core.$strip>], null>;
|
|
33
|
+
widthType: z.ZodNullable<z.ZodOptional<z.ZodEnum<{
|
|
34
|
+
fill: "fill";
|
|
35
|
+
fixed: "fixed";
|
|
36
|
+
fit: "fit";
|
|
37
|
+
}>>>;
|
|
38
|
+
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>>>;
|
|
39
|
+
columnsCount: z.ZodNullable<z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<2>, z.ZodLiteral<3>, z.ZodLiteral<4>, z.ZodLiteral<5>]>>>;
|
|
40
|
+
columnsGap: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
41
|
+
columnsDirection: z.ZodNullable<z.ZodOptional<z.ZodEnum<{
|
|
42
|
+
horizontal: "horizontal";
|
|
43
|
+
vertical: "vertical";
|
|
44
|
+
}>>>;
|
|
45
|
+
contentAlignment: z.ZodNullable<z.ZodOptional<z.ZodEnum<{
|
|
46
|
+
top: "top";
|
|
47
|
+
bottom: "bottom";
|
|
48
|
+
middle: "middle";
|
|
49
|
+
}>>>;
|
|
50
|
+
}, z.core.$strip>>>;
|
|
51
|
+
}, z.core.$strip>;
|
|
52
|
+
export default ColumnsContainerPropsSchema;
|
|
53
|
+
export type ColumnsContainerProps = z.infer<typeof ColumnsContainerPropsSchema>;
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const ContainerPropsSchema: z.ZodObject<{
|
|
3
|
+
style: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
4
|
+
backgroundColor: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodString, z.ZodString, z.ZodLiteral<"transparent">]>>>;
|
|
5
|
+
backgroundImage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
6
|
+
backgroundSize: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
7
|
+
borderColor: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodString, z.ZodString, z.ZodLiteral<"transparent">]>>>;
|
|
8
|
+
borderRadius: z.ZodNullable<z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, 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
|
+
bottom: z.ZodNumber;
|
|
17
|
+
right: z.ZodNumber;
|
|
18
|
+
left: z.ZodNumber;
|
|
19
|
+
}, z.core.$strip>>>;
|
|
20
|
+
borderWidth: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
21
|
+
top: z.ZodNumber;
|
|
22
|
+
bottom: z.ZodNumber;
|
|
23
|
+
right: z.ZodNumber;
|
|
24
|
+
left: z.ZodNumber;
|
|
25
|
+
}, z.core.$strip>>>;
|
|
26
|
+
}, z.core.$strip>>>;
|
|
27
|
+
props: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
28
|
+
childrenIds: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
29
|
+
fullWidth: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
|
|
30
|
+
widthType: z.ZodNullable<z.ZodOptional<z.ZodEnum<{
|
|
31
|
+
fill: "fill";
|
|
32
|
+
fixed: "fixed";
|
|
33
|
+
fit: "fit";
|
|
34
|
+
}>>>;
|
|
35
|
+
width: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
36
|
+
height: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
37
|
+
overflow: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
|
|
38
|
+
tag: z.ZodNullable<z.ZodOptional<z.ZodEnum<{
|
|
39
|
+
div: "div";
|
|
40
|
+
article: "article";
|
|
41
|
+
aside: "aside";
|
|
42
|
+
footer: "footer";
|
|
43
|
+
header: "header";
|
|
44
|
+
main: "main";
|
|
45
|
+
nav: "nav";
|
|
46
|
+
section: "section";
|
|
47
|
+
}>>>;
|
|
48
|
+
ariaLabel: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
49
|
+
elementId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
50
|
+
}, z.core.$strip>>>;
|
|
51
|
+
}, z.core.$strip>;
|
|
52
|
+
export type ContainerProps = z.infer<typeof ContainerPropsSchema>;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
declare const FlexColumnsPropsSchema: z.ZodObject<{
|
|
3
|
+
style: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
4
|
+
backgroundColor: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
5
|
+
padding: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
6
|
+
top: z.ZodNumber;
|
|
7
|
+
right: z.ZodNumber;
|
|
8
|
+
bottom: z.ZodNumber;
|
|
9
|
+
left: z.ZodNumber;
|
|
10
|
+
}, z.core.$strip>>>;
|
|
11
|
+
borderRadius: z.ZodNullable<z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
|
|
12
|
+
topLeft: z.ZodNumber;
|
|
13
|
+
topRight: z.ZodNumber;
|
|
14
|
+
bottomRight: z.ZodNumber;
|
|
15
|
+
bottomLeft: z.ZodNumber;
|
|
16
|
+
}, z.core.$strip>]>>>;
|
|
17
|
+
borderColor: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
18
|
+
borderWidth: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
19
|
+
top: z.ZodNumber;
|
|
20
|
+
right: z.ZodNumber;
|
|
21
|
+
bottom: z.ZodNumber;
|
|
22
|
+
left: z.ZodNumber;
|
|
23
|
+
}, z.core.$strip>>>;
|
|
24
|
+
}, z.core.$strip>>>;
|
|
25
|
+
props: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
26
|
+
columnsCount: z.ZodNullable<z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<2>, z.ZodLiteral<3>, z.ZodLiteral<4>, z.ZodLiteral<5>]>>>;
|
|
27
|
+
columnsGap: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
28
|
+
wrap: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
|
|
29
|
+
columnShrink: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodBoolean>>>;
|
|
30
|
+
equalColumns: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
|
|
31
|
+
columns: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
32
|
+
childrenIds: z.ZodArray<z.ZodString>;
|
|
33
|
+
}, z.core.$strip>>>>;
|
|
34
|
+
align: z.ZodNullable<z.ZodOptional<z.ZodEnum<{
|
|
35
|
+
center: "center";
|
|
36
|
+
"flex-end": "flex-end";
|
|
37
|
+
"flex-start": "flex-start";
|
|
38
|
+
stretch: "stretch";
|
|
39
|
+
}>>>;
|
|
40
|
+
reverseColumns: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
|
|
41
|
+
}, z.core.$strip>>>;
|
|
42
|
+
}, z.core.$strip>;
|
|
43
|
+
export default FlexColumnsPropsSchema;
|
|
44
|
+
export type FlexColumnsProps = z.infer<typeof FlexColumnsPropsSchema>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { CSSProperties } from 'react';
|
|
2
|
+
import { FlexColumnsProps } from './FlexColumnsPropsSchema';
|
|
3
|
+
export declare function borderRadiusToCss(br: number | {
|
|
4
|
+
topLeft: number;
|
|
5
|
+
topRight: number;
|
|
6
|
+
bottomRight: number;
|
|
7
|
+
bottomLeft: number;
|
|
8
|
+
} | null | undefined): string | undefined;
|
|
9
|
+
export declare function buildWrapperStyle(style: FlexColumnsProps['style']): CSSProperties;
|
|
10
|
+
export declare function buildColumnStyle(shrink?: boolean, equal?: boolean): CSSProperties;
|