@thanhpv102/easy-email-extensions 4.19.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.
Files changed (196) 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/adapter/Json.adapter.d.ts +4 -0
  5. package/lib/AttributePanel/components/adapter/color.adapter.d.ts +4 -0
  6. package/lib/AttributePanel/components/adapter/image-height.adapter.d.ts +4 -0
  7. package/lib/AttributePanel/components/adapter/index.d.ts +5 -0
  8. package/lib/AttributePanel/components/adapter/pixel.adapter.d.ts +4 -0
  9. package/lib/AttributePanel/components/adapter/slider.adapter.d.ts +4 -0
  10. package/lib/AttributePanel/components/attributes/Align.d.ts +3 -0
  11. package/lib/AttributePanel/components/attributes/AttributesPanelWrapper/index.d.ts +7 -0
  12. package/lib/AttributePanel/components/attributes/Background.d.ts +1 -0
  13. package/lib/AttributePanel/components/attributes/BackgroundColor.d.ts +3 -0
  14. package/lib/AttributePanel/components/attributes/Border.d.ts +1 -0
  15. package/lib/AttributePanel/components/attributes/BorderColor.d.ts +1 -0
  16. package/lib/AttributePanel/components/attributes/BorderStyle.d.ts +5 -0
  17. package/lib/AttributePanel/components/attributes/BorderWidth.d.ts +1 -0
  18. package/lib/AttributePanel/components/attributes/ClassName.d.ts +1 -0
  19. package/lib/AttributePanel/components/attributes/CollapseWrapper/index.d.ts +6 -0
  20. package/lib/AttributePanel/components/attributes/Color.d.ts +4 -0
  21. package/lib/AttributePanel/components/attributes/Condition.d.ts +1 -0
  22. package/lib/AttributePanel/components/attributes/ContainerBackgroundColor.d.ts +3 -0
  23. package/lib/AttributePanel/components/attributes/Decoration.d.ts +1 -0
  24. package/lib/AttributePanel/components/attributes/Direction.d.ts +1 -0
  25. package/lib/AttributePanel/components/attributes/FontFamily.d.ts +3 -0
  26. package/lib/AttributePanel/components/attributes/FontSize.d.ts +1 -0
  27. package/lib/AttributePanel/components/attributes/FontStyle.d.ts +3 -0
  28. package/lib/AttributePanel/components/attributes/FontWeight.d.ts +3 -0
  29. package/lib/AttributePanel/components/attributes/Height.d.ts +5 -0
  30. package/lib/AttributePanel/components/attributes/Iteration.d.ts +1 -0
  31. package/lib/AttributePanel/components/attributes/LetterSpacing.d.ts +3 -0
  32. package/lib/AttributePanel/components/attributes/LineHeight.d.ts +3 -0
  33. package/lib/AttributePanel/components/attributes/Link.d.ts +1 -0
  34. package/lib/AttributePanel/components/attributes/Margin.d.ts +1 -0
  35. package/lib/AttributePanel/components/attributes/MergeTags.d.ts +6 -0
  36. package/lib/AttributePanel/components/attributes/NavbarLinkPadding.d.ts +3 -0
  37. package/lib/AttributePanel/components/attributes/Padding.d.ts +7 -0
  38. package/lib/AttributePanel/components/attributes/TextAlign.d.ts +3 -0
  39. package/lib/AttributePanel/components/attributes/TextDecoration.d.ts +3 -0
  40. package/lib/AttributePanel/components/attributes/TextTransform.d.ts +3 -0
  41. package/lib/AttributePanel/components/attributes/VerticalAlign.d.ts +3 -0
  42. package/lib/AttributePanel/components/attributes/Width.d.ts +7 -0
  43. package/lib/AttributePanel/components/attributes/index.d.ts +32 -0
  44. package/lib/AttributePanel/components/blocks/Accordion/index.d.ts +1 -0
  45. package/lib/AttributePanel/components/blocks/AccordionElement/index.d.ts +1 -0
  46. package/lib/AttributePanel/components/blocks/AccordionText/index.d.ts +1 -0
  47. package/lib/AttributePanel/components/blocks/AccordionTitle/index.d.ts +1 -0
  48. package/lib/AttributePanel/components/blocks/AdvancedTable/Operation/index.d.ts +1 -0
  49. package/lib/AttributePanel/components/blocks/AdvancedTable/Operation/tableCellBgSelector.d.ts +6 -0
  50. package/lib/AttributePanel/components/blocks/AdvancedTable/Operation/tableMenuConfig.d.ts +44 -0
  51. package/lib/AttributePanel/components/blocks/AdvancedTable/Operation/tableOperationMenu.d.ts +65 -0
  52. package/lib/AttributePanel/components/blocks/AdvancedTable/Operation/tableTool.d.ts +45 -0
  53. package/lib/AttributePanel/components/blocks/AdvancedTable/Operation/type.d.ts +21 -0
  54. package/lib/AttributePanel/components/blocks/AdvancedTable/Operation/util.d.ts +23 -0
  55. package/lib/AttributePanel/components/blocks/AdvancedTable/index.d.ts +1 -0
  56. package/lib/AttributePanel/components/blocks/Button/index.d.ts +1 -0
  57. package/lib/AttributePanel/components/blocks/Carousel/index.d.ts +1 -0
  58. package/lib/AttributePanel/components/blocks/Column/index.d.ts +1 -0
  59. package/lib/AttributePanel/components/blocks/Divider/index.d.ts +1 -0
  60. package/lib/AttributePanel/components/blocks/Group/index.d.ts +1 -0
  61. package/lib/AttributePanel/components/blocks/Hero/index.d.ts +1 -0
  62. package/lib/AttributePanel/components/blocks/Image/index.d.ts +1 -0
  63. package/lib/AttributePanel/components/blocks/Navbar/index.d.ts +1 -0
  64. package/lib/AttributePanel/components/blocks/Page/index.d.ts +6 -0
  65. package/lib/AttributePanel/components/blocks/Raw/index.d.ts +1 -0
  66. package/lib/AttributePanel/components/blocks/Section/index.d.ts +1 -0
  67. package/lib/AttributePanel/components/blocks/Social/index.d.ts +1 -0
  68. package/lib/AttributePanel/components/blocks/Spacer/index.d.ts +1 -0
  69. package/lib/AttributePanel/components/blocks/Table/index.d.ts +1 -0
  70. package/lib/AttributePanel/components/blocks/Text/index.d.ts +1 -0
  71. package/lib/AttributePanel/components/blocks/Wrapper/index.d.ts +1 -0
  72. package/lib/AttributePanel/components/blocks/index.d.ts +58 -0
  73. package/lib/AttributePanel/components/provider/PresetColorsProvider/index.d.ts +8 -0
  74. package/lib/AttributePanel/components/provider/SelectionRangeProvider/index.d.ts +8 -0
  75. package/lib/AttributePanel/components/provider/index.d.ts +2 -0
  76. package/lib/AttributePanel/hooks/useSelectionRange.d.ts +7 -0
  77. package/lib/AttributePanel/index.d.ts +5 -0
  78. package/lib/AttributePanel/utils/BlockAttributeConfigurationManager.d.ts +11 -0
  79. package/lib/AttributePanel/utils/InputNumberAdapter.d.ts +2 -0
  80. package/lib/AttributePanel/utils/PromiseEach.d.ts +1 -0
  81. package/lib/AttributePanel/utils/Uploader.d.ts +35 -0
  82. package/lib/AttributePanel/utils/awaitForElement.d.ts +4 -0
  83. package/lib/AttributePanel/utils/classnames.d.ts +1 -0
  84. package/lib/AttributePanel/utils/getImg.d.ts +8 -0
  85. package/lib/AttributePanel/utils/onDrag.d.ts +10 -0
  86. package/lib/AttributePanel/utils/previewLoadImage.d.ts +1 -0
  87. package/lib/BlockLayer/components/BlockTree/index.d.ts +51 -0
  88. package/lib/BlockLayer/components/BlockTree/transparentImage.d.ts +1 -0
  89. package/lib/BlockLayer/components/ContextMenu/index.d.ts +14 -0
  90. package/lib/BlockLayer/components/EyeIcon/index.d.ts +7 -0
  91. package/lib/BlockLayer/hooks/useAvatarWrapperDrop.d.ts +24 -0
  92. package/lib/BlockLayer/index.d.ts +13 -0
  93. package/lib/ConfigurationPanel/index.d.ts +9 -0
  94. package/lib/EditPanel/Blocks/index.d.ts +1 -0
  95. package/lib/EditPanel/ConfigurationDrawer/index.d.ts +7 -0
  96. package/lib/EditPanel/index.d.ts +5 -0
  97. package/lib/InteractivePrompt/components/FocusTooltip.d.ts +1 -0
  98. package/lib/InteractivePrompt/components/HoverTooltip.d.ts +1 -0
  99. package/lib/InteractivePrompt/components/Toolbar.d.ts +1 -0
  100. package/lib/InteractivePrompt/index.d.ts +1 -0
  101. package/lib/InteractivePrompt/utils/awaitForElement.d.ts +4 -0
  102. package/lib/MergeTagBadgePrompt/index.d.ts +1 -0
  103. package/lib/ShortcutToolbar/ShortcutToolbar.d.ts +1 -0
  104. package/lib/ShortcutToolbar/components/BlockMaskWrapper/index.d.ts +7 -0
  105. package/lib/ShortcutToolbar/components/BlocksPanel/index.d.ts +4 -0
  106. package/lib/ShortcutToolbar/components/BlocksPanel/presetTemplate/AccordionBlockItem/index.d.ts +1 -0
  107. package/lib/ShortcutToolbar/components/BlocksPanel/presetTemplate/ButtonBlockItem/index.d.ts +1 -0
  108. package/lib/ShortcutToolbar/components/BlocksPanel/presetTemplate/CarouselBlockItem/index.d.ts +1 -0
  109. package/lib/ShortcutToolbar/components/BlocksPanel/presetTemplate/ColumnBlockItem/index.d.ts +1 -0
  110. package/lib/ShortcutToolbar/components/BlocksPanel/presetTemplate/DividerBlockItem/index.d.ts +1 -0
  111. package/lib/ShortcutToolbar/components/BlocksPanel/presetTemplate/GroupBlockItem/index.d.ts +1 -0
  112. package/lib/ShortcutToolbar/components/BlocksPanel/presetTemplate/HeroBlockItem/index.d.ts +1 -0
  113. package/lib/ShortcutToolbar/components/BlocksPanel/presetTemplate/ImageBlockItem/index.d.ts +1 -0
  114. package/lib/ShortcutToolbar/components/BlocksPanel/presetTemplate/NavbarBlockItem/index.d.ts +1 -0
  115. package/lib/ShortcutToolbar/components/BlocksPanel/presetTemplate/RawBlockItem/index.d.ts +1 -0
  116. package/lib/ShortcutToolbar/components/BlocksPanel/presetTemplate/SectionBlockItem/index.d.ts +1 -0
  117. package/lib/ShortcutToolbar/components/BlocksPanel/presetTemplate/SocialBlockItem/index.d.ts +1 -0
  118. package/lib/ShortcutToolbar/components/BlocksPanel/presetTemplate/SpacerBlockItem/index.d.ts +1 -0
  119. package/lib/ShortcutToolbar/components/BlocksPanel/presetTemplate/TextBlockItem/index.d.ts +1 -0
  120. package/lib/ShortcutToolbar/components/BlocksPanel/presetTemplate/WrapperBlockItem/index.d.ts +1 -0
  121. package/lib/ShortcutToolbar/components/BlocksPanel/presetTemplate/index.d.ts +18 -0
  122. package/lib/ShortcutToolbar/components/DragIcon/index.d.ts +7 -0
  123. package/lib/ShortcutToolbar/components/Picture/index.d.ts +7 -0
  124. package/lib/ShortcutToolbar/index.d.ts +4 -0
  125. package/lib/ShortcutToolbar/utils/BlockMarketManager.d.ts +32 -0
  126. package/lib/ShortcutToolbar/utils/getImg.d.ts +68 -0
  127. package/lib/SimpleLayout/SimpleLayout.d.ts +9 -0
  128. package/lib/SimpleLayout/index.d.ts +1 -0
  129. package/lib/SourceCodePanel/index.d.ts +4 -0
  130. package/lib/StandardLayout/StandardLayout.d.ts +3 -0
  131. package/lib/StandardLayout/index.d.ts +1 -0
  132. package/lib/components/AddToCollection/index.d.ts +5 -0
  133. package/lib/components/Form/AddFont.d.ts +1 -0
  134. package/lib/components/Form/AutoComplete.d.ts +12 -0
  135. package/lib/components/Form/CheckBoxGroup.d.ts +14 -0
  136. package/lib/components/Form/CodemirrorEditor/index.d.ts +8 -0
  137. package/lib/components/Form/ColorPicker/ColorPickerContent.d.ts +5 -0
  138. package/lib/components/Form/ColorPicker/index.d.ts +11 -0
  139. package/lib/components/Form/ColorPicker2.d.ts +10 -0
  140. package/lib/components/Form/ColorPickerField/index.d.ts +5 -0
  141. package/lib/components/Form/EditGridTab.d.ts +10 -0
  142. package/lib/components/Form/EditTab.d.ts +10 -0
  143. package/lib/components/Form/ImageUploader/index.d.ts +13 -0
  144. package/lib/components/Form/InlineTextField/index.d.ts +7 -0
  145. package/lib/components/Form/Input.d.ts +7 -0
  146. package/lib/components/Form/InputWithUnit.d.ts +11 -0
  147. package/lib/components/Form/RadioGroup.d.ts +13 -0
  148. package/lib/components/Form/RichTextField/index.d.ts +2 -0
  149. package/lib/components/Form/RichTextToolBar/RichTextToolBar.d.ts +3 -0
  150. package/lib/components/Form/RichTextToolBar/components/BasicTools.d.ts +1 -0
  151. package/lib/components/Form/RichTextToolBar/components/Bold/index.d.ts +6 -0
  152. package/lib/components/Form/RichTextToolBar/components/FontFamily/index.d.ts +5 -0
  153. package/lib/components/Form/RichTextToolBar/components/FontSize/index.d.ts +5 -0
  154. package/lib/components/Form/RichTextToolBar/components/Heading/index.d.ts +3 -0
  155. package/lib/components/Form/RichTextToolBar/components/Italic/index.d.ts +6 -0
  156. package/lib/components/Form/RichTextToolBar/components/Link/index.d.ts +13 -0
  157. package/lib/components/Form/RichTextToolBar/components/MergeTags/index.d.ts +5 -0
  158. package/lib/components/Form/RichTextToolBar/components/StrikeThrough/index.d.ts +6 -0
  159. package/lib/components/Form/RichTextToolBar/components/ToolItem/index.d.ts +9 -0
  160. package/lib/components/Form/RichTextToolBar/components/Tools/IconBgColor/index.d.ts +5 -0
  161. package/lib/components/Form/RichTextToolBar/components/Tools/IconFontColor/index.d.ts +5 -0
  162. package/lib/components/Form/RichTextToolBar/components/Tools/Tools.d.ts +4 -0
  163. package/lib/components/Form/RichTextToolBar/components/Tools/index.d.ts +1 -0
  164. package/lib/components/Form/RichTextToolBar/components/Underline/index.d.ts +6 -0
  165. package/lib/components/Form/RichTextToolBar/components/Unlink/index.d.ts +12 -0
  166. package/lib/components/Form/RichTextToolBar/index.d.ts +1 -0
  167. package/lib/components/Form/Select.d.ts +11 -0
  168. package/lib/components/Form/UploadField.d.ts +8 -0
  169. package/lib/components/Form/enhancer.d.ts +25 -0
  170. package/lib/components/Form/index.d.ts +34 -0
  171. package/lib/components/FullHeightOverlayScrollbars/index.d.ts +6 -0
  172. package/lib/components/Providers/ExtensionProvider.d.ts +43 -0
  173. package/lib/components/RenderCount/index.d.ts +1 -0
  174. package/lib/components/ShadowDom/index.d.ts +2 -0
  175. package/lib/constants.d.ts +1 -0
  176. package/lib/hooks/useAddToCollection.d.ts +6 -0
  177. package/lib/hooks/useFontFamily.d.ts +6 -0
  178. package/lib/index-Bn1WWuxZ.mjs +66659 -0
  179. package/lib/index-Bn1WWuxZ.mjs.map +1 -0
  180. package/lib/index-C9pqurE7.mjs +6796 -0
  181. package/lib/index-C9pqurE7.mjs.map +1 -0
  182. package/lib/index.d.ts +17 -0
  183. package/lib/index.js +80 -0
  184. package/lib/index.js.map +1 -0
  185. package/lib/style.css +12 -0
  186. package/lib/typings/mjml-browser.d.ts +37 -0
  187. package/lib/utils/MjmlToJson.d.ts +5 -0
  188. package/lib/utils/awaitForElement.d.ts +4 -0
  189. package/lib/utils/classnames.d.ts +1 -0
  190. package/lib/utils/getBlockTitle.d.ts +2 -0
  191. package/lib/utils/getContextMergeTags.d.ts +7 -0
  192. package/lib/utils/getIconNameByBlockType.d.ts +2 -0
  193. package/lib/utils/getPreviewClassName.d.ts +1 -0
  194. package/lib/utils/parseXMLtoBlock.d.ts +2 -0
  195. package/package.json +105 -0
  196. package/readme.md +116 -0
