easy-email-extensions 3.1.13 → 3.1.20

Sign up to get free protection for your applications and to get access to all the features.
Files changed (148) hide show
  1. package/lib/AttributePanel/AttributePanel.d.ts +3 -0
  2. package/lib/AttributePanel/components/UI/Help/index.d.ts +7 -0
  3. package/lib/AttributePanel/components/UI/HtmlEditor.d.ts +5 -0
  4. package/lib/AttributePanel/components/attributes/Align.d.ts +3 -0
  5. package/lib/AttributePanel/components/attributes/AttributesPanelWrapper/index.d.ts +6 -0
  6. package/lib/AttributePanel/components/attributes/Background.d.ts +1 -0
  7. package/lib/AttributePanel/components/attributes/BackgroundColor.d.ts +3 -0
  8. package/lib/AttributePanel/components/attributes/Border.d.ts +1 -0
  9. package/lib/AttributePanel/components/attributes/BorderColor.d.ts +1 -0
  10. package/lib/AttributePanel/components/attributes/BorderStyle.d.ts +5 -0
  11. package/lib/AttributePanel/components/attributes/BorderWidth.d.ts +1 -0
  12. package/lib/AttributePanel/components/attributes/Color.d.ts +4 -0
  13. package/lib/AttributePanel/components/attributes/ContainerBackgroundColor.d.ts +3 -0
  14. package/lib/AttributePanel/components/attributes/Decoration.d.ts +1 -0
  15. package/lib/AttributePanel/components/attributes/Direction.d.ts +1 -0
  16. package/lib/AttributePanel/components/attributes/FontFamily.d.ts +1 -0
  17. package/lib/AttributePanel/components/attributes/FontSize.d.ts +1 -0
  18. package/lib/AttributePanel/components/attributes/FontStyle.d.ts +1 -0
  19. package/lib/AttributePanel/components/attributes/FontWeight.d.ts +1 -0
  20. package/lib/AttributePanel/components/attributes/Height.d.ts +3 -0
  21. package/lib/AttributePanel/components/attributes/LetterSpacing.d.ts +1 -0
  22. package/lib/AttributePanel/components/attributes/LineHeight.d.ts +1 -0
  23. package/lib/AttributePanel/components/attributes/Link.d.ts +1 -0
  24. package/lib/AttributePanel/components/attributes/Margin.d.ts +1 -0
  25. package/lib/AttributePanel/components/attributes/MergeTags.d.ts +6 -0
  26. package/lib/AttributePanel/components/attributes/NavbarLinkPadding.d.ts +3 -0
  27. package/lib/AttributePanel/components/attributes/Padding.d.ts +5 -0
  28. package/lib/AttributePanel/components/attributes/TextAlign.d.ts +1 -0
  29. package/lib/AttributePanel/components/attributes/TextDecoration.d.ts +1 -0
  30. package/lib/AttributePanel/components/attributes/TextTransform.d.ts +1 -0
  31. package/lib/AttributePanel/components/attributes/VerticalAlign.d.ts +3 -0
  32. package/lib/AttributePanel/components/attributes/Width.d.ts +5 -0
  33. package/lib/AttributePanel/components/attributes/index.d.ts +29 -0
  34. package/lib/AttributePanel/components/blocks/Accordion/index.d.ts +1 -0
  35. package/lib/AttributePanel/components/blocks/AccordionElement/index.d.ts +1 -0
  36. package/lib/AttributePanel/components/blocks/AccordionText/index.d.ts +1 -0
  37. package/lib/AttributePanel/components/blocks/AccordionTitle/index.d.ts +1 -0
  38. package/lib/AttributePanel/components/blocks/Button/index.d.ts +1 -0
  39. package/lib/AttributePanel/components/blocks/Carousel/index.d.ts +1 -0
  40. package/lib/AttributePanel/components/blocks/Column/index.d.ts +1 -0
  41. package/lib/AttributePanel/components/blocks/Divider/index.d.ts +1 -0
  42. package/lib/AttributePanel/components/blocks/Group/index.d.ts +1 -0
  43. package/lib/AttributePanel/components/blocks/Hero/index.d.ts +1 -0
  44. package/lib/AttributePanel/components/blocks/Image/index.d.ts +1 -0
  45. package/lib/AttributePanel/components/blocks/Navbar/index.d.ts +1 -0
  46. package/lib/AttributePanel/components/blocks/Page/index.d.ts +1 -0
  47. package/lib/AttributePanel/components/blocks/Raw/index.d.ts +1 -0
  48. package/lib/AttributePanel/components/blocks/Section/index.d.ts +1 -0
  49. package/lib/AttributePanel/components/blocks/Social/index.d.ts +1 -0
  50. package/lib/AttributePanel/components/blocks/Spacer/index.d.ts +1 -0
  51. package/lib/AttributePanel/components/blocks/Table/index.d.ts +1 -0
  52. package/lib/AttributePanel/components/blocks/Text/index.d.ts +1 -0
  53. package/lib/AttributePanel/components/blocks/Wrapper/index.d.ts +1 -0
  54. package/lib/AttributePanel/components/blocks/index.d.ts +42 -0
  55. package/lib/AttributePanel/components/provider/PresetColorsProvider/index.d.ts +6 -0
  56. package/lib/AttributePanel/components/provider/SelectionRangeProvider/index.d.ts +6 -0
  57. package/lib/AttributePanel/hooks/useSelectionRange.d.ts +6 -0
  58. package/lib/AttributePanel/index.d.ts +3 -0
  59. package/lib/AttributePanel/utils/BlockAttributeConfigurationManager.d.ts +10 -0
  60. package/lib/AttributePanel/utils/InputNumberAdapter.d.ts +2 -0
  61. package/lib/AttributePanel/utils/PromiseEach.d.ts +1 -0
  62. package/lib/AttributePanel/utils/Uploader.d.ts +35 -0
  63. package/lib/AttributePanel/utils/awaitForElement.d.ts +4 -0
  64. package/lib/AttributePanel/utils/classnames.d.ts +1 -0
  65. package/lib/AttributePanel/utils/getIconNameByBlockType.d.ts +1 -0
  66. package/lib/AttributePanel/utils/getImg.d.ts +8 -0
  67. package/lib/AttributePanel/utils/onDrag.d.ts +10 -0
  68. package/lib/AttributePanel/utils/previewLoadImage.d.ts +1 -0
  69. package/lib/BlockLayer/components/BlockTree/index.d.ts +51 -0
  70. package/lib/BlockLayer/components/BlockTree/transparentImage.d.ts +1 -0
  71. package/lib/BlockLayer/components/ContextMenu/index.d.ts +14 -0
  72. package/lib/BlockLayer/components/EyeIcon/index.d.ts +7 -0
  73. package/lib/BlockLayer/hooks/useAvatarWrapperDrop.d.ts +24 -0
  74. package/lib/BlockLayer/index.d.ts +10 -0
  75. package/lib/InteractivePrompt/components/FocusTooltip.d.ts +1 -0
  76. package/lib/InteractivePrompt/components/HoverTooltip.d.ts +1 -0
  77. package/lib/InteractivePrompt/components/Toolbar.d.ts +5 -0
  78. package/lib/InteractivePrompt/index.d.ts +1 -0
  79. package/lib/InteractivePrompt/utils/awaitForElement.d.ts +4 -0
  80. package/lib/ShortcutToolbar/ShortcutToolbar.d.ts +1 -0
  81. package/lib/ShortcutToolbar/components/BlockMaskWrapper/index.d.ts +6 -0
  82. package/lib/ShortcutToolbar/components/BlocksPanel/index.d.ts +2 -0
  83. package/lib/ShortcutToolbar/components/BlocksPanel/presetTemplate/AccordionBlockItem/index.d.ts +1 -0
  84. package/lib/ShortcutToolbar/components/BlocksPanel/presetTemplate/ButtonBlockItem/index.d.ts +1 -0
  85. package/lib/ShortcutToolbar/components/BlocksPanel/presetTemplate/CarouselBlockItem/index.d.ts +1 -0
  86. package/lib/ShortcutToolbar/components/BlocksPanel/presetTemplate/ColumnBlockItem/index.d.ts +1 -0
  87. package/lib/ShortcutToolbar/components/BlocksPanel/presetTemplate/DividerBlockItem/index.d.ts +1 -0
  88. package/lib/ShortcutToolbar/components/BlocksPanel/presetTemplate/GroupBlockItem/index.d.ts +1 -0
  89. package/lib/ShortcutToolbar/components/BlocksPanel/presetTemplate/HeroBlockItem/index.d.ts +1 -0
  90. package/lib/ShortcutToolbar/components/BlocksPanel/presetTemplate/ImageBlockItem/index.d.ts +1 -0
  91. package/lib/ShortcutToolbar/components/BlocksPanel/presetTemplate/NavbarBlockItem/index.d.ts +1 -0
  92. package/lib/ShortcutToolbar/components/BlocksPanel/presetTemplate/RawBlockItem/index.d.ts +1 -0
  93. package/lib/ShortcutToolbar/components/BlocksPanel/presetTemplate/SectionBlockItem/index.d.ts +1 -0
  94. package/lib/ShortcutToolbar/components/BlocksPanel/presetTemplate/SocialBlockItem/index.d.ts +1 -0
  95. package/lib/ShortcutToolbar/components/BlocksPanel/presetTemplate/SpacerBlockItem/index.d.ts +1 -0
  96. package/lib/ShortcutToolbar/components/BlocksPanel/presetTemplate/TextBlockItem/index.d.ts +1 -0
  97. package/lib/ShortcutToolbar/components/BlocksPanel/presetTemplate/WrapperBlockItem/index.d.ts +1 -0
  98. package/lib/ShortcutToolbar/components/BlocksPanel/presetTemplate/index.d.ts +18 -0
  99. package/lib/ShortcutToolbar/components/Picture/index.d.ts +7 -0
  100. package/lib/ShortcutToolbar/index.d.ts +4 -0
  101. package/lib/ShortcutToolbar/utils/BlockMarketManager.d.ts +32 -0
  102. package/lib/ShortcutToolbar/utils/getImg.d.ts +68 -0
  103. package/lib/SimpleLayout/SimpleLayout.d.ts +4 -0
  104. package/lib/SimpleLayout/index.d.ts +1 -0
  105. package/lib/SourceCodePanel/index.d.ts +1 -0
  106. package/lib/components/AddToCollection/index.d.ts +5 -0
  107. package/lib/components/Form/AddFont.d.ts +1 -0
  108. package/lib/components/Form/AutoComplete.d.ts +11 -0
  109. package/lib/components/Form/CheckBoxGroup.d.ts +14 -0
  110. package/lib/components/Form/CodemirrorEditor/index.d.ts +8 -0
  111. package/lib/components/Form/ColorPicker.d.ts +10 -0
  112. package/lib/components/Form/EditTab.d.ts +10 -0
  113. package/lib/components/Form/ImageUploader/index.d.ts +8 -0
  114. package/lib/components/Form/InlineTextField/index.d.ts +7 -0
  115. package/lib/components/Form/Input.d.ts +7 -0
  116. package/lib/components/Form/InputWithUnit.d.ts +10 -0
  117. package/lib/components/Form/RadioGroup.d.ts +13 -0
  118. package/lib/components/Form/RichTextField/index.d.ts +2 -0
  119. package/lib/components/Form/RichTextToolBar/RichTextToolBar.d.ts +3 -0
  120. package/lib/components/Form/RichTextToolBar/components/FontFamily/index.d.ts +3 -0
  121. package/lib/components/Form/RichTextToolBar/components/FontSizeList/index.d.ts +3 -0
  122. package/lib/components/Form/RichTextToolBar/components/Heading/index.d.ts +3 -0
  123. package/lib/components/Form/RichTextToolBar/components/Link/index.d.ts +12 -0
  124. package/lib/components/Form/RichTextToolBar/components/ToolItem/index.d.ts +7 -0
  125. package/lib/components/Form/RichTextToolBar/components/Tools/Tools.d.ts +5 -0
  126. package/lib/components/Form/RichTextToolBar/components/Tools/index.d.ts +1 -0
  127. package/lib/components/Form/RichTextToolBar/index.d.ts +1 -0
  128. package/lib/components/Form/Select.d.ts +11 -0
  129. package/lib/components/Form/UploadField.d.ts +8 -0
  130. package/lib/components/Form/enhancer.d.ts +20 -0
  131. package/lib/components/Form/index.d.ts +32 -0
  132. package/lib/components/RenderCount/index.d.ts +1 -0
  133. package/lib/components/ShadowDom/index.d.ts +2 -0
  134. package/lib/hooks/useAddToCollection.d.ts +6 -0
  135. package/lib/index.d.ts +9 -0
  136. package/lib/index.js +7 -0
  137. package/lib/index.js.map +1 -0
  138. package/lib/index2.js +45228 -0
  139. package/lib/index2.js.map +1 -0
  140. package/lib/index3.js +11645 -0
  141. package/lib/index3.js.map +1 -0
  142. package/lib/style.css +1 -0
  143. package/lib/utils/awaitForElement.d.ts +4 -0
  144. package/lib/utils/classnames.d.ts +1 -0
  145. package/lib/utils/getContextMergeTags.d.ts +7 -0
  146. package/lib/utils/getPreviewClassName.d.ts +1 -0
  147. package/package.json +4 -3
  148. package/readme.md +138 -138
