@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,13 @@
1
+ import React from 'react';
2
+ import { AutoCompleteProps as ArcoAutoCompleteProps } from '@arco-design/web-react';
3
+ export interface AutoCompleteProps extends Omit<ArcoAutoCompleteProps, 'onChange' | 'options'> {
4
+ quickchange?: boolean;
5
+ value: string;
6
+ options: Array<{
7
+ value: any;
8
+ label: any;
9
+ }>;
10
+ onChange: (val: string) => void;
11
+ showSearch?: boolean;
12
+ }
13
+ export declare function AutoComplete(props: AutoCompleteProps): React.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): React.JSX.Element;
@@ -0,0 +1,9 @@
1
+ import React from 'react';
2
+ import 'codemirror/lib/codemirror.css';
3
+ import 'codemirror/theme/material.css';
4
+ import 'codemirror/theme/neat.css';
5
+ import 'codemirror/mode/xml/xml.js';
6
+ export default function CodemirrorEditor(props: {
7
+ value: string;
8
+ onChange(val: string): void;
9
+ }): React.JSX.Element;
@@ -0,0 +1,6 @@
1
+ import React from 'react';
2
+ export interface ColorPickerContentProps {
3
+ onChange: (val: string) => void;
4
+ value: string;
5
+ }
6
+ export declare function ColorPickerContent(props: ColorPickerContentProps): React.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): React.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): React.JSX.Element;
@@ -0,0 +1,5 @@
1
+ import React, { ComponentProps } from 'react';
2
+ import { ColorPickerProps } from '../ColorPicker';
3
+ declare const ColorPickerFieldSource: (props: import("../enhancer").EnhancerProps & Omit<ColorPickerProps, "value" | "onChange" | "mutators">) => React.JSX.Element;
4
+ export declare const ColorPickerField: (props: ComponentProps<typeof ColorPickerFieldSource>) => React.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>): React.JSX.Element;
@@ -0,0 +1,10 @@
1
+ import { TabsProps } from '@arco-design/web-react';
2
+ import React from 'react';
3
+ export interface EditTabProps<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 EditTab<T extends any = any>(props: EditTabProps<T>): React.JSX.Element;
@@ -0,0 +1,13 @@
1
+ import React from 'react';
2
+ import { UploaderServer } from '../../../AttributePanel/utils/Uploader';
3
+ export interface ImageUploaderProps {
4
+ onChange: (val: string) => void;
5
+ value: string;
6
+ label: string;
7
+ uploadHandler?: UploaderServer;
8
+ autoCompleteOptions?: Array<{
9
+ value: string;
10
+ label: React.ReactNode;
11
+ }>;
12
+ }
13
+ export declare function ImageUploader(props: ImageUploaderProps): React.JSX.Element;
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ export interface InlineTextProps {
3
+ idx: string;
4
+ children?: React.ReactNode;
5
+ onChange: (content: string) => void;
6
+ }
7
+ export declare function InlineText({ idx, onChange, children }: InlineTextProps): React.JSX.Element;
@@ -0,0 +1,8 @@
1
+ import { InputProps as ArcoInputProps } from '@arco-design/web-react';
2
+ import React from 'react';
3
+ export interface InputProps extends Omit<ArcoInputProps, 'onChange'> {
4
+ quickchange?: boolean;
5
+ value: string;
6
+ onChange: (val: string) => void;
7
+ }
8
+ export declare function Input(props: InputProps): React.JSX.Element;
@@ -0,0 +1,12 @@
1
+ import { InputProps as ArcoInputProps } from '@arco-design/web-react';
2
+ import React from 'react';
3
+ export interface InputWithUnitProps extends Omit<ArcoInputProps, 'onChange'> {
4
+ value: string;
5
+ onChange: (val: string) => void;
6
+ unitOptions?: Array<{
7
+ value: string;
8
+ label: string;
9
+ }> | 'default' | 'percent';
10
+ quickchange?: boolean;
11
+ }
12
+ export declare function InputWithUnit(props: InputWithUnitProps): React.JSX.Element;
@@ -0,0 +1,13 @@
1
+ import { RadioGroupProps as ArcoRadioGroupProps } from '@arco-design/web-react';
2
+ import React from 'react';
3
+ export interface RadioGroupProps extends ArcoRadioGroupProps {
4
+ options: Array<{
5
+ value: string;
6
+ label: React.ReactNode;
7
+ }>;
8
+ onChange?: (value: string) => void;
9
+ value?: string;
10
+ type?: 'radio' | 'button';
11
+ vertical?: boolean;
12
+ }
13
+ export declare function RadioGroup(props: RadioGroupProps): React.JSX.Element;
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ import { InlineTextProps } from '../InlineTextField';
3
+ export declare const RichTextField: (props: Omit<InlineTextProps, 'onChange' | 'mutators'>) => React.JSX.Element | null;
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ export declare function RichTextToolBar(props: {
3
+ onChange: (s: string) => void;
4
+ }): React.JSX.Element | null;
@@ -0,0 +1,2 @@
1
+ import React from 'react';
2
+ export declare function BasicTools(): React.JSX.Element;
@@ -0,0 +1,7 @@
1
+ import { PopoverProps } from '@arco-design/web-react';
2
+ import React from 'react';
3
+ export interface LinkProps extends PopoverProps {
4
+ currentRange: Range | null | undefined;
5
+ onChange: () => void;
6
+ }
7
+ export declare function Bold(props: LinkProps): React.JSX.Element;
@@ -0,0 +1,6 @@
1
+ import React from 'react';
2
+ export interface FontFamilyProps {
3
+ execCommand: (cmd: string, value: any) => void;
4
+ getPopupContainer: () => HTMLElement;
5
+ }
6
+ export declare function FontFamily(props: FontFamilyProps): React.JSX.Element;
@@ -0,0 +1,6 @@
1
+ import React from 'react';
2
+ export interface FontSizeProps {
3
+ execCommand: (cmd: string, value: any) => void;
4
+ getPopupContainer: () => HTMLElement;
5
+ }
6
+ export declare function FontSize(props: FontSizeProps): React.JSX.Element;
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ export declare function Heading(props: {
3
+ onChange: (val: string) => void;
4
+ }): React.JSX.Element;
@@ -0,0 +1,7 @@
1
+ import { PopoverProps } from '@arco-design/web-react';
2
+ import React from 'react';
3
+ export interface LinkProps extends PopoverProps {
4
+ currentRange: Range | null | undefined;
5
+ onChange: () => void;
6
+ }
7
+ export declare function Italic(props: LinkProps): React.JSX.Element;
@@ -0,0 +1,14 @@
1
+ import { PopoverProps } from '@arco-design/web-react';
2
+ import React from 'react';
3
+ export interface LinkParams {
4
+ link: string;
5
+ blank: boolean;
6
+ underline: boolean;
7
+ linkNode: HTMLAnchorElement | null;
8
+ }
9
+ export interface LinkProps extends PopoverProps {
10
+ currentRange: Range | null | undefined;
11
+ onChange: (val: LinkParams) => void;
12
+ }
13
+ export declare function getLinkNode(currentRange: Range | null | undefined): HTMLAnchorElement | null;
14
+ export declare function Link(props: LinkProps): React.JSX.Element;
@@ -0,0 +1,6 @@
1
+ import React from 'react';
2
+ export interface MergeTagsProps {
3
+ execCommand: (cmd: string, value: any) => void;
4
+ getPopupContainer: () => HTMLElement;
5
+ }
6
+ export declare function MergeTags(props: MergeTagsProps): React.JSX.Element;
@@ -0,0 +1,7 @@
1
+ import { PopoverProps } from '@arco-design/web-react';
2
+ import React from 'react';
3
+ export interface LinkProps extends PopoverProps {
4
+ currentRange: Range | null | undefined;
5
+ onChange: () => void;
6
+ }
7
+ export declare function StrikeThrough(props: LinkProps): React.JSX.Element;
@@ -0,0 +1,9 @@
1
+ import React from 'react';
2
+ export declare const ToolItem: React.FC<{
3
+ title?: string;
4
+ icon: React.ReactNode;
5
+ onClick?: React.MouseEventHandler<any>;
6
+ trigger?: string;
7
+ style?: React.CSSProperties;
8
+ isActive?: boolean;
9
+ }>;
@@ -0,0 +1,6 @@
1
+ import React from 'react';
2
+ export declare function IconBgColor({ selectionRange, execCommand, getPopoverMountNode }: {
3
+ selectionRange: Range | null;
4
+ execCommand: (cmd: string, val?: any) => void;
5
+ getPopoverMountNode: () => HTMLElement;
6
+ }): React.JSX.Element;
@@ -0,0 +1,6 @@
1
+ import React from 'react';
2
+ export declare function IconFontColor({ selectionRange, execCommand, getPopoverMountNode }: {
3
+ selectionRange: Range | null;
4
+ execCommand: (cmd: string, val?: any) => void;
5
+ getPopoverMountNode: () => HTMLElement;
6
+ }): React.JSX.Element;
@@ -0,0 +1,5 @@
1
+ import React from 'react';
2
+ export interface ToolsProps {
3
+ onChange: (content: string) => any;
4
+ }
5
+ export declare function Tools(props: ToolsProps): React.JSX.Element;
@@ -0,0 +1 @@
1
+ export { Tools } from './Tools';
@@ -0,0 +1,7 @@
1
+ import { PopoverProps } from '@arco-design/web-react';
2
+ import React from 'react';
3
+ export interface LinkProps extends PopoverProps {
4
+ currentRange: Range | null | undefined;
5
+ onChange: () => void;
6
+ }
7
+ export declare function Underline(props: LinkProps): React.JSX.Element;
@@ -0,0 +1,13 @@
1
+ import { PopoverProps } from '@arco-design/web-react';
2
+ import React from 'react';
3
+ export interface LinkParams {
4
+ link: string;
5
+ blank: boolean;
6
+ underline: boolean;
7
+ linkNode: HTMLAnchorElement | null;
8
+ }
9
+ export interface LinkProps extends PopoverProps {
10
+ currentRange: Range | null | undefined;
11
+ onChange: () => void;
12
+ }
13
+ export declare function Unlink(props: LinkProps): React.JSX.Element;
@@ -0,0 +1 @@
1
+ export { RichTextToolBar } from './RichTextToolBar';
@@ -0,0 +1,11 @@
1
+ import { SelectProps as ArcoSelectProps } from '@arco-design/web-react';
2
+ import React from 'react';
3
+ export interface SelectProps extends ArcoSelectProps {
4
+ options: Array<{
5
+ value: string;
6
+ label: React.ReactNode;
7
+ }>;
8
+ onChange?: (val: string) => void;
9
+ value: string;
10
+ }
11
+ export declare function Select(props: SelectProps): React.JSX.Element;
@@ -0,0 +1,9 @@
1
+ import React from 'react';
2
+ export interface UploadFieldProps {
3
+ onChange: (val: string) => void;
4
+ value: string;
5
+ inputDisabled?: boolean;
6
+ accept?: string;
7
+ uploadHandler: (file: File) => Promise<string>;
8
+ }
9
+ export declare function UploadField(props: UploadFieldProps): React.JSX.Element;
@@ -0,0 +1,25 @@
1
+ import { UseFieldConfig } from 'react-final-form';
2
+ import React from 'react';
3
+ import { FormItemProps } from '@arco-design/web-react';
4
+ export interface EnhancerProps {
5
+ name: string;
6
+ onChangeAdapter?: (value: any) => any;
7
+ validate?: (value: any) => string | undefined | Promise<string | undefined>;
8
+ config?: UseFieldConfig<any, any>;
9
+ changeOnBlur?: boolean;
10
+ formItem?: FormItemProps;
11
+ label?: FormItemProps['label'];
12
+ inline?: boolean;
13
+ equalSpacing?: boolean;
14
+ required?: boolean;
15
+ autoComplete?: 'on' | 'off';
16
+ style?: React.CSSProperties;
17
+ helpText?: React.ReactNode;
18
+ debounceTime?: number;
19
+ labelHidden?: boolean;
20
+ }
21
+ export default function enhancer<P extends {
22
+ onChange?: (...rest: any) => any;
23
+ }>(Component: React.FC<any>, changeAdapter: (args: Parameters<NonNullable<P['onChange']>>) => any, option?: {
24
+ debounceTime: number;
25
+ }): (props: EnhancerProps & Omit<P, 'value' | 'onChange' | 'mutators'>) => React.JSX.Element;
@@ -0,0 +1,35 @@
1
+ /// <reference types="react" />
2
+ import { SliderProps, InputNumberProps, SwitchProps, TextAreaProps, CheckboxGroupProps, TreeSelectProps } from '@arco-design/web-react';
3
+ import { ImageUploaderProps } from './ImageUploader';
4
+ import { UploadFieldProps } from './UploadField';
5
+ import { SelectProps } from './Select';
6
+ import { RadioGroupProps } from './RadioGroup';
7
+ import enhancer from './enhancer';
8
+ import { InputProps } from './Input';
9
+ import { InputWithUnitProps } from './InputWithUnit';
10
+ import { EditTabProps } from './EditTab';
11
+ import { EditGridTabProps } from './EditGridTab';
12
+ import { InlineTextProps } from './InlineTextField';
13
+ import { AutoCompleteProps } from './AutoComplete';
14
+ import { InputSearchProps } from '@arco-design/web-react/es/Input';
15
+ import { ColorPickerField } from './ColorPickerField';
16
+ export { RichTextField } from './RichTextField';
17
+ export declare const TextField: (props: import("./enhancer").EnhancerProps & Omit<InputProps, "value" | "onChange" | "mutators">) => import("react").JSX.Element;
18
+ export declare const InputWithUnitField: (props: import("./enhancer").EnhancerProps & Omit<InputWithUnitProps, "value" | "onChange" | "mutators">) => import("react").JSX.Element;
19
+ export declare const SearchField: (props: import("./enhancer").EnhancerProps & Omit<InputSearchProps, "value" | "onChange" | "mutators">) => import("react").JSX.Element;
20
+ export declare const TextAreaField: (props: import("./enhancer").EnhancerProps & Omit<TextAreaProps, "value" | "onChange" | "mutators">) => import("react").JSX.Element;
21
+ export declare const NumberField: (props: import("./enhancer").EnhancerProps & Omit<InputNumberProps, "value" | "onChange" | "mutators">) => import("react").JSX.Element;
22
+ export declare const SliderField: (props: import("./enhancer").EnhancerProps & Omit<SliderProps, "value" | "onChange" | "mutators">) => import("react").JSX.Element;
23
+ export declare const UploadField: (props: import("./enhancer").EnhancerProps & Omit<UploadFieldProps, "value" | "onChange" | "mutators">) => import("react").JSX.Element;
24
+ export declare const ImageUploaderField: (props: import("./enhancer").EnhancerProps & Omit<ImageUploaderProps, "value" | "onChange" | "mutators">) => import("react").JSX.Element;
25
+ export declare const SelectField: (props: import("./enhancer").EnhancerProps & Omit<SelectProps, "value" | "onChange" | "mutators">) => import("react").JSX.Element;
26
+ export declare const TreeSelectField: (props: import("./enhancer").EnhancerProps & Omit<TreeSelectProps, "value" | "onChange" | "mutators">) => import("react").JSX.Element;
27
+ export declare const AutoCompleteField: (props: import("./enhancer").EnhancerProps & Omit<AutoCompleteProps, "value" | "onChange" | "mutators">) => import("react").JSX.Element;
28
+ export declare const RadioGroupField: (props: import("./enhancer").EnhancerProps & Omit<RadioGroupProps, "value" | "onChange" | "mutators">) => import("react").JSX.Element;
29
+ export declare const SwitchField: (props: import("./enhancer").EnhancerProps & Omit<SwitchProps, "value" | "onChange" | "mutators">) => import("react").JSX.Element;
30
+ export declare const CheckboxField: (props: import("./enhancer").EnhancerProps & Omit<CheckboxGroupProps<any>, "value" | "onChange" | "mutators">) => import("react").JSX.Element;
31
+ export declare const EditTabField: (props: import("./enhancer").EnhancerProps & Omit<EditTabProps<any>, "value" | "onChange" | "mutators">) => import("react").JSX.Element;
32
+ export declare const EditGridTabField: (props: import("./enhancer").EnhancerProps & Omit<EditGridTabProps<any>, "value" | "onChange" | "mutators">) => import("react").JSX.Element;
33
+ export declare const InlineTextField: (props: import("./enhancer").EnhancerProps & Omit<InlineTextProps, "value" | "onChange" | "mutators">) => import("react").JSX.Element;
34
+ export { ColorPickerField };
35
+ export { enhancer };
@@ -0,0 +1,6 @@
1
+ import React from 'react';
2
+ import 'overlayscrollbars/css/OverlayScrollbars.css';
3
+ export declare const FullHeightOverlayScrollbars: React.FC<{
4
+ children: React.ReactNode | React.ReactElement;
5
+ height: string | number;
6
+ }>;
@@ -0,0 +1,43 @@
1
+ import { BlockLayerProps } from '../../BlockLayer';
2
+ import React from 'react';
3
+ export interface ExtensionProps extends BlockLayerProps {
4
+ children?: React.ReactNode | React.ReactElement;
5
+ categories: Array<{
6
+ label: string;
7
+ active?: boolean;
8
+ blocks: Array<{
9
+ type: string;
10
+ payload?: any;
11
+ title?: string | undefined;
12
+ }>;
13
+ displayType?: 'grid';
14
+ } | {
15
+ label: string;
16
+ active?: boolean;
17
+ blocks: Array<{
18
+ payload?: any;
19
+ title?: string | undefined;
20
+ }>;
21
+ displayType: 'column';
22
+ } | {
23
+ label: string;
24
+ active?: boolean;
25
+ blocks: Array<{
26
+ payload?: any;
27
+ }>;
28
+ displayType: 'widget';
29
+ } | {
30
+ label: string;
31
+ active?: boolean;
32
+ blocks: Array<React.ReactNode>;
33
+ displayType: 'custom';
34
+ }>;
35
+ showSourceCode?: boolean;
36
+ jsonReadOnly?: boolean;
37
+ mjmlReadOnly?: boolean;
38
+ compact?: boolean;
39
+ showBlockLayer?: boolean;
40
+ }
41
+ export declare const ExtensionContext: React.Context<ExtensionProps>;
42
+ export declare const ExtensionProvider: React.FC<ExtensionProps>;
43
+ export declare function useExtensionProps(): ExtensionProps;
@@ -0,0 +1,2 @@
1
+ import React from 'react';
2
+ export declare function RenderCount(): React.JSX.Element;
@@ -0,0 +1,2 @@
1
+ import React from 'react';
2
+ export declare const ShadowDom: React.FC<React.HTMLProps<HTMLElement>>;
@@ -0,0 +1 @@
1
+ export declare const RICH_TEXT_TOOL_BAR = "Tools";
@@ -0,0 +1,6 @@
1
+ import React from 'react';
2
+ export declare function useAddToCollection(): {
3
+ modal: React.JSX.Element;
4
+ modalVisible: boolean;
5
+ setModalVisible: React.Dispatch<React.SetStateAction<boolean>>;
6
+ };
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ export declare function useFontFamily(): {
3
+ fontList: {
4
+ value: string;
5
+ label: React.JSX.Element;
6
+ }[];
7
+ };
package/lib/index.d.ts ADDED
@@ -0,0 +1,17 @@
1
+ import './index.scss';
2
+ export * from './BlockLayer';
3
+ export * from './AttributePanel';
4
+ export * from './ShortcutToolbar';
5
+ export * from './SourceCodePanel';
6
+ export * from './InteractivePrompt';
7
+ export * from './SimpleLayout';
8
+ export * from './StandardLayout';
9
+ export * from './MergeTagBadgePrompt';
10
+ export * from './components/Providers/ExtensionProvider';
11
+ export * from './constants';
12
+ export * from './components/Form';
13
+ export * from './components/ShadowDom';
14
+ export { getContextMergeTags } from './utils/getContextMergeTags';
15
+ export { getIconNameByBlockType, setIconsMap } from './utils/getIconNameByBlockType';
16
+ export { getBlockTitle } from './utils/getBlockTitle';
17
+ export { MjmlToJson } from './utils/MjmlToJson';
package/lib/index.js ADDED
@@ -0,0 +1,9 @@
1
+ export { e as Align, A as AttributePanel, f as AttributesPanelWrapper, ac as AutoCompleteField, l as Background, o as BackgroundColor, d as BlockAttributeConfigurationManager, B as BlockLayer, O as BlockMarketManager, Q as BlockMaskWrapper, r as Border, u as BorderColor, x as BorderStyle, z as BorderWidth, af as CheckboxField, I as ClassName, h as CollapseWrapper, C as Color, aj as ColorPickerField, i as Condition, j as ContainerBackgroundColor, D as Decoration, P as DefaultPageConfigPanel, p as Direction, ah as EditGridTabField, ag as EditTabField, _ as ExtensionContext, $ as ExtensionProvider, F as FontFamily, v as FontSize, y as FontStyle, E as FontWeight, H as Height, a9 as ImageUploaderField, ai as InlineTextField, a3 as InputWithUnitField, U as InteractivePrompt, L as LetterSpacing, m as LineHeight, q as Link, t as Margin, Z as MergeTagBadgePrompt, w as MergeTags, M as MjmlToJson, N as NavbarLinkPadding, a6 as NumberField, G as Padding, J as PresetColorsProvider, a1 as RICH_TEXT_TOOL_BAR, ad as RadioGroupField, al as RichTextField, a4 as SearchField, aa as SelectField, S as SelectionRangeProvider, am as ShadowDom, K as ShortcutToolbar, X as SimpleLayout, a7 as SliderField, R as SourceCodePanel, Y as StandardLayout, ae as SwitchField, T as TextAlign, a5 as TextAreaField, k as TextDecoration, a2 as TextField, n as TextTransform, ab as TreeSelectField, a8 as UploadField, V as VerticalAlign, W as Width, ak as enhancer, b as getBlockTitle, g as getContextMergeTags, a as getIconNameByBlockType, s as setIconsMap, a0 as useExtensionProps } from "./index2.js";
2
+ import "react";
3
+ import "easy-email-editor";
4
+ import "easy-email-core";
5
+ import "react-dom";
6
+ import "react-final-form";
7
+ import "uuid";
8
+ import "mjml-browser";
9
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;"}