easy-email-extensions 3.2.1 → 4.0.0-alpha.2
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.
- package/lib/AttributePanel/components/attributes/CollapseWrapper/index.d.ts +5 -0
 - package/lib/AttributePanel/components/attributes/Condition.d.ts +1 -0
 - package/lib/AttributePanel/components/attributes/FontFamily.d.ts +3 -1
 - package/lib/AttributePanel/components/attributes/FontStyle.d.ts +3 -1
 - package/lib/AttributePanel/components/attributes/FontWeight.d.ts +3 -1
 - package/lib/AttributePanel/components/attributes/Iteration.d.ts +1 -0
 - package/lib/AttributePanel/components/attributes/LetterSpacing.d.ts +3 -1
 - package/lib/AttributePanel/components/attributes/LineHeight.d.ts +3 -1
 - package/lib/AttributePanel/components/attributes/Padding.d.ts +1 -0
 - package/lib/AttributePanel/components/attributes/TextAlign.d.ts +3 -1
 - package/lib/AttributePanel/components/attributes/TextDecoration.d.ts +3 -1
 - package/lib/AttributePanel/components/attributes/TextTransform.d.ts +3 -1
 - package/lib/AttributePanel/components/blocks/Social/index.d.ts +1 -1
 - package/lib/AttributePanel/components/blocks/index.d.ts +13 -0
 - package/lib/AttributePanel/hooks/useSelectionRange.d.ts +1 -0
 - package/lib/MergeTagBadgePrompt/index.d.ts +1 -0
 - package/lib/ShortcutToolbar/components/DragIcon/index.d.ts +8 -0
 - package/lib/SimpleLayout/SimpleLayout.d.ts +1 -0
 - package/lib/components/Form/EditGridTab.d.ts +10 -0
 - package/lib/components/Form/RichTextToolBar/components/BasicTools.d.ts +1 -0
 - package/lib/components/Form/RichTextToolBar/components/Bold/index.d.ts +6 -0
 - package/lib/components/Form/RichTextToolBar/components/FontFamily/index.d.ts +5 -3
 - package/lib/components/Form/RichTextToolBar/components/FontSize/index.d.ts +5 -0
 - package/lib/components/Form/RichTextToolBar/components/Italic/index.d.ts +6 -0
 - package/lib/components/Form/RichTextToolBar/components/MergeTags/index.d.ts +5 -0
 - package/lib/components/Form/RichTextToolBar/components/StrikeThrough/index.d.ts +6 -0
 - package/lib/components/Form/RichTextToolBar/components/ToolItem/index.d.ts +4 -2
 - package/lib/components/Form/RichTextToolBar/components/Tools/IconBgColor/index.d.ts +5 -0
 - package/lib/components/Form/RichTextToolBar/components/Tools/IconFontColor/index.d.ts +5 -0
 - package/lib/components/Form/RichTextToolBar/components/Tools/Tools.d.ts +0 -1
 - package/lib/components/Form/RichTextToolBar/components/Underline/index.d.ts +6 -0
 - package/lib/components/Form/RichTextToolBar/components/Unlink/index.d.ts +12 -0
 - package/lib/components/Form/index.d.ts +2 -0
 - package/lib/index.d.ts +1 -0
 - package/lib/index.js +1 -1
 - package/lib/index2.js +4259 -1978
 - package/lib/index2.js.map +1 -1
 - package/lib/style.css +1 -1
 - package/package.json +3 -3
 - package/lib/components/Form/RichTextToolBar/components/FontSizeList/index.d.ts +0 -3
 
| 
         @@ -0,0 +1 @@ 
     | 
|
| 
      
 1 
     | 
    
         
            +
            export declare function Condition(): JSX.Element | null;
         
     | 
| 
         @@ -0,0 +1 @@ 
     | 
|
| 
      
 1 
     | 
    
         
            +
            export declare function Iteration(): JSX.Element | null;
         
     | 