@@ -0,0 +1,3 @@
1
+ export interface AttributePanelProps {
2
+ }
3
+ export declare function AttributePanel(): JSX.Element | null;
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ import { TooltipProps } from '@arco-design/web-react';
3
+ export declare function Help(props: TooltipProps & Partial<{
4
+ style: Partial<React.CSSProperties>;
5
+ }> & {
6
+ title: React.ReactNode;
7
+ }): JSX.Element;
@@ -0,0 +1,5 @@
1
+ import React from 'react';
2
+ export declare const HtmlEditor: React.FC<{
3
+ visible: boolean;
4
+ setVisible: (v: boolean) => void;
5
+ }>;
@@ -0,0 +1,3 @@
1
+ export declare function Align({ inline }: {
2
+ inline?: boolean;
3
+ }): JSX.Element;
@@ -0,0 +1,6 @@
1
+ import React from 'react';
2
+ export interface AttributesPanelWrapper {
3
+ style?: React.CSSProperties;
4
+ extra?: React.ReactNode;
5
+ }
6
+ export declare const AttributesPanelWrapper: React.FC<AttributesPanelWrapper>;
@@ -0,0 +1 @@
1
+ export declare function Background(): JSX.Element;
@@ -0,0 +1,3 @@
1
+ export declare function BackgroundColor({ title, }: {
2
+ title?: string;
3
+ }): 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,5 @@
1
+ export declare const borderStyleOptions: {
2
+ value: string;
3
+ label: string;
4
+ }[];
5
+ export declare function BorderStyle(): JSX.Element;
@@ -0,0 +1 @@
1
+ export declare function BorderWidth(): JSX.Element;
@@ -0,0 +1,4 @@
1
+ export declare function Color({ title, }: {
2
+ title?: string;
3
+ inline?: boolean;
4
+ }): JSX.Element;
@@ -0,0 +1,3 @@
1
+ export declare function ContainerBackgroundColor({ title, }: {
2
+ title?: string;
3
+ }): 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 FontStyle(): JSX.Element;
@@ -0,0 +1 @@
1
+ export declare function FontWeight(): JSX.Element;
@@ -0,0 +1,3 @@
1
+ export declare function Height({ inline }: {
2
+ inline?: boolean;
3
+ }): 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,6 @@
1
+ import React from 'react';
2
+ export declare const MergeTags: React.FC<{
3
+ onChange: (v: string) => void;
4
+ value: string;
5
+ isSelect?: boolean;
6
+ }>;
@@ -0,0 +1,3 @@
1
+ export declare function NavbarLinkPadding({ name }: {
2
+ name: string;
3
+ }): JSX.Element;
@@ -0,0 +1,5 @@
1
+ export interface PaddingProps {
2
+ title?: string;
3
+ attributeName?: 'padding' | 'inner-padding' | 'text-padding';
4
+ }
5
+ export declare function Padding(props?: PaddingProps): 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,3 @@
1
+ export declare function VerticalAlign({ attributeName, }: {
2
+ attributeName?: string;
3
+ }): JSX.Element;
@@ -0,0 +1,5 @@
1
+ import { InputWithUnitProps } from '@extensions/components/Form/InputWithUnit';
2
+ export declare function Width({ inline, unitOptions, }: {
3
+ inline?: boolean;
4
+ unitOptions?: InputWithUnitProps['unitOptions'];
5
+ }): JSX.Element;
@@ -0,0 +1,29 @@
1
+ export { Align } from './Align';
2
+ export { Color } from './Color';
3
+ export { Height } from './Height';
4
+ export { TextAlign } from './TextAlign';
5
+ export { AttributesPanelWrapper } from './AttributesPanelWrapper';
6
+ export { ContainerBackgroundColor } from './ContainerBackgroundColor';
7
+ export { LetterSpacing } from './LetterSpacing';
8
+ export { TextDecoration } from './TextDecoration';
9
+ export { Background } from './Background';
10
+ export { Decoration } from './Decoration';
11
+ export { LineHeight } from './LineHeight';
12
+ export { TextTransform } from './TextTransform';
13
+ export { BackgroundColor } from './BackgroundColor';
14
+ export { Direction } from './Direction';
15
+ export { Link } from './Link';
16
+ export { VerticalAlign } from './VerticalAlign';
17
+ export { Border } from './Border';
18
+ export { FontFamily } from './FontFamily';
19
+ export { Margin } from './Margin';
20
+ export { Width } from './Width';
21
+ export { BorderColor } from './BorderColor';
22
+ export { FontSize } from './FontSize';
23
+ export { MergeTags } from './MergeTags';
24
+ export { BorderStyle } from './BorderStyle';
25
+ export { FontStyle } from './FontStyle';
26
+ export { NavbarLinkPadding } from './NavbarLinkPadding';
27
+ export { BorderWidth } from './BorderWidth';
28
+ export { FontWeight } from './FontWeight';
29
+ export { Padding } from './Padding';
@@ -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,6 @@
1
+ import React from 'react';
2
+ export declare const PresetColorsContext: React.Context<{
3
+ colors: string[];
4
+ addCurrentColor: (color: string) => void;
5
+ }>;
6
+ export declare const PresetColorsProvider: React.FC<{}>;
@@ -0,0 +1,6 @@
1
+ import React from 'react';
2
+ export declare const SelectionRangeContext: React.Context<{
3
+ selectionRange: Range | null;
4
+ setSelectionRange: React.Dispatch<React.SetStateAction<Range | null>>;
5
+ }>;
6
+ export declare const SelectionRangeProvider: React.FC<{}>;
@@ -0,0 +1,6 @@
1
+ /// <reference types="react" />
2
+ export declare function useSelectionRange(): {
3
+ selectionRange: Range | null;
4
+ setSelectionRange: import("react").Dispatch<import("react").SetStateAction<Range | null>>;
5
+ restoreRange: (range: Range) => void;
6
+ };
@@ -0,0 +1,3 @@
1
+ export { AttributePanel } from './AttributePanel';
2
+ export { BlockAttributeConfigurationManager } from './utils/BlockAttributeConfigurationManager';
3
+ export * from './components/attributes';
@@ -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,2 @@
1
+ export declare function isNumber(num: any): num is number;
2
+ export declare function InputNumberAdapter(val: string | number): string | number;
@@ -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,4 @@
1
+ export declare function awaitForElement<T extends HTMLElement>(idx: string): {
2
+ cancel: () => void;
3
+ promise: Promise<T>;
4
+ };
@@ -0,0 +1 @@
1
+ export declare function classnames(...rest: any[]): string;
@@ -0,0 +1 @@
1
+ export declare function getIconNameByBlockType(type: string): any;
@@ -0,0 +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 {};
@@ -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,51 @@
1
+ import React from 'react';
2
+ interface TreeNode<T> {
3
+ id: string;
4
+ children?: T[];
5
+ }
6
+ export interface BlockTreeProps<T extends TreeNode<T>> {
7
+ treeData: T[];
8
+ selectedKeys?: string[];
9
+ expandedKeys?: string[];
10
+ onSelect: (selectedId: string) => void;
11
+ onContextMenu?: (nodeData: T, ev: React.MouseEvent) => void;
12
+ onDragStart?: () => void;
13
+ onDragEnd?: () => void;
14
+ onMouseLeave?: () => void;
15
+ onMouseEnter?: (id: string) => void;
16
+ renderTitle: (data: T) => React.ReactNode;
17
+ defaultExpandAll?: boolean;
18
+ allowDrop: (o: {
19
+ dragNode: {
20
+ type: string;
21
+ } | {
22
+ key: string;
23
+ };
24
+ dropNode: {
25
+ dataRef: T;
26
+ parent: T;
27
+ key: string;
28
+ };
29
+ dropPosition: number;
30
+ }) => false | {
31
+ key: string;
32
+ position: number;
33
+ };
34
+ onDrop: (o: {
35
+ dragNode: {
36
+ dataRef: T;
37
+ parent: T;
38
+ key: string;
39
+ parentKey: string;
40
+ };
41
+ dropNode: {
42
+ dataRef: T;
43
+ parent: T;
44
+ key: string;
45
+ parentKey: string;
46
+ };
47
+ dropPosition: number;
48
+ }) => void;
49
+ }
50
+ export declare function BlockTree<T extends TreeNode<T>>(props: BlockTreeProps<T>): JSX.Element;
51
+ export {};
@@ -0,0 +1 @@
1
+ export declare const transparentImage = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mNkYPhfDwAChwGA60e6kgAAAABJRU5ErkJggg==";
@@ -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,24 @@
1
+ /// <reference types="react" />
2
+ import { IBlockDataWithId } from '..';
3
+ export declare function useAvatarWrapperDrop(): {
4
+ setBlockLayerRef: import("react").Dispatch<import("react").SetStateAction<HTMLElement | null>>;
5
+ blockLayerRef: HTMLElement | null;
6
+ allowDrop: (o: {
7
+ dragNode: {
8
+ type: string;
9
+ } | {
10
+ key: string;
11
+ };
12
+ dropNode: {
13
+ dataRef: IBlockDataWithId;
14
+ parent: IBlockDataWithId;
15
+ key: string;
16
+ };
17
+ dropPosition: number;
18
+ }) => false | {
19
+ key: string;
20
+ position: number;
21
+ };
22
+ removeHightLightClassName: () => void;
23
+ };
24
+ export declare function getDirectionFormDropPosition(position: number): "" | "top" | "bottom";
@@ -0,0 +1,10 @@
1
+ import React from 'react';
2
+ import { IBlockData } from 'easy-email-core';
3
+ export interface IBlockDataWithId extends IBlockData {
4
+ id: string;
5
+ icon?: React.ReactElement;
6
+ parent: IBlockDataWithId | null;
7
+ children: IBlockDataWithId[];
8
+ className?: string;
9
+ }
10
+ export declare function BlockLayer(): 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,5 @@
1
+ import { IBlock } from 'easy-email-core';
2
+ export declare function Toolbar({ block, blockNode, }: {
3
+ block: IBlock;
4
+ blockNode: HTMLElement;
5
+ }): JSX.Element;
@@ -0,0 +1 @@
1
+ export declare function InteractivePrompt(): JSX.Element | null;
@@ -0,0 +1,4 @@
1
+ export declare function awaitForElement<T extends HTMLElement>(idx: string): {
2
+ cancel: () => void;
3
+ promise: Promise<T>;
4
+ };
@@ -0,0 +1 @@
1
+ export declare function ShortcutToolbar(): JSX.Element;
@@ -0,0 +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
+ }>;
@@ -0,0 +1,2 @@
1
+ import React from 'react';
2
+ export declare const BlocksPanel: React.FC;
@@ -0,0 +1 @@
1
+ export declare function AccordionBlockItem(): JSX.Element;
@@ -0,0 +1 @@
1
+ export declare function ButtonBlockItem(): JSX.Element;
@@ -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;