easy-email-extensions 3.0.13 → 3.0.14
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 -3
- package/lib/AttributePanel/components/UI/Help/index.d.ts +7 -7
- package/lib/AttributePanel/components/UI/HtmlEditor.d.ts +5 -5
- package/lib/AttributePanel/components/attributes/Align.d.ts +1 -1
- package/lib/AttributePanel/components/attributes/AttributesPanelWrapper/index.d.ts +6 -6
- package/lib/AttributePanel/components/attributes/Background.d.ts +1 -1
- package/lib/AttributePanel/components/attributes/BackgroundColor.d.ts +3 -3
- package/lib/AttributePanel/components/attributes/Border.d.ts +1 -1
- package/lib/AttributePanel/components/attributes/BorderColor.d.ts +1 -1
- package/lib/AttributePanel/components/attributes/BorderStyle.d.ts +5 -5
- package/lib/AttributePanel/components/attributes/BorderWidth.d.ts +1 -1
- package/lib/AttributePanel/components/attributes/Color.d.ts +4 -4
- package/lib/AttributePanel/components/attributes/ContainerBackgroundColor.d.ts +3 -3
- package/lib/AttributePanel/components/attributes/Decoration.d.ts +1 -1
- package/lib/AttributePanel/components/attributes/Direction.d.ts +1 -1
- package/lib/AttributePanel/components/attributes/FontFamily.d.ts +1 -1
- package/lib/AttributePanel/components/attributes/FontSize.d.ts +1 -1
- package/lib/AttributePanel/components/attributes/FontStyle.d.ts +3 -3
- package/lib/AttributePanel/components/attributes/FontWeight.d.ts +1 -1
- package/lib/AttributePanel/components/attributes/Height.d.ts +3 -3
- package/lib/AttributePanel/components/attributes/LetterSpacing.d.ts +1 -1
- package/lib/AttributePanel/components/attributes/LineHeight.d.ts +1 -1
- package/lib/AttributePanel/components/attributes/Link.d.ts +1 -1
- package/lib/AttributePanel/components/attributes/Margin.d.ts +1 -1
- package/lib/AttributePanel/components/attributes/MergeTags.d.ts +6 -6
- package/lib/AttributePanel/components/attributes/NavbarLinkPadding.d.ts +3 -3
- package/lib/AttributePanel/components/attributes/Padding.d.ts +5 -5
- package/lib/AttributePanel/components/attributes/TextAlign.d.ts +1 -1
- package/lib/AttributePanel/components/attributes/TextDecoration.d.ts +1 -1
- package/lib/AttributePanel/components/attributes/TextTransform.d.ts +1 -1
- package/lib/AttributePanel/components/attributes/VerticalAlign.d.ts +3 -3
- package/lib/AttributePanel/components/attributes/Width.d.ts +3 -3
- package/lib/AttributePanel/components/attributes/index.d.ts +29 -29
- package/lib/AttributePanel/components/blocks/Accordion/index.d.ts +1 -1
- package/lib/AttributePanel/components/blocks/AccordionElement/index.d.ts +1 -1
- package/lib/AttributePanel/components/blocks/AccordionText/index.d.ts +1 -1
- package/lib/AttributePanel/components/blocks/AccordionTitle/index.d.ts +1 -1
- package/lib/AttributePanel/components/blocks/Button/index.d.ts +1 -1
- package/lib/AttributePanel/components/blocks/Carousel/index.d.ts +1 -1
- package/lib/AttributePanel/components/blocks/Column/index.d.ts +1 -1
- package/lib/AttributePanel/components/blocks/Divider/index.d.ts +1 -1
- package/lib/AttributePanel/components/blocks/Group/index.d.ts +1 -1
- package/lib/AttributePanel/components/blocks/Hero/index.d.ts +1 -1
- package/lib/AttributePanel/components/blocks/Image/index.d.ts +1 -1
- package/lib/AttributePanel/components/blocks/Navbar/index.d.ts +1 -1
- package/lib/AttributePanel/components/blocks/Page/index.d.ts +1 -1
- package/lib/AttributePanel/components/blocks/Raw/index.d.ts +1 -1
- package/lib/AttributePanel/components/blocks/Section/index.d.ts +1 -1
- package/lib/AttributePanel/components/blocks/Social/index.d.ts +1 -1
- package/lib/AttributePanel/components/blocks/Spacer/index.d.ts +1 -1
- package/lib/AttributePanel/components/blocks/Table/index.d.ts +1 -1
- package/lib/AttributePanel/components/blocks/Text/index.d.ts +1 -1
- package/lib/AttributePanel/components/blocks/Wrapper/index.d.ts +1 -1
- package/lib/AttributePanel/components/blocks/index.d.ts +42 -42
- package/lib/AttributePanel/components/provider/PresetColorsProvider/index.d.ts +6 -6
- package/lib/AttributePanel/components/provider/SelectionRangeProvider/index.d.ts +6 -6
- package/lib/AttributePanel/hooks/useSelectionRange.d.ts +6 -6
- package/lib/AttributePanel/index.d.ts +3 -3
- package/lib/AttributePanel/utils/BlockAttributeConfigurationManager.d.ts +10 -10
- package/lib/AttributePanel/utils/InputNumberAdapter.d.ts +2 -2
- package/lib/AttributePanel/utils/PromiseEach.d.ts +1 -1
- package/lib/AttributePanel/utils/Uploader.d.ts +35 -35
- package/lib/AttributePanel/utils/awaitForElement.d.ts +4 -4
- package/lib/AttributePanel/utils/classnames.d.ts +1 -1
- package/lib/AttributePanel/utils/getImg.d.ts +8 -8
- package/lib/AttributePanel/utils/onDrag.d.ts +10 -10
- package/lib/AttributePanel/utils/previewLoadImage.d.ts +1 -1
- package/lib/BlockLayer/components/BlockTree/components/BlockTreeItem/index.d.ts +23 -23
- package/lib/BlockLayer/components/BlockTree/components/TreeCollapse.d.ts +6 -6
- package/lib/BlockLayer/components/BlockTree/index.d.ts +29 -29
- package/lib/BlockLayer/components/ContextMenu/index.d.ts +14 -14
- package/lib/BlockLayer/components/EyeIcon/index.d.ts +7 -7
- package/lib/BlockLayer/index.d.ts +7 -7
- package/lib/InteractivePrompt/components/FocusTooltip.d.ts +1 -1
- package/lib/InteractivePrompt/components/HoverTooltip.d.ts +1 -1
- package/lib/InteractivePrompt/components/Toolbar.d.ts +5 -5
- package/lib/InteractivePrompt/index.d.ts +1 -1
- package/lib/InteractivePrompt/utils/awaitForElement.d.ts +4 -4
- package/lib/ShortcutToolbar/ShortcutToolbar.d.ts +1 -1
- package/lib/ShortcutToolbar/components/BlockMaskWrapper/index.d.ts +6 -6
- package/lib/ShortcutToolbar/components/BlocksPanel/index.d.ts +2 -2
- package/lib/ShortcutToolbar/components/BlocksPanel/presetTemplate/AccordionBlockItem/index.d.ts +1 -1
- package/lib/ShortcutToolbar/components/BlocksPanel/presetTemplate/ButtonBlockItem/index.d.ts +1 -1
- package/lib/ShortcutToolbar/components/BlocksPanel/presetTemplate/CarouselBlockItem/index.d.ts +1 -1
- package/lib/ShortcutToolbar/components/BlocksPanel/presetTemplate/ColumnBlockItem/index.d.ts +1 -1
- package/lib/ShortcutToolbar/components/BlocksPanel/presetTemplate/DividerBlockItem/index.d.ts +1 -1
- package/lib/ShortcutToolbar/components/BlocksPanel/presetTemplate/GroupBlockItem/index.d.ts +1 -1
- package/lib/ShortcutToolbar/components/BlocksPanel/presetTemplate/HeroBlockItem/index.d.ts +1 -1
- package/lib/ShortcutToolbar/components/BlocksPanel/presetTemplate/ImageBlockItem/index.d.ts +1 -1
- package/lib/ShortcutToolbar/components/BlocksPanel/presetTemplate/NavbarBlockItem/index.d.ts +1 -1
- package/lib/ShortcutToolbar/components/BlocksPanel/presetTemplate/RawBlockItem/index.d.ts +1 -1
- package/lib/ShortcutToolbar/components/BlocksPanel/presetTemplate/SectionBlockItem/index.d.ts +1 -1
- package/lib/ShortcutToolbar/components/BlocksPanel/presetTemplate/SocialBlockItem/index.d.ts +1 -1
- package/lib/ShortcutToolbar/components/BlocksPanel/presetTemplate/SpacerBlockItem/index.d.ts +1 -1
- package/lib/ShortcutToolbar/components/BlocksPanel/presetTemplate/TextBlockItem/index.d.ts +1 -1
- package/lib/ShortcutToolbar/components/BlocksPanel/presetTemplate/WrapperBlockItem/index.d.ts +1 -1
- package/lib/ShortcutToolbar/components/BlocksPanel/presetTemplate/index.d.ts +18 -18
- package/lib/ShortcutToolbar/components/Picture/index.d.ts +7 -7
- package/lib/ShortcutToolbar/index.d.ts +4 -4
- package/lib/ShortcutToolbar/utils/BlockMarketManager.d.ts +32 -32
- package/lib/ShortcutToolbar/utils/getImg.d.ts +68 -68
- package/lib/SimpleLayout/SimpleLayout.d.ts +2 -2
- package/lib/SimpleLayout/index.d.ts +1 -1
- package/lib/SourceCodePanel/index.d.ts +1 -1
- package/lib/components/AddToCollection/index.d.ts +5 -5
- package/lib/components/Form/AddFont.d.ts +1 -1
- package/lib/components/Form/AutoComplete.d.ts +11 -11
- package/lib/components/Form/CheckBoxGroup.d.ts +14 -14
- package/lib/components/Form/CodemirrorEditor/index.d.ts +8 -8
- package/lib/components/Form/ColorPicker.d.ts +10 -10
- package/lib/components/Form/EditTab.d.ts +10 -10
- package/lib/components/Form/ImageUploader/index.d.ts +8 -8
- package/lib/components/Form/InlineTextField/index.d.ts +7 -7
- package/lib/components/Form/Input.d.ts +7 -7
- package/lib/components/Form/RadioGroup.d.ts +13 -13
- package/lib/components/Form/RichTextField/index.d.ts +2 -2
- package/lib/components/Form/RichTextToolBar/RichTextToolBar.d.ts +1 -1
- package/lib/components/Form/RichTextToolBar/components/FontFamily/index.d.ts +3 -3
- package/lib/components/Form/RichTextToolBar/components/FontSizeList/index.d.ts +3 -3
- package/lib/components/Form/RichTextToolBar/components/Heading/index.d.ts +3 -3
- package/lib/components/Form/RichTextToolBar/components/Link/index.d.ts +12 -12
- package/lib/components/Form/RichTextToolBar/components/MergeTags/MergeTags.d.ts +6 -6
- package/lib/components/Form/RichTextToolBar/components/MergeTags/index.d.ts +1 -1
- package/lib/components/Form/RichTextToolBar/components/ToolItem/index.d.ts +7 -7
- package/lib/components/Form/RichTextToolBar/components/Tools/Tools.d.ts +5 -5
- package/lib/components/Form/RichTextToolBar/components/Tools/index.d.ts +1 -1
- package/lib/components/Form/RichTextToolBar/index.d.ts +1 -1
- package/lib/components/Form/Select.d.ts +11 -11
- package/lib/components/Form/UploadField.d.ts +8 -8
- package/lib/components/Form/enhancer.d.ts +20 -20
- package/lib/components/Form/index.d.ts +29 -29
- package/lib/components/RenderCount/index.d.ts +1 -1
- package/lib/components/ShadowDom/index.d.ts +2 -2
- package/lib/hooks/useAddToCollection.d.ts +6 -6
- package/lib/index.d.ts +8 -8
- package/lib/index2.js +15 -8
- package/lib/index2.js.map +1 -1
- package/lib/index3.js.map +1 -1
- package/lib/utils/awaitForElement.d.ts +4 -4
- package/lib/utils/classnames.d.ts +1 -1
- package/package.json +2 -2
- package/readme.md +138 -138
@@ -1,4 +1,4 @@
|
|
1
|
-
export declare function awaitForElement<T extends HTMLElement>(idx: string): {
|
2
|
-
cancel: () => void;
|
3
|
-
promise: Promise<T>;
|
4
|
-
};
|
1
|
+
export declare function awaitForElement<T extends HTMLElement>(idx: string): {
|
2
|
+
cancel: () => void;
|
3
|
+
promise: Promise<T>;
|
4
|
+
};
|
@@ -1 +1 @@
|
|
1
|
-
export declare function classnames(...rest: any[]): string;
|
1
|
+
export declare function classnames(...rest: any[]): string;
|
@@ -1,8 +1,8 @@
|
|
1
|
-
declare const defaultImagesMap: {
|
2
|
-
IMAGE_59: string;
|
3
|
-
AttributePanel_01: string;
|
4
|
-
AttributePanel_02: string;
|
5
|
-
AttributePanel_03: string;
|
6
|
-
};
|
7
|
-
export declare function getImg(name: keyof typeof defaultImagesMap): string;
|
8
|
-
export {};
|
1
|
+
declare const defaultImagesMap: {
|
2
|
+
IMAGE_59: string;
|
3
|
+
AttributePanel_01: string;
|
4
|
+
AttributePanel_02: string;
|
5
|
+
AttributePanel_03: string;
|
6
|
+
};
|
7
|
+
export declare function getImg(name: keyof typeof defaultImagesMap): string;
|
8
|
+
export {};
|
@@ -1,10 +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;
|
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;
|
@@ -1 +1 @@
|
|
1
|
-
export declare function previewLoadImage(url: string): Promise<HTMLImageElement>;
|
1
|
+
export declare function previewLoadImage(url: string): Promise<HTMLImageElement>;
|
@@ -1,23 +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;
|
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;
|
@@ -1,6 +1,6 @@
|
|
1
|
-
import React from 'react';
|
2
|
-
export declare const TreeCollapse: React.FC<{
|
3
|
-
hasChildren: boolean;
|
4
|
-
expand: boolean;
|
5
|
-
setExpand: React.Dispatch<React.SetStateAction<boolean>>;
|
6
|
-
}>;
|
1
|
+
import React from 'react';
|
2
|
+
export declare const TreeCollapse: React.FC<{
|
3
|
+
hasChildren: boolean;
|
4
|
+
expand: boolean;
|
5
|
+
setExpand: React.Dispatch<React.SetStateAction<boolean>>;
|
6
|
+
}>;
|
@@ -1,29 +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;
|
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;
|
@@ -1,14 +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;
|
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;
|
@@ -1,7 +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;
|
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;
|
@@ -1,7 +1,7 @@
|
|
1
|
-
import { IBlockData } from 'easy-email-core';
|
2
|
-
export interface IBlockDataWithId extends IBlockData {
|
3
|
-
id: string;
|
4
|
-
parent: IBlockDataWithId | null;
|
5
|
-
children: IBlockDataWithId[];
|
6
|
-
}
|
7
|
-
export declare function BlockLayer(): JSX.Element | null;
|
1
|
+
import { IBlockData } from 'easy-email-core';
|
2
|
+
export interface IBlockDataWithId extends IBlockData {
|
3
|
+
id: string;
|
4
|
+
parent: IBlockDataWithId | null;
|
5
|
+
children: IBlockDataWithId[];
|
6
|
+
}
|
7
|
+
export declare function BlockLayer(): JSX.Element | null;
|
@@ -1 +1 @@
|
|
1
|
-
export declare function FocusTooltip(): JSX.Element | null;
|
1
|
+
export declare function FocusTooltip(): JSX.Element | null;
|
@@ -1 +1 @@
|
|
1
|
-
export declare function HoverTooltip(): JSX.Element | null;
|
1
|
+
export declare function HoverTooltip(): JSX.Element | null;
|
@@ -1,5 +1,5 @@
|
|
1
|
-
import { IBlock } from 'easy-email-core';
|
2
|
-
export declare function Toolbar({ block, direction, }: {
|
3
|
-
block: IBlock;
|
4
|
-
direction: 'top' | 'bottom';
|
5
|
-
}): JSX.Element;
|
1
|
+
import { IBlock } from 'easy-email-core';
|
2
|
+
export declare function Toolbar({ block, direction, }: {
|
3
|
+
block: IBlock;
|
4
|
+
direction: 'top' | 'bottom';
|
5
|
+
}): JSX.Element;
|
@@ -1 +1 @@
|
|
1
|
-
export declare function InteractivePrompt(): JSX.Element | null;
|
1
|
+
export declare function InteractivePrompt(): JSX.Element | null;
|
@@ -1,4 +1,4 @@
|
|
1
|
-
export declare function awaitForElement<T extends HTMLElement>(idx: string): {
|
2
|
-
cancel: () => void;
|
3
|
-
promise: Promise<T>;
|
4
|
-
};
|
1
|
+
export declare function awaitForElement<T extends HTMLElement>(idx: string): {
|
2
|
+
cancel: () => void;
|
3
|
+
promise: Promise<T>;
|
4
|
+
};
|
@@ -1 +1 @@
|
|
1
|
-
export declare function ShortcutToolbar(): JSX.Element;
|
1
|
+
export declare function ShortcutToolbar(): JSX.Element;
|
@@ -1,6 +1,6 @@
|
|
1
|
-
import React from 'react';
|
2
|
-
import { BlockType } from 'easy-email-core';
|
3
|
-
export declare const BlockMaskWrapper: React.FC<{
|
4
|
-
type: BlockType | string;
|
5
|
-
payload: any;
|
6
|
-
}>;
|
1
|
+
import React from 'react';
|
2
|
+
import { BlockType } from 'easy-email-core';
|
3
|
+
export declare const BlockMaskWrapper: React.FC<{
|
4
|
+
type: BlockType | string;
|
5
|
+
payload: any;
|
6
|
+
}>;
|
@@ -1,2 +1,2 @@
|
|
1
|
-
import React from 'react';
|
2
|
-
export declare const BlocksPanel: React.FC;
|
1
|
+
import React from 'react';
|
2
|
+
export declare const BlocksPanel: React.FC;
|
package/lib/ShortcutToolbar/components/BlocksPanel/presetTemplate/AccordionBlockItem/index.d.ts
CHANGED
@@ -1 +1 @@
|
|
1
|
-
export declare function AccordionBlockItem(): JSX.Element;
|
1
|
+
export declare function AccordionBlockItem(): JSX.Element;
|
package/lib/ShortcutToolbar/components/BlocksPanel/presetTemplate/ButtonBlockItem/index.d.ts
CHANGED
@@ -1 +1 @@
|
|
1
|
-
export declare function ButtonBlockItem(): JSX.Element;
|
1
|
+
export declare function ButtonBlockItem(): JSX.Element;
|
package/lib/ShortcutToolbar/components/BlocksPanel/presetTemplate/CarouselBlockItem/index.d.ts
CHANGED
@@ -1 +1 @@
|
|
1
|
-
export declare function CarouselBlockItem(): JSX.Element;
|
1
|
+
export declare function CarouselBlockItem(): JSX.Element;
|
package/lib/ShortcutToolbar/components/BlocksPanel/presetTemplate/ColumnBlockItem/index.d.ts
CHANGED
@@ -1 +1 @@
|
|
1
|
-
export declare function ColumnBlockItem(): JSX.Element;
|
1
|
+
export declare function ColumnBlockItem(): JSX.Element;
|
package/lib/ShortcutToolbar/components/BlocksPanel/presetTemplate/DividerBlockItem/index.d.ts
CHANGED
@@ -1 +1 @@
|
|
1
|
-
export declare function DividerBlockItem(): JSX.Element;
|
1
|
+
export declare function DividerBlockItem(): JSX.Element;
|
@@ -1 +1 @@
|
|
1
|
-
export declare function GroupBlockItem(): JSX.Element;
|
1
|
+
export declare function GroupBlockItem(): JSX.Element;
|
@@ -1 +1 @@
|
|
1
|
-
export declare function HeroBlockItem(): JSX.Element;
|
1
|
+
export declare function HeroBlockItem(): JSX.Element;
|
@@ -1 +1 @@
|
|
1
|
-
export declare function ImageBlockItem(): JSX.Element;
|
1
|
+
export declare function ImageBlockItem(): JSX.Element;
|
package/lib/ShortcutToolbar/components/BlocksPanel/presetTemplate/NavbarBlockItem/index.d.ts
CHANGED
@@ -1 +1 @@
|
|
1
|
-
export declare function NavbarBlockItem(): JSX.Element;
|
1
|
+
export declare function NavbarBlockItem(): JSX.Element;
|
@@ -1 +1 @@
|
|
1
|
-
export declare function RawBlockItem(): JSX.Element;
|
1
|
+
export declare function RawBlockItem(): JSX.Element;
|
package/lib/ShortcutToolbar/components/BlocksPanel/presetTemplate/SectionBlockItem/index.d.ts
CHANGED
@@ -1 +1 @@
|
|
1
|
-
export declare function SectionBlockItem(): JSX.Element;
|
1
|
+
export declare function SectionBlockItem(): JSX.Element;
|
package/lib/ShortcutToolbar/components/BlocksPanel/presetTemplate/SocialBlockItem/index.d.ts
CHANGED
@@ -1 +1 @@
|
|
1
|
-
export declare function SocialBlockItem(): JSX.Element;
|
1
|
+
export declare function SocialBlockItem(): JSX.Element;
|
package/lib/ShortcutToolbar/components/BlocksPanel/presetTemplate/SpacerBlockItem/index.d.ts
CHANGED
@@ -1 +1 @@
|
|
1
|
-
export declare function SpacerBlockItem(): JSX.Element;
|
1
|
+
export declare function SpacerBlockItem(): JSX.Element;
|
@@ -1 +1 @@
|
|
1
|
-
export declare function TextBlockItem(): JSX.Element;
|
1
|
+
export declare function TextBlockItem(): JSX.Element;
|
package/lib/ShortcutToolbar/components/BlocksPanel/presetTemplate/WrapperBlockItem/index.d.ts
CHANGED
@@ -1 +1 @@
|
|
1
|
-
export declare function WrapperBlockItem(): JSX.Element;
|
1
|
+
export declare function WrapperBlockItem(): JSX.Element;
|
@@ -1,18 +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
|
-
}[];
|
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
|
+
}[];
|
@@ -1,7 +1,7 @@
|
|
1
|
-
import React from 'react';
|
2
|
-
interface IPictureProps extends React.DetailedHTMLProps<React.HTMLAttributes<HTMLImageElement>, HTMLElement> {
|
3
|
-
src: string;
|
4
|
-
className?: string;
|
5
|
-
}
|
6
|
-
export declare function Picture(props: IPictureProps): JSX.Element;
|
7
|
-
export {};
|
1
|
+
import React from 'react';
|
2
|
+
interface IPictureProps extends React.DetailedHTMLProps<React.HTMLAttributes<HTMLImageElement>, HTMLElement> {
|
3
|
+
src: string;
|
4
|
+
className?: string;
|
5
|
+
}
|
6
|
+
export declare function Picture(props: IPictureProps): JSX.Element;
|
7
|
+
export {};
|
@@ -1,4 +1,4 @@
|
|
1
|
-
export { ShortcutToolbar } from './ShortcutToolbar';
|
2
|
-
export { BlockMarketManager } from './utils/BlockMarketManager';
|
3
|
-
export type { BlockMarketCategory } from './utils/BlockMarketManager';
|
4
|
-
export { BlockMaskWrapper } from './components/BlockMaskWrapper';
|
1
|
+
export { ShortcutToolbar } from './ShortcutToolbar';
|
2
|
+
export { BlockMarketManager } from './utils/BlockMarketManager';
|
3
|
+
export type { BlockMarketCategory } from './utils/BlockMarketManager';
|
4
|
+
export { BlockMaskWrapper } from './components/BlockMaskWrapper';
|
@@ -1,32 +1,32 @@
|
|
1
|
-
/// <reference types="react" />
|
2
|
-
import { IBlockData } from 'easy-email-core';
|
3
|
-
export interface BlockMarketCategory {
|
4
|
-
name: string;
|
5
|
-
title: string;
|
6
|
-
blocks: {
|
7
|
-
type: string;
|
8
|
-
title: string;
|
9
|
-
description?: React.ReactNode;
|
10
|
-
thumbnail?: string;
|
11
|
-
payload?: IBlockData;
|
12
|
-
component: () => JSX.Element | null;
|
13
|
-
}[];
|
14
|
-
}
|
15
|
-
export declare class BlockMarketManager {
|
16
|
-
private static category;
|
17
|
-
private static subscriptHandles;
|
18
|
-
static subscribe(fn: (category: BlockMarketCategory[]) => void): number;
|
19
|
-
static unsubscribe(fn: (category: BlockMarketCategory[]) => void): ((category: BlockMarketCategory[]) => void)[];
|
20
|
-
static notify(): void;
|
21
|
-
static getCategory(name: string): BlockMarketCategory | undefined;
|
22
|
-
static getCategories(): BlockMarketCategory[];
|
23
|
-
static addCategories(list: BlockMarketCategory[]): void;
|
24
|
-
static addCategory(name: string, title: string, blocks: {
|
25
|
-
type: string;
|
26
|
-
title: string;
|
27
|
-
description?: React.ReactNode;
|
28
|
-
component: () => JSX.Element | null;
|
29
|
-
}[]): void;
|
30
|
-
static removeCategories(list: BlockMarketCategory[]): void;
|
31
|
-
static removeCategory(name: string): void;
|
32
|
-
}
|
1
|
+
/// <reference types="react" />
|
2
|
+
import { IBlockData } from 'easy-email-core';
|
3
|
+
export interface BlockMarketCategory {
|
4
|
+
name: string;
|
5
|
+
title: string;
|
6
|
+
blocks: {
|
7
|
+
type: string;
|
8
|
+
title: string;
|
9
|
+
description?: React.ReactNode;
|
10
|
+
thumbnail?: string;
|
11
|
+
payload?: IBlockData;
|
12
|
+
component: () => JSX.Element | null;
|
13
|
+
}[];
|
14
|
+
}
|
15
|
+
export declare class BlockMarketManager {
|
16
|
+
private static category;
|
17
|
+
private static subscriptHandles;
|
18
|
+
static subscribe(fn: (category: BlockMarketCategory[]) => void): number;
|
19
|
+
static unsubscribe(fn: (category: BlockMarketCategory[]) => void): ((category: BlockMarketCategory[]) => void)[];
|
20
|
+
static notify(): void;
|
21
|
+
static getCategory(name: string): BlockMarketCategory | undefined;
|
22
|
+
static getCategories(): BlockMarketCategory[];
|
23
|
+
static addCategories(list: BlockMarketCategory[]): void;
|
24
|
+
static addCategory(name: string, title: string, blocks: {
|
25
|
+
type: string;
|
26
|
+
title: string;
|
27
|
+
description?: React.ReactNode;
|
28
|
+
component: () => JSX.Element | null;
|
29
|
+
}[]): void;
|
30
|
+
static removeCategories(list: BlockMarketCategory[]): void;
|
31
|
+
static removeCategory(name: string): void;
|
32
|
+
}
|
@@ -1,68 +1,68 @@
|
|
1
|
-
declare const defaultImagesMap: {
|
2
|
-
IMAGE_08: string;
|
3
|
-
IMAGE_09: string;
|
4
|
-
IMAGE_10: string;
|
5
|
-
IMAGE_11: string;
|
6
|
-
IMAGE_12: string;
|
7
|
-
IMAGE_13: string;
|
8
|
-
IMAGE_14: string;
|
9
|
-
IMAGE_15: string;
|
10
|
-
IMAGE_16: string;
|
11
|
-
IMAGE_17: string;
|
12
|
-
IMAGE_18: string;
|
13
|
-
IMAGE_19: string;
|
14
|
-
IMAGE_20: string;
|
15
|
-
IMAGE_21: string;
|
16
|
-
IMAGE_22: string;
|
17
|
-
IMAGE_23: string;
|
18
|
-
IMAGE_24: string;
|
19
|
-
IMAGE_25: string;
|
20
|
-
IMAGE_26: string;
|
21
|
-
IMAGE_27: string;
|
22
|
-
IMAGE_28: string;
|
23
|
-
IMAGE_29: string;
|
24
|
-
IMAGE_30: string;
|
25
|
-
IMAGE_31: string;
|
26
|
-
IMAGE_32: string;
|
27
|
-
IMAGE_33: string;
|
28
|
-
IMAGE_34: string;
|
29
|
-
IMAGE_35: string;
|
30
|
-
IMAGE_36: string;
|
31
|
-
IMAGE_37: string;
|
32
|
-
IMAGE_38: string;
|
33
|
-
IMAGE_39: string;
|
34
|
-
IMAGE_40: string;
|
35
|
-
IMAGE_41: string;
|
36
|
-
IMAGE_42: string;
|
37
|
-
IMAGE_43: string;
|
38
|
-
IMAGE_44: string;
|
39
|
-
IMAGE_45: string;
|
40
|
-
IMAGE_46: string;
|
41
|
-
IMAGE_47: string;
|
42
|
-
IMAGE_48: string;
|
43
|
-
IMAGE_49: string;
|
44
|
-
IMAGE_50: string;
|
45
|
-
IMAGE_51: string;
|
46
|
-
IMAGE_52: string;
|
47
|
-
IMAGE_53: string;
|
48
|
-
IMAGE_54: string;
|
49
|
-
IMAGE_55: string;
|
50
|
-
IMAGE_56: string;
|
51
|
-
IMAGE_57: string;
|
52
|
-
IMAGE_58: string;
|
53
|
-
IMAGE_59: string;
|
54
|
-
IMAGE_60: string;
|
55
|
-
IMAGE_61: string;
|
56
|
-
IMAGE_62: string;
|
57
|
-
IMAGE_63: string;
|
58
|
-
IMAGE_64: string;
|
59
|
-
IMAGE_65: string;
|
60
|
-
IMAGE_66: string;
|
61
|
-
IMAGE_67: string;
|
62
|
-
IMAGE_68: string;
|
63
|
-
IMAGE_69: string;
|
64
|
-
IMAGE_70: string;
|
65
|
-
IMAGE_71: string;
|
66
|
-
};
|
67
|
-
export declare function getImg(name: keyof typeof defaultImagesMap): string;
|
68
|
-
export {};
|
1
|
+
declare const defaultImagesMap: {
|
2
|
+
IMAGE_08: string;
|
3
|
+
IMAGE_09: string;
|
4
|
+
IMAGE_10: string;
|
5
|
+
IMAGE_11: string;
|
6
|
+
IMAGE_12: string;
|
7
|
+
IMAGE_13: string;
|
8
|
+
IMAGE_14: string;
|
9
|
+
IMAGE_15: string;
|
10
|
+
IMAGE_16: string;
|
11
|
+
IMAGE_17: string;
|
12
|
+
IMAGE_18: string;
|
13
|
+
IMAGE_19: string;
|
14
|
+
IMAGE_20: string;
|
15
|
+
IMAGE_21: string;
|
16
|
+
IMAGE_22: string;
|
17
|
+
IMAGE_23: string;
|
18
|
+
IMAGE_24: string;
|
19
|
+
IMAGE_25: string;
|
20
|
+
IMAGE_26: string;
|
21
|
+
IMAGE_27: string;
|
22
|
+
IMAGE_28: string;
|
23
|
+
IMAGE_29: string;
|
24
|
+
IMAGE_30: string;
|
25
|
+
IMAGE_31: string;
|
26
|
+
IMAGE_32: string;
|
27
|
+
IMAGE_33: string;
|
28
|
+
IMAGE_34: string;
|
29
|
+
IMAGE_35: string;
|
30
|
+
IMAGE_36: string;
|
31
|
+
IMAGE_37: string;
|
32
|
+
IMAGE_38: string;
|
33
|
+
IMAGE_39: string;
|
34
|
+
IMAGE_40: string;
|
35
|
+
IMAGE_41: string;
|
36
|
+
IMAGE_42: string;
|
37
|
+
IMAGE_43: string;
|
38
|
+
IMAGE_44: string;
|
39
|
+
IMAGE_45: string;
|
40
|
+
IMAGE_46: string;
|
41
|
+
IMAGE_47: string;
|
42
|
+
IMAGE_48: string;
|
43
|
+
IMAGE_49: string;
|
44
|
+
IMAGE_50: string;
|
45
|
+
IMAGE_51: string;
|
46
|
+
IMAGE_52: string;
|
47
|
+
IMAGE_53: string;
|
48
|
+
IMAGE_54: string;
|
49
|
+
IMAGE_55: string;
|
50
|
+
IMAGE_56: string;
|
51
|
+
IMAGE_57: string;
|
52
|
+
IMAGE_58: string;
|
53
|
+
IMAGE_59: string;
|
54
|
+
IMAGE_60: string;
|
55
|
+
IMAGE_61: string;
|
56
|
+
IMAGE_62: string;
|
57
|
+
IMAGE_63: string;
|
58
|
+
IMAGE_64: string;
|
59
|
+
IMAGE_65: string;
|
60
|
+
IMAGE_66: string;
|
61
|
+
IMAGE_67: string;
|
62
|
+
IMAGE_68: string;
|
63
|
+
IMAGE_69: string;
|
64
|
+
IMAGE_70: string;
|
65
|
+
IMAGE_71: string;
|
66
|
+
};
|
67
|
+
export declare function getImg(name: keyof typeof defaultImagesMap): string;
|
68
|
+
export {};
|
@@ -1,2 +1,2 @@
|
|
1
|
-
import React from 'react';
|
2
|
-
export declare const SimpleLayout: React.FC;
|
1
|
+
import React from 'react';
|
2
|
+
export declare const SimpleLayout: React.FC;
|