| 
         @@ -1 +1 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            export declare function Social(): JSX.Element;
         
     | 
| 
      
 1 
     | 
    
         
            +
            export declare function Social(): JSX.Element | null;
         
     | 
| 
         @@ -39,4 +39,17 @@ export declare const blocks: { 
     | 
|
| 
       39 
39 
     | 
    
         
             
                navbar: typeof Navbar;
         
     | 
| 
       40 
40 
     | 
    
         
             
                social: typeof Social;
         
     | 
| 
       41 
41 
     | 
    
         
             
                table: typeof Table;
         
     | 
| 
      
 42 
     | 
    
         
            +
                advanced_text: typeof Text;
         
     | 
| 
      
 43 
     | 
    
         
            +
                advanced_image: typeof Image;
         
     | 
| 
      
 44 
     | 
    
         
            +
                advanced_button: typeof Button;
         
     | 
| 
      
 45 
     | 
    
         
            +
                advanced_divider: typeof Divider;
         
     | 
| 
      
 46 
     | 
    
         
            +
                advanced_spacer: typeof Spacer;
         
     | 
| 
      
 47 
     | 
    
         
            +
                advanced_accordion: typeof Accordion;
         
     | 
| 
      
 48 
     | 
    
         
            +
                advanced_carousel: typeof Carousel;
         
     | 
| 
      
 49 
     | 
    
         
            +
                advanced_navbar: typeof Navbar;
         
     | 
| 
      
 50 
     | 
    
         
            +
                advanced_social: typeof Social;
         
     | 
| 
      
 51 
     | 
    
         
            +
                advanced_wrapper: typeof Wrapper;
         
     | 
| 
      
 52 
     | 
    
         
            +
                advanced_section: typeof Section;
         
     | 
| 
      
 53 
     | 
    
         
            +
                advanced_group: typeof Group;
         
     | 
| 
      
 54 
     | 
    
         
            +
                advanced_column: typeof Column;
         
     | 
| 
       42 
55 
     | 
    
         
             
            };
         
     | 
| 
         @@ -0,0 +1 @@ 
     | 
|
| 
      
 1 
     | 
    
         
            +
            export declare function MergeTagBadgePrompt(): JSX.Element;
         
     | 
| 
         @@ -0,0 +1,8 @@ 
     | 
|
| 
      
 1 
     | 
    
         
            +
            import { IBlockData } from 'easy-email-core';
         
     | 
| 
      
 2 
     | 
    
         
            +
            import { RecursivePartial } from 'easy-email-core';
         
     | 
| 
      
 3 
     | 
    
         
            +
            export interface DragIconProps<T extends IBlockData> {
         
     | 
| 
      
 4 
     | 
    
         
            +
                type: string;
         
     | 
| 
      
 5 
     | 
    
         
            +
                payload?: RecursivePartial<T>;
         
     | 
| 
      
 6 
     | 
    
         
            +
                color: string;
         
     | 
| 
      
 7 
     | 
    
         
            +
            }
         
     | 
| 
      
 8 
     | 
    
         
            +
            export declare function DragIcon<T extends IBlockData = any>(props: DragIconProps<T>): JSX.Element;
         
     | 
| 
         @@ -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>): JSX.Element;
         
     | 
| 
         @@ -0,0 +1 @@ 
     | 
|
| 
      
 1 
     | 
    
         
            +
            export declare function BasicTools(): JSX.Element;
         
     | 
| 
         @@ -1,3 +1,5 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            export  
     | 
| 
       2 
     | 
    
         
            -
                 
     | 
| 
       3 
     | 
    
         
            -
             
     | 
| 
      
 1 
     | 
    
         
            +
            export interface FontFamilyProps {
         
     | 
| 
      
 2 
     | 
    
         
            +
                execCommand: (cmd: string, value: any) => void;
         
     | 
| 
      
 3 
     | 
    
         
            +
                getPopupContainer: () => HTMLElement;
         
     | 
| 
      
 4 
     | 
    
         
            +
            }
         
     | 
