pagepilot-visual-editor 1.0.7 → 1.0.9
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 +304 -17
- package/dist/blocks-internal/block-button/src/index.d.ts +15 -9
- package/dist/blocks-internal/block-button-group/src/index.d.ts +6 -6
- package/dist/blocks-internal/block-columns-container/src/index.d.ts +3 -3
- package/dist/blocks-internal/block-container/src/index.d.ts +11 -11
- package/dist/blocks-internal/block-grid/src/index.d.ts +1 -1
- package/dist/blocks-internal/block-heading/src/index.d.ts +11 -5
- package/dist/blocks-internal/block-html/src/index.d.ts +2 -2
- package/dist/blocks-internal/block-iframe/src/index.d.ts +2 -2
- package/dist/blocks-internal/block-image/src/index.d.ts +3 -3
- package/dist/blocks-internal/block-list/src/index.d.ts +90 -0
- package/dist/blocks-internal/block-logo/src/index.d.ts +2 -2
- package/dist/blocks-internal/block-stepper/src/index.d.ts +10 -4
- package/dist/blocks-internal/block-text/src/index.d.ts +9 -3
- package/dist/blocks-internal/block-video/src/index.d.ts +3 -3
- package/dist/blocks-internal/block-youtube-url/src/index.d.ts +3 -3
- package/dist/editor/Shell.d.ts +1 -1
- package/dist/editor/Topbar.d.ts +5 -1
- package/dist/editor/blockToggles.d.ts +1 -1
- package/dist/editor/publish/PagePublishDialog.d.ts +7 -0
- package/dist/editor/renderSections.d.ts +68 -0
- package/dist/editor/types.d.ts +28 -0
- package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/AppBannerPickerSidebarPanel.d.ts +7 -0
- package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/FaqPickerSidebarPanel.d.ts +7 -0
- package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/ListSidebarPanel.d.ts +7 -0
- package/dist/editor-sample/App/InspectorDrawer/LayersPanelStyles.d.ts +2 -2
- package/dist/editor-sample/App/InspectorDrawer/LayoutPanel/TemplatesList.d.ts +19 -4
- package/dist/editor-sample/App/InspectorDrawer/LayoutPanel/templateApplyHelpers.d.ts +25 -0
- package/dist/editor-sample/App/InspectorDrawer/VariablesPanel/UpgradeDialogView.d.ts +1 -0
- package/dist/editor-sample/App/InspectorDrawer/VariablesPanel/upgradeDialog.d.ts +15 -0
- package/dist/editor-sample/App/InspectorDrawer/useLayerNode.d.ts +1 -2
- package/dist/editor-sample/App/TemplatePanel/minimap/MiniMap.d.ts +6 -0
- package/dist/editor-sample/App/TemplatePanel/minimap/MiniMapFrame.d.ts +17 -0
- package/dist/editor-sample/App/TemplatePanel/minimap/useMiniMapSync.d.ts +24 -0
- package/dist/editor-sample/App/TemplatePanel/minimap/useMiniMapThumbnail.d.ts +8 -0
- package/dist/editor-sample/App/hooks/useAutosave.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 +7 -0
- package/dist/editor-sample/documents/blocks/AppBannerPicker/AppBannerPropsSchema.d.ts +6 -0
- package/dist/editor-sample/documents/blocks/ButtonGroup/ButtonGroupPropsSchema.d.ts +6 -6
- package/dist/editor-sample/documents/blocks/ColumnsContainer/ColumnsContainerPropsSchema.d.ts +3 -3
- package/dist/editor-sample/documents/blocks/Container/ContainerPropsSchema.d.ts +11 -11
- package/dist/editor-sample/documents/blocks/DemoPicker/DemoPropsSchema.d.ts +2 -2
- package/dist/editor-sample/documents/blocks/EmailLayout/EmailLayoutPropsSchema.d.ts +3 -3
- package/dist/editor-sample/documents/blocks/FaqPicker/FaqEditor.d.ts +7 -0
- package/dist/editor-sample/documents/blocks/FaqPicker/FaqPickerPropsSchema.d.ts +6 -0
- package/dist/editor-sample/documents/blocks/FormsPicker/FormsPropsSchema.d.ts +2 -2
- package/dist/editor-sample/documents/blocks/Grid/GridPropsSchema.d.ts +3 -3
- package/dist/editor-sample/documents/blocks/Marquee/MarqueePropsSchema.d.ts +6 -1
- package/dist/editor-sample/documents/blocks/MenuPicker/MenuPropsSchema.d.ts +2 -2
- package/dist/editor-sample/documents/blocks/PricingAccordion/PricingAccordionPropsSchema.d.ts +2 -2
- package/dist/editor-sample/documents/blocks/Rating/RatingPropsSchema.d.ts +8 -2
- package/dist/editor-sample/documents/blocks/TabsBlock/TabsBlockPropsSchema.d.ts +6 -0
- package/dist/editor-sample/documents/blocks/Timer/TimerPropsSchema.d.ts +6 -0
- package/dist/editor-sample/documents/blocks/helpers/EditorChildrenIds/index.d.ts +4 -1
- package/dist/editor-sample/documents/blocks/helpers/block-wrappers/EditorBlockWrapper.d.ts +3 -2
- package/dist/editor-sample/documents/blocks/helpers/block-wrappers/useCanvasDrop.d.ts +14 -8
- package/dist/editor-sample/documents/blocks/helpers/documentUtils.d.ts +1 -0
- package/dist/editor-sample/documents/blocks/helpers/zod.d.ts +2 -2
- package/dist/editor-sample/documents/editor/EditorBlock.d.ts +6 -2
- package/dist/editor-sample/documents/editor/EditorContext.d.ts +15 -1
- package/dist/editor-sample/documents/editor/core.d.ts +246 -85
- package/dist/email-builder-core/blocks/AccessibilityTools/AccessibilityToolsPropsSchema.d.ts +21 -3
- package/dist/email-builder-core/blocks/Accordion/AccordionPropsSchema.d.ts +6 -0
- package/dist/email-builder-core/blocks/AppBannerPicker/AppBannerPropsSchema.d.ts +6 -0
- package/dist/email-builder-core/blocks/ButtonGroup/ButtonGroupPropsSchema.d.ts +6 -6
- package/dist/email-builder-core/blocks/Calendly/CalendlyPropsSchema.d.ts +8 -2
- package/dist/email-builder-core/blocks/ColumnsContainer/ColumnsContainerPropsSchema.d.ts +3 -3
- package/dist/email-builder-core/blocks/Container/ContainerPropsSchema.d.ts +11 -11
- package/dist/email-builder-core/blocks/DemoPicker/DemoPropsSchema.d.ts +2 -2
- package/dist/email-builder-core/blocks/EmailLayout/EmailLayoutPropsSchema.d.ts +5 -5
- package/dist/email-builder-core/blocks/FaqPicker/FaqPickerPropsSchema.d.ts +6 -0
- package/dist/email-builder-core/blocks/FlexColumns/FlexColumnsPropsSchema.d.ts +5 -5
- package/dist/email-builder-core/blocks/FormsPicker/FormsPropsSchema.d.ts +2 -2
- package/dist/email-builder-core/blocks/Grid/GridPropsSchema.d.ts +3 -3
- package/dist/email-builder-core/blocks/Marquee/MarqueePropsSchema.d.ts +6 -1
- package/dist/email-builder-core/blocks/Marquee/marqueeMotion.d.ts +3 -1
- package/dist/email-builder-core/blocks/MenuPicker/MenuPropsSchema.d.ts +4 -4
- package/dist/email-builder-core/blocks/Pagination/PaginationPropsSchema.d.ts +5 -5
- package/dist/email-builder-core/blocks/PricingAccordion/PricingAccordionPropsSchema.d.ts +2 -2
- package/dist/email-builder-core/blocks/Rating/RatingPropsSchema.d.ts +8 -2
- package/dist/email-builder-core/blocks/SkipLink/SkipLinkPropsSchema.d.ts +12 -2
- package/dist/email-builder-core/blocks/Table/TablePropsSchema.d.ts +8 -2
- package/dist/email-builder-core/blocks/TabsBlock/TabsBlockPropsSchema.d.ts +6 -0
- package/dist/email-builder-core/blocks/Timer/TimerPropsSchema.d.ts +6 -0
- package/dist/email-builder-core/blocks/helpers/blockStyleHelpers.d.ts +1 -0
- package/dist/email-builder-core/renderers/pageScripts.d.ts +8 -0
- package/dist/host-stubs/i18n.d.ts +1 -1
- package/dist/host-stubs/style/menu.styled.d.ts +7 -1
- package/dist/host-stubs/view/shared/modals/PopupConfirm.d.ts +8 -6
- package/dist/index.cjs +273 -268
- package/dist/index.d.ts +2 -0
- package/dist/index.js +33402 -30448
- package/dist/renderToStaticHtml.d.ts +107 -0
- package/package.json +11 -10
|
@@ -12,6 +12,31 @@
|
|
|
12
12
|
* - Legacy `templateRecord.formFields` mirror at the record root.
|
|
13
13
|
*/
|
|
14
14
|
export declare function resolveTemplateFormFields(templateRecord: any): any[];
|
|
15
|
+
/**
|
|
16
|
+
* Unwrap a saved template `configuration` down to the raw
|
|
17
|
+
* `{ root, "block-…" }` document tree the renderer / editor expect.
|
|
18
|
+
*
|
|
19
|
+
* The standalone editor is a **page-only** surface, so this helper only
|
|
20
|
+
* knows the page-shaped envelopes. Ordered by frequency, matches the
|
|
21
|
+
* `PageTypes.Page` branch of ahd-fe's `normalizeTemplateConfiguration`
|
|
22
|
+
* plus the block-template synthesis path:
|
|
23
|
+
*
|
|
24
|
+
* 1. `configuration.root` — flat document tree (legacy / tenant templates,
|
|
25
|
+
* most global page templates the backend serves today).
|
|
26
|
+
* 2. `configuration.isIndividualBlock` block template — no root exists;
|
|
27
|
+
* synthesize a minimal EmailLayout that hosts `configuration.rootBlockId`
|
|
28
|
+
* so the standalone renderer has something to walk. `formFields` on
|
|
29
|
+
* the configuration wrapper are hoisted onto the synthetic root's
|
|
30
|
+
* `data.formFields` so `bakeTemplateValues` finds them via the usual
|
|
31
|
+
* `getTemplateForms(document)` path.
|
|
32
|
+
* 3. `configuration.content.contentMetadata.document` — the page envelope
|
|
33
|
+
* the backend uses for page-derived global templates (CyberSecurity Page).
|
|
34
|
+
* 4. `configuration.contentMetadata.document` — one-off older shape.
|
|
35
|
+
* 5. `record.contentMetadata.document` — bare page-record envelope.
|
|
36
|
+
*
|
|
37
|
+
* Returns `null` when no candidate is available so callers can fall back.
|
|
38
|
+
*/
|
|
39
|
+
export declare function resolveTemplateDocument(templateRecord: any): any | null;
|
|
15
40
|
/**
|
|
16
41
|
* Rewrite container-repeat fields' `sourceBlockId` / `rowIds` through an id
|
|
17
42
|
* remap. Used by individual-block apply: block ids are regenerated so the
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function UpgradeDialog(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,4 +1,19 @@
|
|
|
1
1
|
export declare function setUpgradeHandler(handler: (() => void) | null | undefined): void;
|
|
2
|
+
/**
|
|
3
|
+
* Consumer hook used by every paywall trigger (VariablesPaywall etc.).
|
|
4
|
+
* Returns a single `openUpgrade` function that:
|
|
5
|
+
* - Delegates to the host callback if one is registered, OR
|
|
6
|
+
* - Opens the built-in `<UpgradeDialog>` otherwise.
|
|
7
|
+
*/
|
|
2
8
|
export declare function useUpgradeDialog(): {
|
|
3
9
|
openUpgrade: () => void;
|
|
4
10
|
};
|
|
11
|
+
/**
|
|
12
|
+
* Reader hook used by the built-in `<UpgradeDialog>` mount to subscribe to
|
|
13
|
+
* open-state changes. Separate from `useUpgradeDialog` so the (many) paywall
|
|
14
|
+
* triggers don't re-render every time the dialog opens/closes.
|
|
15
|
+
*/
|
|
16
|
+
export declare function useUpgradeStore(): {
|
|
17
|
+
open: boolean;
|
|
18
|
+
close: () => void;
|
|
19
|
+
};
|
|
@@ -7,9 +7,8 @@ export declare function collectSubtree(doc: Record<string, any>, rootId: string)
|
|
|
7
7
|
export declare function insertAfterBlock(doc: Record<string, any>, afterId: string, newId: string): Record<string, any> | null;
|
|
8
8
|
interface UseLayerNodeOptions {
|
|
9
9
|
blockId: string;
|
|
10
|
-
selectedBlockId: string | null;
|
|
11
10
|
}
|
|
12
|
-
export declare function useLayerNode({ blockId
|
|
11
|
+
export declare function useLayerNode({ blockId }: UseLayerNodeOptions): {
|
|
13
12
|
block: any;
|
|
14
13
|
childIds: string[];
|
|
15
14
|
hasChildren: boolean;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { TReaderDocument } from '../../../../email-builder-core/index.ts';
|
|
2
|
+
declare const REFERENCE_WIDTH = 1280;
|
|
3
|
+
type MiniMapFrameProps = {
|
|
4
|
+
document: TReaderDocument;
|
|
5
|
+
width: number;
|
|
6
|
+
height: number;
|
|
7
|
+
onNaturalHeightChange?: (naturalHeight: number) => void;
|
|
8
|
+
};
|
|
9
|
+
/**
|
|
10
|
+
* Renders the page scaled by WIDTH only — never shrunk vertically. Tall pages
|
|
11
|
+
* end up with a rendered height greater than the panel; the parent is
|
|
12
|
+
* responsible for clipping and panning the content in sync with the main
|
|
13
|
+
* canvas scroll. `height` here is just an initial placeholder used before the
|
|
14
|
+
* iframe has reported its natural height.
|
|
15
|
+
*/
|
|
16
|
+
export default function MiniMapFrame({ document, width, height, onNaturalHeightChange }: MiniMapFrameProps): import("react/jsx-runtime").JSX.Element;
|
|
17
|
+
export { REFERENCE_WIDTH };
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
export type ViewportRect = {
|
|
2
|
+
topPct: number;
|
|
3
|
+
heightPct: number;
|
|
4
|
+
};
|
|
5
|
+
type Options = {
|
|
6
|
+
scrollBoxRef: React.RefObject<HTMLElement | null>;
|
|
7
|
+
contentRef?: React.RefObject<HTMLElement | null>;
|
|
8
|
+
enabled: boolean;
|
|
9
|
+
};
|
|
10
|
+
/**
|
|
11
|
+
* Reads scroll geometry off whichever element is actually scrolling in the
|
|
12
|
+
* host DOM. The resolved element is locked onto the first real scroll
|
|
13
|
+
* event received on the page and kept until it either leaves the DOM or
|
|
14
|
+
* stops being scrollable — so pagepilot's Shell wrapper and ahd-fe's
|
|
15
|
+
* `mainBoxSx` both work without the caller having to know.
|
|
16
|
+
*/
|
|
17
|
+
export declare function useMiniMapSync({ scrollBoxRef, contentRef, enabled }: Options): {
|
|
18
|
+
viewportRect: ViewportRect;
|
|
19
|
+
isScrollable: boolean;
|
|
20
|
+
scrollToRatio: (ratioY: number, centerInViewport?: boolean) => void;
|
|
21
|
+
scrollByDelta: (deltaScrollTop: number) => void;
|
|
22
|
+
scrollByFraction: (deltaFraction: number) => void;
|
|
23
|
+
};
|
|
24
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { TEditorConfiguration } from '../../../documents/editor/core';
|
|
2
|
+
/**
|
|
3
|
+
* Debounces the document so the minimap thumbnail doesn't re-render on every
|
|
4
|
+
* keystroke — no shared debounce utility exists in this package (checked
|
|
5
|
+
* useSaveHandler.tsx and the rest of editor-sample/src), so this follows the
|
|
6
|
+
* same local setTimeout convention used elsewhere (e.g. TuneMenu.tsx).
|
|
7
|
+
*/
|
|
8
|
+
export declare function useMiniMapThumbnail(document: TEditorConfiguration, enabled: boolean): TEditorConfiguration;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export type UseAutosaveOptions = {
|
|
2
|
+
isDirty: boolean;
|
|
3
|
+
onSave: () => Promise<any> | void;
|
|
4
|
+
enabled?: boolean;
|
|
5
|
+
isSaving?: boolean;
|
|
6
|
+
intervalMs?: number;
|
|
7
|
+
};
|
|
8
|
+
export declare const AUTOSAVE_ENABLED = true;
|
|
9
|
+
export declare const AUTOSAVE_INTERVAL_MS = 60000;
|
|
10
|
+
export default function useAutosave({ isDirty, onSave, enabled, isSaving, intervalMs, }: UseAutosaveOptions): void;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export declare const TruncatedEditorTitle: import('@emotion/styled').StyledComponent<import('@mui/material').TypographyOwnProps & import('@mui/material/OverridableComponent').CommonProps & Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "children" | "
|
|
2
|
-
export declare const SettingLabelTypography: import('@emotion/styled').StyledComponent<import('@mui/material').TypographyOwnProps & import('@mui/material/OverridableComponent').CommonProps & Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "children" | "
|
|
1
|
+
export declare const TruncatedEditorTitle: import('@emotion/styled').StyledComponent<import('@mui/material').TypographyOwnProps & import('@mui/material/OverridableComponent').CommonProps & Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "children" | "className" | "style" | "classes" | "color" | "fontSize" | "sx" | "p" | "height" | "width" | "display" | "fontFamily" | "fontStyle" | "fontWeight" | "letterSpacing" | "order" | "overflow" | "visibility" | "border" | "boxShadow" | "zIndex" | "alignContent" | "alignItems" | "alignSelf" | "bottom" | "boxSizing" | "columnGap" | "flexBasis" | "flexDirection" | "flexGrow" | "flexShrink" | "flexWrap" | "gridAutoColumns" | "gridAutoFlow" | "gridAutoRows" | "gridTemplateAreas" | "gridTemplateColumns" | "gridTemplateRows" | "justifyContent" | "justifyItems" | "justifySelf" | "left" | "lineHeight" | "marginBlockEnd" | "marginBlockStart" | "marginBottom" | "marginInlineEnd" | "marginInlineStart" | "marginLeft" | "marginRight" | "marginTop" | "maxHeight" | "maxWidth" | "minHeight" | "minWidth" | "paddingBlockEnd" | "paddingBlockStart" | "paddingBottom" | "paddingInlineEnd" | "paddingInlineStart" | "paddingLeft" | "paddingRight" | "paddingTop" | "position" | "right" | "rowGap" | "textAlign" | "textOverflow" | "textTransform" | "top" | "whiteSpace" | "borderBottom" | "borderColor" | "borderLeft" | "borderRadius" | "borderRight" | "borderTop" | "flex" | "gap" | "gridArea" | "gridColumn" | "gridRow" | "margin" | "marginBlock" | "marginInline" | "padding" | "paddingBlock" | "paddingInline" | "bgcolor" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "marginX" | "my" | "marginY" | "pt" | "pr" | "pb" | "pl" | "px" | "paddingX" | "py" | "paddingY" | "typography" | "displayPrint" | "variant" | "align" | "gutterBottom" | "noWrap" | "paragraph" | "variantMapping"> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, {}, {}>;
|
|
2
|
+
export declare const SettingLabelTypography: import('@emotion/styled').StyledComponent<import('@mui/material').TypographyOwnProps & import('@mui/material/OverridableComponent').CommonProps & Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "children" | "className" | "style" | "classes" | "color" | "fontSize" | "sx" | "p" | "height" | "width" | "display" | "fontFamily" | "fontStyle" | "fontWeight" | "letterSpacing" | "order" | "overflow" | "visibility" | "border" | "boxShadow" | "zIndex" | "alignContent" | "alignItems" | "alignSelf" | "bottom" | "boxSizing" | "columnGap" | "flexBasis" | "flexDirection" | "flexGrow" | "flexShrink" | "flexWrap" | "gridAutoColumns" | "gridAutoFlow" | "gridAutoRows" | "gridTemplateAreas" | "gridTemplateColumns" | "gridTemplateRows" | "justifyContent" | "justifyItems" | "justifySelf" | "left" | "lineHeight" | "marginBlockEnd" | "marginBlockStart" | "marginBottom" | "marginInlineEnd" | "marginInlineStart" | "marginLeft" | "marginRight" | "marginTop" | "maxHeight" | "maxWidth" | "minHeight" | "minWidth" | "paddingBlockEnd" | "paddingBlockStart" | "paddingBottom" | "paddingInlineEnd" | "paddingInlineStart" | "paddingLeft" | "paddingRight" | "paddingTop" | "position" | "right" | "rowGap" | "textAlign" | "textOverflow" | "textTransform" | "top" | "whiteSpace" | "borderBottom" | "borderColor" | "borderLeft" | "borderRadius" | "borderRight" | "borderTop" | "flex" | "gap" | "gridArea" | "gridColumn" | "gridRow" | "margin" | "marginBlock" | "marginInline" | "padding" | "paddingBlock" | "paddingInline" | "bgcolor" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "marginX" | "my" | "marginY" | "pt" | "pr" | "pb" | "pl" | "px" | "paddingX" | "py" | "paddingY" | "typography" | "displayPrint" | "variant" | "align" | "gutterBottom" | "noWrap" | "paragraph" | "variantMapping"> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, {}, {}>;
|
|
3
3
|
export declare const widthUnitSelectSx: {
|
|
4
4
|
'& .MuiOutlinedInput-notchedOutline': {
|
|
5
5
|
border: string;
|
|
@@ -18,4 +18,4 @@ export declare const widthUnitSelectSx: {
|
|
|
18
18
|
paddingBottom: string;
|
|
19
19
|
};
|
|
20
20
|
};
|
|
21
|
-
export declare const BorderedIconButton: import('@emotion/styled').StyledComponent<import('@mui/material').IconButtonOwnProps & Omit<import('@mui/material').ButtonBaseOwnProps, "classes"> & import('@mui/material/OverridableComponent').CommonProps & Omit<import('react').DetailedHTMLProps<import('react').ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "children" | "
|
|
21
|
+
export declare const BorderedIconButton: import('@emotion/styled').StyledComponent<import('@mui/material').IconButtonOwnProps & Omit<import('@mui/material').ButtonBaseOwnProps, "classes"> & import('@mui/material/OverridableComponent').CommonProps & Omit<import('react').DetailedHTMLProps<import('react').ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "children" | "className" | "style" | "classes" | "color" | "sx" | "tabIndex" | "action" | "disabled" | "size" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "disableFocusRipple" | "edge" | "loading" | "loadingIndicator"> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, {}, {}>;
|
|
@@ -30,6 +30,12 @@ declare const AccordionPropsSchema: z.ZodObject<{
|
|
|
30
30
|
right: z.ZodNumber;
|
|
31
31
|
left: z.ZodNumber;
|
|
32
32
|
}, z.core.$strip>>>;
|
|
33
|
+
margin: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
34
|
+
top: z.ZodNumber;
|
|
35
|
+
bottom: z.ZodNumber;
|
|
36
|
+
right: z.ZodNumber;
|
|
37
|
+
left: z.ZodNumber;
|
|
38
|
+
}, z.core.$strip>>>;
|
|
33
39
|
}, z.core.$strip>>>;
|
|
34
40
|
props: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
35
41
|
items: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -6,12 +6,19 @@ type PaddingValue = {
|
|
|
6
6
|
bottom: number;
|
|
7
7
|
left: number;
|
|
8
8
|
};
|
|
9
|
+
type MarginValue = {
|
|
10
|
+
top: number;
|
|
11
|
+
right: number;
|
|
12
|
+
bottom: number;
|
|
13
|
+
left: number;
|
|
14
|
+
};
|
|
9
15
|
type Props = {
|
|
10
16
|
props?: {
|
|
11
17
|
bannerId?: string;
|
|
12
18
|
bannerName?: string | null;
|
|
13
19
|
contentDocument?: TReaderDocument | null;
|
|
14
20
|
padding?: PaddingValue | null;
|
|
21
|
+
margin?: MarginValue | null;
|
|
15
22
|
} | null;
|
|
16
23
|
};
|
|
17
24
|
declare const AppBannerEditor: React.FC<Props>;
|
|
@@ -9,6 +9,12 @@ declare const AppBannerPropsSchema: z.ZodObject<{
|
|
|
9
9
|
bottom: 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
|
+
right: z.ZodNumber;
|
|
15
|
+
bottom: z.ZodNumber;
|
|
16
|
+
left: z.ZodNumber;
|
|
17
|
+
}, z.core.$strip>>>;
|
|
12
18
|
}, z.core.$strip>;
|
|
13
19
|
export default AppBannerPropsSchema;
|
|
14
20
|
export type AppBannerPickerProps = z.infer<typeof AppBannerPropsSchema>;
|
|
@@ -26,21 +26,21 @@ declare const ButtonGroupPropsSchema: z.ZodObject<{
|
|
|
26
26
|
gap: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
27
27
|
alignment: z.ZodNullable<z.ZodOptional<z.ZodEnum<{
|
|
28
28
|
center: "center";
|
|
29
|
-
"space-between": "space-between";
|
|
30
|
-
start: "start";
|
|
31
29
|
end: "end";
|
|
30
|
+
start: "start";
|
|
31
|
+
"space-between": "space-between";
|
|
32
32
|
}>>>;
|
|
33
33
|
alignmentTablet: z.ZodNullable<z.ZodOptional<z.ZodEnum<{
|
|
34
34
|
center: "center";
|
|
35
|
-
"space-between": "space-between";
|
|
36
|
-
start: "start";
|
|
37
35
|
end: "end";
|
|
36
|
+
start: "start";
|
|
37
|
+
"space-between": "space-between";
|
|
38
38
|
}>>>;
|
|
39
39
|
alignmentMobile: z.ZodNullable<z.ZodOptional<z.ZodEnum<{
|
|
40
40
|
center: "center";
|
|
41
|
-
"space-between": "space-between";
|
|
42
|
-
start: "start";
|
|
43
41
|
end: "end";
|
|
42
|
+
start: "start";
|
|
43
|
+
"space-between": "space-between";
|
|
44
44
|
}>>>;
|
|
45
45
|
wrap: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
|
|
46
46
|
ariaLabel: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
package/dist/editor-sample/documents/blocks/ColumnsContainer/ColumnsContainerPropsSchema.d.ts
CHANGED
|
@@ -67,18 +67,18 @@ declare const ColumnsContainerPropsSchema: z.ZodObject<{
|
|
|
67
67
|
vertical: "vertical";
|
|
68
68
|
}>>>;
|
|
69
69
|
contentAlignment: z.ZodNullable<z.ZodOptional<z.ZodEnum<{
|
|
70
|
-
top: "top";
|
|
71
70
|
bottom: "bottom";
|
|
71
|
+
top: "top";
|
|
72
72
|
middle: "middle";
|
|
73
73
|
}>>>;
|
|
74
74
|
contentAlignmentTablet: z.ZodNullable<z.ZodOptional<z.ZodEnum<{
|
|
75
|
-
top: "top";
|
|
76
75
|
bottom: "bottom";
|
|
76
|
+
top: "top";
|
|
77
77
|
middle: "middle";
|
|
78
78
|
}>>>;
|
|
79
79
|
contentAlignmentMobile: z.ZodNullable<z.ZodOptional<z.ZodEnum<{
|
|
80
|
-
top: "top";
|
|
81
80
|
bottom: "bottom";
|
|
81
|
+
top: "top";
|
|
82
82
|
middle: "middle";
|
|
83
83
|
}>>>;
|
|
84
84
|
}, z.core.$strip>>>;
|
|
@@ -67,37 +67,37 @@ declare const ContainerPropsSchema: z.ZodObject<{
|
|
|
67
67
|
heightMobile: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
68
68
|
overflow: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
|
|
69
69
|
alignment: z.ZodNullable<z.ZodOptional<z.ZodEnum<{
|
|
70
|
-
right: "right";
|
|
71
|
-
left: "left";
|
|
72
70
|
center: "center";
|
|
71
|
+
left: "left";
|
|
72
|
+
right: "right";
|
|
73
73
|
}>>>;
|
|
74
74
|
alignmentTablet: z.ZodNullable<z.ZodOptional<z.ZodEnum<{
|
|
75
|
-
right: "right";
|
|
76
|
-
left: "left";
|
|
77
75
|
center: "center";
|
|
76
|
+
left: "left";
|
|
77
|
+
right: "right";
|
|
78
78
|
}>>>;
|
|
79
79
|
alignmentMobile: z.ZodNullable<z.ZodOptional<z.ZodEnum<{
|
|
80
|
-
right: "right";
|
|
81
|
-
left: "left";
|
|
82
80
|
center: "center";
|
|
81
|
+
left: "left";
|
|
82
|
+
right: "right";
|
|
83
83
|
}>>>;
|
|
84
84
|
tag: z.ZodNullable<z.ZodOptional<z.ZodEnum<{
|
|
85
|
-
div: "div";
|
|
86
|
-
section: "section";
|
|
87
85
|
article: "article";
|
|
88
|
-
nav: "nav";
|
|
89
86
|
aside: "aside";
|
|
90
|
-
|
|
87
|
+
div: "div";
|
|
91
88
|
footer: "footer";
|
|
89
|
+
header: "header";
|
|
92
90
|
main: "main";
|
|
91
|
+
nav: "nav";
|
|
92
|
+
section: "section";
|
|
93
93
|
}>>>;
|
|
94
94
|
ariaLabel: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
95
95
|
elementId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
96
96
|
showLink: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
|
|
97
97
|
linkHref: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
98
98
|
linkTarget: z.ZodNullable<z.ZodOptional<z.ZodEnum<{
|
|
99
|
-
_self: "_self";
|
|
100
99
|
_blank: "_blank";
|
|
100
|
+
_self: "_self";
|
|
101
101
|
}>>>;
|
|
102
102
|
}, z.core.$strip>>>;
|
|
103
103
|
}, z.core.$strip>;
|
|
@@ -18,9 +18,9 @@ declare const DemoPropsSchema: z.ZodObject<{
|
|
|
18
18
|
left: z.ZodNumber;
|
|
19
19
|
}, z.core.$strip>>>;
|
|
20
20
|
textAlign: z.ZodNullable<z.ZodOptional<z.ZodEnum<{
|
|
21
|
-
right: "right";
|
|
22
|
-
left: "left";
|
|
23
21
|
center: "center";
|
|
22
|
+
left: "left";
|
|
23
|
+
right: "right";
|
|
24
24
|
}>>>;
|
|
25
25
|
}, z.core.$strip>>>;
|
|
26
26
|
props: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
@@ -165,11 +165,11 @@ declare const EmailLayoutPropsSchema: z.ZodObject<{
|
|
|
165
165
|
}, z.core.$strip>>>;
|
|
166
166
|
behaviour: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
167
167
|
position: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
168
|
-
|
|
168
|
+
center: "center";
|
|
169
169
|
bottom: "bottom";
|
|
170
|
-
right: "right";
|
|
171
170
|
left: "left";
|
|
172
|
-
|
|
171
|
+
right: "right";
|
|
172
|
+
top: "top";
|
|
173
173
|
"top-left": "top-left";
|
|
174
174
|
"top-right": "top-right";
|
|
175
175
|
"bottom-right": "bottom-right";
|
|
@@ -6,12 +6,19 @@ type PaddingValue = {
|
|
|
6
6
|
bottom: number;
|
|
7
7
|
left: number;
|
|
8
8
|
};
|
|
9
|
+
type MarginValue = {
|
|
10
|
+
top: number;
|
|
11
|
+
right: number;
|
|
12
|
+
bottom: number;
|
|
13
|
+
left: number;
|
|
14
|
+
};
|
|
9
15
|
type FaqEditorProps = {
|
|
10
16
|
props?: {
|
|
11
17
|
faqGroupId?: string;
|
|
12
18
|
faqGroupName?: string | null;
|
|
13
19
|
contentDocument?: TReaderDocument | null;
|
|
14
20
|
padding?: PaddingValue | null;
|
|
21
|
+
margin?: MarginValue | null;
|
|
15
22
|
} | null;
|
|
16
23
|
};
|
|
17
24
|
declare const FaqEditor: React.FC<FaqEditorProps>;
|
|
@@ -9,6 +9,12 @@ declare const FaqPickerPropsSchema: z.ZodObject<{
|
|
|
9
9
|
bottom: 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
|
+
right: z.ZodNumber;
|
|
15
|
+
bottom: z.ZodNumber;
|
|
16
|
+
left: z.ZodNumber;
|
|
17
|
+
}, z.core.$strip>>>;
|
|
12
18
|
}, z.core.$strip>;
|
|
13
19
|
export default FaqPickerPropsSchema;
|
|
14
20
|
export type FaqPickerProps = z.infer<typeof FaqPickerPropsSchema>;
|
|
@@ -10,9 +10,9 @@ declare const FormsPropsSchema: z.ZodObject<{
|
|
|
10
10
|
heightTablet: z.ZodOptional<z.ZodString>;
|
|
11
11
|
heightMobile: z.ZodOptional<z.ZodString>;
|
|
12
12
|
alignment: z.ZodDefault<z.ZodEnum<{
|
|
13
|
-
right: "right";
|
|
14
|
-
left: "left";
|
|
15
13
|
center: "center";
|
|
14
|
+
left: "left";
|
|
15
|
+
right: "right";
|
|
16
16
|
}>>;
|
|
17
17
|
}, z.core.$strip>>>;
|
|
18
18
|
}, z.core.$strip>;
|
|
@@ -39,14 +39,14 @@ declare const GridPropsSchema: z.ZodObject<{
|
|
|
39
39
|
columnsCountTablet: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
40
40
|
columnsCountMobile: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
41
41
|
contentAlignment: z.ZodNullable<z.ZodOptional<z.ZodEnum<{
|
|
42
|
-
top: "top";
|
|
43
42
|
bottom: "bottom";
|
|
43
|
+
top: "top";
|
|
44
44
|
middle: "middle";
|
|
45
45
|
}>>>;
|
|
46
46
|
horizontalAlignment: z.ZodNullable<z.ZodOptional<z.ZodEnum<{
|
|
47
|
-
right: "right";
|
|
48
|
-
left: "left";
|
|
49
47
|
center: "center";
|
|
48
|
+
left: "left";
|
|
49
|
+
right: "right";
|
|
50
50
|
}>>>;
|
|
51
51
|
repeatableEnabled: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
|
|
52
52
|
columnsCount: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
@@ -31,8 +31,8 @@ declare const MarqueePropsSchema: z.ZodObject<{
|
|
|
31
31
|
}, z.core.$strip>>>;
|
|
32
32
|
props: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
33
33
|
direction: z.ZodNullable<z.ZodOptional<z.ZodEnum<{
|
|
34
|
-
right: "right";
|
|
35
34
|
left: "left";
|
|
35
|
+
right: "right";
|
|
36
36
|
up: "up";
|
|
37
37
|
down: "down";
|
|
38
38
|
}>>>;
|
|
@@ -40,6 +40,11 @@ declare const MarqueePropsSchema: z.ZodObject<{
|
|
|
40
40
|
pauseOnHover: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
|
|
41
41
|
repeat: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
42
42
|
fadeEdges: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
|
|
43
|
+
verticalAlign: z.ZodNullable<z.ZodOptional<z.ZodEnum<{
|
|
44
|
+
bottom: "bottom";
|
|
45
|
+
top: "top";
|
|
46
|
+
middle: "middle";
|
|
47
|
+
}>>>;
|
|
43
48
|
items: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
44
49
|
contentChildrenIds: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
45
50
|
}, z.core.$strip>>>>;
|
|
@@ -4,9 +4,9 @@ declare const MenuPropsSchema: z.ZodObject<{
|
|
|
4
4
|
useCustomMenu: z.ZodDefault<z.ZodBoolean>;
|
|
5
5
|
stickyNav: z.ZodDefault<z.ZodBoolean>;
|
|
6
6
|
position: z.ZodDefault<z.ZodEnum<{
|
|
7
|
-
right: "right";
|
|
8
|
-
left: "left";
|
|
9
7
|
center: "center";
|
|
8
|
+
left: "left";
|
|
9
|
+
right: "right";
|
|
10
10
|
}>>;
|
|
11
11
|
orientation: z.ZodDefault<z.ZodEnum<{
|
|
12
12
|
horizontal: "horizontal";
|
package/dist/editor-sample/documents/blocks/PricingAccordion/PricingAccordionPropsSchema.d.ts
CHANGED
|
@@ -34,9 +34,9 @@ declare const PricingAccordionPropsSchema: z.ZodObject<{
|
|
|
34
34
|
cardFontFamily: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
35
35
|
cardFontWeight: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
36
36
|
cardTextAlign: z.ZodNullable<z.ZodOptional<z.ZodEnum<{
|
|
37
|
-
right: "right";
|
|
38
|
-
left: "left";
|
|
39
37
|
center: "center";
|
|
38
|
+
left: "left";
|
|
39
|
+
right: "right";
|
|
40
40
|
}>>>;
|
|
41
41
|
cardHoverBgColor: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
42
42
|
cardHoverShadow: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
@@ -10,9 +10,9 @@ declare const RatingPropsSchema: z.ZodObject<{
|
|
|
10
10
|
fontFamily: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
11
11
|
fontWeight: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
12
12
|
textAlign: z.ZodNullable<z.ZodOptional<z.ZodEnum<{
|
|
13
|
-
right: "right";
|
|
14
|
-
left: "left";
|
|
15
13
|
center: "center";
|
|
14
|
+
left: "left";
|
|
15
|
+
right: "right";
|
|
16
16
|
}>>>;
|
|
17
17
|
padding: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
18
18
|
top: z.ZodNumber;
|
|
@@ -20,6 +20,12 @@ declare const RatingPropsSchema: z.ZodObject<{
|
|
|
20
20
|
right: z.ZodNumber;
|
|
21
21
|
left: z.ZodNumber;
|
|
22
22
|
}, z.core.$strip>>>;
|
|
23
|
+
margin: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
24
|
+
top: z.ZodNumber;
|
|
25
|
+
bottom: z.ZodNumber;
|
|
26
|
+
right: z.ZodNumber;
|
|
27
|
+
left: z.ZodNumber;
|
|
28
|
+
}, z.core.$strip>>>;
|
|
23
29
|
}, z.core.$strip>>>;
|
|
24
30
|
props: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
25
31
|
value: z.ZodNullable<z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>>;
|
|
@@ -23,6 +23,12 @@ declare const TabsBlockPropsSchema: z.ZodObject<{
|
|
|
23
23
|
right: z.ZodNumber;
|
|
24
24
|
left: z.ZodNumber;
|
|
25
25
|
}, z.core.$strip>>>;
|
|
26
|
+
margin: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
27
|
+
top: z.ZodNumber;
|
|
28
|
+
bottom: z.ZodNumber;
|
|
29
|
+
right: z.ZodNumber;
|
|
30
|
+
left: z.ZodNumber;
|
|
31
|
+
}, z.core.$strip>>>;
|
|
26
32
|
tabActiveColor: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
27
33
|
tabTextColor: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
28
34
|
tabBgColor: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
@@ -17,6 +17,12 @@ declare const TimerPropsSchema: z.ZodObject<{
|
|
|
17
17
|
bottom: z.ZodNumber;
|
|
18
18
|
left: z.ZodNumber;
|
|
19
19
|
}, z.core.$strip>>>;
|
|
20
|
+
margin: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
21
|
+
top: z.ZodNumber;
|
|
22
|
+
right: z.ZodNumber;
|
|
23
|
+
bottom: z.ZodNumber;
|
|
24
|
+
left: z.ZodNumber;
|
|
25
|
+
}, z.core.$strip>>>;
|
|
20
26
|
}, z.core.$strip>>>;
|
|
21
27
|
props: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
22
28
|
layout: z.ZodDefault<z.ZodEnum<{
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
1
2
|
import { TEditorBlock } from '../../../editor/core';
|
|
2
3
|
export declare function autoStartInlineEditing(blockId: string, block: TEditorBlock): void;
|
|
3
4
|
export type EditorChildrenChange = {
|
|
@@ -13,4 +14,6 @@ export type EditorChildrenIdsProps = {
|
|
|
13
14
|
insertAboveCallback?: (block: TEditorBlock) => void;
|
|
14
15
|
suppressAdd?: boolean;
|
|
15
16
|
};
|
|
16
|
-
|
|
17
|
+
declare function EditorChildrenIds({ childrenIds, onChange, maxChildren, showContainerScopePrompt, insertAboveCallback, suppressAdd, }: EditorChildrenIdsProps): import("react/jsx-runtime").JSX.Element;
|
|
18
|
+
declare const _default: React.MemoExoticComponent<typeof EditorChildrenIds>;
|
|
19
|
+
export default _default;
|
|
@@ -2,5 +2,6 @@ import { default as React } from 'react';
|
|
|
2
2
|
type TEditorBlockWrapperProps = {
|
|
3
3
|
children: React.JSX.Element;
|
|
4
4
|
};
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
declare function EditorBlockWrapperImpl({ children }: TEditorBlockWrapperProps): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
declare const EditorBlockWrapper: React.MemoExoticComponent<typeof EditorBlockWrapperImpl>;
|
|
7
|
+
export default EditorBlockWrapper;
|
|
@@ -1,14 +1,20 @@
|
|
|
1
1
|
import { DropPosition } from '../documentUtils';
|
|
2
|
+
export declare function beginCanvasBlockDrag(blockId: string): void;
|
|
3
|
+
export declare function endCanvasBlockDrag(): void;
|
|
2
4
|
/**
|
|
3
|
-
* Canvas-side
|
|
4
|
-
*
|
|
5
|
-
* on-canvas block, so the new block lands exactly under the cursor (before /
|
|
6
|
-
* after the hovered block, or inside it when it's a container) instead of always
|
|
7
|
-
* being appended to the bottom.
|
|
5
|
+
* Canvas-side drop target used by every block wrapper. Accepts two drag
|
|
6
|
+
* flavours:
|
|
8
7
|
*
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
*
|
|
8
|
+
* • PALETTE_DRAG_MIME — a tile dragged from the left BlocksPanel palette.
|
|
9
|
+
* Inserts a brand-new block at the drop position (before / after / inside).
|
|
10
|
+
*
|
|
11
|
+
* • CANVAS_DRAG_MIME — an existing on-canvas block dragged via its TuneMenu
|
|
12
|
+
* drag handle. Detaches the block from its current parent and re-inserts
|
|
13
|
+
* at the drop position via `moveBlock` (same function the Layers panel's
|
|
14
|
+
* drag-drop uses).
|
|
15
|
+
*
|
|
16
|
+
* Returns the current drop position (for rendering the indicator) plus the
|
|
17
|
+
* drag handlers to spread onto the block wrapper.
|
|
12
18
|
*/
|
|
13
19
|
export declare function useCanvasDrop(blockId: string): {
|
|
14
20
|
dropPos: DropPosition;
|
|
@@ -125,6 +125,7 @@ export declare function reconcileRepeatFieldValues(documentTree: Record<string,
|
|
|
125
125
|
export declare function syncCellStyles(documentTree: Record<string, any>, sourceRootId: string, targetRootIds: string[]): Record<string, any> | null;
|
|
126
126
|
export type DropPosition = 'before' | 'after' | 'inside';
|
|
127
127
|
export declare const PALETTE_DRAG_MIME = "application/x-ahd-palette-block";
|
|
128
|
+
export declare const CANVAS_DRAG_MIME = "application/x-ahd-canvas-block";
|
|
128
129
|
/**
|
|
129
130
|
* Move `draggedId` relative to `targetId`:
|
|
130
131
|
* - 'before' / 'after' → place it as a sibling of the target in the target's
|
|
@@ -36,9 +36,9 @@ export declare function zFontWeight(): z.ZodEnum<{
|
|
|
36
36
|
normal: "normal";
|
|
37
37
|
}>;
|
|
38
38
|
export declare function zTextAlign(): z.ZodEnum<{
|
|
39
|
-
right: "right";
|
|
40
|
-
left: "left";
|
|
41
39
|
center: "center";
|
|
40
|
+
left: "left";
|
|
41
|
+
right: "right";
|
|
42
42
|
}>;
|
|
43
43
|
export declare function zPadding(): z.ZodObject<{
|
|
44
44
|
top: z.ZodNumber;
|