@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,3 @@
1
+ export interface AttributePanelProps {
2
+ }
3
+ export declare function AttributePanel(): import("react/jsx-runtime").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
+ }): import("react/jsx-runtime").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,4 @@
1
+ export declare const JsonAdapter: {
2
+ format(obj: any): string;
3
+ parse(val: string): any;
4
+ };
@@ -0,0 +1,4 @@
1
+ export declare const colorAdapter: {
2
+ format(val: string): string;
3
+ parse(val: string): string | undefined;
4
+ };
@@ -0,0 +1,4 @@
1
+ export declare const imageHeightAdapter: {
2
+ format(val: string): string | undefined;
3
+ parse(val: string | number): string | undefined;
4
+ };
@@ -0,0 +1,5 @@
1
+ export { JsonAdapter } from './Json.adapter';
2
+ export { pixelAdapter } from './pixel.adapter';
3
+ export { sliderAdapter } from './slider.adapter';
4
+ export { colorAdapter } from './color.adapter';
5
+ export { imageHeightAdapter } from './image-height.adapter';
@@ -0,0 +1,4 @@
1
+ export declare const pixelAdapter: {
2
+ format(val: string): string;
3
+ parse(val: string | number): string | undefined;
4
+ };
@@ -0,0 +1,4 @@
1
+ export declare const sliderAdapter: {
2
+ format(val: string): number;
3
+ parse(val: string): string | undefined;
4
+ };
@@ -0,0 +1,3 @@
1
+ export declare function Align({ inline }: {
2
+ inline?: boolean;
3
+ }): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ export interface AttributesPanelWrapper {
3
+ style?: React.CSSProperties;
4
+ extra?: React.ReactNode;
5
+ children: React.ReactNode | React.ReactElement;
6
+ }
7
+ export declare const AttributesPanelWrapper: React.FC<AttributesPanelWrapper>;
@@ -0,0 +1 @@
1
+ export declare function Background(): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,3 @@
1
+ export declare function BackgroundColor({ title }: {
2
+ title?: string;
3
+ }): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export declare function Border(): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export declare function BorderColor(): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,5 @@
1
+ export declare const borderStyleOptions: {
2
+ value: string;
3
+ readonly label: string;
4
+ }[];
5
+ export declare function BorderStyle(): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export declare function BorderWidth(): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export declare function ClassName(): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,6 @@
1
+ import React from 'react';
2
+ export interface CollapseWrapperProps {
3
+ defaultActiveKey: string[];
4
+ children: React.ReactNode | React.ReactElement;
5
+ }
6
+ export declare const CollapseWrapper: React.FC<CollapseWrapperProps>;
@@ -0,0 +1,4 @@
1
+ export declare function Color({ title }: {
2
+ title?: string;
3
+ inline?: boolean;
4
+ }): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export declare function Condition(): import("react/jsx-runtime").JSX.Element | null;
@@ -0,0 +1,3 @@
1
+ export declare function ContainerBackgroundColor({ title, }: {
2
+ title?: string;
3
+ }): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export declare function Decoration(): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export declare function Direction(): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,3 @@
1
+ export declare function FontFamily({ name }: {
2
+ name?: string;
3
+ }): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export declare function FontSize(): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,3 @@
1
+ export declare function FontStyle({ name }: {
2
+ name?: string;
3
+ }): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,3 @@
1
+ export declare function FontWeight({ name }: {
2
+ name?: string;
3
+ }): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,5 @@
1
+ import { UseFieldConfig } from 'react-final-form';
2
+ export declare function Height({ inline, config, }: {
3
+ inline?: boolean;
4
+ config?: UseFieldConfig;
5
+ }): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export declare function Iteration(): import("react/jsx-runtime").JSX.Element | null;
@@ -0,0 +1,3 @@
1
+ export declare function LetterSpacing({ name }: {
2
+ name?: string;
3
+ }): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,3 @@
1
+ export declare function LineHeight({ name }: {
2
+ name?: string;
3
+ }): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export declare function Link(): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export declare function Margin(): import("react/jsx-runtime").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
+ }): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,7 @@
1
+ export interface PaddingProps {
2
+ title?: string;
3
+ attributeName?: 'padding' | 'inner-padding' | 'text-padding';
4
+ name?: string;
5
+ showResetAll?: boolean;
6
+ }
7
+ export declare function Padding(props?: PaddingProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,3 @@
1
+ export declare function TextAlign({ name }: {
2
+ name?: string;
3
+ }): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,3 @@
1
+ export declare function TextDecoration({ name }: {
2
+ name?: string;
3
+ }): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,3 @@
1
+ export declare function TextTransform({ name }: {
2
+ name?: string;
3
+ }): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,3 @@
1
+ export declare function VerticalAlign({ attributeName, }: {
2
+ attributeName?: string;
3
+ }): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,7 @@
1
+ import { InputWithUnitProps } from '../../../components/Form/InputWithUnit';
2
+ import { UseFieldConfig } from 'react-final-form';
3
+ export declare function Width({ inline, unitOptions, config, }: {
4
+ inline?: boolean;
5
+ unitOptions?: InputWithUnitProps['unitOptions'];
6
+ config?: UseFieldConfig;
7
+ }): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,32 @@
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 { CollapseWrapper } from './CollapseWrapper';
7
+ export { Condition } from './Condition';
8
+ export { ContainerBackgroundColor } from './ContainerBackgroundColor';
9
+ export { LetterSpacing } from './LetterSpacing';
10
+ export { TextDecoration } from './TextDecoration';
11
+ export { Background } from './Background';
12
+ export { Decoration } from './Decoration';
13
+ export { LineHeight } from './LineHeight';
14
+ export { TextTransform } from './TextTransform';
15
+ export { BackgroundColor } from './BackgroundColor';
16
+ export { Direction } from './Direction';
17
+ export { Link } from './Link';
18
+ export { VerticalAlign } from './VerticalAlign';
19
+ export { Border } from './Border';
20
+ export { FontFamily } from './FontFamily';
21
+ export { Margin } from './Margin';
22
+ export { Width } from './Width';
23
+ export { BorderColor } from './BorderColor';
24
+ export { FontSize } from './FontSize';
25
+ export { MergeTags } from './MergeTags';
26
+ export { BorderStyle } from './BorderStyle';
27
+ export { FontStyle } from './FontStyle';
28
+ export { NavbarLinkPadding } from './NavbarLinkPadding';
29
+ export { BorderWidth } from './BorderWidth';
30
+ export { FontWeight } from './FontWeight';
31
+ export { Padding } from './Padding';
32
+ export { ClassName } from './ClassName';
@@ -0,0 +1 @@
1
+ export declare function Accordion(): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export declare function AccordionElement(): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export declare function AccordionText(): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export declare function AccordionTitle(): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export declare function TableOperation(): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,6 @@
1
+ interface CellBackgroundSelectorProps {
2
+ bgColorHandler: (color: string) => void;
3
+ rootDom: Element;
4
+ }
5
+ declare const getCellBackgroundSelectorRoot: (bgColorHandler: CellBackgroundSelectorProps['bgColorHandler'], rootDom: any) => HTMLDivElement;
6
+ export default getCellBackgroundSelectorRoot;
@@ -0,0 +1,44 @@
1
+ import TableOperationMenu from './tableOperationMenu';
2
+ declare const MENU_CONFIG: {
3
+ insertColumnRight: {
4
+ text: string;
5
+ icon: string;
6
+ handler(): void;
7
+ };
8
+ insertColumnLeft: {
9
+ text: string;
10
+ icon: string;
11
+ handler(): void;
12
+ };
13
+ insertRowUp: {
14
+ text: string;
15
+ icon: string;
16
+ handler(): void;
17
+ };
18
+ insertRowDown: {
19
+ text: string;
20
+ icon: string;
21
+ handler(): void;
22
+ };
23
+ mergeCells: {
24
+ text: string;
25
+ icon: string;
26
+ handler(): void;
27
+ };
28
+ deleteColumn: {
29
+ text: string;
30
+ icon: string;
31
+ handler(): void;
32
+ };
33
+ deleteRow: {
34
+ text: string;
35
+ icon: string;
36
+ handler(): void;
37
+ };
38
+ setCellBg: {
39
+ text: string;
40
+ render(tableOperationMenu: TableOperationMenu): HTMLDivElement;
41
+ handler(color: string): void;
42
+ };
43
+ };
44
+ export default MENU_CONFIG;
@@ -0,0 +1,65 @@
1
+ import { IBoundingPosition, IOperationData } from './type';
2
+ export default class TableOperationMenu {
3
+ menuItems: {
4
+ insertColumnRight: {
5
+ text: string;
6
+ icon: string;
7
+ handler(): void;
8
+ };
9
+ insertColumnLeft: {
10
+ text: string;
11
+ icon: string;
12
+ handler(): void;
13
+ };
14
+ insertRowUp: {
15
+ text: string;
16
+ icon: string;
17
+ handler(): void;
18
+ };
19
+ insertRowDown: {
20
+ text: string;
21
+ icon: string;
22
+ handler(): void;
23
+ };
24
+ mergeCells: {
25
+ text: string;
26
+ icon: string;
27
+ handler(): void;
28
+ };
29
+ deleteColumn: {
30
+ text: string;
31
+ icon: string;
32
+ handler(): void;
33
+ };
34
+ deleteRow: {
35
+ text: string;
36
+ icon: string;
37
+ handler(): void;
38
+ };
39
+ setCellBg: {
40
+ text: string;
41
+ render(tableOperationMenu: TableOperationMenu): HTMLDivElement;
42
+ handler(color: string): void;
43
+ };
44
+ };
45
+ domNode: Element | undefined;
46
+ styleDom?: HTMLStyleElement;
47
+ visible: boolean;
48
+ changeTableData?: (e: IOperationData[][]) => void;
49
+ tableData: IOperationData[][];
50
+ tableIndexBoundary: IBoundingPosition;
51
+ maxTdCount: number;
52
+ constructor();
53
+ mount(): void;
54
+ destroy(): void;
55
+ hide(): void;
56
+ addRow(insertIndex: number, colCount: number): void;
57
+ setTableData(tableData: IOperationData[][]): void;
58
+ setTableIndexBoundary(tableIndexBoundary: IBoundingPosition): void;
59
+ showMenu({ x, y }: {
60
+ x: number;
61
+ y: number;
62
+ }): void;
63
+ menuInitial(): void;
64
+ menuItemCreator({ text, icon, handler }: any): HTMLDivElement;
65
+ }
@@ -0,0 +1,45 @@
1
+ import TableOperationMenu from './tableOperationMenu';
2
+ import { AdvancedTableBlock } from 'easy-email-core';
3
+ interface IBorderTool {
4
+ top: Element;
5
+ bottom: Element;
6
+ left: Element;
7
+ right: Element;
8
+ }
9
+ declare class TableColumnTool {
10
+ borderTool: IBorderTool;
11
+ dragging: boolean;
12
+ showBorderTool: boolean;
13
+ startRect: {
14
+ width: number;
15
+ height: number;
16
+ };
17
+ startTdTop: number;
18
+ startTdLeft: number;
19
+ endTdTop: number;
20
+ endTdLeft: number;
21
+ width: number;
22
+ height: number;
23
+ selectedLeftTopCell: Element | undefined;
24
+ selectedBottomRightCell: Element | undefined;
25
+ startDom: Element | undefined;
26
+ endDom: Element | undefined;
27
+ hoveringTable: ParentNode | null;
28
+ root: Element | undefined;
29
+ tableMenu?: TableOperationMenu;
30
+ changeTableData?: (e: AdvancedTableBlock['data']['value']['tableSource']) => void;
31
+ tableData: AdvancedTableBlock['data']['value']['tableSource'];
32
+ constructor(borderTool: IBorderTool, root: Element);
33
+ initTool(): void;
34
+ destroy(): void;
35
+ hideBorder: (e: any) => void;
36
+ hideBorderByKeyDown: () => void;
37
+ hideTableMenu: (e?: any) => void;
38
+ visibleBorder: (show?: boolean) => void;
39
+ renderBorder: () => void;
40
+ handleContextmenu: (event: any) => void;
41
+ handleMousedown(event: any): void;
42
+ handleDrag: (e: any) => void;
43
+ handleMouseup: (e: any) => void;
44
+ }
45
+ export default TableColumnTool;
@@ -0,0 +1,21 @@
1
+ import { IAdvancedTableData } from 'easy-email-core';
2
+ export interface IOperationData extends IAdvancedTableData {
3
+ top: number;
4
+ bottom: number;
5
+ left: number;
6
+ right: number;
7
+ }
8
+ export interface IBoundaryRect {
9
+ left: number;
10
+ top: number;
11
+ right: number;
12
+ bottom: number;
13
+ width: number;
14
+ height: number;
15
+ }
16
+ export interface IBoundingPosition {
17
+ left: number;
18
+ top: number;
19
+ right: number;
20
+ bottom: number;
21
+ }
@@ -0,0 +1,23 @@
1
+ import { IBoundaryRect, IBoundingPosition, IOperationData } from './type';
2
+ import { AdvancedTableBlock } from 'easy-email-core';
3
+ export declare const getBoundaryRectAndElement: (el1: Element, el2: Element) => {
4
+ leftTopCell: Element;
5
+ bottomRightCell: Element;
6
+ boundary: IBoundaryRect;
7
+ } | null;
8
+ export declare function setStyle(domNode: any, rules: any): void;
9
+ export declare const getCurrentTable: (target: Element) => ParentNode | null;
10
+ export declare const getElementsBoundary: (el1: Element, el2: Element) => IBoundingPosition;
11
+ export declare const checkEventInBoundingRect: (rect: IBoundingPosition, { x, y }: {
12
+ x: number;
13
+ y: number;
14
+ }) => boolean;
15
+ export declare const getCellAttr: (el: Element, attrName: string) => number;
16
+ export declare const getTdBoundaryIndex: (leftTopCell: Element, bottomRightCell: Element) => {
17
+ left: number;
18
+ top: number;
19
+ right: number;
20
+ bottom: number;
21
+ };
22
+ export declare const getCorrectTableIndexBoundary: (tableIndexBoundary: IBoundingPosition, tableData: IOperationData[][]) => IBoundingPosition;
23
+ export declare const getMaxTdCount: (tableData: AdvancedTableBlock['data']['value']['tableSource']) => number;
@@ -0,0 +1 @@
1
+ export declare function AdvancedTable(): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export declare function Button(): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export declare function Carousel(): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export declare function Column(): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export declare function Divider(): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export declare function Group(): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export declare function Hero(): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export declare function Image(): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export declare function Navbar(): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,6 @@
1
+ interface PageProps {
2
+ hideSubTitle?: boolean;
3
+ hideSubject?: boolean;
4
+ }
5
+ export declare function Page({ hideSubTitle, hideSubject }: PageProps): import("react/jsx-runtime").JSX.Element | null;
6
+ export {};
@@ -0,0 +1 @@
1
+ export declare function Raw(): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export declare function Section(): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export declare function Social(): import("react/jsx-runtime").JSX.Element | null;
@@ -0,0 +1 @@
1
+ export declare function Spacer(): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export declare function Table(): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export declare function Text(): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export declare function Wrapper(): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,58 @@
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
+ import { AdvancedTable } from './AdvancedTable';
22
+ export declare const blocks: {
23
+ page: typeof Page;
24
+ section: typeof Section;
25
+ column: typeof Column;
26
+ text: typeof Text;
27
+ image: typeof Image;
28
+ group: typeof Group;
29
+ button: typeof Button;
30
+ divider: typeof Divider;
31
+ wrapper: typeof Wrapper;
32
+ spacer: typeof Spacer;
33
+ raw: typeof Raw;
34
+ accordion: typeof Accordion;
35
+ "accordion-element": typeof AccordionElement;
36
+ "accordion-title": typeof AccordionTitle;
37
+ "accordion-text": typeof AccordionText;
38
+ carousel: typeof Carousel;
39
+ hero: typeof Hero;
40
+ navbar: typeof Navbar;
41
+ social: typeof Social;
42
+ table: typeof Table;
43
+ advanced_text: typeof Text;
44
+ advanced_image: typeof Image;
45
+ advanced_button: typeof Button;
46
+ advanced_divider: typeof Divider;
47
+ advanced_spacer: typeof Spacer;
48
+ advanced_accordion: typeof Accordion;
49
+ advanced_carousel: typeof Carousel;
50
+ advanced_navbar: typeof Navbar;
51
+ advanced_social: typeof Social;
52
+ advanced_table: typeof AdvancedTable;
53
+ advanced_hero: typeof Hero;
54
+ advanced_wrapper: typeof Wrapper;
55
+ advanced_section: typeof Section;
56
+ advanced_group: typeof Group;
57
+ advanced_column: typeof Column;
58
+ };
@@ -0,0 +1,8 @@
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<{
7
+ children: React.ReactNode | React.ReactElement;
8
+ }>;
@@ -0,0 +1,8 @@
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<{
7
+ children: React.ReactNode | React.ReactElement;
8
+ }>;