easy-email-extensions 2.5.2-beta.0
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/AttributePanel.d.ts +3 -0
- package/lib/AttributePanel/components/UI/Help/HtmlEditor.d.ts +5 -0
- package/lib/AttributePanel/components/UI/Help/index.d.ts +5 -0
- package/lib/AttributePanel/components/attributes/Align.d.ts +1 -0
- package/lib/AttributePanel/components/attributes/AttributesPanelWrapper.d.ts +6 -0
- package/lib/AttributePanel/components/attributes/Background.d.ts +1 -0
- package/lib/AttributePanel/components/attributes/BackgroundColor.d.ts +3 -0
- package/lib/AttributePanel/components/attributes/Border.d.ts +1 -0
- package/lib/AttributePanel/components/attributes/BorderColor.d.ts +1 -0
- package/lib/AttributePanel/components/attributes/BorderStyle.d.ts +5 -0
- package/lib/AttributePanel/components/attributes/BorderWidth.d.ts +1 -0
- package/lib/AttributePanel/components/attributes/Color.d.ts +4 -0
- package/lib/AttributePanel/components/attributes/ContainerBackgroundColor.d.ts +3 -0
- package/lib/AttributePanel/components/attributes/Decoration.d.ts +1 -0
- package/lib/AttributePanel/components/attributes/Direction.d.ts +1 -0
- package/lib/AttributePanel/components/attributes/FontFamliy.d.ts +1 -0
- package/lib/AttributePanel/components/attributes/FontSize.d.ts +1 -0
- package/lib/AttributePanel/components/attributes/FontStyle.d.ts +3 -0
- package/lib/AttributePanel/components/attributes/FontWeight.d.ts +1 -0
- package/lib/AttributePanel/components/attributes/Height.d.ts +3 -0
- package/lib/AttributePanel/components/attributes/LetterSpacing.d.ts +1 -0
- package/lib/AttributePanel/components/attributes/LineHeight.d.ts +1 -0
- package/lib/AttributePanel/components/attributes/Link.d.ts +1 -0
- package/lib/AttributePanel/components/attributes/Margin.d.ts +1 -0
- package/lib/AttributePanel/components/attributes/MergeTags.d.ts +6 -0
- package/lib/AttributePanel/components/attributes/NavbarLinkPadding.d.ts +3 -0
- package/lib/AttributePanel/components/attributes/Padding.d.ts +5 -0
- package/lib/AttributePanel/components/attributes/TextAlign.d.ts +1 -0
- package/lib/AttributePanel/components/attributes/TextDecoration.d.ts +1 -0
- package/lib/AttributePanel/components/attributes/TextTransform.d.ts +1 -0
- package/lib/AttributePanel/components/attributes/VerticalAlign.d.ts +3 -0
- package/lib/AttributePanel/components/attributes/Width.d.ts +3 -0
- package/lib/AttributePanel/components/blocks/Accordion/index.d.ts +1 -0
- package/lib/AttributePanel/components/blocks/AccordionElement/index.d.ts +1 -0
- package/lib/AttributePanel/components/blocks/AccordionText/index.d.ts +1 -0
- package/lib/AttributePanel/components/blocks/AccordionTitle/index.d.ts +1 -0
- package/lib/AttributePanel/components/blocks/Button/index.d.ts +1 -0
- package/lib/AttributePanel/components/blocks/Carousel/index.d.ts +1 -0
- package/lib/AttributePanel/components/blocks/Column/index.d.ts +1 -0
- package/lib/AttributePanel/components/blocks/Divider/index.d.ts +1 -0
- package/lib/AttributePanel/components/blocks/Group/index.d.ts +1 -0
- package/lib/AttributePanel/components/blocks/Hero/index.d.ts +1 -0
- package/lib/AttributePanel/components/blocks/Image/index.d.ts +1 -0
- package/lib/AttributePanel/components/blocks/Navbar/index.d.ts +1 -0
- package/lib/AttributePanel/components/blocks/Page/index.d.ts +1 -0
- package/lib/AttributePanel/components/blocks/Raw/index.d.ts +1 -0
- package/lib/AttributePanel/components/blocks/Section/index.d.ts +1 -0
- package/lib/AttributePanel/components/blocks/Social/index.d.ts +1 -0
- package/lib/AttributePanel/components/blocks/Spacer/index.d.ts +1 -0
- package/lib/AttributePanel/components/blocks/Table/index.d.ts +1 -0
- package/lib/AttributePanel/components/blocks/Text/index.d.ts +1 -0
- package/lib/AttributePanel/components/blocks/Wrapper/index.d.ts +1 -0
- package/lib/AttributePanel/components/blocks/index.d.ts +42 -0
- package/lib/AttributePanel/components/provider/PresetColorsProvider/index.d.ts +6 -0
- package/lib/AttributePanel/components/provider/SelectionRangeProvider/index.d.ts +6 -0
- package/lib/AttributePanel/hooks/useSelectionRange.d.ts +6 -0
- package/lib/AttributePanel/index.d.ts +3 -0
- package/lib/AttributePanel/utils/BlockAttributeConfigurationManager.d.ts +10 -0
- package/lib/AttributePanel/utils/InputNumberAdapter.d.ts +2 -0
- package/lib/AttributePanel/utils/PromiseEach.d.ts +1 -0
- package/lib/AttributePanel/utils/Uploader.d.ts +35 -0
- package/lib/AttributePanel/utils/awaitForElement.d.ts +4 -0
- package/lib/AttributePanel/utils/classnames.d.ts +1 -0
- package/lib/AttributePanel/utils/getEditNode.d.ts +2 -0
- package/lib/AttributePanel/utils/getImg.d.ts +8 -0
- package/lib/AttributePanel/utils/onDrag.d.ts +10 -0
- package/lib/AttributePanel/utils/previewLoadImage.d.ts +1 -0
- package/lib/BlockLayer/components/BlockTree/components/BlockTreeItem/index.d.ts +23 -0
- package/lib/BlockLayer/components/BlockTree/components/TreeCollapse.d.ts +6 -0
- package/lib/BlockLayer/components/BlockTree/index.d.ts +29 -0
- package/lib/BlockLayer/components/ContextMenu/index.d.ts +14 -0
- package/lib/BlockLayer/components/EyeIcon/index.d.ts +7 -0
- package/lib/BlockLayer/index.d.ts +7 -0
- package/lib/InteractivePrompt/components/FocusTooltip.d.ts +1 -0
- package/lib/InteractivePrompt/components/HoverTooltip.d.ts +1 -0
- package/lib/InteractivePrompt/components/Toolbar.d.ts +4 -0
- package/lib/InteractivePrompt/constants.d.ts +15 -0
- package/lib/InteractivePrompt/index.d.ts +1 -0
- package/lib/InteractivePrompt/utils/awaitForElement.d.ts +4 -0
- package/lib/ShortcutToolbar/ShortcutToolbar.d.ts +1 -0
- package/lib/ShortcutToolbar/components/BlockMaskWrapper/index.d.ts +6 -0
- package/lib/ShortcutToolbar/components/BlocksPanel/index.d.ts +6 -0
- package/lib/ShortcutToolbar/components/BlocksPanel/presetTemplate/AccordionBlockItem/index.d.ts +1 -0
- package/lib/ShortcutToolbar/components/BlocksPanel/presetTemplate/ButtonBlockItem/index.d.ts +1 -0
- package/lib/ShortcutToolbar/components/BlocksPanel/presetTemplate/CarouselBlockItem/index.d.ts +1 -0
- package/lib/ShortcutToolbar/components/BlocksPanel/presetTemplate/ColumnBlockItem/index.d.ts +1 -0
- package/lib/ShortcutToolbar/components/BlocksPanel/presetTemplate/DividerBlockItem/index.d.ts +1 -0
- package/lib/ShortcutToolbar/components/BlocksPanel/presetTemplate/GroupBlockItem/index.d.ts +1 -0
- package/lib/ShortcutToolbar/components/BlocksPanel/presetTemplate/HeroBlockItem/index.d.ts +1 -0
- package/lib/ShortcutToolbar/components/BlocksPanel/presetTemplate/ImageBlockItem/index.d.ts +1 -0
- package/lib/ShortcutToolbar/components/BlocksPanel/presetTemplate/NavbarBlockItem/index.d.ts +1 -0
- package/lib/ShortcutToolbar/components/BlocksPanel/presetTemplate/RawBlockItem/index.d.ts +1 -0
- package/lib/ShortcutToolbar/components/BlocksPanel/presetTemplate/SectionBlockItem/index.d.ts +1 -0
- package/lib/ShortcutToolbar/components/BlocksPanel/presetTemplate/SocialBlockItem/index.d.ts +1 -0
- package/lib/ShortcutToolbar/components/BlocksPanel/presetTemplate/SpacerBlockItem/index.d.ts +1 -0
- package/lib/ShortcutToolbar/components/BlocksPanel/presetTemplate/TextBlockItem/index.d.ts +1 -0
- package/lib/ShortcutToolbar/components/BlocksPanel/presetTemplate/WrapperBlockItem/index.d.ts +1 -0
- package/lib/ShortcutToolbar/components/BlocksPanel/presetTemplate/index.d.ts +18 -0
- package/lib/ShortcutToolbar/components/Picture/index.d.ts +7 -0
- package/lib/ShortcutToolbar/index.d.ts +4 -0
- package/lib/ShortcutToolbar/utils/BlockMarketManager.d.ts +32 -0
- package/lib/ShortcutToolbar/utils/getImg.d.ts +68 -0
- package/lib/SimpleFrame/SimpleFrame.d.ts +2 -0
- package/lib/SimpleFrame/index.d.ts +1 -0
- package/lib/SourceCodePanel/index.d.ts +1 -0
- package/lib/components/AddToCollection/index.d.ts +5 -0
- package/lib/components/Form/AddFont.d.ts +1 -0
- package/lib/components/Form/AutoComplete.d.ts +11 -0
- package/lib/components/Form/ChexkBoxGroup.d.ts +15 -0
- package/lib/components/Form/CodemirrorEditor/index.d.ts +8 -0
- package/lib/components/Form/ColorPicker.d.ts +10 -0
- package/lib/components/Form/EditTab.d.ts +10 -0
- package/lib/components/Form/ImageUploader/index.d.ts +8 -0
- package/lib/components/Form/InlineTextField/index.d.ts +8 -0
- package/lib/components/Form/Input.d.ts +7 -0
- package/lib/components/Form/RadioGroup.d.ts +13 -0
- package/lib/components/Form/RichTextField/components/FontFamily/index.d.ts +3 -0
- package/lib/components/Form/RichTextField/components/FontSizeList/index.d.ts +3 -0
- package/lib/components/Form/RichTextField/components/Heading/index.d.ts +3 -0
- package/lib/components/Form/RichTextField/components/Link/index.d.ts +12 -0
- package/lib/components/Form/RichTextField/components/TextToolbar/MergeTags.d.ts +6 -0
- package/lib/components/Form/RichTextField/components/TextToolbar/index.d.ts +5 -0
- package/lib/components/Form/RichTextField/components/ToolItem/index.d.ts +7 -0
- package/lib/components/Form/RichTextField/index.d.ts +3 -0
- package/lib/components/Form/Select.d.ts +11 -0
- package/lib/components/Form/TreeSelect.d.ts +16 -0
- package/lib/components/Form/UploadField.d.ts +8 -0
- package/lib/components/Form/enhancer.d.ts +20 -0
- package/lib/components/Form/index.d.ts +36 -0
- package/lib/components/ShadowDom/index.d.ts +2 -0
- package/lib/hooks/useAddToCollection.d.ts +6 -0
- package/lib/index.d.ts +7 -0
- package/lib/index.js +7 -0
- package/lib/index.js.map +1 -0
- package/lib/index2.js +52688 -0
- package/lib/index2.js.map +1 -0
- package/lib/index3.js +11645 -0
- package/lib/index3.js.map +1 -0
- package/lib/style.css +1 -0
- package/lib/utils/awaitForElement.d.ts +4 -0
- package/lib/utils/classnames.d.ts +1 -0
- package/package.json +78 -0
- package/readme.md +130 -0
@@ -0,0 +1,32 @@
|
|
1
|
+
/// <reference types="react" />
|
2
|
+
import { IBlockData } from 'easy-email-core';
|
3
|
+
export interface BlockMarketCategory {
|
4
|
+
name: string;
|
5
|
+
title: string;
|
6
|
+
blocks: {
|
7
|
+
type: string;
|
8
|
+
title: string;
|
9
|
+
description?: React.ReactNode;
|
10
|
+
thumbnail?: string;
|
11
|
+
payload?: IBlockData;
|
12
|
+
component: () => JSX.Element | null;
|
13
|
+
}[];
|
14
|
+
}
|
15
|
+
export declare class BlockMarketManager {
|
16
|
+
private static category;
|
17
|
+
private static subscriptHandles;
|
18
|
+
static subscribe(fn: (category: BlockMarketCategory[]) => void): number;
|
19
|
+
static unsubscribe(fn: (category: BlockMarketCategory[]) => void): ((category: BlockMarketCategory[]) => void)[];
|
20
|
+
static notify(): void;
|
21
|
+
static getCategory(name: string): BlockMarketCategory | undefined;
|
22
|
+
static getCategories(): BlockMarketCategory[];
|
23
|
+
static addCategories(list: BlockMarketCategory[]): void;
|
24
|
+
static addCategory(name: string, title: string, blocks: {
|
25
|
+
type: string;
|
26
|
+
title: string;
|
27
|
+
description?: React.ReactNode;
|
28
|
+
component: () => JSX.Element | null;
|
29
|
+
}[]): void;
|
30
|
+
static removeCategories(list: BlockMarketCategory[]): void;
|
31
|
+
static removeCategory(name: string): void;
|
32
|
+
}
|
@@ -0,0 +1,68 @@
|
|
1
|
+
declare const defaultImagesMap: {
|
2
|
+
IMAGE_08: string;
|
3
|
+
IMAGE_09: string;
|
4
|
+
IMAGE_10: string;
|
5
|
+
IMAGE_11: string;
|
6
|
+
IMAGE_12: string;
|
7
|
+
IMAGE_13: string;
|
8
|
+
IMAGE_14: string;
|
9
|
+
IMAGE_15: string;
|
10
|
+
IMAGE_16: string;
|
11
|
+
IMAGE_17: string;
|
12
|
+
IMAGE_18: string;
|
13
|
+
IMAGE_19: string;
|
14
|
+
IMAGE_20: string;
|
15
|
+
IMAGE_21: string;
|
16
|
+
IMAGE_22: string;
|
17
|
+
IMAGE_23: string;
|
18
|
+
IMAGE_24: string;
|
19
|
+
IMAGE_25: string;
|
20
|
+
IMAGE_26: string;
|
21
|
+
IMAGE_27: string;
|
22
|
+
IMAGE_28: string;
|
23
|
+
IMAGE_29: string;
|
24
|
+
IMAGE_30: string;
|
25
|
+
IMAGE_31: string;
|
26
|
+
IMAGE_32: string;
|
27
|
+
IMAGE_33: string;
|
28
|
+
IMAGE_34: string;
|
29
|
+
IMAGE_35: string;
|
30
|
+
IMAGE_36: string;
|
31
|
+
IMAGE_37: string;
|
32
|
+
IMAGE_38: string;
|
33
|
+
IMAGE_39: string;
|
34
|
+
IMAGE_40: string;
|
35
|
+
IMAGE_41: string;
|
36
|
+
IMAGE_42: string;
|
37
|
+
IMAGE_43: string;
|
38
|
+
IMAGE_44: string;
|
39
|
+
IMAGE_45: string;
|
40
|
+
IMAGE_46: string;
|
41
|
+
IMAGE_47: string;
|
42
|
+
IMAGE_48: string;
|
43
|
+
IMAGE_49: string;
|
44
|
+
IMAGE_50: string;
|
45
|
+
IMAGE_51: string;
|
46
|
+
IMAGE_52: string;
|
47
|
+
IMAGE_53: string;
|
48
|
+
IMAGE_54: string;
|
49
|
+
IMAGE_55: string;
|
50
|
+
IMAGE_56: string;
|
51
|
+
IMAGE_57: string;
|
52
|
+
IMAGE_58: string;
|
53
|
+
IMAGE_59: string;
|
54
|
+
IMAGE_60: string;
|
55
|
+
IMAGE_61: string;
|
56
|
+
IMAGE_62: string;
|
57
|
+
IMAGE_63: string;
|
58
|
+
IMAGE_64: string;
|
59
|
+
IMAGE_65: string;
|
60
|
+
IMAGE_66: string;
|
61
|
+
IMAGE_67: string;
|
62
|
+
IMAGE_68: string;
|
63
|
+
IMAGE_69: string;
|
64
|
+
IMAGE_70: string;
|
65
|
+
IMAGE_71: string;
|
66
|
+
};
|
67
|
+
export declare function getImg(name: keyof typeof defaultImagesMap): string;
|
68
|
+
export {};
|
@@ -0,0 +1 @@
|
|
1
|
+
export { SimpleFrame } from './SimpleFrame';
|
@@ -0,0 +1 @@
|
|
1
|
+
export declare function SourceCodePanel(): JSX.Element | null;
|
@@ -0,0 +1 @@
|
|
1
|
+
export declare function AddFont(): JSX.Element;
|
@@ -0,0 +1,11 @@
|
|
1
|
+
import { AutoCompleteProps as AntdAutoCompleteProps } from 'antd';
|
2
|
+
export interface AutoCompleteProps extends Omit<AntdAutoCompleteProps, 'onChange' | 'options'> {
|
3
|
+
quickchange?: boolean;
|
4
|
+
value: string;
|
5
|
+
options: Array<{
|
6
|
+
value: any;
|
7
|
+
label: any;
|
8
|
+
}>;
|
9
|
+
onChange: (val: string) => void;
|
10
|
+
}
|
11
|
+
export declare function AutoComplete(props: AutoCompleteProps): JSX.Element;
|
@@ -0,0 +1,15 @@
|
|
1
|
+
import { CheckboxGroupProps as AntdCheckboxGroupProps } from 'antd/lib/checkbox';
|
2
|
+
import { CheckboxValueType } from 'antd/lib/checkbox/Group';
|
3
|
+
import React from 'react';
|
4
|
+
export interface CheckboxGroupProps extends AntdCheckboxGroupProps {
|
5
|
+
options: Array<{
|
6
|
+
value: string;
|
7
|
+
label: React.ReactNode;
|
8
|
+
}>;
|
9
|
+
onChange?: (e: CheckboxValueType[]) => void;
|
10
|
+
value?: CheckboxValueType[];
|
11
|
+
style?: Partial<React.CSSProperties>;
|
12
|
+
checkboxStyle?: Partial<React.CSSProperties>;
|
13
|
+
vertical?: boolean;
|
14
|
+
}
|
15
|
+
export declare function ChexkBoxGroup(props: CheckboxGroupProps): JSX.Element;
|
@@ -0,0 +1,8 @@
|
|
1
|
+
import 'codemirror/lib/codemirror.css';
|
2
|
+
import 'codemirror/theme/material.css';
|
3
|
+
import 'codemirror/theme/neat.css';
|
4
|
+
import 'codemirror/mode/xml/xml.js';
|
5
|
+
export default function CodemirrorEditor(props: {
|
6
|
+
value: string;
|
7
|
+
onChange(val: string): void;
|
8
|
+
}): JSX.Element;
|
@@ -0,0 +1,10 @@
|
|
1
|
+
import { PopoverProps } from 'antd';
|
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): JSX.Element;
|
@@ -0,0 +1,10 @@
|
|
1
|
+
import { TabsProps } from 'rc-tabs';
|
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>): JSX.Element;
|
@@ -0,0 +1,8 @@
|
|
1
|
+
import { UploaderServer } from '@extensions/AttributePanel/utils/Uploader';
|
2
|
+
export interface ImageUploaderProps {
|
3
|
+
onChange: (val: string) => void;
|
4
|
+
value: string;
|
5
|
+
label: string;
|
6
|
+
uploadHandler?: UploaderServer;
|
7
|
+
}
|
8
|
+
export declare function ImageUploader(props: ImageUploaderProps): JSX.Element;
|
@@ -0,0 +1,8 @@
|
|
1
|
+
import React from 'react';
|
2
|
+
export interface InlineTextProps {
|
3
|
+
idx: string;
|
4
|
+
children?: React.ReactNode;
|
5
|
+
onChange: (content: string) => void;
|
6
|
+
mutators: Record<string, (...args: any[]) => any>;
|
7
|
+
}
|
8
|
+
export declare function InlineText({ idx, onChange, children, mutators: { setFieldTouched }, }: InlineTextProps): JSX.Element | null;
|
@@ -0,0 +1,7 @@
|
|
1
|
+
import { InputProps as AntdInputProps } from 'antd/lib/input';
|
2
|
+
export interface InputProps extends Omit<AntdInputProps, 'onChange'> {
|
3
|
+
quickchange?: boolean;
|
4
|
+
value: string;
|
5
|
+
onChange: (val: string) => void;
|
6
|
+
}
|
7
|
+
export declare function Input(props: InputProps): JSX.Element;
|
@@ -0,0 +1,13 @@
|
|
1
|
+
import { RadioChangeEvent, RadioGroupProps as AntdRadioGroupProps } from 'antd/lib/radio';
|
2
|
+
import React from 'react';
|
3
|
+
export interface RadioGroupProps extends AntdRadioGroupProps {
|
4
|
+
options: Array<{
|
5
|
+
value: string;
|
6
|
+
label: React.ReactNode;
|
7
|
+
}>;
|
8
|
+
onChange?: (e: RadioChangeEvent) => void;
|
9
|
+
value?: string;
|
10
|
+
type?: 'radio' | 'button';
|
11
|
+
vertical?: boolean;
|
12
|
+
}
|
13
|
+
export declare function RadioGroup(props: RadioGroupProps): JSX.Element;
|
@@ -0,0 +1,12 @@
|
|
1
|
+
import { PopoverProps } from 'antd';
|
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: (val: LinkParams) => void;
|
11
|
+
}
|
12
|
+
export declare function Link(props: LinkProps): JSX.Element;
|
@@ -0,0 +1,11 @@
|
|
1
|
+
import { SelectProps as AntdSelectProps } from 'antd/lib/select';
|
2
|
+
import React from 'react';
|
3
|
+
export interface SelectProps extends AntdSelectProps<string> {
|
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): JSX.Element;
|
@@ -0,0 +1,16 @@
|
|
1
|
+
import { TreeSelectProps as AntdTreeSelectProps } from 'antd/lib/tree-select';
|
2
|
+
import React from 'react';
|
3
|
+
interface TreeSelectOption {
|
4
|
+
value: string;
|
5
|
+
label: React.ReactNode;
|
6
|
+
selectable?: boolean;
|
7
|
+
options?: TreeSelectOption[];
|
8
|
+
}
|
9
|
+
export interface TreeSelectProps extends AntdTreeSelectProps<string> {
|
10
|
+
options: TreeSelectOption[];
|
11
|
+
onChange?: (val: string) => void;
|
12
|
+
label: string;
|
13
|
+
title?: string;
|
14
|
+
}
|
15
|
+
export declare function TreeSelect(props: TreeSelectProps): JSX.Element;
|
16
|
+
export {};
|
@@ -0,0 +1,20 @@
|
|
1
|
+
import { StackProps } from 'easy-email-editor';
|
2
|
+
import { FieldProps } from 'react-final-form';
|
3
|
+
import React from 'react';
|
4
|
+
import { InputProps } from './Input';
|
5
|
+
export interface EnhancerProps<T> extends Partial<FieldProps<T, any>> {
|
6
|
+
name: string;
|
7
|
+
label: React.ReactNode;
|
8
|
+
labelHidden?: boolean;
|
9
|
+
alignment?: StackProps['alignment'];
|
10
|
+
distribution?: StackProps['distribution'];
|
11
|
+
helpText?: React.ReactNode;
|
12
|
+
inline?: boolean;
|
13
|
+
required?: boolean;
|
14
|
+
valueAdapter?: (value: any) => any;
|
15
|
+
onChangeAdapter?: (value: any) => any;
|
16
|
+
validate?: (value: any) => string | undefined | Promise<string | undefined>;
|
17
|
+
wrapper?: boolean;
|
18
|
+
size?: InputProps['size'];
|
19
|
+
}
|
20
|
+
export default function enhancer<P>(Component: any, changeAdapter: (e: any) => any): (props: EnhancerProps<P> & Omit<P, 'value' | 'onChange' | 'mutators'>) => JSX.Element;
|
@@ -0,0 +1,36 @@
|
|
1
|
+
import { SearchProps, TextAreaProps } from 'antd/lib/input';
|
2
|
+
import { InputNumberProps } from 'antd/lib/input-number';
|
3
|
+
import { CheckboxGroupProps } from 'antd/lib/checkbox';
|
4
|
+
import { ImageUploaderProps } from './ImageUploader';
|
5
|
+
import { UploadFieldProps } from './UploadField';
|
6
|
+
import { ColorPickerProps } from './ColorPicker';
|
7
|
+
import { SelectProps } from './Select';
|
8
|
+
import { RadioGroupProps } from './RadioGroup';
|
9
|
+
import enhancer from './enhancer';
|
10
|
+
import { TreeSelectProps } from './TreeSelect';
|
11
|
+
import { InputProps } from './Input';
|
12
|
+
import { SwitchProps } from 'antd/lib/switch';
|
13
|
+
import { EditTabProps } from './EditTab';
|
14
|
+
import { DatePickerProps } from 'antd/lib/date-picker';
|
15
|
+
import { InlineTextProps } from './InlineTextField';
|
16
|
+
import { AutoCompleteProps } from './AutoComplete';
|
17
|
+
import { SliderBaseProps } from 'antd/lib/slider';
|
18
|
+
export { RichTextField } from './RichTextField';
|
19
|
+
export declare const TextField: (props: import("./enhancer").EnhancerProps<InputProps> & Omit<InputProps, "onChange" | "value" | "mutators">) => JSX.Element;
|
20
|
+
export declare const SearchField: (props: import("./enhancer").EnhancerProps<SearchProps> & Omit<SearchProps, "onChange" | "value" | "mutators">) => JSX.Element;
|
21
|
+
export declare const TextAreaField: (props: import("./enhancer").EnhancerProps<TextAreaProps> & Omit<TextAreaProps, "onChange" | "value" | "mutators">) => JSX.Element;
|
22
|
+
export declare const NumberField: (props: import("./enhancer").EnhancerProps<InputNumberProps<string | number>> & Omit<InputNumberProps<string | number>, "onChange" | "value" | "mutators">) => JSX.Element;
|
23
|
+
export declare const SliderField: (props: import("./enhancer").EnhancerProps<SliderBaseProps> & Omit<SliderBaseProps, "onChange" | "value" | "mutators">) => JSX.Element;
|
24
|
+
export declare const ColorPickerField: (props: import("./enhancer").EnhancerProps<ColorPickerProps> & Omit<ColorPickerProps, "onChange" | "value" | "mutators">) => JSX.Element;
|
25
|
+
export declare const UploadField: (props: import("./enhancer").EnhancerProps<UploadFieldProps> & Omit<UploadFieldProps, "onChange" | "value" | "mutators">) => JSX.Element;
|
26
|
+
export declare const ImageUploaderField: (props: import("./enhancer").EnhancerProps<ImageUploaderProps> & Omit<ImageUploaderProps, "onChange" | "value" | "mutators">) => JSX.Element;
|
27
|
+
export declare const SelectField: (props: import("./enhancer").EnhancerProps<SelectProps> & Omit<SelectProps, "onChange" | "value" | "mutators">) => JSX.Element;
|
28
|
+
export declare const AutoCompleteField: (props: import("./enhancer").EnhancerProps<AutoCompleteProps> & Omit<AutoCompleteProps, "onChange" | "value" | "mutators">) => JSX.Element;
|
29
|
+
export declare const RadioGroupField: (props: import("./enhancer").EnhancerProps<RadioGroupProps> & Omit<RadioGroupProps, "onChange" | "value" | "mutators">) => JSX.Element;
|
30
|
+
export declare const TreeSelectField: (props: import("./enhancer").EnhancerProps<TreeSelectProps> & Omit<TreeSelectProps, "onChange" | "value" | "mutators">) => JSX.Element;
|
31
|
+
export declare const SwitchField: (props: import("./enhancer").EnhancerProps<SwitchProps> & Omit<SwitchProps, "onChange" | "value" | "mutators">) => JSX.Element;
|
32
|
+
export declare const DatePickerField: (props: import("./enhancer").EnhancerProps<DatePickerProps> & Omit<DatePickerProps, "onChange" | "value" | "mutators">) => JSX.Element;
|
33
|
+
export declare const CheckboxField: (props: import("./enhancer").EnhancerProps<CheckboxGroupProps> & Omit<CheckboxGroupProps, "onChange" | "value" | "mutators">) => JSX.Element;
|
34
|
+
export declare const EditTabField: (props: import("./enhancer").EnhancerProps<EditTabProps<any>> & Omit<EditTabProps<any>, "onChange" | "value" | "mutators">) => JSX.Element;
|
35
|
+
export declare const InlineTextField: (props: import("./enhancer").EnhancerProps<InlineTextProps> & Omit<InlineTextProps, "onChange" | "value" | "mutators">) => JSX.Element;
|
36
|
+
export { enhancer };
|
package/lib/index.d.ts
ADDED
package/lib/index.js
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
export { A as AttributePanel, b as AttributesPanelWrapper, m as AutoCompleteField, a as BlockAttributeConfigurationManager, B as BlockLayer, d as BlockMarketManager, e as BlockMaskWrapper, p as CheckboxField, C as ColorPickerField, D as DatePickerField, E as EditTabField, k as ImageUploaderField, q as InlineTextField, I as InteractivePrompt, N as NumberField, R as RadioGroupField, s as RichTextField, h as SearchField, l as SelectField, S as ShortcutToolbar, g as SimpleFrame, j as SliderField, f as SourceCodePanel, o as SwitchField, i as TextAreaField, T as TextField, n as TreeSelectField, U as UploadField, r as enhancer } from "./index2.js";
|
2
|
+
import "react";
|
3
|
+
import "easy-email-editor";
|
4
|
+
import "easy-email-core";
|
5
|
+
import "react-final-form";
|
6
|
+
import "react-dom";
|
7
|
+
//# sourceMappingURL=index.js.map
|
package/lib/index.js.map
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;"}
|