@@ -0,0 +1,2 @@
1
+ export { SelectionRangeProvider } from './SelectionRangeProvider';
2
+ export { PresetColorsProvider } from './PresetColorsProvider';
@@ -0,0 +1,7 @@
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
+ setRangeByElement: (element: ChildNode) => void;
7
+ };
@@ -0,0 +1,5 @@
1
+ export { AttributePanel } from './AttributePanel';
2
+ export { BlockAttributeConfigurationManager } from './utils/BlockAttributeConfigurationManager';
3
+ export * from './components/attributes';
4
+ export * from './components/provider';
5
+ export { Page as DefaultPageConfigPanel } from './components/blocks/Page';
@@ -0,0 +1,11 @@
1
+ import React, { ReactNode } from 'react';
2
+ type ObjectComponent = {
3
+ [key: string]: (...args: any) => ReactNode;
4
+ };
5
+ export declare class BlockAttributeConfigurationManager {
6
+ private static map;
7
+ static add(componentMap: ObjectComponent): void;
8
+ static get<T extends ObjectComponent>(name: keyof T): () => React.JSX.Element | null;
9
+ static getMap(): ObjectComponent;
10
+ }
11
+ 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 type UploadItem = {
9
+ idx: string;
10
+ url: string;
11
+ status: 'pending' | 'done' | 'error';
12
+ };
13
+ export type UploaderEventMap = {
14
+ start: (data: UploadItem[]) => void;
15
+ progress: (data: UploadItem[]) => void;
16
+ end: (data: UploadItem[]) => void;
17
+ };
18
+ export 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,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>): import("react/jsx-runtime").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
+ }): import("react/jsx-runtime").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
+ }): import("react/jsx-runtime").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,13 @@
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 interface BlockLayerProps {
11
+ renderTitle?: (block: IBlockDataWithId) => React.ReactNode;
12
+ }
13
+ export declare function BlockLayer(props: BlockLayerProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,9 @@
1
+ export interface ConfigurationPanelProps {
2
+ showSourceCode: boolean;
3
+ jsonReadOnly: boolean;
4
+ mjmlReadOnly: boolean;
5
+ height: string;
6
+ onBack?: () => void;
7
+ compact?: boolean;
8
+ }
9
+ export declare function ConfigurationPanel({ showSourceCode, height, onBack, compact, jsonReadOnly, mjmlReadOnly, }: ConfigurationPanelProps): import("react/jsx-runtime").JSX.Element | null;
@@ -0,0 +1 @@
1
+ export declare function Blocks(): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,7 @@
1
+ export declare function ConfigurationDrawer({ height, compact, showSourceCode, jsonReadOnly, mjmlReadOnly, }: {
2
+ height: string;
3
+ compact: boolean;
4
+ showSourceCode: boolean;
5
+ jsonReadOnly: boolean;
6
+ mjmlReadOnly: boolean;
7
+ }): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,5 @@
1
+ export declare function EditPanel({ showSourceCode, jsonReadOnly, mjmlReadOnly, }: {
2
+ showSourceCode: boolean;
3
+ jsonReadOnly: boolean;
4
+ mjmlReadOnly: boolean;
5
+ }): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export declare function FocusTooltip(): import("react/jsx-runtime").JSX.Element | null;
@@ -0,0 +1 @@
1
+ export declare function HoverTooltip(): import("react/jsx-runtime").JSX.Element | null;
@@ -0,0 +1 @@
1
+ export declare function Toolbar(): import("react/jsx-runtime").JSX.Element | null;
@@ -0,0 +1 @@
1
+ export declare function InteractivePrompt(): import("react/jsx-runtime").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 MergeTagBadgePrompt(): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export declare function ShortcutToolbar(): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,7 @@
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
+ children: React.ReactNode | React.ReactElement;
7
+ }>;
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ export declare const BlocksPanel: React.FC<{
3
+ children: React.ReactNode | React.ReactElement;
4
+ }>;
@@ -0,0 +1 @@
1
+ export declare function AccordionBlockItem(): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export declare function ButtonBlockItem(): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export declare function CarouselBlockItem(): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export declare function ColumnBlockItem(): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export declare function DividerBlockItem(): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export declare function GroupBlockItem(): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export declare function HeroBlockItem(): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export declare function ImageBlockItem(): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export declare function NavbarBlockItem(): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export declare function RawBlockItem(): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export declare function SectionBlockItem(): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export declare function SocialBlockItem(): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export declare function SpacerBlockItem(): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export declare function TextBlockItem(): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export declare function WrapperBlockItem(): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,18 @@
1
+ import { AdvancedType } from 'easy-email-core';
2
+ import { TextBlockItem } from './TextBlockItem';
3
+ import { ImageBlockItem } from './ImageBlockItem';
4
+ export declare const defaultCategories: {
5
+ readonly title: string;
6
+ name: string;
7
+ blocks: ({
8
+ type: AdvancedType;
9
+ readonly title: string;
10
+ readonly description: string;
11
+ component: typeof TextBlockItem;
12
+ } | {
13
+ type: AdvancedType;
14
+ readonly title: string;
15
+ readonly description: import("react/jsx-runtime").JSX.Element;
16
+ component: typeof ImageBlockItem;
17
+ })[];
18
+ }[];
@@ -0,0 +1,7 @@
1
+ import { IBlockData, RecursivePartial } from 'easy-email-core';
2
+ export interface DragIconProps<T extends IBlockData> {
3
+ type: string;
4
+ payload?: RecursivePartial<T>;
5
+ color: string;
6
+ }
7
+ export declare function DragIcon<T extends IBlockData = any>(props: DragIconProps<T>): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +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): import("react/jsx-runtime").JSX.Element;
7
+ export {};
@@ -0,0 +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';
@@ -0,0 +1,32 @@
1
+ import React from '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: () => React.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: () => React.JSX.Element | null;
29
+ }[]): void;
30
+ static removeCategories(list: BlockMarketCategory[]): void;
31
+ static removeCategory(name: string): void;
32
+ }
@@ -0,0 +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 {};
@@ -0,0 +1,9 @@
1
+ import React from 'react';
2
+ import { BlockLayerProps } from '../BlockLayer';
3
+ export declare const SimpleLayout: React.FC<{
4
+ showSourceCode?: boolean;
5
+ jsonReadOnly?: boolean;
6
+ mjmlReadOnly?: boolean;
7
+ defaultShowLayer?: boolean;
8
+ children: React.ReactNode | React.ReactElement;
9
+ } & BlockLayerProps>;
@@ -0,0 +1 @@
1
+ export { SimpleLayout } from './SimpleLayout';
@@ -0,0 +1,4 @@
1
+ export declare function SourceCodePanel({ jsonReadOnly, mjmlReadOnly }: {
2
+ jsonReadOnly: boolean;
3
+ mjmlReadOnly: boolean;
4
+ }): import("react/jsx-runtime").JSX.Element | null;
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ import { ExtensionProps } from '../components/Providers/ExtensionProvider';
3
+ export declare const StandardLayout: React.FC<ExtensionProps>;
@@ -0,0 +1 @@
1
+ export { StandardLayout } from './StandardLayout';
@@ -0,0 +1,5 @@
1
+ import React from 'react';
2
+ export declare const AddToCollection: React.FC<{
3
+ visible: boolean;
4
+ setVisible: (v: boolean) => void;
5
+ }>;
@@ -0,0 +1 @@
1
+ export declare function AddFont(): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,12 @@
1
+ import { AutoCompleteProps as ArcoAutoCompleteProps } from '@arco-design/web-react';
2
+ export interface AutoCompleteProps extends Omit<ArcoAutoCompleteProps, 'onChange' | 'options'> {
3
+ quickchange?: boolean;
4
+ value: string;
5
+ options: Array<{
6
+ value: any;
7
+ label: any;
8
+ }>;
9
+ onChange: (val: string) => void;
10
+ showSearch?: boolean;
11
+ }
12
+ export declare function AutoComplete(props: AutoCompleteProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,14 @@
1
+ import React from 'react';
2
+ import { CheckboxGroupProps as ArcoCheckboxGroupProps } from '@arco-design/web-react';
3
+ export interface CheckboxGroupProps extends ArcoCheckboxGroupProps<any> {
4
+ options: Array<{
5
+ value: string;
6
+ label: React.ReactNode;
7
+ }>;
8
+ onChange?: (e: any[]) => void;
9
+ value?: ArcoCheckboxGroupProps<any>['value'];
10
+ style?: Partial<React.CSSProperties>;
11
+ checkboxStyle?: Partial<React.CSSProperties>;
12
+ vertical?: boolean;
13
+ }
14
+ export declare function CheckBoxGroup(props: CheckboxGroupProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,8 @@
1
+ import 'codemirror/lib/codemirror.css';
2
+ import 'codemirror/theme/material.css';
3
+ import 'codemirror/theme/neat.css';
4
+ import 'codemirror/mode/xml/xml.js';
5
+ export default function CodemirrorEditor(props: {
6
+ value: string;
7
+ onChange(val: string): void;
8
+ }): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,5 @@
1
+ export interface ColorPickerContentProps {
2
+ onChange: (val: string) => void;
3
+ value: string;
4
+ }
5
+ export declare function ColorPickerContent(props: ColorPickerContentProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,11 @@
1
+ import { PopoverProps } from '@arco-design/web-react';
2
+ import React from 'react';
3
+ export interface ColorPickerProps extends PopoverProps {
4
+ onChange?: (val: string) => void;
5
+ value?: string;
6
+ label: string;
7
+ children?: React.ReactNode;
8
+ showInput?: boolean;
9
+ fixed?: boolean;
10
+ }
11
+ export declare function ColorPicker(props: ColorPickerProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,10 @@
1
+ import { PopoverProps } from '@arco-design/web-react';
2
+ import React from 'react';
3
+ export interface ColorPickerProps extends PopoverProps {
4
+ onChange?: (val: string) => void;
5
+ value?: string;
6
+ label: string;
7
+ children?: React.ReactNode;
8
+ showInput?: boolean;
9
+ }
10
+ export declare function ColorPicker(props: ColorPickerProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,5 @@
1
+ import { ComponentProps } from 'react';
2
+ import { ColorPickerProps } from '../ColorPicker';
3
+ declare const ColorPickerFieldSource: (props: import("../enhancer").EnhancerProps & Omit<ColorPickerProps, "onChange" | "value" | "mutators">) => import("react/jsx-runtime").JSX.Element;
4
+ export declare const ColorPickerField: (props: ComponentProps<typeof ColorPickerFieldSource>) => import("react/jsx-runtime").JSX.Element;
5
+ export {};
@@ -0,0 +1,10 @@
1
+ import { TabsProps } from '@arco-design/web-react';
2
+ import React from 'react';
3
+ export interface EditGridTabProps<T extends any = any> extends Omit<TabsProps, 'onChange'> {
4
+ value: Array<T>;
5
+ renderItem: (item: T, index: number) => React.ReactNode;
6
+ onChange: (vals: Array<T>) => any;
7
+ additionItem?: T;
8
+ label: string;
9
+ }
10
+ export declare function EditGridTab<T extends any = any>(props: EditGridTabProps<T>): import("react/jsx-runtime").JSX.Element;