@shopnex/easy-email-extensions 4.16.4

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 +4 -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 +4 -0
  11. package/lib/AttributePanel/components/attributes/AttributesPanelWrapper/index.d.ts +7 -0
  12. package/lib/AttributePanel/components/attributes/Background.d.ts +2 -0
  13. package/lib/AttributePanel/components/attributes/BackgroundColor.d.ts +4 -0
  14. package/lib/AttributePanel/components/attributes/Border.d.ts +2 -0
  15. package/lib/AttributePanel/components/attributes/BorderColor.d.ts +2 -0
  16. package/lib/AttributePanel/components/attributes/BorderStyle.d.ts +6 -0
  17. package/lib/AttributePanel/components/attributes/BorderWidth.d.ts +2 -0
  18. package/lib/AttributePanel/components/attributes/ClassName.d.ts +2 -0
  19. package/lib/AttributePanel/components/attributes/CollapseWrapper/index.d.ts +6 -0
  20. package/lib/AttributePanel/components/attributes/Color.d.ts +5 -0
  21. package/lib/AttributePanel/components/attributes/Condition.d.ts +2 -0
  22. package/lib/AttributePanel/components/attributes/ContainerBackgroundColor.d.ts +4 -0
  23. package/lib/AttributePanel/components/attributes/Decoration.d.ts +2 -0
  24. package/lib/AttributePanel/components/attributes/Direction.d.ts +2 -0
  25. package/lib/AttributePanel/components/attributes/FontFamily.d.ts +4 -0
  26. package/lib/AttributePanel/components/attributes/FontSize.d.ts +2 -0
  27. package/lib/AttributePanel/components/attributes/FontStyle.d.ts +4 -0
  28. package/lib/AttributePanel/components/attributes/FontWeight.d.ts +4 -0
  29. package/lib/AttributePanel/components/attributes/Height.d.ts +6 -0
  30. package/lib/AttributePanel/components/attributes/Iteration.d.ts +2 -0
  31. package/lib/AttributePanel/components/attributes/LetterSpacing.d.ts +4 -0
  32. package/lib/AttributePanel/components/attributes/LineHeight.d.ts +4 -0
  33. package/lib/AttributePanel/components/attributes/Link.d.ts +2 -0
  34. package/lib/AttributePanel/components/attributes/Margin.d.ts +2 -0
  35. package/lib/AttributePanel/components/attributes/MergeTags.d.ts +6 -0
  36. package/lib/AttributePanel/components/attributes/NavbarLinkPadding.d.ts +4 -0
  37. package/lib/AttributePanel/components/attributes/Padding.d.ts +8 -0
  38. package/lib/AttributePanel/components/attributes/TextAlign.d.ts +4 -0
  39. package/lib/AttributePanel/components/attributes/TextDecoration.d.ts +4 -0
  40. package/lib/AttributePanel/components/attributes/TextTransform.d.ts +4 -0
  41. package/lib/AttributePanel/components/attributes/VerticalAlign.d.ts +4 -0
  42. package/lib/AttributePanel/components/attributes/Width.d.ts +8 -0
  43. package/lib/AttributePanel/components/attributes/index.d.ts +32 -0
  44. package/lib/AttributePanel/components/blocks/Accordion/index.d.ts +2 -0
  45. package/lib/AttributePanel/components/blocks/AccordionElement/index.d.ts +2 -0
  46. package/lib/AttributePanel/components/blocks/AccordionText/index.d.ts +2 -0
  47. package/lib/AttributePanel/components/blocks/AccordionTitle/index.d.ts +2 -0
  48. package/lib/AttributePanel/components/blocks/AdvancedTable/Operation/index.d.ts +2 -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 +2 -0
  56. package/lib/AttributePanel/components/blocks/Button/index.d.ts +2 -0
  57. package/lib/AttributePanel/components/blocks/Carousel/index.d.ts +2 -0
  58. package/lib/AttributePanel/components/blocks/Column/index.d.ts +2 -0
  59. package/lib/AttributePanel/components/blocks/Divider/index.d.ts +2 -0
  60. package/lib/AttributePanel/components/blocks/Group/index.d.ts +2 -0
  61. package/lib/AttributePanel/components/blocks/Hero/index.d.ts +2 -0
  62. package/lib/AttributePanel/components/blocks/Image/index.d.ts +2 -0
  63. package/lib/AttributePanel/components/blocks/Navbar/index.d.ts +2 -0
  64. package/lib/AttributePanel/components/blocks/Page/index.d.ts +7 -0
  65. package/lib/AttributePanel/components/blocks/Raw/index.d.ts +2 -0
  66. package/lib/AttributePanel/components/blocks/Section/index.d.ts +2 -0
  67. package/lib/AttributePanel/components/blocks/Social/index.d.ts +2 -0
  68. package/lib/AttributePanel/components/blocks/Spacer/index.d.ts +2 -0
  69. package/lib/AttributePanel/components/blocks/Table/index.d.ts +2 -0
  70. package/lib/AttributePanel/components/blocks/Text/index.d.ts +2 -0
  71. package/lib/AttributePanel/components/blocks/Wrapper/index.d.ts +2 -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 +10 -0
  94. package/lib/EditPanel/Blocks/index.d.ts +2 -0
  95. package/lib/EditPanel/ConfigurationDrawer/index.d.ts +8 -0
  96. package/lib/EditPanel/index.d.ts +6 -0
  97. package/lib/InteractivePrompt/components/FocusTooltip.d.ts +2 -0
  98. package/lib/InteractivePrompt/components/HoverTooltip.d.ts +2 -0
  99. package/lib/InteractivePrompt/components/Toolbar.d.ts +2 -0
  100. package/lib/InteractivePrompt/index.d.ts +2 -0
  101. package/lib/InteractivePrompt/utils/awaitForElement.d.ts +4 -0
  102. package/lib/MergeTagBadgePrompt/index.d.ts +2 -0
  103. package/lib/ShortcutToolbar/ShortcutToolbar.d.ts +2 -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 +2 -0
  107. package/lib/ShortcutToolbar/components/BlocksPanel/presetTemplate/ButtonBlockItem/index.d.ts +2 -0
  108. package/lib/ShortcutToolbar/components/BlocksPanel/presetTemplate/CarouselBlockItem/index.d.ts +2 -0
  109. package/lib/ShortcutToolbar/components/BlocksPanel/presetTemplate/ColumnBlockItem/index.d.ts +2 -0
  110. package/lib/ShortcutToolbar/components/BlocksPanel/presetTemplate/DividerBlockItem/index.d.ts +2 -0
  111. package/lib/ShortcutToolbar/components/BlocksPanel/presetTemplate/GroupBlockItem/index.d.ts +2 -0
  112. package/lib/ShortcutToolbar/components/BlocksPanel/presetTemplate/HeroBlockItem/index.d.ts +2 -0
  113. package/lib/ShortcutToolbar/components/BlocksPanel/presetTemplate/ImageBlockItem/index.d.ts +2 -0
  114. package/lib/ShortcutToolbar/components/BlocksPanel/presetTemplate/NavbarBlockItem/index.d.ts +2 -0
  115. package/lib/ShortcutToolbar/components/BlocksPanel/presetTemplate/RawBlockItem/index.d.ts +2 -0
  116. package/lib/ShortcutToolbar/components/BlocksPanel/presetTemplate/SectionBlockItem/index.d.ts +2 -0
  117. package/lib/ShortcutToolbar/components/BlocksPanel/presetTemplate/SocialBlockItem/index.d.ts +2 -0
  118. package/lib/ShortcutToolbar/components/BlocksPanel/presetTemplate/SpacerBlockItem/index.d.ts +2 -0
  119. package/lib/ShortcutToolbar/components/BlocksPanel/presetTemplate/TextBlockItem/index.d.ts +2 -0
  120. package/lib/ShortcutToolbar/components/BlocksPanel/presetTemplate/WrapperBlockItem/index.d.ts +2 -0
  121. package/lib/ShortcutToolbar/components/BlocksPanel/presetTemplate/index.d.ts +19 -0
  122. package/lib/ShortcutToolbar/components/DragIcon/index.d.ts +8 -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 +5 -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 +2 -0
  134. package/lib/components/Form/AutoComplete.d.ts +13 -0
  135. package/lib/components/Form/CheckBoxGroup.d.ts +14 -0
  136. package/lib/components/Form/CodemirrorEditor/index.d.ts +9 -0
  137. package/lib/components/Form/ColorPicker/ColorPickerContent.d.ts +6 -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 +8 -0
  146. package/lib/components/Form/InputWithUnit.d.ts +12 -0
  147. package/lib/components/Form/RadioGroup.d.ts +13 -0
  148. package/lib/components/Form/RichTextField/index.d.ts +3 -0
  149. package/lib/components/Form/RichTextToolBar/RichTextToolBar.d.ts +4 -0
  150. package/lib/components/Form/RichTextToolBar/components/BasicTools.d.ts +2 -0
  151. package/lib/components/Form/RichTextToolBar/components/Bold/index.d.ts +7 -0
  152. package/lib/components/Form/RichTextToolBar/components/FontFamily/index.d.ts +6 -0
  153. package/lib/components/Form/RichTextToolBar/components/FontSize/index.d.ts +6 -0
  154. package/lib/components/Form/RichTextToolBar/components/Heading/index.d.ts +4 -0
  155. package/lib/components/Form/RichTextToolBar/components/Italic/index.d.ts +7 -0
  156. package/lib/components/Form/RichTextToolBar/components/Link/index.d.ts +14 -0
  157. package/lib/components/Form/RichTextToolBar/components/MergeTags/index.d.ts +6 -0
  158. package/lib/components/Form/RichTextToolBar/components/StrikeThrough/index.d.ts +7 -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 +6 -0
  161. package/lib/components/Form/RichTextToolBar/components/Tools/IconFontColor/index.d.ts +6 -0
  162. package/lib/components/Form/RichTextToolBar/components/Tools/Tools.d.ts +5 -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 +7 -0
  165. package/lib/components/Form/RichTextToolBar/components/Unlink/index.d.ts +13 -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 +9 -0
  169. package/lib/components/Form/enhancer.d.ts +25 -0
  170. package/lib/components/Form/index.d.ts +35 -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 +2 -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 +7 -0
  178. package/lib/index.d.ts +17 -0
  179. package/lib/index.js +9 -0
  180. package/lib/index.js.map +1 -0
  181. package/lib/index2.js +52440 -0
  182. package/lib/index2.js.map +1 -0
  183. package/lib/index3.js +11847 -0
  184. package/lib/index3.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 +108 -0
  196. package/readme.md +116 -0
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ export interface AttributePanelProps {
3
+ }
4
+ export declare function AttributePanel(): React.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
+ }): React.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,4 @@
1
+ import React from 'react';
2
+ export declare function Align({ inline }: {
3
+ inline?: boolean;
4
+ }): React.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,2 @@
1
+ import React from 'react';
2
+ export declare function Background(): React.JSX.Element;
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ export declare function BackgroundColor({ title }: {
3
+ title?: string;
4
+ }): React.JSX.Element;
@@ -0,0 +1,2 @@
1
+ import React from 'react';
2
+ export declare function Border(): React.JSX.Element;
@@ -0,0 +1,2 @@
1
+ import React from 'react';
2
+ export declare function BorderColor(): React.JSX.Element;
@@ -0,0 +1,6 @@
1
+ import React from 'react';
2
+ export declare const borderStyleOptions: {
3
+ value: string;
4
+ readonly label: string;
5
+ }[];
6
+ export declare function BorderStyle(): React.JSX.Element;
@@ -0,0 +1,2 @@
1
+ import React from 'react';
2
+ export declare function BorderWidth(): React.JSX.Element;
@@ -0,0 +1,2 @@
1
+ import React from 'react';
2
+ export declare function ClassName(): React.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,5 @@
1
+ import React from 'react';
2
+ export declare function Color({ title }: {
3
+ title?: string;
4
+ inline?: boolean;
5
+ }): React.JSX.Element;
@@ -0,0 +1,2 @@
1
+ import React from 'react';
2
+ export declare function Condition(): React.JSX.Element | null;
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ export declare function ContainerBackgroundColor({ title, }: {
3
+ title?: string;
4
+ }): React.JSX.Element;
@@ -0,0 +1,2 @@
1
+ import React from 'react';
2
+ export declare function Decoration(): React.JSX.Element;
@@ -0,0 +1,2 @@
1
+ import React from 'react';
2
+ export declare function Direction(): React.JSX.Element;
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ export declare function FontFamily({ name }: {
3
+ name?: string;
4
+ }): React.JSX.Element;
@@ -0,0 +1,2 @@
1
+ import React from 'react';
2
+ export declare function FontSize(): React.JSX.Element;
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ export declare function FontStyle({ name }: {
3
+ name?: string;
4
+ }): React.JSX.Element;
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ export declare function FontWeight({ name }: {
3
+ name?: string;
4
+ }): React.JSX.Element;
@@ -0,0 +1,6 @@
1
+ import React from 'react';
2
+ import { UseFieldConfig } from 'react-final-form';
3
+ export declare function Height({ inline, config, }: {
4
+ inline?: boolean;
5
+ config?: UseFieldConfig<any>;
6
+ }): React.JSX.Element;
@@ -0,0 +1,2 @@
1
+ import React from 'react';
2
+ export declare function Iteration(): React.JSX.Element | null;
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ export declare function LetterSpacing({ name }: {
3
+ name?: string;
4
+ }): React.JSX.Element;
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ export declare function LineHeight({ name }: {
3
+ name?: string;
4
+ }): React.JSX.Element;
@@ -0,0 +1,2 @@
1
+ import React from 'react';
2
+ export declare function Link(): React.JSX.Element;
@@ -0,0 +1,2 @@
1
+ import React from 'react';
2
+ export declare function Margin(): React.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,4 @@
1
+ import React from 'react';
2
+ export declare function NavbarLinkPadding({ name }: {
3
+ name: string;
4
+ }): React.JSX.Element;
@@ -0,0 +1,8 @@
1
+ import React from 'react';
2
+ export interface PaddingProps {
3
+ title?: string;
4
+ attributeName?: 'padding' | 'inner-padding' | 'text-padding';
5
+ name?: string;
6
+ showResetAll?: boolean;
7
+ }
8
+ export declare function Padding(props?: PaddingProps): React.JSX.Element;
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ export declare function TextAlign({ name }: {
3
+ name?: string;
4
+ }): React.JSX.Element;
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ export declare function TextDecoration({ name }: {
3
+ name?: string;
4
+ }): React.JSX.Element;
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ export declare function TextTransform({ name }: {
3
+ name?: string;
4
+ }): React.JSX.Element;
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ export declare function VerticalAlign({ attributeName, }: {
3
+ attributeName?: string;
4
+ }): React.JSX.Element;
@@ -0,0 +1,8 @@
1
+ import React from 'react';
2
+ import { InputWithUnitProps } from '../../../components/Form/InputWithUnit';
3
+ import { UseFieldConfig } from 'react-final-form';
4
+ export declare function Width({ inline, unitOptions, config, }: {
5
+ inline?: boolean;
6
+ unitOptions?: InputWithUnitProps['unitOptions'];
7
+ config?: UseFieldConfig<any>;
8
+ }): React.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,2 @@
1
+ import React from 'react';
2
+ export declare function Accordion(): React.JSX.Element;
@@ -0,0 +1,2 @@
1
+ import React from 'react';
2
+ export declare function AccordionElement(): React.JSX.Element;
@@ -0,0 +1,2 @@
1
+ import React from 'react';
2
+ export declare function AccordionText(): React.JSX.Element;
@@ -0,0 +1,2 @@
1
+ import React from 'react';
2
+ export declare function AccordionTitle(): React.JSX.Element;
@@ -0,0 +1,2 @@
1
+ import React from 'react';
2
+ export declare function TableOperation(): React.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,2 @@
1
+ import React from 'react';
2
+ export declare function AdvancedTable(): React.JSX.Element;
@@ -0,0 +1,2 @@
1
+ import React from 'react';
2
+ export declare function Button(): React.JSX.Element;
@@ -0,0 +1,2 @@
1
+ import React from 'react';
2
+ export declare function Carousel(): React.JSX.Element;
@@ -0,0 +1,2 @@
1
+ import React from 'react';
2
+ export declare function Column(): React.JSX.Element;
@@ -0,0 +1,2 @@
1
+ import React from 'react';
2
+ export declare function Divider(): React.JSX.Element;
@@ -0,0 +1,2 @@
1
+ import React from 'react';
2
+ export declare function Group(): React.JSX.Element;
@@ -0,0 +1,2 @@
1
+ import React from 'react';
2
+ export declare function Hero(): React.JSX.Element;
@@ -0,0 +1,2 @@
1
+ import React from 'react';
2
+ export declare function Image(): React.JSX.Element;
@@ -0,0 +1,2 @@
1
+ import React from 'react';
2
+ export declare function Navbar(): React.JSX.Element;
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ interface PageProps {
3
+ hideSubTitle?: boolean;
4
+ hideSubject?: boolean;
5
+ }
6
+ export declare function Page({ hideSubTitle, hideSubject }: PageProps): React.JSX.Element | null;
7
+ export {};
@@ -0,0 +1,2 @@
1
+ import React from 'react';
2
+ export declare function Raw(): React.JSX.Element;
@@ -0,0 +1,2 @@
1
+ import React from 'react';
2
+ export declare function Section(): React.JSX.Element;
@@ -0,0 +1,2 @@
1
+ import React from 'react';
2
+ export declare function Social(): React.JSX.Element | null;
@@ -0,0 +1,2 @@
1
+ import React from 'react';
2
+ export declare function Spacer(): React.JSX.Element;
@@ -0,0 +1,2 @@
1
+ import React from 'react';
2
+ export declare function Table(): React.JSX.Element;
@@ -0,0 +1,2 @@
1
+ import React from 'react';
2
+ export declare function Text(): React.JSX.Element;
@@ -0,0 +1,2 @@
1
+ import React from 'react';
2
+ export declare function Wrapper(): React.JSX.Element;