easy-email-extensions 4.4.5 → 4.7.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -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
+ };
@@ -1,5 +1,5 @@
1
1
  export declare const borderStyleOptions: {
2
2
  value: string;
3
- label: string;
3
+ readonly label: string;
4
4
  }[];
5
5
  export declare function BorderStyle(): JSX.Element;
@@ -1,3 +1,5 @@
1
- export declare function Height({ inline }: {
1
+ import { UseFieldConfig } from 'react-final-form';
2
+ export declare function Height({ inline, config, }: {
2
3
  inline?: boolean;
4
+ config?: UseFieldConfig<any>;
3
5
  }): JSX.Element;
@@ -2,5 +2,6 @@ export interface PaddingProps {
2
2
  title?: string;
3
3
  attributeName?: 'padding' | 'inner-padding' | 'text-padding';
4
4
  name?: string;
5
+ showResetAll?: boolean;
5
6
  }
6
7
  export declare function Padding(props?: PaddingProps): JSX.Element;
@@ -1,5 +1,7 @@
1
1
  import { InputWithUnitProps } from '../../../components/Form/InputWithUnit';
2
- export declare function Width({ inline, unitOptions, }: {
2
+ import { UseFieldConfig } from 'react-final-form';
3
+ export declare function Width({ inline, unitOptions, config, }: {
3
4
  inline?: boolean;
4
5
  unitOptions?: InputWithUnitProps['unitOptions'];
6
+ config?: UseFieldConfig<any>;
5
7
  }): JSX.Element;
@@ -1 +1,6 @@
1
- export declare function Page(): JSX.Element | null;
1
+ interface PageProps {
2
+ hideSubTitle?: boolean;
3
+ hideSubject?: boolean;
4
+ }
5
+ export declare function Page({ hideSubTitle, hideSubject }: PageProps): JSX.Element | null;
6
+ export {};
@@ -1,3 +1,4 @@
1
1
  export { AttributePanel } from './AttributePanel';
2
2
  export { BlockAttributeConfigurationManager } from './utils/BlockAttributeConfigurationManager';
3
3
  export * from './components/attributes';
4
+ export { Page as DefaultPageConfigPanel } from './components/blocks/Page';
@@ -1,5 +1,6 @@
1
+ import { ReactNode } from 'react';
1
2
  declare type ObjectComponent = {
2
- [key: string]: () => JSX.Element | null;
3
+ [key: string]: ReactNode;
3
4
  };
4
5
  export declare class BlockAttributeConfigurationManager {
5
6
  private static map;
@@ -2,17 +2,17 @@ import { AdvancedType } from 'easy-email-core';
2
2
  import { TextBlockItem } from './TextBlockItem';
3
3
  import { ImageBlockItem } from './ImageBlockItem';
4
4
  export declare const defaultCategories: {
5
- title: string;
5
+ readonly title: string;
6
6
  name: string;
7
7
  blocks: ({
8
8
  type: AdvancedType;
9
- title: string;
10
- description: string;
9
+ readonly title: string;
10
+ readonly description: string;
11
11
  component: typeof TextBlockItem;
12
12
  } | {
13
13
  type: AdvancedType;
14
- title: string;
15
- description: JSX.Element;
14
+ readonly title: string;
15
+ readonly description: JSX.Element;
16
16
  component: typeof ImageBlockItem;
17
17
  })[];
18
18
  }[];
@@ -1,5 +1,4 @@
1
- import { IBlockData } from 'easy-email-core';
2
- import { RecursivePartial } from 'easy-email-core';
1
+ import { IBlockData, RecursivePartial } from 'easy-email-core';
3
2
  export interface DragIconProps<T extends IBlockData> {
4
3
  type: string;
5
4
  payload?: RecursivePartial<T>;
@@ -0,0 +1,5 @@
1
+ import { ComponentProps } from 'react';
2
+ import { ColorPickerProps } from '../ColorPicker';
3
+ declare const ColorPickerFieldSource: (props: import("../enhancer").EnhancerProps & Omit<ColorPickerProps, "value" | "onChange" | "mutators">) => JSX.Element;
4
+ export declare const ColorPickerField: (props: ComponentProps<typeof ColorPickerFieldSource>) => JSX.Element;
5
+ export {};
@@ -1,7 +1,6 @@
1
1
  import { SliderProps, InputNumberProps, SwitchProps, TextAreaProps, CheckboxGroupProps, TreeSelectProps } from '@arco-design/web-react';
2
2
  import { ImageUploaderProps } from './ImageUploader';
3
3
  import { UploadFieldProps } from './UploadField';
4
- import { ColorPickerProps } from './ColorPicker';
5
4
  import { SelectProps } from './Select';
6
5
  import { RadioGroupProps } from './RadioGroup';
7
6
  import enhancer from './enhancer';
@@ -12,6 +11,7 @@ import { EditGridTabProps } from './EditGridTab';
12
11
  import { InlineTextProps } from './InlineTextField';
13
12
  import { AutoCompleteProps } from './AutoComplete';
14
13
  import { InputSearchProps } from '@arco-design/web-react/es/Input';
14
+ import { ColorPickerField } from './ColorPickerField';
15
15
  export { RichTextField } from './RichTextField';
16
16
  export declare const TextField: (props: import("./enhancer").EnhancerProps & Omit<InputProps, "value" | "onChange" | "mutators">) => JSX.Element;
17
17
  export declare const InputWithUnitField: (props: import("./enhancer").EnhancerProps & Omit<InputWithUnitProps, "value" | "onChange" | "mutators">) => JSX.Element;
@@ -19,7 +19,6 @@ export declare const SearchField: (props: import("./enhancer").EnhancerProps & O
19
19
  export declare const TextAreaField: (props: import("./enhancer").EnhancerProps & Omit<TextAreaProps, "value" | "onChange" | "mutators">) => JSX.Element;
20
20
  export declare const NumberField: (props: import("./enhancer").EnhancerProps & Omit<InputNumberProps, "value" | "onChange" | "mutators">) => JSX.Element;
21
21
  export declare const SliderField: (props: import("./enhancer").EnhancerProps & Omit<SliderProps, "value" | "onChange" | "mutators">) => JSX.Element;
22
- export declare const ColorPickerField: (props: import("./enhancer").EnhancerProps & Omit<ColorPickerProps, "value" | "onChange" | "mutators">) => JSX.Element;
23
22
  export declare const UploadField: (props: import("./enhancer").EnhancerProps & Omit<UploadFieldProps, "value" | "onChange" | "mutators">) => JSX.Element;
24
23
  export declare const ImageUploaderField: (props: import("./enhancer").EnhancerProps & Omit<ImageUploaderProps, "value" | "onChange" | "mutators">) => JSX.Element;
25
24
  export declare const SelectField: (props: import("./enhancer").EnhancerProps & Omit<SelectProps, "value" | "onChange" | "mutators">) => JSX.Element;
@@ -31,4 +30,5 @@ export declare const CheckboxField: (props: import("./enhancer").EnhancerProps &
31
30
  export declare const EditTabField: (props: import("./enhancer").EnhancerProps & Omit<EditTabProps<any>, "value" | "onChange" | "mutators">) => JSX.Element;
32
31
  export declare const EditGridTabField: (props: import("./enhancer").EnhancerProps & Omit<EditGridTabProps<any>, "value" | "onChange" | "mutators">) => JSX.Element;
33
32
  export declare const InlineTextField: (props: import("./enhancer").EnhancerProps & Omit<InlineTextProps, "value" | "onChange" | "mutators">) => JSX.Element;
33
+ export { ColorPickerField };
34
34
  export { enhancer };
package/lib/index.js CHANGED
@@ -1,4 +1,4 @@
1
- export { e as Align, A as AttributePanel, f as AttributesPanelWrapper, a7 as AutoCompleteField, k as Background, n as BackgroundColor, d as BlockAttributeConfigurationManager, B as BlockLayer, z as BlockMarketManager, E as BlockMaskWrapper, q as Border, r as BorderColor, u as BorderStyle, w as BorderWidth, aa as CheckboxField, y as ClassName, h as CollapseWrapper, C as Color, a2 as ColorPickerField, i as ContainerBackgroundColor, D as Decoration, o as Direction, ac as EditGridTabField, ab as EditTabField, Q as ExtensionContext, R as ExtensionProvider, F as FontFamily, s as FontSize, v as FontStyle, x as FontWeight, H as Height, a4 as ImageUploaderField, ad as InlineTextField, Z as InputWithUnitField, I as InteractivePrompt, L as LetterSpacing, l as LineHeight, p as Link, M as Margin, O as MergeTagBadgePrompt, t as MergeTags, N as NavbarLinkPadding, a0 as NumberField, P as Padding, X as RICH_TEXT_TOOL_BAR, a8 as RadioGroupField, af as RichTextField, _ as SearchField, a5 as SelectField, S as ShortcutToolbar, J as SimpleLayout, a1 as SliderField, G as SourceCodePanel, K as StandardLayout, a9 as SwitchField, T as TextAlign, $ as TextAreaField, j as TextDecoration, Y as TextField, m as TextTransform, a6 as TreeSelectField, a3 as UploadField, V as VerticalAlign, W as Width, ae as enhancer, b as getBlockTitle, g as getContextMergeTags, a as getIconNameByBlockType, U as useExtensionProps } from "./index2.js";
1
+ export { e as Align, A as AttributePanel, f as AttributesPanelWrapper, a7 as AutoCompleteField, k as Background, n as BackgroundColor, d as BlockAttributeConfigurationManager, B as BlockLayer, E as BlockMarketManager, G as BlockMaskWrapper, q as Border, r as BorderColor, u as BorderStyle, w as BorderWidth, aa as CheckboxField, z as ClassName, h as CollapseWrapper, C as Color, ae as ColorPickerField, i as ContainerBackgroundColor, D as Decoration, P as DefaultPageConfigPanel, o as Direction, ac as EditGridTabField, ab as EditTabField, R as ExtensionContext, U as ExtensionProvider, F as FontFamily, s as FontSize, v as FontStyle, x as FontWeight, H as Height, a4 as ImageUploaderField, ad as InlineTextField, _ as InputWithUnitField, J as InteractivePrompt, L as LetterSpacing, l as LineHeight, p as Link, M as Margin, Q as MergeTagBadgePrompt, t as MergeTags, N as NavbarLinkPadding, a1 as NumberField, y as Padding, Y as RICH_TEXT_TOOL_BAR, a8 as RadioGroupField, ag as RichTextField, $ as SearchField, a5 as SelectField, S as ShortcutToolbar, K as SimpleLayout, a2 as SliderField, I as SourceCodePanel, O as StandardLayout, a9 as SwitchField, T as TextAlign, a0 as TextAreaField, j as TextDecoration, Z as TextField, m as TextTransform, a6 as TreeSelectField, a3 as UploadField, V as VerticalAlign, W as Width, af as enhancer, b as getBlockTitle, g as getContextMergeTags, a as getIconNameByBlockType, X as useExtensionProps } from "./index2.js";
2
2
  import "react";
3
3
  import "easy-email-editor";
4
4
  import "easy-email-core";