easy-email-extensions 3.0.14 → 3.1.3

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.
@@ -1,29 +1,51 @@
1
1
  import React from 'react';
2
- import { TreeNode } from './components/BlockTreeItem';
2
+ interface TreeNode<T> {
3
+ id: string;
4
+ children?: T[];
5
+ }
3
6
  export interface BlockTreeProps<T extends TreeNode<T>> {
4
7
  treeData: T[];
5
- selectedId?: string;
8
+ selectedKeys?: string[];
9
+ expandedKeys?: string[];
6
10
  onSelect: (selectedId: string) => void;
7
11
  onContextMenu?: (nodeData: T, ev: React.MouseEvent) => void;
12
+ onDragStart?: () => void;
13
+ onDragEnd?: () => void;
8
14
  onMouseLeave?: () => void;
9
- onMouseEnter?: (id: string, event: React.MouseEvent) => void;
15
+ onMouseEnter?: (id: string) => void;
10
16
  renderTitle: (data: T) => React.ReactNode;
11
17
  defaultExpandAll?: boolean;
12
- allowDrop: (params: {
13
- dragNode: T;
14
- dropNode: T;
15
- event: DragEvent;
16
- dragIndex: number;
17
- dropIndex: number;
18
- willInsertAfter: boolean;
19
- }) => boolean;
20
- onDrop: (params: {
21
- dragNode: T;
22
- dropNode: T;
23
- event: DragEvent;
24
- dragIndex: number;
25
- dropIndex: number;
26
- willInsertAfter: boolean;
18
+ allowDrop: (o: {
19
+ dragNode: {
20
+ type: string;
21
+ } | {
22
+ key: string;
23
+ };
24
+ dropNode: {
25
+ dataRef: T;
26
+ parent: T;
27
+ key: string;
28
+ };
29
+ dropPosition: number;
30
+ }) => false | {
31
+ key: string;
32
+ position: number;
33
+ };
34
+ onDrop: (o: {
35
+ dragNode: {
36
+ dataRef: T;
37
+ parent: T;
38
+ key: string;
39
+ parentKey: string;
40
+ };
41
+ dropNode: {
42
+ dataRef: T;
43
+ parent: T;
44
+ key: string;
45
+ parentKey: string;
46
+ };
47
+ dropPosition: number;
27
48
  }) => void;
28
49
  }
29
50
  export declare function BlockTree<T extends TreeNode<T>>(props: BlockTreeProps<T>): JSX.Element;
51
+ export {};
@@ -0,0 +1 @@
1
+ export declare const transparentImage = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mNkYPhfDwAChwGA60e6kgAAAABJRU5ErkJggg==";
@@ -0,0 +1,24 @@
1
+ /// <reference types="react" />
2
+ import { IBlockDataWithId } from '..';
3
+ export declare function useAvatarWrapperDrop(): {
4
+ setBlockLayerRef: import("react").Dispatch<import("react").SetStateAction<HTMLElement | null>>;
5
+ blockLayerRef: HTMLElement | null;
6
+ allowDrop: (o: {
7
+ dragNode: {
8
+ type: string;
9
+ } | {
10
+ key: string;
11
+ };
12
+ dropNode: {
13
+ dataRef: IBlockDataWithId;
14
+ parent: IBlockDataWithId;
15
+ key: string;
16
+ };
17
+ dropPosition: number;
18
+ }) => false | {
19
+ key: string;
20
+ position: number;
21
+ };
22
+ removeHightLightClassName: () => void;
23
+ };
24
+ export declare function getDirectionFormDropPosition(position: number): "" | "top" | "bottom";
@@ -3,5 +3,6 @@ export interface IBlockDataWithId extends IBlockData {
3
3
  id: string;
4
4
  parent: IBlockDataWithId | null;
5
5
  children: IBlockDataWithId[];
6
+ className?: string;
6
7
  }
7
8
  export declare function BlockLayer(): JSX.Element | null;
@@ -1,4 +1,4 @@
1
- import { SliderProps, InputNumberProps, SwitchProps, DatePickerProps, TextAreaProps, CheckboxGroupProps } from '@arco-design/web-react';
1
+ import { SliderProps, InputNumberProps, SwitchProps, DatePickerProps, TextAreaProps, CheckboxGroupProps, TreeSelectProps } from '@arco-design/web-react';
2
2
  import { ImageUploaderProps } from './ImageUploader';
3
3
  import { UploadFieldProps } from './UploadField';
4
4
  import { ColorPickerProps } from './ColorPicker';
@@ -10,20 +10,21 @@ import { EditTabProps } from './EditTab';
10
10
  import { InlineTextProps } from './InlineTextField';
11
11
  import { AutoCompleteProps } from './AutoComplete';
12
12
  export { RichTextField } from './RichTextField';
13
- export declare const TextField: (props: import("./enhancer").EnhancerProps<InputProps> & Omit<InputProps, "onChange" | "value" | "mutators">) => JSX.Element;
14
- export declare const SearchField: (props: import("./enhancer").EnhancerProps<InputProps> & Omit<InputProps, "onChange" | "value" | "mutators">) => JSX.Element;
15
- export declare const TextAreaField: (props: import("./enhancer").EnhancerProps<TextAreaProps> & Omit<TextAreaProps, "onChange" | "value" | "mutators">) => JSX.Element;
16
- export declare const NumberField: (props: import("./enhancer").EnhancerProps<InputNumberProps> & Omit<InputNumberProps, "onChange" | "value" | "mutators">) => JSX.Element;
17
- export declare const SliderField: (props: import("./enhancer").EnhancerProps<SliderProps> & Omit<SliderProps, "onChange" | "value" | "mutators">) => JSX.Element;
18
- export declare const ColorPickerField: (props: import("./enhancer").EnhancerProps<ColorPickerProps> & Omit<ColorPickerProps, "onChange" | "value" | "mutators">) => JSX.Element;
19
- export declare const UploadField: (props: import("./enhancer").EnhancerProps<UploadFieldProps> & Omit<UploadFieldProps, "onChange" | "value" | "mutators">) => JSX.Element;
20
- export declare const ImageUploaderField: (props: import("./enhancer").EnhancerProps<ImageUploaderProps> & Omit<ImageUploaderProps, "onChange" | "value" | "mutators">) => JSX.Element;
21
- export declare const SelectField: (props: import("./enhancer").EnhancerProps<SelectProps> & Omit<SelectProps, "onChange" | "value" | "mutators">) => JSX.Element;
22
- export declare const AutoCompleteField: (props: import("./enhancer").EnhancerProps<AutoCompleteProps> & Omit<AutoCompleteProps, "onChange" | "value" | "mutators">) => JSX.Element;
23
- export declare const RadioGroupField: (props: import("./enhancer").EnhancerProps<RadioGroupProps> & Omit<RadioGroupProps, "onChange" | "value" | "mutators">) => JSX.Element;
24
- export declare const SwitchField: (props: import("./enhancer").EnhancerProps<SwitchProps> & Omit<SwitchProps, "onChange" | "value" | "mutators">) => JSX.Element;
25
- export declare const DatePickerField: (props: import("./enhancer").EnhancerProps<DatePickerProps> & Omit<DatePickerProps, "onChange" | "value" | "mutators">) => JSX.Element;
26
- export declare const CheckboxField: (props: import("./enhancer").EnhancerProps<CheckboxGroupProps<any>> & Omit<CheckboxGroupProps<any>, "onChange" | "value" | "mutators">) => JSX.Element;
27
- export declare const EditTabField: (props: import("./enhancer").EnhancerProps<EditTabProps<any>> & Omit<EditTabProps<any>, "onChange" | "value" | "mutators">) => JSX.Element;
28
- export declare const InlineTextField: (props: import("./enhancer").EnhancerProps<InlineTextProps> & Omit<InlineTextProps, "onChange" | "value" | "mutators">) => JSX.Element;
13
+ export declare const TextField: (props: import("./enhancer").EnhancerProps<InputProps> & Omit<InputProps, "value" | "onChange" | "mutators">) => JSX.Element;
14
+ export declare const SearchField: (props: import("./enhancer").EnhancerProps<InputProps> & Omit<InputProps, "value" | "onChange" | "mutators">) => JSX.Element;
15
+ export declare const TextAreaField: (props: import("./enhancer").EnhancerProps<TextAreaProps> & Omit<TextAreaProps, "value" | "onChange" | "mutators">) => JSX.Element;
16
+ export declare const NumberField: (props: import("./enhancer").EnhancerProps<InputNumberProps> & Omit<InputNumberProps, "value" | "onChange" | "mutators">) => JSX.Element;
17
+ export declare const SliderField: (props: import("./enhancer").EnhancerProps<SliderProps> & Omit<SliderProps, "value" | "onChange" | "mutators">) => JSX.Element;
18
+ export declare const ColorPickerField: (props: import("./enhancer").EnhancerProps<ColorPickerProps> & Omit<ColorPickerProps, "value" | "onChange" | "mutators">) => JSX.Element;
19
+ export declare const UploadField: (props: import("./enhancer").EnhancerProps<UploadFieldProps> & Omit<UploadFieldProps, "value" | "onChange" | "mutators">) => JSX.Element;
20
+ export declare const ImageUploaderField: (props: import("./enhancer").EnhancerProps<ImageUploaderProps> & Omit<ImageUploaderProps, "value" | "onChange" | "mutators">) => JSX.Element;
21
+ export declare const SelectField: (props: import("./enhancer").EnhancerProps<SelectProps> & Omit<SelectProps, "value" | "onChange" | "mutators">) => JSX.Element;
22
+ export declare const TreeSelectField: (props: import("./enhancer").EnhancerProps<TreeSelectProps> & Omit<TreeSelectProps, "value" | "onChange" | "mutators">) => JSX.Element;
23
+ export declare const AutoCompleteField: (props: import("./enhancer").EnhancerProps<AutoCompleteProps> & Omit<AutoCompleteProps, "value" | "onChange" | "mutators">) => JSX.Element;
24
+ export declare const RadioGroupField: (props: import("./enhancer").EnhancerProps<RadioGroupProps> & Omit<RadioGroupProps, "value" | "onChange" | "mutators">) => JSX.Element;
25
+ export declare const SwitchField: (props: import("./enhancer").EnhancerProps<SwitchProps> & Omit<SwitchProps, "value" | "onChange" | "mutators">) => JSX.Element;
26
+ export declare const DatePickerField: (props: import("./enhancer").EnhancerProps<DatePickerProps> & Omit<DatePickerProps, "value" | "onChange" | "mutators">) => JSX.Element;
27
+ export declare const CheckboxField: (props: import("./enhancer").EnhancerProps<CheckboxGroupProps<any>> & Omit<CheckboxGroupProps<any>, "value" | "onChange" | "mutators">) => JSX.Element;
28
+ export declare const EditTabField: (props: import("./enhancer").EnhancerProps<EditTabProps<any>> & Omit<EditTabProps<any>, "value" | "onChange" | "mutators">) => JSX.Element;
29
+ export declare const InlineTextField: (props: import("./enhancer").EnhancerProps<InlineTextProps> & Omit<InlineTextProps, "value" | "onChange" | "mutators">) => JSX.Element;
29
30
  export { enhancer };
package/lib/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import '@arco-design/web-react/dist/css/arco.css';
1
+ import './index.scss';
2
2
  export * from './BlockLayer';
3
3
  export * from './AttributePanel';
4
4
  export * from './ShortcutToolbar';
package/lib/index.js CHANGED
@@ -1,8 +1,7 @@
1
- export { b as Align, A as AttributePanel, d as AttributesPanelWrapper, R as AutoCompleteField, g as Background, j as BackgroundColor, a as BlockAttributeConfigurationManager, B as BlockLayer, u as BlockMarketManager, v as BlockMaskWrapper, m as Border, n as BorderColor, q as BorderStyle, s as BorderWidth, _ as CheckboxField, C as Color, K as ColorPickerField, e as ContainerBackgroundColor, Z as DatePickerField, D as Decoration, k as Direction, $ as EditTabField, F as FontFamily, o as FontSize, r as FontStyle, t as FontWeight, H as Height, O as ImageUploaderField, a0 as InlineTextField, I as InteractivePrompt, L as LetterSpacing, h as LineHeight, l as Link, M as Margin, p as MergeTags, N as NavbarLinkPadding, G as NumberField, P as Padding, X as RadioGroupField, a2 as RichTextField, z as SearchField, Q as SelectField, S as ShortcutToolbar, x as SimpleLayout, J as SliderField, w as SourceCodePanel, Y as SwitchField, T as TextAlign, E as TextAreaField, f as TextDecoration, y as TextField, i as TextTransform, U as UploadField, V as VerticalAlign, W as Width, a1 as enhancer } from "./index2.js";
1
+ export { b as Align, A as AttributePanel, d as AttributesPanelWrapper, X as AutoCompleteField, g as Background, j as BackgroundColor, a as BlockAttributeConfigurationManager, B as BlockLayer, u as BlockMarketManager, v as BlockMaskWrapper, m as Border, n as BorderColor, q as BorderStyle, s as BorderWidth, $ as CheckboxField, C as Color, K as ColorPickerField, e as ContainerBackgroundColor, _ as DatePickerField, D as Decoration, k as Direction, a0 as EditTabField, F as FontFamily, o as FontSize, r as FontStyle, t as FontWeight, H as Height, O as ImageUploaderField, a1 as InlineTextField, I as InteractivePrompt, L as LetterSpacing, h as LineHeight, l as Link, M as Margin, p as MergeTags, N as NavbarLinkPadding, G as NumberField, P as Padding, Y as RadioGroupField, a3 as RichTextField, z as SearchField, Q as SelectField, S as ShortcutToolbar, x as SimpleLayout, J as SliderField, w as SourceCodePanel, Z as SwitchField, T as TextAlign, E as TextAreaField, f as TextDecoration, y as TextField, i as TextTransform, R as TreeSelectField, U as UploadField, V as VerticalAlign, W as Width, a2 as enhancer } from "./index2.js";
2
2
  import "react";
3
3
  import "easy-email-editor";
4
4
  import "easy-email-core";
5
- import "react-sortablejs";
6
- import "react-final-form";
7
5
  import "react-dom";
6
+ import "react-final-form";
8
7
  //# sourceMappingURL=index.js.map
package/lib/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;"}
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;"}