| 
      
 5 
     | 
    
         
            +
            export declare function FontFamily(props: FontFamilyProps): JSX.Element;
         
     | 
| 
         @@ -1,7 +1,9 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            import React from 'react';
         
     | 
| 
       2 
2 
     | 
    
         
             
            export declare const ToolItem: React.FC<{
         
     | 
| 
       3 
     | 
    
         
            -
                title 
     | 
| 
      
 3 
     | 
    
         
            +
                title?: string;
         
     | 
| 
       4 
4 
     | 
    
         
             
                icon: React.ReactNode;
         
     | 
| 
       5 
     | 
    
         
            -
                onClick?:  
     | 
| 
      
 5 
     | 
    
         
            +
                onClick?: React.MouseEventHandler<any>;
         
     | 
| 
       6 
6 
     | 
    
         
             
                trigger?: string;
         
     | 
| 
      
 7 
     | 
    
         
            +
                style?: React.CSSProperties;
         
     | 
| 
      
 8 
     | 
    
         
            +
                isActive?: boolean;
         
     | 
| 
       7 
9 
     | 
    
         
             
            }>;
         
     | 
| 
         @@ -0,0 +1,12 @@ 
     | 
|
| 
      
 1 
     | 
    
         
            +
            import { PopoverProps } from '@arco-design/web-react';
         
     | 
| 
      
 2 
     | 
    
         
            +
            export interface LinkParams {
         
     | 
| 
      
 3 
     | 
    
         
            +
                link: string;
         
     | 
| 
      
 4 
     | 
    
         
            +
                blank: boolean;
         
     | 
| 
      
 5 
     | 
    
         
            +
                underline: boolean;
         
     | 
| 
      
 6 
     | 
    
         
            +
                linkNode: HTMLAnchorElement | null;
         
     | 
| 
      
 7 
     | 
    
         
            +
            }
         
     | 
| 
      
 8 
     | 
    
         
            +
            export interface LinkProps extends PopoverProps {
         
     | 
| 
      
 9 
     | 
    
         
            +
                currentRange: Range | null | undefined;
         
     | 
| 
      
 10 
     | 
    
         
            +
                onChange: () => void;
         
     | 
| 
      
 11 
     | 
    
         
            +
            }
         
     | 
| 
      
 12 
     | 
    
         
            +
            export declare function Unlink(props: LinkProps): JSX.Element;
         
     | 
| 
         @@ -8,6 +8,7 @@ import enhancer from './enhancer'; 
     | 
|
| 
       8 
8 
     | 
    
         
             
            import { InputProps } from './Input';
         
     | 
| 
       9 
9 
     | 
    
         
             
            import { InputWithUnitProps } from './InputWithUnit';
         
     | 
| 
       10 
10 
     | 
    
         
             
            import { EditTabProps } from './EditTab';
         
     | 
| 
      
 11 
     | 
    
         
            +
            import { EditGridTabProps } from './EditGridTab';
         
     | 
| 
       11 
12 
     | 
    
         
             
            import { InlineTextProps } from './InlineTextField';
         
     | 
| 
       12 
13 
     | 
    
         
             
            import { AutoCompleteProps } from './AutoComplete';
         
     | 
| 
       13 
14 
     | 
    
         
             
            export { RichTextField } from './RichTextField';
         
     | 
