easy-email-extensions 2.5.2-beta.0
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/lib/AttributePanel/AttributePanel.d.ts +3 -0
- package/lib/AttributePanel/components/UI/Help/HtmlEditor.d.ts +5 -0
- package/lib/AttributePanel/components/UI/Help/index.d.ts +5 -0
- package/lib/AttributePanel/components/attributes/Align.d.ts +1 -0
- package/lib/AttributePanel/components/attributes/AttributesPanelWrapper.d.ts +6 -0
- package/lib/AttributePanel/components/attributes/Background.d.ts +1 -0
- package/lib/AttributePanel/components/attributes/BackgroundColor.d.ts +3 -0
- package/lib/AttributePanel/components/attributes/Border.d.ts +1 -0
- package/lib/AttributePanel/components/attributes/BorderColor.d.ts +1 -0
- package/lib/AttributePanel/components/attributes/BorderStyle.d.ts +5 -0
- package/lib/AttributePanel/components/attributes/BorderWidth.d.ts +1 -0
- package/lib/AttributePanel/components/attributes/Color.d.ts +4 -0
- package/lib/AttributePanel/components/attributes/ContainerBackgroundColor.d.ts +3 -0
- package/lib/AttributePanel/components/attributes/Decoration.d.ts +1 -0
- package/lib/AttributePanel/components/attributes/Direction.d.ts +1 -0
- package/lib/AttributePanel/components/attributes/FontFamliy.d.ts +1 -0
- package/lib/AttributePanel/components/attributes/FontSize.d.ts +1 -0
- package/lib/AttributePanel/components/attributes/FontStyle.d.ts +3 -0
- package/lib/AttributePanel/components/attributes/FontWeight.d.ts +1 -0
- package/lib/AttributePanel/components/attributes/Height.d.ts +3 -0
- package/lib/AttributePanel/components/attributes/LetterSpacing.d.ts +1 -0
- package/lib/AttributePanel/components/attributes/LineHeight.d.ts +1 -0
- package/lib/AttributePanel/components/attributes/Link.d.ts +1 -0
- package/lib/AttributePanel/components/attributes/Margin.d.ts +1 -0
- package/lib/AttributePanel/components/attributes/MergeTags.d.ts +6 -0
- package/lib/AttributePanel/components/attributes/NavbarLinkPadding.d.ts +3 -0
- package/lib/AttributePanel/components/attributes/Padding.d.ts +5 -0
- package/lib/AttributePanel/components/attributes/TextAlign.d.ts +1 -0
- package/lib/AttributePanel/components/attributes/TextDecoration.d.ts +1 -0
- package/lib/AttributePanel/components/attributes/TextTransform.d.ts +1 -0
- package/lib/AttributePanel/components/attributes/VerticalAlign.d.ts +3 -0
- package/lib/AttributePanel/components/attributes/Width.d.ts +3 -0
- package/lib/AttributePanel/components/blocks/Accordion/index.d.ts +1 -0
- package/lib/AttributePanel/components/blocks/AccordionElement/index.d.ts +1 -0
- package/lib/AttributePanel/components/blocks/AccordionText/index.d.ts +1 -0
- package/lib/AttributePanel/components/blocks/AccordionTitle/index.d.ts +1 -0
- package/lib/AttributePanel/components/blocks/Button/index.d.ts +1 -0
- package/lib/AttributePanel/components/blocks/Carousel/index.d.ts +1 -0
- package/lib/AttributePanel/components/blocks/Column/index.d.ts +1 -0
- package/lib/AttributePanel/components/blocks/Divider/index.d.ts +1 -0
- package/lib/AttributePanel/components/blocks/Group/index.d.ts +1 -0
- package/lib/AttributePanel/components/blocks/Hero/index.d.ts +1 -0
- package/lib/AttributePanel/components/blocks/Image/index.d.ts +1 -0
- package/lib/AttributePanel/components/blocks/Navbar/index.d.ts +1 -0
- package/lib/AttributePanel/components/blocks/Page/index.d.ts +1 -0
- package/lib/AttributePanel/components/blocks/Raw/index.d.ts +1 -0
- package/lib/AttributePanel/components/blocks/Section/index.d.ts +1 -0
- package/lib/AttributePanel/components/blocks/Social/index.d.ts +1 -0
- package/lib/AttributePanel/components/blocks/Spacer/index.d.ts +1 -0
- package/lib/AttributePanel/components/blocks/Table/index.d.ts +1 -0
- package/lib/AttributePanel/components/blocks/Text/index.d.ts +1 -0
- package/lib/AttributePanel/components/blocks/Wrapper/index.d.ts +1 -0
- package/lib/AttributePanel/components/blocks/index.d.ts +42 -0
- package/lib/AttributePanel/components/provider/PresetColorsProvider/index.d.ts +6 -0
- package/lib/AttributePanel/components/provider/SelectionRangeProvider/index.d.ts +6 -0
- package/lib/AttributePanel/hooks/useSelectionRange.d.ts +6 -0
- package/lib/AttributePanel/index.d.ts +3 -0
- package/lib/AttributePanel/utils/BlockAttributeConfigurationManager.d.ts +10 -0
- package/lib/AttributePanel/utils/InputNumberAdapter.d.ts +2 -0
- package/lib/AttributePanel/utils/PromiseEach.d.ts +1 -0
- package/lib/AttributePanel/utils/Uploader.d.ts +35 -0
- package/lib/AttributePanel/utils/awaitForElement.d.ts +4 -0
- package/lib/AttributePanel/utils/classnames.d.ts +1 -0
- package/lib/AttributePanel/utils/getEditNode.d.ts +2 -0
- package/lib/AttributePanel/utils/getImg.d.ts +8 -0
- package/lib/AttributePanel/utils/onDrag.d.ts +10 -0
- package/lib/AttributePanel/utils/previewLoadImage.d.ts +1 -0
- package/lib/BlockLayer/components/BlockTree/components/BlockTreeItem/index.d.ts +23 -0
- package/lib/BlockLayer/components/BlockTree/components/TreeCollapse.d.ts +6 -0
- package/lib/BlockLayer/components/BlockTree/index.d.ts +29 -0
- package/lib/BlockLayer/components/ContextMenu/index.d.ts +14 -0
- package/lib/BlockLayer/components/EyeIcon/index.d.ts +7 -0
- package/lib/BlockLayer/index.d.ts +7 -0
- package/lib/InteractivePrompt/components/FocusTooltip.d.ts +1 -0
- package/lib/InteractivePrompt/components/HoverTooltip.d.ts +1 -0
- package/lib/InteractivePrompt/components/Toolbar.d.ts +4 -0
- package/lib/InteractivePrompt/constants.d.ts +15 -0
- package/lib/InteractivePrompt/index.d.ts +1 -0
- package/lib/InteractivePrompt/utils/awaitForElement.d.ts +4 -0
- package/lib/ShortcutToolbar/ShortcutToolbar.d.ts +1 -0
- package/lib/ShortcutToolbar/components/BlockMaskWrapper/index.d.ts +6 -0
- package/lib/ShortcutToolbar/components/BlocksPanel/index.d.ts +6 -0
- package/lib/ShortcutToolbar/components/BlocksPanel/presetTemplate/AccordionBlockItem/index.d.ts +1 -0
- package/lib/ShortcutToolbar/components/BlocksPanel/presetTemplate/ButtonBlockItem/index.d.ts +1 -0
- package/lib/ShortcutToolbar/components/BlocksPanel/presetTemplate/CarouselBlockItem/index.d.ts +1 -0
- package/lib/ShortcutToolbar/components/BlocksPanel/presetTemplate/ColumnBlockItem/index.d.ts +1 -0
- package/lib/ShortcutToolbar/components/BlocksPanel/presetTemplate/DividerBlockItem/index.d.ts +1 -0
- package/lib/ShortcutToolbar/components/BlocksPanel/presetTemplate/GroupBlockItem/index.d.ts +1 -0
- package/lib/ShortcutToolbar/components/BlocksPanel/presetTemplate/HeroBlockItem/index.d.ts +1 -0
- package/lib/ShortcutToolbar/components/BlocksPanel/presetTemplate/ImageBlockItem/index.d.ts +1 -0
- package/lib/ShortcutToolbar/components/BlocksPanel/presetTemplate/NavbarBlockItem/index.d.ts +1 -0
- package/lib/ShortcutToolbar/components/BlocksPanel/presetTemplate/RawBlockItem/index.d.ts +1 -0
- package/lib/ShortcutToolbar/components/BlocksPanel/presetTemplate/SectionBlockItem/index.d.ts +1 -0
- package/lib/ShortcutToolbar/components/BlocksPanel/presetTemplate/SocialBlockItem/index.d.ts +1 -0
- package/lib/ShortcutToolbar/components/BlocksPanel/presetTemplate/SpacerBlockItem/index.d.ts +1 -0
- package/lib/ShortcutToolbar/components/BlocksPanel/presetTemplate/TextBlockItem/index.d.ts +1 -0
- package/lib/ShortcutToolbar/components/BlocksPanel/presetTemplate/WrapperBlockItem/index.d.ts +1 -0
- package/lib/ShortcutToolbar/components/BlocksPanel/presetTemplate/index.d.ts +18 -0
- package/lib/ShortcutToolbar/components/Picture/index.d.ts +7 -0
- package/lib/ShortcutToolbar/index.d.ts +4 -0
- package/lib/ShortcutToolbar/utils/BlockMarketManager.d.ts +32 -0
- package/lib/ShortcutToolbar/utils/getImg.d.ts +68 -0
- package/lib/SimpleFrame/SimpleFrame.d.ts +2 -0
- package/lib/SimpleFrame/index.d.ts +1 -0
- package/lib/SourceCodePanel/index.d.ts +1 -0
- package/lib/components/AddToCollection/index.d.ts +5 -0
- package/lib/components/Form/AddFont.d.ts +1 -0
- package/lib/components/Form/AutoComplete.d.ts +11 -0
- package/lib/components/Form/ChexkBoxGroup.d.ts +15 -0
- package/lib/components/Form/CodemirrorEditor/index.d.ts +8 -0
- package/lib/components/Form/ColorPicker.d.ts +10 -0
- package/lib/components/Form/EditTab.d.ts +10 -0
- package/lib/components/Form/ImageUploader/index.d.ts +8 -0
- package/lib/components/Form/InlineTextField/index.d.ts +8 -0
- package/lib/components/Form/Input.d.ts +7 -0
- package/lib/components/Form/RadioGroup.d.ts +13 -0
- package/lib/components/Form/RichTextField/components/FontFamily/index.d.ts +3 -0
- package/lib/components/Form/RichTextField/components/FontSizeList/index.d.ts +3 -0
- package/lib/components/Form/RichTextField/components/Heading/index.d.ts +3 -0
- package/lib/components/Form/RichTextField/components/Link/index.d.ts +12 -0
- package/lib/components/Form/RichTextField/components/TextToolbar/MergeTags.d.ts +6 -0
- package/lib/components/Form/RichTextField/components/TextToolbar/index.d.ts +5 -0
- package/lib/components/Form/RichTextField/components/ToolItem/index.d.ts +7 -0
- package/lib/components/Form/RichTextField/index.d.ts +3 -0
- package/lib/components/Form/Select.d.ts +11 -0
- package/lib/components/Form/TreeSelect.d.ts +16 -0
- package/lib/components/Form/UploadField.d.ts +8 -0
- package/lib/components/Form/enhancer.d.ts +20 -0
- package/lib/components/Form/index.d.ts +36 -0
- package/lib/components/ShadowDom/index.d.ts +2 -0
- package/lib/hooks/useAddToCollection.d.ts +6 -0
- package/lib/index.d.ts +7 -0
- package/lib/index.js +7 -0
- package/lib/index.js.map +1 -0
- package/lib/index2.js +52688 -0
- package/lib/index2.js.map +1 -0
- package/lib/index3.js +11645 -0
- package/lib/index3.js.map +1 -0
- package/lib/style.css +1 -0
- package/lib/utils/awaitForElement.d.ts +4 -0
- package/lib/utils/classnames.d.ts +1 -0
- package/package.json +78 -0
- package/readme.md +130 -0
@@ -0,0 +1 @@
|
|
1
|
+
export declare function Align(): JSX.Element;
|
@@ -0,0 +1 @@
|
|
1
|
+
export declare function Background(): JSX.Element;
|
@@ -0,0 +1 @@
|
|
1
|
+
export declare function Border(): JSX.Element;
|
@@ -0,0 +1 @@
|
|
1
|
+
export declare function BorderColor(): JSX.Element;
|
@@ -0,0 +1 @@
|
|
1
|
+
export declare function BorderWidth(): JSX.Element;
|
@@ -0,0 +1 @@
|
|
1
|
+
export declare function Decoration(): JSX.Element;
|
@@ -0,0 +1 @@
|
|
1
|
+
export declare function Direction(): JSX.Element;
|
@@ -0,0 +1 @@
|
|
1
|
+
export declare function FontFamily(): JSX.Element;
|
@@ -0,0 +1 @@
|
|
1
|
+
export declare function FontSize(): JSX.Element;
|
@@ -0,0 +1 @@
|
|
1
|
+
export declare function FontWeight(): JSX.Element;
|
@@ -0,0 +1 @@
|
|
1
|
+
export declare function LetterSpacing(): JSX.Element;
|
@@ -0,0 +1 @@
|
|
1
|
+
export declare function LineHeight(): JSX.Element;
|
@@ -0,0 +1 @@
|
|
1
|
+
export declare function Link(): JSX.Element;
|
@@ -0,0 +1 @@
|
|
1
|
+
export declare function Margin(): JSX.Element;
|
@@ -0,0 +1 @@
|
|
1
|
+
export declare function TextAlign(): JSX.Element;
|
@@ -0,0 +1 @@
|
|
1
|
+
export declare function TextDecoration(): JSX.Element;
|
@@ -0,0 +1 @@
|
|
1
|
+
export declare function TextTransform(): JSX.Element;
|
@@ -0,0 +1 @@
|
|
1
|
+
export declare function Accordion(): JSX.Element;
|
@@ -0,0 +1 @@
|
|
1
|
+
export declare function AccordionElement(): JSX.Element;
|
@@ -0,0 +1 @@
|
|
1
|
+
export declare function AccordionText(): JSX.Element;
|
@@ -0,0 +1 @@
|
|
1
|
+
export declare function AccordionTitle(): JSX.Element;
|
@@ -0,0 +1 @@
|
|
1
|
+
export declare function Button(): JSX.Element;
|
@@ -0,0 +1 @@
|
|
1
|
+
export declare function Carousel(): JSX.Element;
|
@@ -0,0 +1 @@
|
|
1
|
+
export declare function Column(): JSX.Element;
|
@@ -0,0 +1 @@
|
|
1
|
+
export declare function Divider(): JSX.Element;
|
@@ -0,0 +1 @@
|
|
1
|
+
export declare function Group(): JSX.Element;
|
@@ -0,0 +1 @@
|
|
1
|
+
export declare function Hero(): JSX.Element;
|
@@ -0,0 +1 @@
|
|
1
|
+
export declare function Image(): JSX.Element;
|
@@ -0,0 +1 @@
|
|
1
|
+
export declare function Navbar(): JSX.Element;
|
@@ -0,0 +1 @@
|
|
1
|
+
export declare function Page(): JSX.Element | null;
|
@@ -0,0 +1 @@
|
|
1
|
+
export declare function Raw(): JSX.Element;
|
@@ -0,0 +1 @@
|
|
1
|
+
export declare function Section(): JSX.Element;
|
@@ -0,0 +1 @@
|
|
1
|
+
export declare function Social(): JSX.Element;
|
@@ -0,0 +1 @@
|
|
1
|
+
export declare function Spacer(): JSX.Element;
|
@@ -0,0 +1 @@
|
|
1
|
+
export declare function Table(): JSX.Element;
|
@@ -0,0 +1 @@
|
|
1
|
+
export declare function Text(): JSX.Element;
|
@@ -0,0 +1 @@
|
|
1
|
+
export declare function Wrapper(): JSX.Element;
|
@@ -0,0 +1,42 @@
|
|
1
|
+
import { Page } from './Page';
|
2
|
+
import { Section } from './Section';
|
3
|
+
import { Column } from './Column';
|
4
|
+
import { Text } from './Text';
|
5
|
+
import { Image } from './Image';
|
6
|
+
import { Group } from './Group';
|
7
|
+
import { Button } from './Button';
|
8
|
+
import { Divider } from './Divider';
|
9
|
+
import { Wrapper } from './Wrapper';
|
10
|
+
import { Spacer } from './Spacer';
|
11
|
+
import { Raw } from './Raw';
|
12
|
+
import { Accordion } from './Accordion';
|
13
|
+
import { AccordionElement } from './AccordionElement';
|
14
|
+
import { AccordionTitle } from './AccordionTitle';
|
15
|
+
import { AccordionText } from './AccordionText';
|
16
|
+
import { Carousel } from './Carousel';
|
17
|
+
import { Hero } from './Hero';
|
18
|
+
import { Navbar } from './Navbar';
|
19
|
+
import { Social } from './Social';
|
20
|
+
import { Table } from './Table';
|
21
|
+
export declare const blocks: {
|
22
|
+
page: typeof Page;
|
23
|
+
section: typeof Section;
|
24
|
+
column: typeof Column;
|
25
|
+
text: typeof Text;
|
26
|
+
image: typeof Image;
|
27
|
+
group: typeof Group;
|
28
|
+
button: typeof Button;
|
29
|
+
divider: typeof Divider;
|
30
|
+
wrapper: typeof Wrapper;
|
31
|
+
spacer: typeof Spacer;
|
32
|
+
raw: typeof Raw;
|
33
|
+
accordion: typeof Accordion;
|
34
|
+
"accordion-element": typeof AccordionElement;
|
35
|
+
"accordion-title": typeof AccordionTitle;
|
36
|
+
"accordion-text": typeof AccordionText;
|
37
|
+
carousel: typeof Carousel;
|
38
|
+
hero: typeof Hero;
|
39
|
+
navbar: typeof Navbar;
|
40
|
+
social: typeof Social;
|
41
|
+
table: typeof Table;
|
42
|
+
};
|
@@ -0,0 +1,10 @@
|
|
1
|
+
declare type ObjectComponent = {
|
2
|
+
[key: string]: () => JSX.Element | null;
|
3
|
+
};
|
4
|
+
export declare class BlockAttributeConfigurationManager {
|
5
|
+
private static map;
|
6
|
+
static add(componentMap: ObjectComponent): void;
|
7
|
+
static get<T extends ObjectComponent>(name: keyof T): string;
|
8
|
+
static getMap(): ObjectComponent;
|
9
|
+
}
|
10
|
+
export {};
|
@@ -0,0 +1 @@
|
|
1
|
+
export declare function PromiseEach(promiseLikes: PromiseLike<any>[]): Promise<unknown>;
|
@@ -0,0 +1,35 @@
|
|
1
|
+
interface Options {
|
2
|
+
limit?: number;
|
3
|
+
accept?: string;
|
4
|
+
minSize?: number;
|
5
|
+
maxSize?: number;
|
6
|
+
autoUpload?: boolean;
|
7
|
+
}
|
8
|
+
export declare type UploadItem = {
|
9
|
+
idx: string;
|
10
|
+
url: string;
|
11
|
+
status: 'pending' | 'done' | 'error';
|
12
|
+
};
|
13
|
+
export declare type UploaderEventMap = {
|
14
|
+
start: (data: UploadItem[]) => void;
|
15
|
+
progress: (data: UploadItem[]) => void;
|
16
|
+
end: (data: UploadItem[]) => void;
|
17
|
+
};
|
18
|
+
export declare type UploaderServer = (file: File) => Promise<string>;
|
19
|
+
export declare class Uploader {
|
20
|
+
private options;
|
21
|
+
private el;
|
22
|
+
private uploadServer;
|
23
|
+
private handler;
|
24
|
+
constructor(uploadServer: UploaderServer, options: Options);
|
25
|
+
private createInput;
|
26
|
+
uploadFiles(files: File[]): Promise<void>;
|
27
|
+
private uploadFile;
|
28
|
+
private checkFile;
|
29
|
+
private checkTypes;
|
30
|
+
private checkSize;
|
31
|
+
chooseFile(): void;
|
32
|
+
on<K extends keyof UploaderEventMap>(event: K, fn: UploaderEventMap[K]): void;
|
33
|
+
off<K extends keyof UploaderEventMap>(event: K, fn: UploaderEventMap[K]): void;
|
34
|
+
}
|
35
|
+
export {};
|
@@ -0,0 +1 @@
|
|
1
|
+
export declare function classnames(...rest: any[]): string;
|
@@ -0,0 +1,10 @@
|
|
1
|
+
export declare const isMouseEvent: (event: MouseEvent | TouchEvent) => event is MouseEvent;
|
2
|
+
/**
|
3
|
+
*
|
4
|
+
* @param event
|
5
|
+
*/
|
6
|
+
export declare const onDrag: ({ event, onMove, onEnd, }: {
|
7
|
+
event: TouchEvent | MouseEvent;
|
8
|
+
onMove: (x: number, y: number) => void;
|
9
|
+
onEnd?: (() => void) | undefined;
|
10
|
+
}) => void;
|
@@ -0,0 +1 @@
|
|
1
|
+
export declare function previewLoadImage(url: string): Promise<HTMLImageElement>;
|
@@ -0,0 +1,23 @@
|
|
1
|
+
import { ReactSortableProps } from 'react-sortablejs';
|
2
|
+
import React from 'react';
|
3
|
+
export declare const DATA_ATTRIBUTE_ID = "data-tree-node-id";
|
4
|
+
export declare const DATA_ATTRIBUTE_INDEX = "data-tree-node-index";
|
5
|
+
export interface TreeNode<T> {
|
6
|
+
id: string;
|
7
|
+
children?: T[];
|
8
|
+
}
|
9
|
+
export interface BlockTreeItemProps<T> {
|
10
|
+
indent: number;
|
11
|
+
index: number;
|
12
|
+
nodeData: T;
|
13
|
+
renderTitle: (data: T) => React.ReactNode;
|
14
|
+
defaultExpandAll: boolean;
|
15
|
+
onSelect: (id: string) => void;
|
16
|
+
onMouseEnter?: (id: string, event: React.MouseEvent) => void;
|
17
|
+
onContextMenu?: (nodeData: T, event: React.MouseEvent) => void;
|
18
|
+
onDragStart: ReactSortableProps<T>['onStart'];
|
19
|
+
onDragMove: ReactSortableProps<T>['onMove'];
|
20
|
+
onDragEnd: ReactSortableProps<T>['onEnd'];
|
21
|
+
onSpill: ReactSortableProps<T>['onSpill'];
|
22
|
+
}
|
23
|
+
export declare function BlockTreeItem<T extends TreeNode<T>>(props: BlockTreeItemProps<T>): JSX.Element;
|
@@ -0,0 +1,29 @@
|
|
1
|
+
import React from 'react';
|
2
|
+
import { TreeNode } from './components/BlockTreeItem';
|
3
|
+
export interface BlockTreeProps<T extends TreeNode<T>> {
|
4
|
+
treeData: T[];
|
5
|
+
selectedId?: string;
|
6
|
+
onSelect: (selectedId: string) => void;
|
7
|
+
onContextMenu?: (nodeData: T, ev: React.MouseEvent) => void;
|
8
|
+
onMouseLeave?: () => void;
|
9
|
+
onMouseEnter?: (id: string, event: React.MouseEvent) => void;
|
10
|
+
renderTitle: (data: T) => React.ReactNode;
|
11
|
+
defaultExpandAll?: boolean;
|
12
|
+
allowDrop: (params: {
|
13
|
+
dragNode: T;
|
14
|
+
dropNode: T;
|
15
|
+
event: DragEvent;
|
16
|
+
dragIndex: number;
|
17
|
+
dropIndex: number;
|
18
|
+
willInsertAfter: boolean;
|
19
|
+
}) => boolean;
|
20
|
+
onDrop: (params: {
|
21
|
+
dragNode: T;
|
22
|
+
dropNode: T;
|
23
|
+
event: DragEvent;
|
24
|
+
dragIndex: number;
|
25
|
+
dropIndex: number;
|
26
|
+
willInsertAfter: boolean;
|
27
|
+
}) => void;
|
28
|
+
}
|
29
|
+
export declare function BlockTree<T extends TreeNode<T>>(props: BlockTreeProps<T>): JSX.Element;
|
@@ -0,0 +1,14 @@
|
|
1
|
+
import React from 'react';
|
2
|
+
import { useBlock } from 'easy-email-editor';
|
3
|
+
import { IBlockDataWithId } from '../../../BlockLayer';
|
4
|
+
export declare function ContextMenu({ moveBlock, copyBlock, removeBlock, contextMenuData, onClose, }: {
|
5
|
+
onClose: (ev?: React.MouseEvent) => void;
|
6
|
+
moveBlock: ReturnType<typeof useBlock>['moveBlock'];
|
7
|
+
copyBlock: ReturnType<typeof useBlock>['copyBlock'];
|
8
|
+
removeBlock: ReturnType<typeof useBlock>['removeBlock'];
|
9
|
+
contextMenuData: {
|
10
|
+
blockData: IBlockDataWithId;
|
11
|
+
left: number;
|
12
|
+
top: number;
|
13
|
+
};
|
14
|
+
}): JSX.Element;
|
@@ -0,0 +1,7 @@
|
|
1
|
+
import React from 'react';
|
2
|
+
import { IBlockDataWithId } from '../..';
|
3
|
+
export declare function EyeIcon({ blockData, hidden, onToggleVisible, }: {
|
4
|
+
blockData: IBlockDataWithId;
|
5
|
+
hidden?: boolean;
|
6
|
+
onToggleVisible: (blockData: IBlockDataWithId, ev: React.MouseEvent) => void;
|
7
|
+
}): JSX.Element | null;
|
@@ -0,0 +1 @@
|
|
1
|
+
export declare function FocusTooltip(): JSX.Element | null;
|
@@ -0,0 +1 @@
|
|
1
|
+
export declare function HoverTooltip(): JSX.Element | null;
|
@@ -0,0 +1,15 @@
|
|
1
|
+
export declare const DRAG_HOVER_CLASSNAME = "block-dragover";
|
2
|
+
export declare const BLOCK_SELECTED_CLASSNAME = "block-selected";
|
3
|
+
export declare const BLOCK_HOVER_CLASSNAME = "block-hover";
|
4
|
+
export declare const BLOCK_HIDDEN_CLASSNAME = "block-hidden";
|
5
|
+
export declare const styleZIndex: {
|
6
|
+
SELECT_INDEX: number;
|
7
|
+
HOVER_INDEX: number;
|
8
|
+
DRAG_INDEX: number;
|
9
|
+
SELECT_BLOCK_TOOLTIP: number;
|
10
|
+
HOVER_BLOCK_TOOLTIP: number;
|
11
|
+
DRAG_BLOCK_TOOLTIP: number;
|
12
|
+
SELECT_BLOCK_CHILD: number;
|
13
|
+
HOVER_BLOCK_CHILD: number;
|
14
|
+
DRAG_BLOCK_CHILD: number;
|
15
|
+
};
|
@@ -0,0 +1 @@
|
|
1
|
+
export declare function InteractivePrompt(): JSX.Element | null;
|
@@ -0,0 +1 @@
|
|
1
|
+
export declare function ShortcutToolbar(): JSX.Element;
|
package/lib/ShortcutToolbar/components/BlocksPanel/presetTemplate/AccordionBlockItem/index.d.ts
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
export declare function AccordionBlockItem(): JSX.Element;
|
@@ -0,0 +1 @@
|
|
1
|
+
export declare function ButtonBlockItem(): JSX.Element;
|
package/lib/ShortcutToolbar/components/BlocksPanel/presetTemplate/CarouselBlockItem/index.d.ts
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
export declare function CarouselBlockItem(): JSX.Element;
|
@@ -0,0 +1 @@
|
|
1
|
+
export declare function ColumnBlockItem(): JSX.Element;
|
@@ -0,0 +1 @@
|
|
1
|
+
export declare function DividerBlockItem(): JSX.Element;
|
@@ -0,0 +1 @@
|
|
1
|
+
export declare function GroupBlockItem(): JSX.Element;
|
@@ -0,0 +1 @@
|
|
1
|
+
export declare function HeroBlockItem(): JSX.Element;
|
@@ -0,0 +1 @@
|
|
1
|
+
export declare function ImageBlockItem(): JSX.Element;
|
@@ -0,0 +1 @@
|
|
1
|
+
export declare function NavbarBlockItem(): JSX.Element;
|
@@ -0,0 +1 @@
|
|
1
|
+
export declare function RawBlockItem(): JSX.Element;
|
@@ -0,0 +1 @@
|
|
1
|
+
export declare function SectionBlockItem(): JSX.Element;
|
@@ -0,0 +1 @@
|
|
1
|
+
export declare function SocialBlockItem(): JSX.Element;
|
@@ -0,0 +1 @@
|
|
1
|
+
export declare function SpacerBlockItem(): JSX.Element;
|
@@ -0,0 +1 @@
|
|
1
|
+
export declare function TextBlockItem(): JSX.Element;
|
@@ -0,0 +1 @@
|
|
1
|
+
export declare function WrapperBlockItem(): JSX.Element;
|
@@ -0,0 +1,18 @@
|
|
1
|
+
import { BasicType } from 'easy-email-core';
|
2
|
+
import { TextBlockItem } from './TextBlockItem';
|
3
|
+
import { ImageBlockItem } from './ImageBlockItem';
|
4
|
+
export declare const defaultCategories: {
|
5
|
+
title: string;
|
6
|
+
name: string;
|
7
|
+
blocks: ({
|
8
|
+
type: BasicType;
|
9
|
+
title: string;
|
10
|
+
description: string;
|
11
|
+
component: typeof TextBlockItem;
|
12
|
+
} | {
|
13
|
+
type: BasicType;
|
14
|
+
title: string;
|
15
|
+
description: JSX.Element;
|
16
|
+
component: typeof ImageBlockItem;
|
17
|
+
})[];
|
18
|
+
}[];
|