easy-email-extensions 3.1.0 → 3.1.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.
@@ -1 +1,3 @@
1
- export declare function Align(): JSX.Element;
1
+ export declare function Align({ inline }: {
2
+ inline?: boolean;
3
+ }): JSX.Element;
@@ -1,4 +1,4 @@
1
- export declare function Color({ title, inline, }: {
1
+ export declare function Color({ title, }: {
2
2
  title?: string;
3
3
  inline?: boolean;
4
4
  }): JSX.Element;
@@ -1,3 +1 @@
1
- export declare function FontStyle({ inline }: {
2
- inline?: boolean;
3
- }): JSX.Element;
1
+ export declare function FontStyle(): JSX.Element;
@@ -1,3 +1,5 @@
1
- export declare function Width({ inline }: {
1
+ import { InputWithUnitProps } from '@extensions/components/Form/InputWithUnit';
2
+ export declare function Width({ inline, unitOptions, }: {
2
3
  inline?: boolean;
4
+ unitOptions?: InputWithUnitProps['unitOptions'];
3
5
  }): JSX.Element;
@@ -0,0 +1 @@
1
+ export declare function getIconNameByBlockType(type: string): any;
@@ -5,7 +5,8 @@ interface TreeNode<T> {
5
5
  }
6
6
  export interface BlockTreeProps<T extends TreeNode<T>> {
7
7
  treeData: T[];
8
- selectedId?: string;
8
+ selectedKeys?: string[];
9
+ expandedKeys?: string[];
9
10
  onSelect: (selectedId: string) => void;
10
11
  onContextMenu?: (nodeData: T, ev: React.MouseEvent) => void;
11
12
  onDragStart?: () => void;
@@ -1,6 +1,8 @@
1
+ import React from 'react';
1
2
  import { IBlockData } from 'easy-email-core';
2
3
  export interface IBlockDataWithId extends IBlockData {
3
4
  id: string;
5
+ icon?: React.ReactElement;
4
6
  parent: IBlockDataWithId | null;
5
7
  children: IBlockDataWithId[];
6
8
  className?: string;
@@ -1,5 +1,5 @@
1
1
  import { IBlock } from 'easy-email-core';
2
- export declare function Toolbar({ block, direction, }: {
2
+ export declare function Toolbar({ block, blockNode, }: {
3
3
  block: IBlock;
4
- direction: 'top' | 'bottom';
4
+ blockNode: HTMLElement;
5
5
  }): JSX.Element;
@@ -0,0 +1,10 @@
1
+ import { InputProps as ArcoInputProps } from '@arco-design/web-react';
2
+ export interface InputWithUnitProps extends Omit<ArcoInputProps, 'onChange'> {
3
+ value: string;
4
+ onChange: (val: string) => void;
5
+ unitOptions?: Array<{
6
+ value: string;
7
+ label: string;
8
+ }> | 'default' | 'percent';
9
+ }
10
+ export declare function InputWithUnit(props: InputWithUnitProps): JSX.Element;
@@ -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';
@@ -6,11 +6,13 @@ import { SelectProps } from './Select';
6
6
  import { RadioGroupProps } from './RadioGroup';
7
7
  import enhancer from './enhancer';
8
8
  import { InputProps } from './Input';
9
+ import { InputWithUnitProps } from './InputWithUnit';
9
10
  import { EditTabProps } from './EditTab';
10
11
  import { InlineTextProps } from './InlineTextField';
11
12
  import { AutoCompleteProps } from './AutoComplete';
12
13
  export { RichTextField } from './RichTextField';
13
14
  export declare const TextField: (props: import("./enhancer").EnhancerProps<InputProps> & Omit<InputProps, "value" | "onChange" | "mutators">) => JSX.Element;
15
+ export declare const InputWithUnitField: (props: import("./enhancer").EnhancerProps<InputWithUnitProps> & Omit<InputWithUnitProps, "value" | "onChange" | "mutators">) => JSX.Element;
14
16
  export declare const SearchField: (props: import("./enhancer").EnhancerProps<InputProps> & Omit<InputProps, "value" | "onChange" | "mutators">) => JSX.Element;
15
17
  export declare const TextAreaField: (props: import("./enhancer").EnhancerProps<TextAreaProps> & Omit<TextAreaProps, "value" | "onChange" | "mutators">) => JSX.Element;
16
18
  export declare const NumberField: (props: import("./enhancer").EnhancerProps<InputNumberProps> & Omit<InputNumberProps, "value" | "onChange" | "mutators">) => JSX.Element;
@@ -19,6 +21,7 @@ export declare const ColorPickerField: (props: import("./enhancer").EnhancerProp
19
21
  export declare const UploadField: (props: import("./enhancer").EnhancerProps<UploadFieldProps> & Omit<UploadFieldProps, "value" | "onChange" | "mutators">) => JSX.Element;
20
22
  export declare const ImageUploaderField: (props: import("./enhancer").EnhancerProps<ImageUploaderProps> & Omit<ImageUploaderProps, "value" | "onChange" | "mutators">) => JSX.Element;
21
23
  export declare const SelectField: (props: import("./enhancer").EnhancerProps<SelectProps> & Omit<SelectProps, "value" | "onChange" | "mutators">) => JSX.Element;
24
+ export declare const TreeSelectField: (props: import("./enhancer").EnhancerProps<TreeSelectProps> & Omit<TreeSelectProps, "value" | "onChange" | "mutators">) => JSX.Element;
22
25
  export declare const AutoCompleteField: (props: import("./enhancer").EnhancerProps<AutoCompleteProps> & Omit<AutoCompleteProps, "value" | "onChange" | "mutators">) => JSX.Element;
23
26
  export declare const RadioGroupField: (props: import("./enhancer").EnhancerProps<RadioGroupProps> & Omit<RadioGroupProps, "value" | "onChange" | "mutators">) => JSX.Element;
24
27
  export declare const SwitchField: (props: import("./enhancer").EnhancerProps<SwitchProps> & Omit<SwitchProps, "value" | "onChange" | "mutators">) => JSX.Element;
package/lib/index.js CHANGED
@@ -1,4 +1,4 @@
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, Y 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, a0 as CheckboxField, C as Color, O as ColorPickerField, e as ContainerBackgroundColor, $ as DatePickerField, D as Decoration, k as Direction, a1 as EditTabField, F as FontFamily, o as FontSize, r as FontStyle, t as FontWeight, H as Height, Q as ImageUploaderField, a2 as InlineTextField, z as InputWithUnitField, I as InteractivePrompt, L as LetterSpacing, h as LineHeight, l as Link, M as Margin, p as MergeTags, N as NavbarLinkPadding, J as NumberField, P as Padding, Z as RadioGroupField, a4 as RichTextField, E as SearchField, R as SelectField, S as ShortcutToolbar, x as SimpleLayout, K as SliderField, w as SourceCodePanel, _ as SwitchField, T as TextAlign, G as TextAreaField, f as TextDecoration, y as TextField, i as TextTransform, X as TreeSelectField, U as UploadField, V as VerticalAlign, W as Width, a3 as enhancer } from "./index2.js";
2
2
  import "react";
3
3
  import "easy-email-editor";
4
4
  import "easy-email-core";