| 
         @@ -28,5 +29,6 @@ export declare const SwitchField: (props: import("./enhancer").EnhancerProps<Swi 
     | 
|
| 
       28 
29 
     | 
    
         
             
            export declare const DatePickerField: (props: import("./enhancer").EnhancerProps<DatePickerProps> & Omit<DatePickerProps, "value" | "onChange" | "mutators">) => JSX.Element;
         
     | 
| 
       29 
30 
     | 
    
         
             
            export declare const CheckboxField: (props: import("./enhancer").EnhancerProps<CheckboxGroupProps<any>> & Omit<CheckboxGroupProps<any>, "value" | "onChange" | "mutators">) => JSX.Element;
         
     | 
| 
       30 
31 
     | 
    
         
             
            export declare const EditTabField: (props: import("./enhancer").EnhancerProps<EditTabProps<any>> & Omit<EditTabProps<any>, "value" | "onChange" | "mutators">) => JSX.Element;
         
     | 
| 
      
 32 
     | 
    
         
            +
            export declare const EditGridTabField: (props: import("./enhancer").EnhancerProps<EditGridTabProps<any>> & Omit<EditGridTabProps<any>, "value" | "onChange" | "mutators">) => JSX.Element;
         
     | 
| 
       31 
33 
     | 
    
         
             
            export declare const InlineTextField: (props: import("./enhancer").EnhancerProps<InlineTextProps> & Omit<InlineTextProps, "value" | "onChange" | "mutators">) => JSX.Element;
         
     | 
| 
       32 
34 
     | 
    
         
             
            export { enhancer };
         
     | 
    
        package/lib/index.d.ts
    CHANGED
    
    | 
         @@ -5,6 +5,7 @@ export * from './ShortcutToolbar'; 
     | 
|
| 
       5 
5 
     | 
    
         
             
            export * from './SourceCodePanel';
         
     | 
| 
       6 
6 
     | 
    
         
             
            export * from './InteractivePrompt';
         
     | 
| 
       7 
7 
     | 
    
         
             
            export * from './SimpleLayout';
         
     | 
| 
      
 8 
     | 
    
         
            +
            export * from './MergeTagBadgePrompt';
         
     | 
| 
       8 
9 
     | 
    
         
             
            export * from './components/Form';
         
     | 
| 
       9 
10 
     | 
    
         
             
            export { getContextMergeTags } from './utils/getContextMergeTags';
         
     | 
| 
       10 
11 
     | 
    
         
             
            export { getIconNameByBlockType } from './utils/getIconNameByBlockType';
         
     | 
    
        package/lib/index.js
    CHANGED
    
    | 
         @@ -1,4 +1,4 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            export { e as Align, A as AttributePanel, f as AttributesPanelWrapper,  
     | 
| 
      
 1 
     | 
    
         
            +
            export { e as Align, A as AttributePanel, f as AttributesPanelWrapper, a0 as AutoCompleteField, j as Background, m as BackgroundColor, d as BlockAttributeConfigurationManager, B as BlockLayer, x as BlockMarketManager, y as BlockMaskWrapper, p as Border, q as BorderColor, t as BorderStyle, v as BorderWidth, a4 as CheckboxField, C as Color, X as ColorPickerField, h as ContainerBackgroundColor, a3 as DatePickerField, D as Decoration, n as Direction, a6 as EditGridTabField, a5 as EditTabField, F as FontFamily, r as FontSize, u as FontStyle, w as FontWeight, H as Height, Z as ImageUploaderField, a7 as InlineTextField, K as InputWithUnitField, I as InteractivePrompt, L as LetterSpacing, k as LineHeight, o as Link, M as Margin, G as MergeTagBadgePrompt, s as MergeTags, N as NavbarLinkPadding, R as NumberField, P as Padding, a1 as RadioGroupField, a9 as RichTextField, O as SearchField, _ as SelectField, S as ShortcutToolbar, E as SimpleLayout, U as SliderField, z as SourceCodePanel, a2 as SwitchField, T as TextAlign, Q as TextAreaField, i as TextDecoration, J as TextField, l as TextTransform, $ as TreeSelectField, Y as UploadField, V as VerticalAlign, W as Width, a8 as enhancer, b as getBlockTitle, g as getContextMergeTags, a as getIconNameByBlockType } from "./index2.js";
         
     | 
| 
       2 
2 
     | 
    
         
             
            import "react";
         
     | 
| 
       3 
3 
     | 
    
         
             
            import "easy-email-editor";
         
     | 
| 
       4 
4 
     | 
    
         
             
            import "easy-email-core";
         
     |