pagepilot-visual-editor 1.0.29 → 1.0.33
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 +116 -0
- package/README.md +42 -28
- package/dist/PagePilotEditor.d.ts +12 -9
- package/dist/api/ApiClientContext.d.ts +1 -0
- package/dist/api/PagepilotApiClient.d.ts +7 -0
- package/dist/assets/aiChatbotIcon.d.ts +1 -0
- package/dist/blocks-internal/block-button/src/index.d.ts +6 -0
- package/dist/blocks-internal/block-container/src/index.d.ts +1 -1
- package/dist/blocks-internal/block-heading/src/index.d.ts +2 -2
- package/dist/blocks-internal/block-list/src/index.d.ts +12 -2
- package/dist/blocks-internal/block-mdx/src/index.d.ts +47 -0
- package/dist/blocks-internal/block-quill/src/index.d.ts +48 -0
- package/dist/editor/PagePreviewDialog.d.ts +14 -0
- package/dist/editor/Topbar.d.ts +3 -1
- package/dist/editor/pageUrls.d.ts +25 -0
- package/dist/editor/publish/PageLiveSuccessDialog.d.ts +9 -0
- package/dist/editor/publish/PagePublishDialog.d.ts +1 -0
- package/dist/editor/publish/PublishAccessibilityPanel.d.ts +8 -0
- package/dist/editor/publish/a11yLinter.d.ts +8 -0
- package/dist/editor/recordDirty.d.ts +16 -0
- package/dist/editor/renderSections.d.ts +2 -2
- package/dist/editor/savePipeline.d.ts +40 -0
- package/dist/editor/types.d.ts +35 -0
- package/dist/editor-sample/App/InspectorDrawer/BehaviourPanel.d.ts +22 -0
- package/dist/editor-sample/App/InspectorDrawer/BrandPanel/BrandColorPalette.d.ts +9 -0
- package/dist/editor-sample/App/InspectorDrawer/BrandPanel/BrandEmptyLink.d.ts +8 -0
- package/dist/editor-sample/App/InspectorDrawer/BrandPanel/BrandPanel.styled.d.ts +22 -0
- package/dist/editor-sample/App/InspectorDrawer/BrandPanel/BrandSection.d.ts +8 -0
- package/dist/editor-sample/App/InspectorDrawer/BrandPanel/EmptyText.d.ts +6 -0
- package/dist/editor-sample/App/InspectorDrawer/BrandPanel/FontDetailsList.d.ts +6 -0
- package/dist/editor-sample/App/InspectorDrawer/BrandPanel/index.d.ts +5 -0
- package/dist/editor-sample/App/InspectorDrawer/BrandPanel/useBrandApply.d.ts +9 -0
- package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/ResponsiveDeviceTabs.d.ts +0 -2
- package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/blockStyleClipboard.d.ts +2 -8
- package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/index.d.ts +1 -4
- package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/EmailLayoutSidebarPanel.d.ts +2 -1
- package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/FlexColumns/ColumnSection.d.ts +2 -0
- package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/FormsPickerSidebarPanel.d.ts +2 -1
- package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/MdxSidebarPanel.d.ts +7 -0
- package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/MenuPickerSidebarPanel.d.ts +23 -1
- package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/QuillSidebarPanel.d.ts +8 -0
- package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/TextSidebarPanel.d.ts +2 -2
- package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/AnimationSection.d.ts +7 -5
- package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/HoverEffectSection.d.ts +1 -1
- package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/imageSizeUnit.d.ts +19 -0
- package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/ColorInput/Picker.d.ts +0 -2
- package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/VariableLinkHint.d.ts +27 -0
- package/dist/editor-sample/App/InspectorDrawer/EditorBehavior.d.ts +8 -2
- package/dist/editor-sample/App/InspectorDrawer/LayersPanelStyles.d.ts +2 -2
- package/dist/editor-sample/App/InspectorDrawer/LayoutPanel/AiSupportedBadge.d.ts +7 -0
- package/dist/editor-sample/App/InspectorDrawer/LayoutPanel/SectionsModal.d.ts +2 -10
- package/dist/editor-sample/App/InspectorDrawer/LayoutPanel/icons/index.d.ts +3 -5
- package/dist/editor-sample/App/InspectorDrawer/LayoutPanel/templateHelpers.d.ts +198 -0
- package/dist/editor-sample/App/InspectorDrawer/LayoutPanel/useDebouncedValue.d.ts +8 -0
- package/dist/editor-sample/App/InspectorDrawer/VariablesPanel/AiGenerateButton.d.ts +18 -0
- package/dist/editor-sample/App/InspectorDrawer/VariablesPanel/ItemsArrayRepeatSection.d.ts +2 -3
- package/dist/editor-sample/App/InspectorDrawer/VariablesPanel/ScalarFieldRow.d.ts +4 -1
- package/dist/editor-sample/App/InspectorDrawer/VariablesPanel/VariableGroupDialog.d.ts +19 -0
- package/dist/editor-sample/App/InspectorDrawer/VariablesPanel/VariableGroupList.d.ts +5 -0
- package/dist/editor-sample/App/InspectorDrawer/VariablesPanel/aiFill.d.ts +75 -0
- package/dist/editor-sample/App/InspectorDrawer/VariablesPanel/styles.d.ts +14 -11
- package/dist/editor-sample/App/InspectorDrawer/VariablesPanel/upgradeDialog.d.ts +8 -8
- package/dist/editor-sample/App/InspectorDrawer/VariablesPanel/useAutoRegisterTokenFields.d.ts +8 -0
- package/dist/editor-sample/App/InspectorDrawer/behaviourFields.d.ts +30 -0
- package/dist/editor-sample/App/InspectorDrawer/components/RichTextAiButton.d.ts +7 -0
- package/dist/editor-sample/App/InspectorDrawer/index.d.ts +8 -1
- package/dist/editor-sample/App/InspectorDrawer/publish/BackgroundPanel.d.ts +6 -0
- package/dist/editor-sample/App/InspectorDrawer/renderBehaviourField.d.ts +7 -0
- package/dist/editor-sample/App/TemplatePanel/hooks/useMainBoxStyles.d.ts +2 -1
- package/dist/editor-sample/App/TemplatePanel/index.d.ts +2 -1
- package/dist/editor-sample/App/TemplatePanel/minimap/useMiniMapSync.d.ts +2 -2
- package/dist/editor-sample/App/TemplatePanel/pageGuide/iframeSrcDoc.d.ts +3 -6
- package/dist/editor-sample/App/hooks/page/saveMenuHrefEdits.d.ts +1 -1
- package/dist/editor-sample/App/hooks/page/useSaveHandler.d.ts +1 -0
- package/dist/editor-sample/App/hooks/useAutosave.d.ts +8 -3
- package/dist/editor-sample/App/hooks/useIsTemplateEditorRoute.d.ts +1 -0
- package/dist/editor-sample/App/hooks/useStretch.d.ts +9 -0
- package/dist/editor-sample/App/shared/PagePreviewFrame.d.ts +17 -2
- package/dist/editor-sample/App/shared/UploadImage.d.ts +4 -0
- package/dist/editor-sample/App/shared/editor.styles.d.ts +13 -3
- package/dist/editor-sample/documents/blocks/Container/ContainerPropsSchema.d.ts +6 -4
- package/dist/editor-sample/documents/blocks/EmailLayout/EmailLayoutPropsSchema.d.ts +4 -0
- package/dist/editor-sample/documents/blocks/FormsPicker/FormsPropsSchema.d.ts +33 -2
- package/dist/editor-sample/documents/blocks/List/ListEditor.d.ts +8 -0
- package/dist/editor-sample/documents/blocks/Marquee/MarqueePropsSchema.d.ts +4 -0
- package/dist/editor-sample/documents/blocks/MenuPicker/MenuPropsSchema.d.ts +11 -0
- package/dist/editor-sample/documents/blocks/Table/TableCellEditor.d.ts +2 -1
- package/dist/editor-sample/documents/blocks/Table/TableImportDialog.styles.d.ts +15 -5
- package/dist/editor-sample/documents/blocks/Table/parseClipboardTable.d.ts +7 -0
- package/dist/editor-sample/documents/blocks/TabsBlock/TabsBlockPropsSchema.d.ts +6 -0
- package/dist/editor-sample/documents/blocks/Timer/TimerPropsSchema.d.ts +2 -0
- package/dist/editor-sample/documents/blocks/Timer/variants/CircularProgressView.d.ts +2 -1
- package/dist/editor-sample/documents/blocks/helpers/EditorChildrenIds/AddBlockMenu/blockMenuStyles.d.ts +1 -1
- package/dist/editor-sample/documents/blocks/helpers/EditorChildrenIds/AddBlockMenu/brandButtonDefaults.d.ts +1 -4
- package/dist/editor-sample/documents/blocks/helpers/EditorChildrenIds/AddBlockMenu/buttons.d.ts +0 -6
- package/dist/editor-sample/documents/blocks/helpers/InlineTextToolbar/dialogs/LinkDialog.d.ts +4 -1
- package/dist/editor-sample/documents/blocks/helpers/InlineTextToolbar/hooks/useToolbarCommands.d.ts +16 -4
- package/dist/editor-sample/documents/blocks/helpers/InlineTextToolbar/popovers/TableResizeOverlay.d.ts +17 -0
- package/dist/editor-sample/documents/blocks/helpers/InlineTextToolbar/styles.d.ts +2 -2
- package/dist/editor-sample/documents/blocks/helpers/InlineTextToolbar/types.d.ts +2 -4
- package/dist/editor-sample/documents/blocks/helpers/block-wrappers/EditorBlockWrapper.d.ts +2 -3
- package/dist/editor-sample/documents/blocks/helpers/block-wrappers/TuneMenu.styles.d.ts +17 -0
- package/dist/editor-sample/documents/blocks/helpers/block-wrappers/saveAsTemplateUtils.d.ts +37 -7
- package/dist/editor-sample/documents/blocks/helpers/documentUtils.d.ts +55 -28
- package/dist/editor-sample/documents/blocks/helpers/responsiveStyle.d.ts +1 -1
- package/dist/editor-sample/documents/blocks/helpers/variableBinding.d.ts +9 -2
- package/dist/editor-sample/documents/editor/EditorBlock.d.ts +2 -6
- package/dist/editor-sample/documents/editor/EditorContext.d.ts +87 -20
- package/dist/editor-sample/documents/editor/LazyEditorBlock.d.ts +1 -0
- package/dist/editor-sample/documents/editor/core.d.ts +510 -390
- package/dist/editor-sample/documents/editor/templateVariables.d.ts +178 -25
- package/dist/editor-sample/documents/editor/useRootFontFamily.d.ts +10 -0
- package/dist/editor-sample/utils/editorStorageKey.d.ts +2 -0
- package/dist/editor-sample/utils/localStoragePref.d.ts +2 -0
- package/dist/email-builder-core/blocks/Container/ContainerPropsSchema.d.ts +1 -1
- package/dist/email-builder-core/blocks/Container/ContainerReader.d.ts +1 -1
- package/dist/email-builder-core/blocks/EmailLayout/EmailLayoutPropsSchema.d.ts +4 -0
- package/dist/email-builder-core/blocks/EmailLayout/EmailLayoutReader.d.ts +1 -1
- package/dist/email-builder-core/blocks/FlexColumns/FlexColumnsPropsSchema.d.ts +3 -0
- package/dist/email-builder-core/blocks/FlexColumns/flexColumnsHelpers.d.ts +4 -2
- package/dist/email-builder-core/blocks/MenuPicker/MenuColumns.d.ts +13 -0
- package/dist/email-builder-core/blocks/MenuPicker/MenuPropsSchema.d.ts +10 -0
- package/dist/email-builder-core/blocks/TabsBlock/TabsBlockPropsSchema.d.ts +6 -0
- package/dist/email-builder-core/index.d.ts +0 -2
- package/dist/email-builder-core/renderers/pageScripts.d.ts +0 -1
- package/dist/email-builder-core/renderers/themeTokens.d.ts +94 -132
- package/dist/host-stubs/history.d.ts +5 -0
- package/dist/host-stubs/hooks/useTenantFeatureCutoff.d.ts +8 -0
- package/dist/host-stubs/hooks/useTenantPlan.d.ts +18 -0
- package/dist/host-stubs/i18nAhdDefaults.d.ts +1 -0
- package/dist/host-stubs/modules/allSlugs/allSlugsActions.d.ts +1 -0
- package/dist/host-stubs/modules/allSlugs/allSlugsSelectors.d.ts +1 -0
- package/dist/host-stubs/modules/auth/authCurrentTenant.d.ts +6 -0
- package/dist/host-stubs/modules/forms/formsService.d.ts +3 -1
- package/dist/host-stubs/modules/forms/useFormsList.d.ts +4 -1
- package/dist/host-stubs/modules/menu/menuService.d.ts +4 -0
- package/dist/host-stubs/modules/page/pageService.d.ts +11 -0
- package/dist/host-stubs/modules/settings/settingsActions.d.ts +2 -0
- package/dist/host-stubs/modules/settings/settingsSelectors.d.ts +4 -0
- package/dist/host-stubs/modules/shared/axios/authAxios.d.ts +17 -0
- package/dist/host-stubs/modules/shared/constants.d.ts +14 -0
- package/dist/host-stubs/modules/store.d.ts +4 -0
- package/dist/host-stubs/modules/template/templateEnumerators.d.ts +19 -0
- package/dist/host-stubs/modules/tour/injectTourIntoPage.d.ts +20 -0
- package/dist/host-stubs/modules/websiteV2/propagateFromPage.d.ts +4 -0
- package/dist/host-stubs/style/icons.d.ts +57 -0
- package/dist/host-stubs/utils/dateFormats.d.ts +1 -0
- package/dist/host-stubs/view/branding/brandDefaultFont.d.ts +3 -1
- package/dist/host-stubs/view/branding/styles/BrandIcons.d.ts +9 -0
- package/dist/host-stubs/view/branding/styles/types.d.ts +76 -0
- package/dist/host-stubs/view/configurations/ConfigurationIcons.d.ts +9 -0
- package/dist/host-stubs/view/demo/DemoIcons.d.ts +9 -0
- package/dist/host-stubs/view/images/Icons.d.ts +6 -0
- package/dist/host-stubs/view/media/MediaGalleryDialog/types.d.ts +47 -0
- package/dist/host-stubs/view/media/MediaGalleryDialog/utils/fileUtils.d.ts +3 -0
- package/dist/host-stubs/view/media/MediaGalleryDialog/utils/mediaTypes.d.ts +9 -0
- package/dist/host-stubs/view/media/MediaGalleryDialog.d.ts +12 -2
- package/dist/host-stubs/view/media/styles/MediaIcons.d.ts +13 -0
- package/dist/host-stubs/view/shared/Confetti.d.ts +5 -0
- package/dist/host-stubs/view/shared/PagePilotLoader.d.ts +2 -0
- package/dist/host-stubs/view/shared/UpgradeDialog/UpgradeDialogContext.d.ts +1 -0
- package/dist/host-stubs/view/shared/common/CopyToClipboard.d.ts +7 -0
- package/dist/host-stubs/view/shared/editors/MdxEditor.d.ts +8 -0
- package/dist/host-stubs/view/shared/editors/QuillEditor.d.ts +3 -0
- package/dist/host-stubs/view/shared/editors/sanitize.d.ts +4 -0
- package/dist/host-stubs/view/shared/editors/types.d.ts +7 -0
- package/dist/host-stubs/view/shared/media/TemplatePreviewMedia.d.ts +29 -0
- package/dist/host-stubs/view/shared/modals/ConfigureDialog.d.ts +7 -0
- package/dist/host-stubs/view/shared/modals/ManageTemplateModal.d.ts +5 -0
- package/dist/host-stubs/view/shared/speech/index.d.ts +17 -0
- package/dist/host-stubs/view/shared/styles/Table.styles.d.ts +3 -0
- package/dist/host-stubs/view/template/form/TemplateFormModal.d.ts +10 -0
- package/dist/host-stubs/view/template/form/fields/types.d.ts +7 -0
- package/dist/{index-BN1BduFG.js → index-BONR8bWR.js} +1 -1
- package/dist/{index-DojXOBrb.js → index-B_cb-ZLC.js} +88415 -74153
- package/dist/index-BfIWhBCR.cjs +1561 -0
- package/dist/{index-BRq3RgdO.cjs → index-CFA3aG_U.cjs} +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/render-core/combineSections.d.ts +33 -3
- package/dist/render-core/dateFormats.d.ts +14 -3
- package/dist/render-core/stubs/pickerEmptyState.d.ts +2 -0
- package/dist/render-core/stubs/styleIcons.d.ts +1 -0
- package/dist/render.cjs +272 -219
- package/dist/render.js +9856 -7949
- package/dist/style.css +1 -1
- package/dist/{xlsx-D2quXLTv.cjs → xlsx-CBpoXUEM.cjs} +1 -1
- package/dist/{xlsx-0y4dyiCO.js → xlsx-DSqBw3Em.js} +1 -1
- package/package.json +1 -1
- package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/ResponsiveEditingBanner.d.ts +0 -13
- package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/BoxShadowControls.d.ts +0 -19
- package/dist/editor-sample/documents/blocks/AppBannerPicker/appBanner.styled.d.ts +0 -2
- package/dist/email-builder-core/blocks/boxShadowSchema.d.ts +0 -23
- package/dist/index-DEBoxZlq.cjs +0 -1510
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function useIsTemplateEditorRoute(): boolean;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export declare const INSPECTOR_RAIL_WIDTH = 88;
|
|
2
|
+
declare const useStretch: () => {
|
|
3
|
+
inspectorWidth: number;
|
|
4
|
+
handleMouseDown: (e: React.MouseEvent) => void;
|
|
5
|
+
isPanelCollapsed: boolean;
|
|
6
|
+
toggleCollapsed: () => void;
|
|
7
|
+
handleOpenPanel: () => void;
|
|
8
|
+
};
|
|
9
|
+
export default useStretch;
|
|
@@ -1,9 +1,24 @@
|
|
|
1
1
|
import { TReaderDocument } from '../../../email-builder-core/index.ts';
|
|
2
|
-
export
|
|
2
|
+
export type PreviewPpTheme = 'light' | 'dark';
|
|
3
|
+
/** Resolve the editor preview preference to a concrete theme for iframes (they cannot inherit). */
|
|
4
|
+
export declare function resolvePreviewTheme(pref: 'light' | 'dark' | 'follow'): PreviewPpTheme;
|
|
5
|
+
/**
|
|
6
|
+
* `resolvePreviewTheme` for components that bake the result into an iframe's
|
|
7
|
+
* HTML. In `follow` mode the plain function reads `<html data-theme>` only once
|
|
8
|
+
* per render, so a memoized srcDoc keeps the OLD theme after the app switches
|
|
9
|
+
* light/dark (the live canvas updates, the static iframe doesn't). Reading the
|
|
10
|
+
* MUI palette mode makes the caller re-render — and the HTML rebuild — whenever
|
|
11
|
+
* the app theme changes.
|
|
12
|
+
*/
|
|
13
|
+
export declare function useResolvedPreviewTheme(): PreviewPpTheme;
|
|
14
|
+
export declare function ensureFullHtmlDocument(html: string, opts?: {
|
|
15
|
+
ppTheme?: PreviewPpTheme;
|
|
16
|
+
}): string;
|
|
3
17
|
export declare function getBodyMarkup(html: string): string;
|
|
4
|
-
export declare function PagePreviewFrame({ savedContent, document, fallbackHeight, }: {
|
|
18
|
+
export declare function PagePreviewFrame({ savedContent, document, fallbackHeight, onInternalNavigate, }: {
|
|
5
19
|
savedContent?: string | null;
|
|
6
20
|
document: TReaderDocument;
|
|
7
21
|
fallbackHeight?: number | string;
|
|
22
|
+
onInternalNavigate?: (href: string) => void;
|
|
8
23
|
}): import("react/jsx-runtime").JSX.Element;
|
|
9
24
|
export default PagePreviewFrame;
|
|
@@ -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>, "top" | "bottom" | "right" | "left" | "padding" | "margin" | "style" | "lineHeight" | "children" | "className" | "fontSize" | "fontFamily" | "fontWeight" | "fontStyle" | "textAlign" | "marginBottom" | "width" | "height" | "borderRadius" | "borderColor" | "gap" | "p" | "color" | "flex" | "display" | "position" | "
|
|
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>, "top" | "bottom" | "right" | "left" | "padding" | "margin" | "style" | "lineHeight" | "children" | "className" | "fontSize" | "fontFamily" | "fontWeight" | "fontStyle" | "textAlign" | "marginBottom" | "width" | "height" | "borderRadius" | "borderColor" | "gap" | "p" | "color" | "flex" | "display" | "position" | "
|
|
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>, "border" | "top" | "bottom" | "right" | "left" | "padding" | "margin" | "style" | "lineHeight" | "children" | "className" | "fontSize" | "fontFamily" | "fontWeight" | "fontStyle" | "textAlign" | "marginBottom" | "width" | "height" | "borderRadius" | "borderColor" | "gap" | "p" | "color" | "flex" | "display" | "position" | "paddingBottom" | "align" | "bgcolor" | "borderTop" | "px" | "boxShadow" | "overflow" | "variant" | "paddingX" | "paddingY" | "marginX" | "marginY" | "maxWidth" | "maxHeight" | "classes" | "sx" | "letterSpacing" | "order" | "visibility" | "zIndex" | "alignContent" | "alignItems" | "alignSelf" | "boxSizing" | "columnGap" | "flexBasis" | "flexDirection" | "flexGrow" | "flexShrink" | "flexWrap" | "gridAutoColumns" | "gridAutoFlow" | "gridAutoRows" | "gridTemplateAreas" | "gridTemplateColumns" | "gridTemplateRows" | "justifyContent" | "justifyItems" | "justifySelf" | "marginBlockEnd" | "marginBlockStart" | "marginInlineEnd" | "marginInlineStart" | "marginLeft" | "marginRight" | "marginTop" | "minHeight" | "minWidth" | "paddingBlockEnd" | "paddingBlockStart" | "paddingInlineEnd" | "paddingInlineStart" | "paddingLeft" | "paddingRight" | "paddingTop" | "rowGap" | "textOverflow" | "textTransform" | "whiteSpace" | "borderBottom" | "borderLeft" | "borderRight" | "gridArea" | "gridColumn" | "gridRow" | "marginBlock" | "marginInline" | "paddingBlock" | "paddingInline" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "my" | "pt" | "pr" | "pb" | "pl" | "py" | "typography" | "displayPrint" | "gutterBottom" | "noWrap" | "paragraph" | "variantMapping"> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, {}, {}>;
|
|
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>, "border" | "top" | "bottom" | "right" | "left" | "padding" | "margin" | "style" | "lineHeight" | "children" | "className" | "fontSize" | "fontFamily" | "fontWeight" | "fontStyle" | "textAlign" | "marginBottom" | "width" | "height" | "borderRadius" | "borderColor" | "gap" | "p" | "color" | "flex" | "display" | "position" | "paddingBottom" | "align" | "bgcolor" | "borderTop" | "px" | "boxShadow" | "overflow" | "variant" | "paddingX" | "paddingY" | "marginX" | "marginY" | "maxWidth" | "maxHeight" | "classes" | "sx" | "letterSpacing" | "order" | "visibility" | "zIndex" | "alignContent" | "alignItems" | "alignSelf" | "boxSizing" | "columnGap" | "flexBasis" | "flexDirection" | "flexGrow" | "flexShrink" | "flexWrap" | "gridAutoColumns" | "gridAutoFlow" | "gridAutoRows" | "gridTemplateAreas" | "gridTemplateColumns" | "gridTemplateRows" | "justifyContent" | "justifyItems" | "justifySelf" | "marginBlockEnd" | "marginBlockStart" | "marginInlineEnd" | "marginInlineStart" | "marginLeft" | "marginRight" | "marginTop" | "minHeight" | "minWidth" | "paddingBlockEnd" | "paddingBlockStart" | "paddingInlineEnd" | "paddingInlineStart" | "paddingLeft" | "paddingRight" | "paddingTop" | "rowGap" | "textOverflow" | "textTransform" | "whiteSpace" | "borderBottom" | "borderLeft" | "borderRight" | "gridArea" | "gridColumn" | "gridRow" | "marginBlock" | "marginInline" | "paddingBlock" | "paddingInline" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "my" | "pt" | "pr" | "pb" | "pl" | "py" | "typography" | "displayPrint" | "gutterBottom" | "noWrap" | "paragraph" | "variantMapping"> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, {}, {}>;
|
|
3
3
|
export declare const widthUnitSelectSx: {
|
|
4
4
|
'& .MuiOutlinedInput-notchedOutline': {
|
|
5
5
|
border: string;
|
|
@@ -18,4 +18,14 @@ 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>, "style" | "children" | "className" | "size" | "color" | "disabled" | "action" | "tabIndex" | "
|
|
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>, "style" | "children" | "className" | "size" | "color" | "disabled" | "action" | "tabIndex" | "classes" | "sx" | "loading" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "disableFocusRipple" | "edge" | "loadingIndicator"> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, {}, {}>;
|
|
22
|
+
export declare const zoomButtonSx: {
|
|
23
|
+
borderRadius: string;
|
|
24
|
+
transition: string;
|
|
25
|
+
'&:hover': {
|
|
26
|
+
backgroundColor: string;
|
|
27
|
+
boxShadow: string;
|
|
28
|
+
};
|
|
29
|
+
};
|
|
30
|
+
export declare const AutoSaveContentToggleWrapper: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
31
|
+
export declare const AutoSaveContentIndicatorBox: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
@@ -2,7 +2,7 @@ import { z } from 'zod';
|
|
|
2
2
|
declare const ContainerPropsSchema: z.ZodObject<{
|
|
3
3
|
style: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
4
4
|
backgroundColor: z.ZodPreprocess<z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodString, z.ZodString, z.ZodLiteral<"transparent">]>>>>;
|
|
5
|
-
backgroundImage: z.ZodOptional<z.ZodNullable<z.ZodString
|
|
5
|
+
backgroundImage: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodString]>>>;
|
|
6
6
|
backgroundSize: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
7
7
|
backgroundRepeat: z.ZodNullable<z.ZodOptional<z.ZodEnum<{
|
|
8
8
|
repeat: "repeat";
|
|
@@ -71,8 +71,8 @@ declare const ContainerPropsSchema: z.ZodObject<{
|
|
|
71
71
|
widthTablet: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
72
72
|
widthMobile: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
73
73
|
height: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
74
|
-
heightTablet: z.ZodNullable<z.ZodOptional<z.ZodNumber
|
|
75
|
-
heightMobile: z.ZodNullable<z.ZodOptional<z.ZodNumber
|
|
74
|
+
heightTablet: z.ZodNullable<z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<"auto">]>>>;
|
|
75
|
+
heightMobile: z.ZodNullable<z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<"auto">]>>>;
|
|
76
76
|
overflow: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
|
|
77
77
|
alignment: z.ZodNullable<z.ZodOptional<z.ZodEnum<{
|
|
78
78
|
right: "right";
|
|
@@ -147,4 +147,6 @@ declare const ContainerPropsSchema: z.ZodObject<{
|
|
|
147
147
|
}, z.core.$strip>>>;
|
|
148
148
|
}, z.core.$strip>;
|
|
149
149
|
export default ContainerPropsSchema;
|
|
150
|
-
export type ContainerProps = z.infer<typeof ContainerPropsSchema
|
|
150
|
+
export type ContainerProps = z.infer<typeof ContainerPropsSchema> & {
|
|
151
|
+
blockId?: string;
|
|
152
|
+
};
|
|
@@ -100,6 +100,10 @@ declare const EmailLayoutPropsSchema: z.ZodObject<{
|
|
|
100
100
|
}, z.core.$strip>>>;
|
|
101
101
|
canvasColor: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodString, z.ZodString, z.ZodLiteral<"transparent">]>>>>;
|
|
102
102
|
textColor: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodString, z.ZodString, z.ZodLiteral<"transparent">]>>>;
|
|
103
|
+
hostTheme: z.ZodNullable<z.ZodOptional<z.ZodEnum<{
|
|
104
|
+
light: "light";
|
|
105
|
+
follow: "follow";
|
|
106
|
+
}>>>;
|
|
103
107
|
fontFamily: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
104
108
|
MODERN_SANS: "MODERN_SANS";
|
|
105
109
|
BOOK_SANS: "BOOK_SANS";
|
|
@@ -19,8 +19,39 @@ declare const FormsPropsSchema: z.ZodObject<{
|
|
|
19
19
|
}, z.core.$strip>;
|
|
20
20
|
export default FormsPropsSchema;
|
|
21
21
|
export type FormsPickerPropsType = z.infer<typeof FormsPropsSchema>;
|
|
22
|
+
type TBlockSpacing = {
|
|
23
|
+
top: number;
|
|
24
|
+
right: number;
|
|
25
|
+
bottom: number;
|
|
26
|
+
left: number;
|
|
27
|
+
};
|
|
28
|
+
/** The per-corner shape the sidebar's RadiusInput authors. */
|
|
29
|
+
export type FormsPickerRadius = {
|
|
30
|
+
topLeft: number;
|
|
31
|
+
topRight: number;
|
|
32
|
+
bottomRight: number;
|
|
33
|
+
bottomLeft: number;
|
|
34
|
+
};
|
|
35
|
+
/**
|
|
36
|
+
* The block's `style` bag, documented rather than enforced.
|
|
37
|
+
*
|
|
38
|
+
* The zod schema declares `style` as `z.object({}).passthrough()`, so every value
|
|
39
|
+
* arrives typed as `unknown` and nothing is validated. These members therefore
|
|
40
|
+
* record the shapes the renderers actually read and must stay assignable from
|
|
41
|
+
* that passthrough type — hence the `unknown` arm on each. `borderRadius` in
|
|
42
|
+
* particular has three live shapes: the per-corner object written today, plus
|
|
43
|
+
* legacy `number` and CSS-`string` values that saved documents may still hold.
|
|
44
|
+
* All three are resolved by `formatBorderRadius` in blockStyleHelpers.
|
|
45
|
+
*/
|
|
46
|
+
export type FormsPickerStyle = {
|
|
47
|
+
padding?: TBlockSpacing | string | null | unknown;
|
|
48
|
+
margin?: TBlockSpacing | string | null | unknown;
|
|
49
|
+
backgroundColor?: string | null | unknown;
|
|
50
|
+
borderRadius?: number | string | FormsPickerRadius | null | unknown;
|
|
51
|
+
[key: string]: unknown;
|
|
52
|
+
};
|
|
22
53
|
export type FormsPickerProps = {
|
|
23
|
-
style?:
|
|
54
|
+
style?: FormsPickerStyle | null;
|
|
24
55
|
props?: {
|
|
25
56
|
formId: string;
|
|
26
57
|
formName?: string;
|
|
@@ -31,5 +62,5 @@ export type FormsPickerProps = {
|
|
|
31
62
|
heightMobile?: string;
|
|
32
63
|
autoHeight?: boolean;
|
|
33
64
|
alignment?: 'left' | 'center' | 'right';
|
|
34
|
-
};
|
|
65
|
+
} | null;
|
|
35
66
|
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { ListProps } from '../../../../blocks-internal/block-list/src/index.tsx';
|
|
3
|
+
type ListEditorProps = {
|
|
4
|
+
style?: ListProps['style'];
|
|
5
|
+
props?: ListProps['props'];
|
|
6
|
+
};
|
|
7
|
+
declare const ListEditor: React.FC<ListEditorProps>;
|
|
8
|
+
export default ListEditor;
|
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
declare const MarqueePropsSchema: 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
|
backgroundColor: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
5
9
|
borderColor: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
@@ -2,6 +2,10 @@ import { z } from 'zod';
|
|
|
2
2
|
declare const MenuPropsSchema: z.ZodObject<{
|
|
3
3
|
menuId: z.ZodDefault<z.ZodString>;
|
|
4
4
|
useCustomMenu: z.ZodDefault<z.ZodBoolean>;
|
|
5
|
+
navRole: z.ZodNullable<z.ZodOptional<z.ZodEnum<{
|
|
6
|
+
footer: "footer";
|
|
7
|
+
header: "header";
|
|
8
|
+
}>>>;
|
|
5
9
|
stickyNav: z.ZodDefault<z.ZodBoolean>;
|
|
6
10
|
stickyNavTablet: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
|
|
7
11
|
stickyNavMobile: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
|
|
@@ -13,6 +17,7 @@ declare const MenuPropsSchema: z.ZodObject<{
|
|
|
13
17
|
orientation: z.ZodDefault<z.ZodEnum<{
|
|
14
18
|
vertical: "vertical";
|
|
15
19
|
horizontal: "horizontal";
|
|
20
|
+
columns: "columns";
|
|
16
21
|
}>>;
|
|
17
22
|
menuItems: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodType<any, unknown, z.core.$ZodTypeInternals<any, unknown>>>>>;
|
|
18
23
|
startChildrenIds: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
@@ -52,6 +57,12 @@ declare const MenuPropsSchema: z.ZodObject<{
|
|
|
52
57
|
bottom: z.ZodNumber;
|
|
53
58
|
left: z.ZodNumber;
|
|
54
59
|
}, z.core.$strip>>>;
|
|
60
|
+
blockMargin: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
61
|
+
top: z.ZodNumber;
|
|
62
|
+
right: z.ZodNumber;
|
|
63
|
+
bottom: z.ZodNumber;
|
|
64
|
+
left: z.ZodNumber;
|
|
65
|
+
}, z.core.$strip>>>;
|
|
55
66
|
gap: z.ZodDefault<z.ZodString>;
|
|
56
67
|
showIcons: z.ZodDefault<z.ZodBoolean>;
|
|
57
68
|
iconSize: z.ZodDefault<z.ZodString>;
|
|
@@ -6,6 +6,7 @@ type Props = {
|
|
|
6
6
|
isHeader: boolean;
|
|
7
7
|
onCommit: (html: string) => void;
|
|
8
8
|
onContextMenu: (e: React.MouseEvent<HTMLDivElement>, row: number, col: number) => void;
|
|
9
|
+
onPaste?: (e: React.ClipboardEvent<HTMLDivElement>, row: number, col: number) => boolean;
|
|
9
10
|
};
|
|
10
|
-
export default function TableCellEditor({ html, row, col, isHeader, onCommit, onContextMenu, }: Props): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export default function TableCellEditor({ html, row, col, isHeader, onCommit, onContextMenu, onPaste, }: Props): import("react/jsx-runtime").JSX.Element;
|
|
11
12
|
export {};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
export declare const StyledDialog: import('@emotion/styled').StyledComponent<import('@mui/material').DialogProps & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, {}, {}>;
|
|
2
|
-
export declare const StyledDialogTitle: import('@emotion/styled').StyledComponent<import('@mui/material').DialogTitleOwnProps & import('@mui/material/OverridableComponent').CommonProps & Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "top" | "bottom" | "right" | "left" | "padding" | "margin" | "style" | "lineHeight" | "children" | "className" | "fontSize" | "fontFamily" | "fontWeight" | "fontStyle" | "textAlign" | "marginBottom" | "width" | "height" | "borderRadius" | "borderColor" | "gap" | "p" | "color" | "flex" | "display" | "position" | "
|
|
2
|
+
export declare const StyledDialogTitle: import('@emotion/styled').StyledComponent<import('@mui/material').DialogTitleOwnProps & import('@mui/material/OverridableComponent').CommonProps & Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "border" | "top" | "bottom" | "right" | "left" | "padding" | "margin" | "style" | "lineHeight" | "children" | "className" | "fontSize" | "fontFamily" | "fontWeight" | "fontStyle" | "textAlign" | "marginBottom" | "width" | "height" | "borderRadius" | "borderColor" | "gap" | "p" | "color" | "flex" | "display" | "position" | "paddingBottom" | "align" | "bgcolor" | "borderTop" | "px" | "boxShadow" | "overflow" | "variant" | "paddingX" | "paddingY" | "marginX" | "marginY" | "maxWidth" | "maxHeight" | "classes" | "sx" | "letterSpacing" | "order" | "visibility" | "zIndex" | "alignContent" | "alignItems" | "alignSelf" | "boxSizing" | "columnGap" | "flexBasis" | "flexDirection" | "flexGrow" | "flexShrink" | "flexWrap" | "gridAutoColumns" | "gridAutoFlow" | "gridAutoRows" | "gridTemplateAreas" | "gridTemplateColumns" | "gridTemplateRows" | "justifyContent" | "justifyItems" | "justifySelf" | "marginBlockEnd" | "marginBlockStart" | "marginInlineEnd" | "marginInlineStart" | "marginLeft" | "marginRight" | "marginTop" | "minHeight" | "minWidth" | "paddingBlockEnd" | "paddingBlockStart" | "paddingInlineEnd" | "paddingInlineStart" | "paddingLeft" | "paddingRight" | "paddingTop" | "rowGap" | "textOverflow" | "textTransform" | "whiteSpace" | "borderBottom" | "borderLeft" | "borderRight" | "gridArea" | "gridColumn" | "gridRow" | "marginBlock" | "marginInline" | "paddingBlock" | "paddingInline" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "my" | "pt" | "pr" | "pb" | "pl" | "py" | "typography" | "displayPrint" | "gutterBottom" | "noWrap" | "paragraph" | "variantMapping"> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, {}, {}>;
|
|
3
3
|
export declare const CloseButton: import('@emotion/styled').StyledComponent<import('@mui/material').SvgIconOwnProps & import('@mui/material/OverridableComponent').CommonProps & Omit<import('react').SVGProps<SVGSVGElement>, "style" | "children" | "className" | "fontSize" | "color" | "classes" | "htmlColor" | "inheritViewBox" | "shapeRendering" | "sx" | "titleAccess" | "viewBox"> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, {}, {}>;
|
|
4
4
|
export declare const TabsBar: import('@emotion/styled').StyledComponent<import('@mui/system').BoxOwnProps<import('@mui/material').Theme> & Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('@mui/system').BoxOwnProps<import('@mui/material').Theme>> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, {}, {}>;
|
|
5
|
-
export declare const StyledTabs: import('@emotion/styled').StyledComponent<import('@mui/material').TabsOwnProps & import('@mui/material/OverridableComponent').CommonProps & Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "value" | "style" | "children" | "className" | "orientation" | "textColor" | "action" | "variant" | "
|
|
5
|
+
export declare const StyledTabs: import('@emotion/styled').StyledComponent<import('@mui/material').TabsOwnProps & import('@mui/material/OverridableComponent').CommonProps & Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "value" | "style" | "children" | "className" | "orientation" | "textColor" | "action" | "variant" | "classes" | "sx" | "aria-label" | "aria-labelledby" | "onChange" | "slots" | "slotProps" | "allowScrollButtonsMobile" | "centered" | "indicatorColor" | "ScrollButtonComponent" | "scrollButtons" | "selectionFollowsFocus" | "TabIndicatorProps" | "TabScrollButtonProps" | "visibleScrollbar"> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, {}, {}>;
|
|
6
6
|
export declare const StyledDialogContent: import('@emotion/styled').StyledComponent<import('@mui/material').DialogContentProps & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, {}, {}>;
|
|
7
|
-
export declare const HelperText: import('@emotion/styled').StyledComponent<import('@mui/material').TypographyOwnProps & import('@mui/material/OverridableComponent').CommonProps & Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "top" | "bottom" | "right" | "left" | "padding" | "margin" | "style" | "lineHeight" | "children" | "className" | "fontSize" | "fontFamily" | "fontWeight" | "fontStyle" | "textAlign" | "marginBottom" | "width" | "height" | "borderRadius" | "borderColor" | "gap" | "p" | "color" | "flex" | "display" | "position" | "
|
|
8
|
-
export declare const FileSummaryText: import('@emotion/styled').StyledComponent<import('@mui/material').TypographyOwnProps & import('@mui/material/OverridableComponent').CommonProps & Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "top" | "bottom" | "right" | "left" | "padding" | "margin" | "style" | "lineHeight" | "children" | "className" | "fontSize" | "fontFamily" | "fontWeight" | "fontStyle" | "textAlign" | "marginBottom" | "width" | "height" | "borderRadius" | "borderColor" | "gap" | "p" | "color" | "flex" | "display" | "position" | "
|
|
7
|
+
export declare const HelperText: import('@emotion/styled').StyledComponent<import('@mui/material').TypographyOwnProps & import('@mui/material/OverridableComponent').CommonProps & Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "border" | "top" | "bottom" | "right" | "left" | "padding" | "margin" | "style" | "lineHeight" | "children" | "className" | "fontSize" | "fontFamily" | "fontWeight" | "fontStyle" | "textAlign" | "marginBottom" | "width" | "height" | "borderRadius" | "borderColor" | "gap" | "p" | "color" | "flex" | "display" | "position" | "paddingBottom" | "align" | "bgcolor" | "borderTop" | "px" | "boxShadow" | "overflow" | "variant" | "paddingX" | "paddingY" | "marginX" | "marginY" | "maxWidth" | "maxHeight" | "classes" | "sx" | "letterSpacing" | "order" | "visibility" | "zIndex" | "alignContent" | "alignItems" | "alignSelf" | "boxSizing" | "columnGap" | "flexBasis" | "flexDirection" | "flexGrow" | "flexShrink" | "flexWrap" | "gridAutoColumns" | "gridAutoFlow" | "gridAutoRows" | "gridTemplateAreas" | "gridTemplateColumns" | "gridTemplateRows" | "justifyContent" | "justifyItems" | "justifySelf" | "marginBlockEnd" | "marginBlockStart" | "marginInlineEnd" | "marginInlineStart" | "marginLeft" | "marginRight" | "marginTop" | "minHeight" | "minWidth" | "paddingBlockEnd" | "paddingBlockStart" | "paddingInlineEnd" | "paddingInlineStart" | "paddingLeft" | "paddingRight" | "paddingTop" | "rowGap" | "textOverflow" | "textTransform" | "whiteSpace" | "borderBottom" | "borderLeft" | "borderRight" | "gridArea" | "gridColumn" | "gridRow" | "marginBlock" | "marginInline" | "paddingBlock" | "paddingInline" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "my" | "pt" | "pr" | "pb" | "pl" | "py" | "typography" | "displayPrint" | "gutterBottom" | "noWrap" | "paragraph" | "variantMapping"> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, {}, {}>;
|
|
8
|
+
export declare const FileSummaryText: import('@emotion/styled').StyledComponent<import('@mui/material').TypographyOwnProps & import('@mui/material/OverridableComponent').CommonProps & Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "border" | "top" | "bottom" | "right" | "left" | "padding" | "margin" | "style" | "lineHeight" | "children" | "className" | "fontSize" | "fontFamily" | "fontWeight" | "fontStyle" | "textAlign" | "marginBottom" | "width" | "height" | "borderRadius" | "borderColor" | "gap" | "p" | "color" | "flex" | "display" | "position" | "paddingBottom" | "align" | "bgcolor" | "borderTop" | "px" | "boxShadow" | "overflow" | "variant" | "paddingX" | "paddingY" | "marginX" | "marginY" | "maxWidth" | "maxHeight" | "classes" | "sx" | "letterSpacing" | "order" | "visibility" | "zIndex" | "alignContent" | "alignItems" | "alignSelf" | "boxSizing" | "columnGap" | "flexBasis" | "flexDirection" | "flexGrow" | "flexShrink" | "flexWrap" | "gridAutoColumns" | "gridAutoFlow" | "gridAutoRows" | "gridTemplateAreas" | "gridTemplateColumns" | "gridTemplateRows" | "justifyContent" | "justifyItems" | "justifySelf" | "marginBlockEnd" | "marginBlockStart" | "marginInlineEnd" | "marginInlineStart" | "marginLeft" | "marginRight" | "marginTop" | "minHeight" | "minWidth" | "paddingBlockEnd" | "paddingBlockStart" | "paddingInlineEnd" | "paddingInlineStart" | "paddingLeft" | "paddingRight" | "paddingTop" | "rowGap" | "textOverflow" | "textTransform" | "whiteSpace" | "borderBottom" | "borderLeft" | "borderRight" | "gridArea" | "gridColumn" | "gridRow" | "marginBlock" | "marginInline" | "paddingBlock" | "paddingInline" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "my" | "pt" | "pr" | "pb" | "pl" | "py" | "typography" | "displayPrint" | "gutterBottom" | "noWrap" | "paragraph" | "variantMapping"> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, {}, {}>;
|
|
9
9
|
export declare const ErrorAlert: import('@emotion/styled').StyledComponent<import('@mui/material').AlertProps & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, {}, {}>;
|
|
10
10
|
export declare const PasteTextFieldSx: {
|
|
11
11
|
readonly '& textarea': {
|
|
@@ -15,5 +15,15 @@ export declare const PasteTextFieldSx: {
|
|
|
15
15
|
};
|
|
16
16
|
export declare const UploadDropzone: import('@emotion/styled').StyledComponent<import('@mui/system').BoxOwnProps<import('@mui/material').Theme> & Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('@mui/system').BoxOwnProps<import('@mui/material').Theme>> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, {}, {}>;
|
|
17
17
|
export declare const UploadIcon: import('@emotion/styled').StyledComponent<import('@mui/material').SvgIconOwnProps & import('@mui/material/OverridableComponent').CommonProps & Omit<import('react').SVGProps<SVGSVGElement>, "style" | "children" | "className" | "fontSize" | "color" | "classes" | "htmlColor" | "inheritViewBox" | "shapeRendering" | "sx" | "titleAccess" | "viewBox"> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, {}, {}>;
|
|
18
|
-
export declare const ChooseFileLabel: import('@emotion/styled').StyledComponent<import('@mui/material').TypographyOwnProps & import('@mui/material/OverridableComponent').CommonProps & Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "top" | "bottom" | "right" | "left" | "padding" | "margin" | "style" | "lineHeight" | "children" | "className" | "fontSize" | "fontFamily" | "fontWeight" | "fontStyle" | "textAlign" | "marginBottom" | "width" | "height" | "borderRadius" | "borderColor" | "gap" | "p" | "color" | "flex" | "display" | "position" | "
|
|
18
|
+
export declare const ChooseFileLabel: import('@emotion/styled').StyledComponent<import('@mui/material').TypographyOwnProps & import('@mui/material/OverridableComponent').CommonProps & Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "border" | "top" | "bottom" | "right" | "left" | "padding" | "margin" | "style" | "lineHeight" | "children" | "className" | "fontSize" | "fontFamily" | "fontWeight" | "fontStyle" | "textAlign" | "marginBottom" | "width" | "height" | "borderRadius" | "borderColor" | "gap" | "p" | "color" | "flex" | "display" | "position" | "paddingBottom" | "align" | "bgcolor" | "borderTop" | "px" | "boxShadow" | "overflow" | "variant" | "paddingX" | "paddingY" | "marginX" | "marginY" | "maxWidth" | "maxHeight" | "classes" | "sx" | "letterSpacing" | "order" | "visibility" | "zIndex" | "alignContent" | "alignItems" | "alignSelf" | "boxSizing" | "columnGap" | "flexBasis" | "flexDirection" | "flexGrow" | "flexShrink" | "flexWrap" | "gridAutoColumns" | "gridAutoFlow" | "gridAutoRows" | "gridTemplateAreas" | "gridTemplateColumns" | "gridTemplateRows" | "justifyContent" | "justifyItems" | "justifySelf" | "marginBlockEnd" | "marginBlockStart" | "marginInlineEnd" | "marginInlineStart" | "marginLeft" | "marginRight" | "marginTop" | "minHeight" | "minWidth" | "paddingBlockEnd" | "paddingBlockStart" | "paddingInlineEnd" | "paddingInlineStart" | "paddingLeft" | "paddingRight" | "paddingTop" | "rowGap" | "textOverflow" | "textTransform" | "whiteSpace" | "borderBottom" | "borderLeft" | "borderRight" | "gridArea" | "gridColumn" | "gridRow" | "marginBlock" | "marginInline" | "paddingBlock" | "paddingInline" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "my" | "pt" | "pr" | "pb" | "pl" | "py" | "typography" | "displayPrint" | "gutterBottom" | "noWrap" | "paragraph" | "variantMapping"> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, {}, {}>;
|
|
19
|
+
export declare const SheetPickerWrap: import('@emotion/styled').StyledComponent<import('@mui/system').BoxOwnProps<import('@mui/material').Theme> & Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('@mui/system').BoxOwnProps<import('@mui/material').Theme>> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, {}, {}>;
|
|
20
|
+
export declare const SheetPickerCard: import('@emotion/styled').StyledComponent<import('@mui/system').BoxOwnProps<import('@mui/material').Theme> & Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('@mui/system').BoxOwnProps<import('@mui/material').Theme>> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & {
|
|
21
|
+
selected?: boolean;
|
|
22
|
+
}, {}, {}>;
|
|
23
|
+
export declare const SheetPickerLabel: import('@emotion/styled').StyledComponent<import('@mui/material').TypographyOwnProps & import('@mui/material/OverridableComponent').CommonProps & Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "border" | "top" | "bottom" | "right" | "left" | "padding" | "margin" | "style" | "lineHeight" | "children" | "className" | "fontSize" | "fontFamily" | "fontWeight" | "fontStyle" | "textAlign" | "marginBottom" | "width" | "height" | "borderRadius" | "borderColor" | "gap" | "p" | "color" | "flex" | "display" | "position" | "paddingBottom" | "align" | "bgcolor" | "borderTop" | "px" | "boxShadow" | "overflow" | "variant" | "paddingX" | "paddingY" | "marginX" | "marginY" | "maxWidth" | "maxHeight" | "classes" | "sx" | "letterSpacing" | "order" | "visibility" | "zIndex" | "alignContent" | "alignItems" | "alignSelf" | "boxSizing" | "columnGap" | "flexBasis" | "flexDirection" | "flexGrow" | "flexShrink" | "flexWrap" | "gridAutoColumns" | "gridAutoFlow" | "gridAutoRows" | "gridTemplateAreas" | "gridTemplateColumns" | "gridTemplateRows" | "justifyContent" | "justifyItems" | "justifySelf" | "marginBlockEnd" | "marginBlockStart" | "marginInlineEnd" | "marginInlineStart" | "marginLeft" | "marginRight" | "marginTop" | "minHeight" | "minWidth" | "paddingBlockEnd" | "paddingBlockStart" | "paddingInlineEnd" | "paddingInlineStart" | "paddingLeft" | "paddingRight" | "paddingTop" | "rowGap" | "textOverflow" | "textTransform" | "whiteSpace" | "borderBottom" | "borderLeft" | "borderRight" | "gridArea" | "gridColumn" | "gridRow" | "marginBlock" | "marginInline" | "paddingBlock" | "paddingInline" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "my" | "pt" | "pr" | "pb" | "pl" | "py" | "typography" | "displayPrint" | "gutterBottom" | "noWrap" | "paragraph" | "variantMapping"> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & {
|
|
24
|
+
selected?: boolean;
|
|
25
|
+
}, {}, {}>;
|
|
26
|
+
export declare const SheetPickerMeta: import('@emotion/styled').StyledComponent<import('@mui/material').TypographyOwnProps & import('@mui/material/OverridableComponent').CommonProps & Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "border" | "top" | "bottom" | "right" | "left" | "padding" | "margin" | "style" | "lineHeight" | "children" | "className" | "fontSize" | "fontFamily" | "fontWeight" | "fontStyle" | "textAlign" | "marginBottom" | "width" | "height" | "borderRadius" | "borderColor" | "gap" | "p" | "color" | "flex" | "display" | "position" | "paddingBottom" | "align" | "bgcolor" | "borderTop" | "px" | "boxShadow" | "overflow" | "variant" | "paddingX" | "paddingY" | "marginX" | "marginY" | "maxWidth" | "maxHeight" | "classes" | "sx" | "letterSpacing" | "order" | "visibility" | "zIndex" | "alignContent" | "alignItems" | "alignSelf" | "boxSizing" | "columnGap" | "flexBasis" | "flexDirection" | "flexGrow" | "flexShrink" | "flexWrap" | "gridAutoColumns" | "gridAutoFlow" | "gridAutoRows" | "gridTemplateAreas" | "gridTemplateColumns" | "gridTemplateRows" | "justifyContent" | "justifyItems" | "justifySelf" | "marginBlockEnd" | "marginBlockStart" | "marginInlineEnd" | "marginInlineStart" | "marginLeft" | "marginRight" | "marginTop" | "minHeight" | "minWidth" | "paddingBlockEnd" | "paddingBlockStart" | "paddingInlineEnd" | "paddingInlineStart" | "paddingLeft" | "paddingRight" | "paddingTop" | "rowGap" | "textOverflow" | "textTransform" | "whiteSpace" | "borderBottom" | "borderLeft" | "borderRight" | "gridArea" | "gridColumn" | "gridRow" | "marginBlock" | "marginInline" | "paddingBlock" | "paddingInline" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "my" | "pt" | "pr" | "pb" | "pl" | "py" | "typography" | "displayPrint" | "gutterBottom" | "noWrap" | "paragraph" | "variantMapping"> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & {
|
|
27
|
+
selected?: boolean;
|
|
28
|
+
}, {}, {}>;
|
|
19
29
|
export declare const StyledDialogActions: import('@emotion/styled').StyledComponent<import('@mui/material').DialogActionsProps & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, {}, {}>;
|
|
@@ -3,6 +3,10 @@ export type ParsedTable = {
|
|
|
3
3
|
columns: number;
|
|
4
4
|
cells: string[];
|
|
5
5
|
};
|
|
6
|
+
export type NamedTable = {
|
|
7
|
+
name: string;
|
|
8
|
+
table: ParsedTable;
|
|
9
|
+
};
|
|
6
10
|
export declare function parseClipboardTable(clipboard: DataTransfer | null): ParsedTable | null;
|
|
7
11
|
/**
|
|
8
12
|
* Parse pasted-in text from the Import dialog's textarea — not a live
|
|
@@ -10,7 +14,10 @@ export declare function parseClipboardTable(clipboard: DataTransfer | null): Par
|
|
|
10
14
|
* by sniffing for a `<table`/`<tr` tag; otherwise tries Markdown, then CSV/TSV.
|
|
11
15
|
*/
|
|
12
16
|
export declare function parseTableString(input: string): ParsedTable | null;
|
|
17
|
+
/** Every non-empty sheet in the workbook, in file order — caller picks one if there's more than one. */
|
|
18
|
+
export declare function readExcelFileAllSheets(file: File): Promise<NamedTable[]>;
|
|
13
19
|
export declare function readExcelFile(file: File): Promise<ParsedTable | null>;
|
|
20
|
+
export declare function readWordFileAllTables(file: File): Promise<NamedTable[]>;
|
|
14
21
|
export declare function readWordFile(file: File): Promise<ParsedTable | null>;
|
|
15
22
|
export declare function mergePastedTable(existing: string[], existingRows: number, existingCols: number, pasted: ParsedTable, atRow: number, atCol: number, maxRows?: number, maxCols?: number): {
|
|
16
23
|
rows: number;
|
|
@@ -12,6 +12,12 @@ declare const TabsBlockPropsSchema: z.ZodObject<{
|
|
|
12
12
|
style: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
13
13
|
backgroundColor: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
14
14
|
borderColor: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
15
|
+
borderWidth: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
16
|
+
top: z.ZodNumber;
|
|
17
|
+
right: z.ZodNumber;
|
|
18
|
+
bottom: z.ZodNumber;
|
|
19
|
+
left: z.ZodNumber;
|
|
20
|
+
}, z.core.$strip>>>;
|
|
15
21
|
borderRadius: z.ZodNullable<z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString, z.ZodObject<{
|
|
16
22
|
topLeft: z.ZodNumber;
|
|
17
23
|
topRight: z.ZodNumber;
|
|
@@ -5,6 +5,7 @@ declare const TimerPropsSchema: z.ZodObject<{
|
|
|
5
5
|
textColor: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
6
6
|
accentColor: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
7
7
|
numberColor: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
8
|
+
numberFontWeight: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
8
9
|
borderColor: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
9
10
|
borderRadius: z.ZodNullable<z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString, z.ZodObject<{
|
|
10
11
|
topLeft: z.ZodNumber;
|
|
@@ -39,6 +40,7 @@ declare const TimerPropsSchema: z.ZodObject<{
|
|
|
39
40
|
showZeros: "showZeros";
|
|
40
41
|
}>>;
|
|
41
42
|
expiredMessage: z.ZodDefault<z.ZodString>;
|
|
43
|
+
showConfetti: z.ZodDefault<z.ZodBoolean>;
|
|
42
44
|
}, z.core.$strip>>>;
|
|
43
45
|
}, z.core.$strip>;
|
|
44
46
|
export type TimerProps = z.infer<typeof TimerPropsSchema>;
|
|
@@ -5,6 +5,7 @@ type Props = {
|
|
|
5
5
|
accentColor?: string | null;
|
|
6
6
|
textColor?: string | null;
|
|
7
7
|
numberColor?: string | null;
|
|
8
|
+
numberFontWeight?: string | null;
|
|
8
9
|
};
|
|
9
|
-
export default function CircularProgressView({ parts, showLabels, accentColor, textColor, numberColor }: Props): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export default function CircularProgressView({ parts, showLabels, accentColor, textColor, numberColor, numberFontWeight }: Props): import("react/jsx-runtime").JSX.Element;
|
|
10
11
|
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { SxProps, Theme } from '@mui/material';
|
|
2
|
-
export declare const BLOCK_MENU_MIN_WIDTH = "
|
|
2
|
+
export declare const BLOCK_MENU_MIN_WIDTH = "480px";
|
|
3
3
|
export declare const menuRootSx: (theme: Theme) => SxProps<Theme>;
|
|
4
4
|
export declare const searchHeaderSx: (theme: Theme) => SxProps<Theme>;
|
|
5
5
|
export declare const scrollAreaSx: (theme: Theme) => SxProps<Theme>;
|
|
@@ -1,7 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
type BrandingConfig = {
|
|
3
|
-
button?: BrandButton;
|
|
4
|
-
};
|
|
1
|
+
import { BrandButton, BrandingConfig } from '../../../../../../host-stubs/view/branding/styles/types';
|
|
5
2
|
type ButtonBlockData = {
|
|
6
3
|
props: Record<string, any>;
|
|
7
4
|
style: Record<string, any>;
|
package/dist/editor-sample/documents/blocks/helpers/EditorChildrenIds/AddBlockMenu/buttons.d.ts
CHANGED
|
@@ -2,12 +2,6 @@ import { default as React } from 'react';
|
|
|
2
2
|
import { TEditorBlock } from '../../../../editor/core';
|
|
3
3
|
type TButtonProps = {
|
|
4
4
|
label: string;
|
|
5
|
-
/**
|
|
6
|
-
* Palette section this tile belongs to. Used by BlocksPanel to group
|
|
7
|
-
* tiles under section headers ("Layout", "Content", "Media",
|
|
8
|
-
* "Interaction", "Integration") and by BlocksMenu's category tabs. Order
|
|
9
|
-
* and header labels come from `BlockCategories.ts`.
|
|
10
|
-
*/
|
|
11
5
|
category: string;
|
|
12
6
|
icon: React.JSX.Element;
|
|
13
7
|
block: () => TEditorBlock;
|
package/dist/editor-sample/documents/blocks/helpers/InlineTextToolbar/dialogs/LinkDialog.d.ts
CHANGED
|
@@ -9,6 +9,9 @@ type Props = {
|
|
|
9
9
|
* links always get target="_blank" since the previous "Open in new
|
|
10
10
|
* window" UI was removed. */
|
|
11
11
|
defaultNewWindow?: boolean;
|
|
12
|
+
/** The existing link's underline state — prefills the checkbox when editing.
|
|
13
|
+
* Fresh links default to underlined. */
|
|
14
|
+
defaultUnderline?: boolean;
|
|
12
15
|
/** Flip title + button label to edit mode when standing on an existing link. */
|
|
13
16
|
isEditing?: boolean;
|
|
14
17
|
onClose: () => void;
|
|
@@ -18,5 +21,5 @@ type Props = {
|
|
|
18
21
|
onRemove?: () => void;
|
|
19
22
|
};
|
|
20
23
|
/** Insert Link modal — matches the sidebar's Summernote dialog. */
|
|
21
|
-
export declare function LinkDialog({ open, defaultText, defaultUrl, defaultNewWindow, isEditing, onClose, onInsert, onRemove, }: Props): import("react/jsx-runtime").JSX.Element;
|
|
24
|
+
export declare function LinkDialog({ open, defaultText, defaultUrl, defaultNewWindow, defaultUnderline, isEditing, onClose, onInsert, onRemove, }: Props): import("react/jsx-runtime").JSX.Element;
|
|
22
25
|
export {};
|
package/dist/editor-sample/documents/blocks/helpers/InlineTextToolbar/hooks/useToolbarCommands.d.ts
CHANGED
|
@@ -7,6 +7,7 @@ export type SavedLinkInfo = {
|
|
|
7
7
|
text: string;
|
|
8
8
|
url: string;
|
|
9
9
|
newWindow: boolean;
|
|
10
|
+
underline: boolean;
|
|
10
11
|
};
|
|
11
12
|
export type ToolbarCommandsApi = {
|
|
12
13
|
/** Currently saved selection range (latest one observed inside the editor). */
|
|
@@ -27,10 +28,9 @@ export type ToolbarCommandsApi = {
|
|
|
27
28
|
/**
|
|
28
29
|
* Set the font size for the current selection at the given device slot.
|
|
29
30
|
* Writes `data-fs-<device>="<px>"` on a wrapping <span> so responsive CSS
|
|
30
|
-
* rules (see the Text
|
|
31
|
-
*
|
|
32
|
-
*
|
|
33
|
-
* clobber Desktop.
|
|
31
|
+
* rules (see the Text/Heading/Button/Html renderers) can pick the correct
|
|
32
|
+
* size per preview device / breakpoint. Preserves any pre-existing device
|
|
33
|
+
* markers on the same range so setting Mobile doesn't clobber Desktop.
|
|
34
34
|
*/
|
|
35
35
|
applyFontSize: (px: number, device: FontSizeDevice) => void;
|
|
36
36
|
/**
|
|
@@ -40,6 +40,16 @@ export type ToolbarCommandsApi = {
|
|
|
40
40
|
* intact.
|
|
41
41
|
*/
|
|
42
42
|
clearFontSize: (device: FontSizeDevice) => void;
|
|
43
|
+
/**
|
|
44
|
+
* Set the CSS font-family on the current selection. Uses a Range-based
|
|
45
|
+
* wrap that mutates only style.fontFamily on either the enclosing
|
|
46
|
+
* responsive span (fast path) or a fresh wrapping <span>. Does NOT go
|
|
47
|
+
* through execCommand('fontName'), which produces a <font face>
|
|
48
|
+
* element and — depending on how the browser restructures the DOM
|
|
49
|
+
* around existing `<span data-fs-*>` wrappers — can drop the
|
|
50
|
+
* responsive font-size markers as a side effect.
|
|
51
|
+
*/
|
|
52
|
+
applyFontFamily: (value: string) => void;
|
|
43
53
|
/** Set CSS line-height on every block-level ancestor the current selection
|
|
44
54
|
* touches. Pass an empty string to clear back to the inherited default. */
|
|
45
55
|
applyLineHeight: (value: string) => void;
|
|
@@ -65,6 +75,8 @@ export type ToolbarCommandsApi = {
|
|
|
65
75
|
handleTableDeleteColumn: () => void;
|
|
66
76
|
/** Delete the whole table at the caret. */
|
|
67
77
|
handleTableDelete: () => void;
|
|
78
|
+
/** Set (or clear, with 'transparent') the background color of the current cell's row. */
|
|
79
|
+
handleTableRowBackground: (color: string) => void;
|
|
68
80
|
handleInsertCode: () => void;
|
|
69
81
|
handleInsertHorizontalRule: () => void;
|
|
70
82
|
handleSpeechResult: (text: string) => void;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
type Props = {
|
|
3
|
+
editorEl: HTMLElement | null;
|
|
4
|
+
open: boolean;
|
|
5
|
+
/** Called after any DOM mutation so the editor can sync localDraft. */
|
|
6
|
+
onMutate: () => void;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* Resize handles for <table>s inside the rich-text editor: drag a column
|
|
10
|
+
* border to resize the two adjacent columns, drag the right edge to resize
|
|
11
|
+
* the whole table, or use the width presets under the table. Column widths
|
|
12
|
+
* live on the first row's cells with `table-layout: fixed`, so every row
|
|
13
|
+
* follows them and the stored HTML renders the same once published.
|
|
14
|
+
* Portal'd to document.body so it escapes overflow/transform parents.
|
|
15
|
+
*/
|
|
16
|
+
export declare function TableResizeOverlay({ editorEl, open, onMutate }: Props): React.ReactPortal;
|
|
17
|
+
export {};
|
|
@@ -3,12 +3,12 @@ export declare const iconSx: {
|
|
|
3
3
|
readonly fontSize: 18;
|
|
4
4
|
};
|
|
5
5
|
export declare const btnBase: React.CSSProperties;
|
|
6
|
-
export declare
|
|
6
|
+
export declare function getBtnActive(theme: import('@mui/material/styles').Theme): React.CSSProperties;
|
|
7
7
|
export declare const popoverStyle: React.CSSProperties;
|
|
8
8
|
export declare const menuListStyle: React.CSSProperties;
|
|
9
9
|
export declare const menuItemStyle: React.CSSProperties;
|
|
10
10
|
/** Hover-tint applied to icon-style buttons. */
|
|
11
|
-
export declare
|
|
11
|
+
export declare function getHoverTint(theme: import('@mui/material/styles').Theme): string;
|
|
12
12
|
export declare const TOOLBAR_Z_INDEX = 1400;
|
|
13
13
|
export declare const TOOLBAR_POPOVER_Z_INDEX = 1410;
|
|
14
14
|
export declare const TOOLBAR_DIALOG_Z_INDEX = 1500;
|
|
@@ -2,7 +2,6 @@ export type ToolbarPosition = {
|
|
|
2
2
|
top: number;
|
|
3
3
|
left: number;
|
|
4
4
|
};
|
|
5
|
-
export declare const LINK_COLOR = "#2563eb";
|
|
6
5
|
export type FormatSnapshot = {
|
|
7
6
|
bold: boolean;
|
|
8
7
|
italic: boolean;
|
|
@@ -19,9 +18,6 @@ export type FormatSnapshot = {
|
|
|
19
18
|
blockLabel: string;
|
|
20
19
|
fontName: string;
|
|
21
20
|
fontSize: string;
|
|
22
|
-
/** Per-device font-size override read from the nearest wrapping
|
|
23
|
-
* `<span data-fs-*>` at the caret. Empty string means no override for
|
|
24
|
-
* that device — the block-level `fontSize` shows through. */
|
|
25
21
|
fontSizeDesktop: string;
|
|
26
22
|
fontSizeTablet: string;
|
|
27
23
|
fontSizeMobile: string;
|
|
@@ -44,4 +40,6 @@ export type LinkInsertParams = {
|
|
|
44
40
|
text: string;
|
|
45
41
|
url: string;
|
|
46
42
|
newWindow: boolean;
|
|
43
|
+
underline: boolean;
|
|
47
44
|
};
|
|
45
|
+
export declare const LINK_COLOR = "#2563eb";
|
|
@@ -2,6 +2,5 @@ import { default as React } from 'react';
|
|
|
2
2
|
type TEditorBlockWrapperProps = {
|
|
3
3
|
children: React.JSX.Element;
|
|
4
4
|
};
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
export default EditorBlockWrapper;
|
|
5
|
+
export default function EditorBlockWrapper({ children }: TEditorBlockWrapperProps): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
export {};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { SxProps, Theme } from '@mui/material';
|
|
2
|
+
export declare const TUNE_MENU_HEIGHT = 44;
|
|
3
|
+
export declare const TUNE_MENU_Z_INDEX = 1200;
|
|
4
|
+
export declare const pillSx: (theme: Theme) => SxProps<Theme>;
|
|
5
|
+
export declare const pillPositionedSx: (theme: Theme, position: {
|
|
6
|
+
top: number;
|
|
7
|
+
left: number;
|
|
8
|
+
}) => SxProps<Theme>;
|
|
9
|
+
export declare const pillHiddenSx: (theme: Theme) => SxProps<Theme>;
|
|
10
|
+
export declare const iconButtonSx: (theme: Theme) => SxProps<Theme>;
|
|
11
|
+
export declare const dangerIconButtonSx: (theme: Theme) => SxProps<Theme>;
|
|
12
|
+
export declare const dividerSx: (theme: Theme) => SxProps<Theme>;
|
|
13
|
+
export declare const iconSx: {
|
|
14
|
+
readonly fontSize: 18;
|
|
15
|
+
};
|
|
16
|
+
export declare const dragHandleSx: (theme: Theme) => SxProps<Theme>;
|
|
17
|
+
export declare const overflowMenuSx: (theme: Theme) => SxProps<Theme>;
|