easy-email-extensions 4.1.5 → 4.1.6
Sign up to get free protection for your applications and to get access to all the features.
- package/lib/AttributePanel/AttributePanel.d.ts +3 -3
- package/lib/AttributePanel/components/UI/Help/index.d.ts +7 -7
- package/lib/AttributePanel/components/UI/HtmlEditor.d.ts +5 -5
- package/lib/AttributePanel/components/attributes/Align.d.ts +3 -3
- package/lib/AttributePanel/components/attributes/AttributesPanelWrapper/index.d.ts +6 -6
- package/lib/AttributePanel/components/attributes/Background.d.ts +1 -1
- package/lib/AttributePanel/components/attributes/BackgroundColor.d.ts +3 -3
- package/lib/AttributePanel/components/attributes/Border.d.ts +1 -1
- package/lib/AttributePanel/components/attributes/BorderColor.d.ts +1 -1
- package/lib/AttributePanel/components/attributes/BorderStyle.d.ts +5 -5
- package/lib/AttributePanel/components/attributes/BorderWidth.d.ts +1 -1
- package/lib/AttributePanel/components/attributes/ClassName.d.ts +1 -1
- package/lib/AttributePanel/components/attributes/CollapseWrapper/index.d.ts +5 -5
- package/lib/AttributePanel/components/attributes/Color.d.ts +4 -4
- package/lib/AttributePanel/components/attributes/Condition.d.ts +1 -1
- package/lib/AttributePanel/components/attributes/ContainerBackgroundColor.d.ts +3 -3
- package/lib/AttributePanel/components/attributes/Decoration.d.ts +1 -1
- package/lib/AttributePanel/components/attributes/Direction.d.ts +1 -1
- package/lib/AttributePanel/components/attributes/FontFamily.d.ts +3 -3
- package/lib/AttributePanel/components/attributes/FontSize.d.ts +1 -1
- package/lib/AttributePanel/components/attributes/FontStyle.d.ts +3 -3
- package/lib/AttributePanel/components/attributes/FontWeight.d.ts +3 -3
- package/lib/AttributePanel/components/attributes/Height.d.ts +3 -3
- package/lib/AttributePanel/components/attributes/Iteration.d.ts +1 -1
- package/lib/AttributePanel/components/attributes/LetterSpacing.d.ts +3 -3
- package/lib/AttributePanel/components/attributes/LineHeight.d.ts +3 -3
- package/lib/AttributePanel/components/attributes/Link.d.ts +1 -1
- package/lib/AttributePanel/components/attributes/Margin.d.ts +1 -1
- package/lib/AttributePanel/components/attributes/MergeTags.d.ts +6 -6
- package/lib/AttributePanel/components/attributes/NavbarLinkPadding.d.ts +3 -3
- package/lib/AttributePanel/components/attributes/Padding.d.ts +6 -6
- package/lib/AttributePanel/components/attributes/TextAlign.d.ts +3 -3
- package/lib/AttributePanel/components/attributes/TextDecoration.d.ts +3 -3
- package/lib/AttributePanel/components/attributes/TextTransform.d.ts +3 -3
- package/lib/AttributePanel/components/attributes/VerticalAlign.d.ts +3 -3
- package/lib/AttributePanel/components/attributes/Width.d.ts +5 -5
- package/lib/AttributePanel/components/attributes/index.d.ts +30 -30
- package/lib/AttributePanel/components/blocks/Accordion/index.d.ts +1 -1
- package/lib/AttributePanel/components/blocks/AccordionElement/index.d.ts +1 -1
- package/lib/AttributePanel/components/blocks/AccordionText/index.d.ts +1 -1
- package/lib/AttributePanel/components/blocks/AccordionTitle/index.d.ts +1 -1
- package/lib/AttributePanel/components/blocks/Button/index.d.ts +1 -1
- package/lib/AttributePanel/components/blocks/Carousel/index.d.ts +1 -1
- package/lib/AttributePanel/components/blocks/Column/index.d.ts +1 -1
- package/lib/AttributePanel/components/blocks/Divider/index.d.ts +1 -1
- package/lib/AttributePanel/components/blocks/Group/index.d.ts +1 -1
- package/lib/AttributePanel/components/blocks/Hero/index.d.ts +1 -1
- package/lib/AttributePanel/components/blocks/Image/index.d.ts +1 -1
- package/lib/AttributePanel/components/blocks/Navbar/index.d.ts +1 -1
- package/lib/AttributePanel/components/blocks/Page/index.d.ts +1 -1
- package/lib/AttributePanel/components/blocks/Raw/index.d.ts +1 -1
- package/lib/AttributePanel/components/blocks/Section/index.d.ts +1 -1
- package/lib/AttributePanel/components/blocks/Social/index.d.ts +1 -1
- package/lib/AttributePanel/components/blocks/Spacer/index.d.ts +1 -1
- package/lib/AttributePanel/components/blocks/Table/index.d.ts +1 -1
- package/lib/AttributePanel/components/blocks/Text/index.d.ts +1 -1
- package/lib/AttributePanel/components/blocks/Wrapper/index.d.ts +1 -1
- package/lib/AttributePanel/components/blocks/index.d.ts +55 -55
- package/lib/AttributePanel/components/provider/PresetColorsProvider/index.d.ts +6 -6
- package/lib/AttributePanel/components/provider/SelectionRangeProvider/index.d.ts +6 -6
- package/lib/AttributePanel/hooks/useSelectionRange.d.ts +7 -7
- package/lib/AttributePanel/index.d.ts +3 -3
- package/lib/AttributePanel/utils/BlockAttributeConfigurationManager.d.ts +10 -10
- package/lib/AttributePanel/utils/InputNumberAdapter.d.ts +2 -2
- package/lib/AttributePanel/utils/PromiseEach.d.ts +1 -1
- package/lib/AttributePanel/utils/Uploader.d.ts +35 -35
- package/lib/AttributePanel/utils/awaitForElement.d.ts +4 -4
- package/lib/AttributePanel/utils/classnames.d.ts +1 -1
- package/lib/AttributePanel/utils/getImg.d.ts +8 -8
- package/lib/AttributePanel/utils/onDrag.d.ts +10 -10
- package/lib/AttributePanel/utils/previewLoadImage.d.ts +1 -1
- package/lib/BlockLayer/components/BlockTree/index.d.ts +51 -51
- package/lib/BlockLayer/components/BlockTree/transparentImage.d.ts +1 -1
- package/lib/BlockLayer/components/ContextMenu/index.d.ts +14 -14
- package/lib/BlockLayer/components/EyeIcon/index.d.ts +7 -7
- package/lib/BlockLayer/hooks/useAvatarWrapperDrop.d.ts +24 -24
- package/lib/BlockLayer/index.d.ts +13 -13
- package/lib/InteractivePrompt/components/FocusTooltip.d.ts +1 -1
- package/lib/InteractivePrompt/components/HoverTooltip.d.ts +1 -1
- package/lib/InteractivePrompt/components/Toolbar.d.ts +1 -1
- package/lib/InteractivePrompt/index.d.ts +1 -1
- package/lib/InteractivePrompt/utils/awaitForElement.d.ts +4 -4
- package/lib/MergeTagBadgePrompt/index.d.ts +1 -1
- package/lib/ShortcutToolbar/ShortcutToolbar.d.ts +1 -1
- package/lib/ShortcutToolbar/components/BlockMaskWrapper/index.d.ts +6 -6
- package/lib/ShortcutToolbar/components/BlocksPanel/index.d.ts +2 -2
- package/lib/ShortcutToolbar/components/BlocksPanel/presetTemplate/AccordionBlockItem/index.d.ts +1 -1
- package/lib/ShortcutToolbar/components/BlocksPanel/presetTemplate/ButtonBlockItem/index.d.ts +1 -1
- package/lib/ShortcutToolbar/components/BlocksPanel/presetTemplate/CarouselBlockItem/index.d.ts +1 -1
- package/lib/ShortcutToolbar/components/BlocksPanel/presetTemplate/ColumnBlockItem/index.d.ts +1 -1
- package/lib/ShortcutToolbar/components/BlocksPanel/presetTemplate/DividerBlockItem/index.d.ts +1 -1
- package/lib/ShortcutToolbar/components/BlocksPanel/presetTemplate/GroupBlockItem/index.d.ts +1 -1
- package/lib/ShortcutToolbar/components/BlocksPanel/presetTemplate/HeroBlockItem/index.d.ts +1 -1
- package/lib/ShortcutToolbar/components/BlocksPanel/presetTemplate/ImageBlockItem/index.d.ts +1 -1
- package/lib/ShortcutToolbar/components/BlocksPanel/presetTemplate/NavbarBlockItem/index.d.ts +1 -1
- package/lib/ShortcutToolbar/components/BlocksPanel/presetTemplate/RawBlockItem/index.d.ts +1 -1
- package/lib/ShortcutToolbar/components/BlocksPanel/presetTemplate/SectionBlockItem/index.d.ts +1 -1
- package/lib/ShortcutToolbar/components/BlocksPanel/presetTemplate/SocialBlockItem/index.d.ts +1 -1
- package/lib/ShortcutToolbar/components/BlocksPanel/presetTemplate/SpacerBlockItem/index.d.ts +1 -1
- package/lib/ShortcutToolbar/components/BlocksPanel/presetTemplate/TextBlockItem/index.d.ts +1 -1
- package/lib/ShortcutToolbar/components/BlocksPanel/presetTemplate/WrapperBlockItem/index.d.ts +1 -1
- package/lib/ShortcutToolbar/components/BlocksPanel/presetTemplate/index.d.ts +18 -18
- package/lib/ShortcutToolbar/components/DragIcon/index.d.ts +8 -8
- package/lib/ShortcutToolbar/components/Picture/index.d.ts +7 -7
- package/lib/ShortcutToolbar/index.d.ts +4 -4
- package/lib/ShortcutToolbar/utils/BlockMarketManager.d.ts +32 -32
- package/lib/ShortcutToolbar/utils/getImg.d.ts +68 -68
- package/lib/SimpleLayout/SimpleLayout.d.ts +6 -6
- package/lib/SimpleLayout/index.d.ts +1 -1
- package/lib/SourceCodePanel/index.d.ts +1 -1
- package/lib/components/AddToCollection/index.d.ts +5 -5
- package/lib/components/Form/AddFont.d.ts +1 -1
- package/lib/components/Form/AutoComplete.d.ts +11 -11
- package/lib/components/Form/CheckBoxGroup.d.ts +14 -14
- package/lib/components/Form/CodemirrorEditor/index.d.ts +8 -8
- package/lib/components/Form/ColorPicker.d.ts +10 -10
- package/lib/components/Form/EditGridTab.d.ts +10 -10
- package/lib/components/Form/EditTab.d.ts +10 -10
- package/lib/components/Form/ImageUploader/index.d.ts +8 -8
- package/lib/components/Form/InlineTextField/index.d.ts +7 -7
- package/lib/components/Form/Input.d.ts +7 -7
- package/lib/components/Form/InputWithUnit.d.ts +10 -10
- package/lib/components/Form/RadioGroup.d.ts +13 -13
- package/lib/components/Form/RichTextField/index.d.ts +2 -2
- package/lib/components/Form/RichTextToolBar/RichTextToolBar.d.ts +3 -3
- package/lib/components/Form/RichTextToolBar/components/BasicTools.d.ts +1 -1
- package/lib/components/Form/RichTextToolBar/components/Bold/index.d.ts +6 -6
- package/lib/components/Form/RichTextToolBar/components/FontFamily/index.d.ts +5 -5
- package/lib/components/Form/RichTextToolBar/components/FontSize/index.d.ts +5 -5
- package/lib/components/Form/RichTextToolBar/components/Heading/index.d.ts +3 -3
- package/lib/components/Form/RichTextToolBar/components/Italic/index.d.ts +6 -6
- package/lib/components/Form/RichTextToolBar/components/Link/index.d.ts +12 -12
- package/lib/components/Form/RichTextToolBar/components/MergeTags/index.d.ts +5 -5
- package/lib/components/Form/RichTextToolBar/components/StrikeThrough/index.d.ts +6 -6
- package/lib/components/Form/RichTextToolBar/components/ToolItem/index.d.ts +9 -9
- package/lib/components/Form/RichTextToolBar/components/Tools/IconBgColor/index.d.ts +5 -5
- package/lib/components/Form/RichTextToolBar/components/Tools/IconFontColor/index.d.ts +5 -5
- package/lib/components/Form/RichTextToolBar/components/Tools/Tools.d.ts +4 -4
- package/lib/components/Form/RichTextToolBar/components/Tools/index.d.ts +1 -1
- package/lib/components/Form/RichTextToolBar/components/Underline/index.d.ts +6 -6
- package/lib/components/Form/RichTextToolBar/components/Unlink/index.d.ts +12 -12
- package/lib/components/Form/RichTextToolBar/index.d.ts +1 -1
- package/lib/components/Form/Select.d.ts +11 -11
- package/lib/components/Form/UploadField.d.ts +8 -8
- package/lib/components/Form/enhancer.d.ts +20 -20
- package/lib/components/Form/index.d.ts +34 -34
- package/lib/components/RenderCount/index.d.ts +1 -1
- package/lib/components/ShadowDom/index.d.ts +2 -2
- package/lib/constants.d.ts +1 -0
- package/lib/hooks/useAddToCollection.d.ts +6 -6
- package/lib/hooks/useFontFamily.d.ts +6 -6
- package/lib/index.d.ts +13 -12
- package/lib/index.js +1 -1
- package/lib/index2.js +24 -7
- package/lib/index2.js.map +1 -1
- package/lib/index3.js.map +1 -1
- package/lib/utils/awaitForElement.d.ts +4 -4
- package/lib/utils/classnames.d.ts +1 -1
- package/lib/utils/getBlockTitle.d.ts +2 -2
- package/lib/utils/getContextMergeTags.d.ts +7 -7
- package/lib/utils/getIconNameByBlockType.d.ts +1 -1
- package/lib/utils/getPreviewClassName.d.ts +1 -1
- package/package.json +2 -2
- package/readme.md +138 -138
@@ -1,5 +1,5 @@
|
|
1
|
-
export declare function IconFontColor({ selectionRange, execCommand, getPopoverMountNode }: {
|
2
|
-
selectionRange: Range | null;
|
3
|
-
execCommand: (cmd: string, val?: any) => void;
|
4
|
-
getPopoverMountNode: () => HTMLElement;
|
5
|
-
}): JSX.Element;
|
1
|
+
export declare function IconFontColor({ selectionRange, execCommand, getPopoverMountNode }: {
|
2
|
+
selectionRange: Range | null;
|
3
|
+
execCommand: (cmd: string, val?: any) => void;
|
4
|
+
getPopoverMountNode: () => HTMLElement;
|
5
|
+
}): JSX.Element;
|
@@ -1,4 +1,4 @@
|
|
1
|
-
export interface ToolsProps {
|
2
|
-
onChange: (content: string) => any;
|
3
|
-
}
|
4
|
-
export declare function Tools(props: ToolsProps): JSX.Element;
|
1
|
+
export interface ToolsProps {
|
2
|
+
onChange: (content: string) => any;
|
3
|
+
}
|
4
|
+
export declare function Tools(props: ToolsProps): JSX.Element;
|
@@ -1 +1 @@
|
|
1
|
-
export { Tools } from './Tools';
|
1
|
+
export { Tools } from './Tools';
|
@@ -1,6 +1,6 @@
|
|
1
|
-
import { PopoverProps } from '@arco-design/web-react';
|
2
|
-
export interface LinkProps extends PopoverProps {
|
3
|
-
currentRange: Range | null | undefined;
|
4
|
-
onChange: () => void;
|
5
|
-
}
|
6
|
-
export declare function Underline(props: LinkProps): JSX.Element;
|
1
|
+
import { PopoverProps } from '@arco-design/web-react';
|
2
|
+
export interface LinkProps extends PopoverProps {
|
3
|
+
currentRange: Range | null | undefined;
|
4
|
+
onChange: () => void;
|
5
|
+
}
|
6
|
+
export declare function Underline(props: LinkProps): JSX.Element;
|
@@ -1,12 +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;
|
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;
|
@@ -1 +1 @@
|
|
1
|
-
export { RichTextToolBar } from './RichTextToolBar';
|
1
|
+
export { RichTextToolBar } from './RichTextToolBar';
|
@@ -1,11 +1,11 @@
|
|
1
|
-
import { SelectProps as ArcoSelectProps } from '@arco-design/web-react';
|
2
|
-
import React from 'react';
|
3
|
-
export interface SelectProps extends ArcoSelectProps {
|
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;
|
1
|
+
import { SelectProps as ArcoSelectProps } from '@arco-design/web-react';
|
2
|
+
import React from 'react';
|
3
|
+
export interface SelectProps extends ArcoSelectProps {
|
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;
|
@@ -1,8 +1,8 @@
|
|
1
|
-
export interface UploadFieldProps {
|
2
|
-
onChange: (val: string) => void;
|
3
|
-
value: string;
|
4
|
-
inputDisabled?: boolean;
|
5
|
-
accept?: string;
|
6
|
-
uploadHandler: (file: File) => Promise<string>;
|
7
|
-
}
|
8
|
-
export declare function UploadField(props: UploadFieldProps): JSX.Element;
|
1
|
+
export interface UploadFieldProps {
|
2
|
+
onChange: (val: string) => void;
|
3
|
+
value: string;
|
4
|
+
inputDisabled?: boolean;
|
5
|
+
accept?: string;
|
6
|
+
uploadHandler: (file: File) => Promise<string>;
|
7
|
+
}
|
8
|
+
export declare function UploadField(props: UploadFieldProps): JSX.Element;
|
@@ -1,20 +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 | null;
|
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, C extends (...rest: any[]) => any = any>(Component: any, changeAdapter: C): (props: EnhancerProps<P> & Omit<P, 'value' | 'onChange' | 'mutators'>) => JSX.Element;
|
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 | null;
|
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, C extends (...rest: any[]) => any = any>(Component: any, changeAdapter: C): (props: EnhancerProps<P> & Omit<P, 'value' | 'onChange' | 'mutators'>) => JSX.Element;
|
@@ -1,34 +1,34 @@
|
|
1
|
-
import { SliderProps, InputNumberProps, SwitchProps, DatePickerProps, TextAreaProps, CheckboxGroupProps, TreeSelectProps } from '@arco-design/web-react';
|
2
|
-
import { ImageUploaderProps } from './ImageUploader';
|
3
|
-
import { UploadFieldProps } from './UploadField';
|
4
|
-
import { ColorPickerProps } from './ColorPicker';
|
5
|
-
import { SelectProps } from './Select';
|
6
|
-
import { RadioGroupProps } from './RadioGroup';
|
7
|
-
import enhancer from './enhancer';
|
8
|
-
import { InputProps } from './Input';
|
9
|
-
import { InputWithUnitProps } from './InputWithUnit';
|
10
|
-
import { EditTabProps } from './EditTab';
|
11
|
-
import { EditGridTabProps } from './EditGridTab';
|
12
|
-
import { InlineTextProps } from './InlineTextField';
|
13
|
-
import { AutoCompleteProps } from './AutoComplete';
|
14
|
-
export { RichTextField } from './RichTextField';
|
15
|
-
export declare const TextField: (props: import("./enhancer").EnhancerProps<InputProps> & Omit<InputProps, "value" | "onChange" | "mutators">) => JSX.Element;
|
16
|
-
export declare const InputWithUnitField: (props: import("./enhancer").EnhancerProps<InputWithUnitProps> & Omit<InputWithUnitProps, "value" | "onChange" | "mutators">) => JSX.Element;
|
17
|
-
export declare const SearchField: (props: import("./enhancer").EnhancerProps<InputProps> & Omit<InputProps, "value" | "onChange" | "mutators">) => JSX.Element;
|
18
|
-
export declare const TextAreaField: (props: import("./enhancer").EnhancerProps<TextAreaProps> & Omit<TextAreaProps, "value" | "onChange" | "mutators">) => JSX.Element;
|
19
|
-
export declare const NumberField: (props: import("./enhancer").EnhancerProps<InputNumberProps> & Omit<InputNumberProps, "value" | "onChange" | "mutators">) => JSX.Element;
|
20
|
-
export declare const SliderField: (props: import("./enhancer").EnhancerProps<SliderProps> & Omit<SliderProps, "value" | "onChange" | "mutators">) => JSX.Element;
|
21
|
-
export declare const ColorPickerField: (props: import("./enhancer").EnhancerProps<ColorPickerProps> & Omit<ColorPickerProps, "value" | "onChange" | "mutators">) => JSX.Element;
|
22
|
-
export declare const UploadField: (props: import("./enhancer").EnhancerProps<UploadFieldProps> & Omit<UploadFieldProps, "value" | "onChange" | "mutators">) => JSX.Element;
|
23
|
-
export declare const ImageUploaderField: (props: import("./enhancer").EnhancerProps<ImageUploaderProps> & Omit<ImageUploaderProps, "value" | "onChange" | "mutators">) => JSX.Element;
|
24
|
-
export declare const SelectField: (props: import("./enhancer").EnhancerProps<SelectProps> & Omit<SelectProps, "value" | "onChange" | "mutators">) => JSX.Element;
|
25
|
-
export declare const TreeSelectField: (props: import("./enhancer").EnhancerProps<TreeSelectProps> & Omit<TreeSelectProps, "value" | "onChange" | "mutators">) => JSX.Element;
|
26
|
-
export declare const AutoCompleteField: (props: import("./enhancer").EnhancerProps<AutoCompleteProps> & Omit<AutoCompleteProps, "value" | "onChange" | "mutators">) => JSX.Element;
|
27
|
-
export declare const RadioGroupField: (props: import("./enhancer").EnhancerProps<RadioGroupProps> & Omit<RadioGroupProps, "value" | "onChange" | "mutators">) => JSX.Element;
|
28
|
-
export declare const SwitchField: (props: import("./enhancer").EnhancerProps<SwitchProps> & Omit<SwitchProps, "value" | "onChange" | "mutators">) => JSX.Element;
|
29
|
-
export declare const DatePickerField: (props: import("./enhancer").EnhancerProps<DatePickerProps> & Omit<DatePickerProps, "value" | "onChange" | "mutators">) => JSX.Element;
|
30
|
-
export declare const CheckboxField: (props: import("./enhancer").EnhancerProps<CheckboxGroupProps<any>> & Omit<CheckboxGroupProps<any>, "value" | "onChange" | "mutators">) => JSX.Element;
|
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;
|
33
|
-
export declare const InlineTextField: (props: import("./enhancer").EnhancerProps<InlineTextProps> & Omit<InlineTextProps, "value" | "onChange" | "mutators">) => JSX.Element;
|
34
|
-
export { enhancer };
|
1
|
+
import { SliderProps, InputNumberProps, SwitchProps, DatePickerProps, TextAreaProps, CheckboxGroupProps, TreeSelectProps } from '@arco-design/web-react';
|
2
|
+
import { ImageUploaderProps } from './ImageUploader';
|
3
|
+
import { UploadFieldProps } from './UploadField';
|
4
|
+
import { ColorPickerProps } from './ColorPicker';
|
5
|
+
import { SelectProps } from './Select';
|
6
|
+
import { RadioGroupProps } from './RadioGroup';
|
7
|
+
import enhancer from './enhancer';
|
8
|
+
import { InputProps } from './Input';
|
9
|
+
import { InputWithUnitProps } from './InputWithUnit';
|
10
|
+
import { EditTabProps } from './EditTab';
|
11
|
+
import { EditGridTabProps } from './EditGridTab';
|
12
|
+
import { InlineTextProps } from './InlineTextField';
|
13
|
+
import { AutoCompleteProps } from './AutoComplete';
|
14
|
+
export { RichTextField } from './RichTextField';
|
15
|
+
export declare const TextField: (props: import("./enhancer").EnhancerProps<InputProps> & Omit<InputProps, "value" | "onChange" | "mutators">) => JSX.Element;
|
16
|
+
export declare const InputWithUnitField: (props: import("./enhancer").EnhancerProps<InputWithUnitProps> & Omit<InputWithUnitProps, "value" | "onChange" | "mutators">) => JSX.Element;
|
17
|
+
export declare const SearchField: (props: import("./enhancer").EnhancerProps<InputProps> & Omit<InputProps, "value" | "onChange" | "mutators">) => JSX.Element;
|
18
|
+
export declare const TextAreaField: (props: import("./enhancer").EnhancerProps<TextAreaProps> & Omit<TextAreaProps, "value" | "onChange" | "mutators">) => JSX.Element;
|
19
|
+
export declare const NumberField: (props: import("./enhancer").EnhancerProps<InputNumberProps> & Omit<InputNumberProps, "value" | "onChange" | "mutators">) => JSX.Element;
|
20
|
+
export declare const SliderField: (props: import("./enhancer").EnhancerProps<SliderProps> & Omit<SliderProps, "value" | "onChange" | "mutators">) => JSX.Element;
|
21
|
+
export declare const ColorPickerField: (props: import("./enhancer").EnhancerProps<ColorPickerProps> & Omit<ColorPickerProps, "value" | "onChange" | "mutators">) => JSX.Element;
|
22
|
+
export declare const UploadField: (props: import("./enhancer").EnhancerProps<UploadFieldProps> & Omit<UploadFieldProps, "value" | "onChange" | "mutators">) => JSX.Element;
|
23
|
+
export declare const ImageUploaderField: (props: import("./enhancer").EnhancerProps<ImageUploaderProps> & Omit<ImageUploaderProps, "value" | "onChange" | "mutators">) => JSX.Element;
|
24
|
+
export declare const SelectField: (props: import("./enhancer").EnhancerProps<SelectProps> & Omit<SelectProps, "value" | "onChange" | "mutators">) => JSX.Element;
|
25
|
+
export declare const TreeSelectField: (props: import("./enhancer").EnhancerProps<TreeSelectProps> & Omit<TreeSelectProps, "value" | "onChange" | "mutators">) => JSX.Element;
|
26
|
+
export declare const AutoCompleteField: (props: import("./enhancer").EnhancerProps<AutoCompleteProps> & Omit<AutoCompleteProps, "value" | "onChange" | "mutators">) => JSX.Element;
|
27
|
+
export declare const RadioGroupField: (props: import("./enhancer").EnhancerProps<RadioGroupProps> & Omit<RadioGroupProps, "value" | "onChange" | "mutators">) => JSX.Element;
|
28
|
+
export declare const SwitchField: (props: import("./enhancer").EnhancerProps<SwitchProps> & Omit<SwitchProps, "value" | "onChange" | "mutators">) => JSX.Element;
|
29
|
+
export declare const DatePickerField: (props: import("./enhancer").EnhancerProps<DatePickerProps> & Omit<DatePickerProps, "value" | "onChange" | "mutators">) => JSX.Element;
|
30
|
+
export declare const CheckboxField: (props: import("./enhancer").EnhancerProps<CheckboxGroupProps<any>> & Omit<CheckboxGroupProps<any>, "value" | "onChange" | "mutators">) => JSX.Element;
|
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;
|
33
|
+
export declare const InlineTextField: (props: import("./enhancer").EnhancerProps<InlineTextProps> & Omit<InlineTextProps, "value" | "onChange" | "mutators">) => JSX.Element;
|
34
|
+
export { enhancer };
|
@@ -1 +1 @@
|
|
1
|
-
export declare function RenderCount(): JSX.Element;
|
1
|
+
export declare function RenderCount(): JSX.Element;
|
@@ -1,2 +1,2 @@
|
|
1
|
-
import React from 'react';
|
2
|
-
export declare const ShadowDom: React.FC<React.HTMLProps<HTMLElement>>;
|
1
|
+
import React from 'react';
|
2
|
+
export declare const ShadowDom: React.FC<React.HTMLProps<HTMLElement>>;
|
@@ -0,0 +1 @@
|
|
1
|
+
export declare const RICH_TEXT_TOOL_BAR = "Tools";
|
@@ -1,6 +1,6 @@
|
|
1
|
-
import React from 'react';
|
2
|
-
export declare function useAddToCollection(): {
|
3
|
-
modal: JSX.Element;
|
4
|
-
modalVisible: boolean;
|
5
|
-
setModalVisible: React.Dispatch<React.SetStateAction<boolean>>;
|
6
|
-
};
|
1
|
+
import React from 'react';
|
2
|
+
export declare function useAddToCollection(): {
|
3
|
+
modal: JSX.Element;
|
4
|
+
modalVisible: boolean;
|
5
|
+
setModalVisible: React.Dispatch<React.SetStateAction<boolean>>;
|
6
|
+
};
|
@@ -1,6 +1,6 @@
|
|
1
|
-
export declare function useFontFamily(): {
|
2
|
-
fontList: {
|
3
|
-
value: string;
|
4
|
-
label: JSX.Element;
|
5
|
-
}[];
|
6
|
-
};
|
1
|
+
export declare function useFontFamily(): {
|
2
|
+
fontList: {
|
3
|
+
value: string;
|
4
|
+
label: JSX.Element;
|
5
|
+
}[];
|
6
|
+
};
|
package/lib/index.d.ts
CHANGED
@@ -1,12 +1,13 @@
|
|
1
|
-
import './index.scss';
|
2
|
-
export * from './BlockLayer';
|
3
|
-
export * from './AttributePanel';
|
4
|
-
export * from './ShortcutToolbar';
|
5
|
-
export * from './SourceCodePanel';
|
6
|
-
export * from './InteractivePrompt';
|
7
|
-
export * from './SimpleLayout';
|
8
|
-
export * from './MergeTagBadgePrompt';
|
9
|
-
export * from './
|
10
|
-
export
|
11
|
-
export {
|
12
|
-
export {
|
1
|
+
import './index.scss';
|
2
|
+
export * from './BlockLayer';
|
3
|
+
export * from './AttributePanel';
|
4
|
+
export * from './ShortcutToolbar';
|
5
|
+
export * from './SourceCodePanel';
|
6
|
+
export * from './InteractivePrompt';
|
7
|
+
export * from './SimpleLayout';
|
8
|
+
export * from './MergeTagBadgePrompt';
|
9
|
+
export * from './constants';
|
10
|
+
export * from './components/Form';
|
11
|
+
export { getContextMergeTags } from './utils/getContextMergeTags';
|
12
|
+
export { getIconNameByBlockType } from './utils/getIconNameByBlockType';
|
13
|
+
export { getBlockTitle } from './utils/getBlockTitle';
|
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, a2 as AutoCompleteField, j as Background, m as BackgroundColor, d as BlockAttributeConfigurationManager, B as BlockLayer, y as BlockMarketManager, z as BlockMaskWrapper, p as Border, q as BorderColor, t as BorderStyle, v as BorderWidth, a6 as CheckboxField, x as ClassName, C as Color, Z as ColorPickerField, h as ContainerBackgroundColor, a5 as DatePickerField, D as Decoration, n as Direction, a8 as EditGridTabField, a7 as EditTabField, F as FontFamily, r as FontSize, u as FontStyle, w as FontWeight, H as Height, $ as ImageUploaderField, a9 as InlineTextField, O as InputWithUnitField, I as InteractivePrompt, L as LetterSpacing, k as LineHeight, o as Link, M as Margin, J as MergeTagBadgePrompt, s as MergeTags, N as NavbarLinkPadding, X as NumberField, P as Padding, R as RICH_TEXT_TOOL_BAR, a3 as RadioGroupField, ab as RichTextField, Q as SearchField, a0 as SelectField, S as ShortcutToolbar, G as SimpleLayout, Y as SliderField, E as SourceCodePanel, a4 as SwitchField, T as TextAlign, U as TextAreaField, i as TextDecoration, K as TextField, l as TextTransform, a1 as TreeSelectField, _ as UploadField, V as VerticalAlign, W as Width, aa 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";
|
package/lib/index2.js
CHANGED
@@ -43160,6 +43160,7 @@ class BlockAttributeConfigurationManager {
|
|
43160
43160
|
}
|
43161
43161
|
}
|
43162
43162
|
__publicField(BlockAttributeConfigurationManager, "map", __spreadValues({}, blocks));
|
43163
|
+
const RICH_TEXT_TOOL_BAR = "Tools";
|
43163
43164
|
const SelectionRangeContext = React__default.createContext({
|
43164
43165
|
selectionRange: null,
|
43165
43166
|
setSelectionRange: () => {
|
@@ -43172,6 +43173,9 @@ const SelectionRangeProvider = (props) => {
|
|
43172
43173
|
try {
|
43173
43174
|
const range2 = getShadowRoot().getSelection().getRangeAt(0);
|
43174
43175
|
if (range2) {
|
43176
|
+
const toolbar = getShadowRoot().getElementById(RICH_TEXT_TOOL_BAR);
|
43177
|
+
if (toolbar && toolbar.contains(range2.commonAncestorContainer))
|
43178
|
+
return;
|
43175
43179
|
setSelectionRange(range2);
|
43176
43180
|
}
|
43177
43181
|
} catch (error2) {
|
@@ -43692,18 +43696,31 @@ function Tools(props) {
|
|
43692
43696
|
} else {
|
43693
43697
|
document.execCommand(cmd, false, val);
|
43694
43698
|
}
|
43695
|
-
const
|
43696
|
-
|
43697
|
-
|
43699
|
+
const contenteditableElement = getShadowRoot().activeElement;
|
43700
|
+
if ((contenteditableElement == null ? void 0 : contenteditableElement.getAttribute("contenteditable")) === "true") {
|
43701
|
+
const html = ((_a = getShadowRoot().activeElement) == null ? void 0 : _a.innerHTML) || "";
|
43702
|
+
props.onChange(html);
|
43703
|
+
}
|
43704
|
+
}, [
|
43705
|
+
enabledMergeTagsBadge,
|
43706
|
+
focusBlockNode,
|
43707
|
+
props,
|
43708
|
+
restoreRange,
|
43709
|
+
selectionRange,
|
43710
|
+
setRangeByElement
|
43711
|
+
]);
|
43698
43712
|
const execCommandWithRange = useCallback((cmd, val) => {
|
43699
43713
|
var _a;
|
43700
43714
|
document.execCommand(cmd, false, val);
|
43701
|
-
const
|
43702
|
-
|
43715
|
+
const contenteditableElement = getShadowRoot().activeElement;
|
43716
|
+
if ((contenteditableElement == null ? void 0 : contenteditableElement.getAttribute("contenteditable")) === "true") {
|
43717
|
+
const html = ((_a = getShadowRoot().activeElement) == null ? void 0 : _a.innerHTML) || "";
|
43718
|
+
props.onChange(html);
|
43719
|
+
}
|
43703
43720
|
}, [props.onChange]);
|
43704
43721
|
const getPopoverMountNode = () => document.getElementById(FIXED_CONTAINER_ID);
|
43705
43722
|
return /* @__PURE__ */ React__default.createElement("div", {
|
43706
|
-
id:
|
43723
|
+
id: RICH_TEXT_TOOL_BAR,
|
43707
43724
|
style: { display: "flex", flexWrap: "nowrap" }
|
43708
43725
|
}, /* @__PURE__ */ React__default.createElement("div", {
|
43709
43726
|
style: {
|
@@ -47690,5 +47707,5 @@ const SimpleLayout = (props) => {
|
|
47690
47707
|
}, "Source code")
|
47691
47708
|
}, /* @__PURE__ */ React__default.createElement(SourceCodePanel, null))))), /* @__PURE__ */ React__default.createElement(InteractivePrompt, null), /* @__PURE__ */ React__default.createElement(MergeTagBadgePrompt, null)));
|
47692
47709
|
};
|
47693
|
-
export {
|
47710
|
+
export { ImageUploaderField as $, AttributePanel as A, BlockLayer as B, Color as C, Decoration as D, SourceCodePanel as E, FontFamily as F, SimpleLayout as G, Height as H, InteractivePrompt as I, MergeTagBadgePrompt as J, TextField as K, LetterSpacing as L, Margin as M, NavbarLinkPadding as N, InputWithUnitField as O, Padding as P, SearchField as Q, RICH_TEXT_TOOL_BAR as R, ShortcutToolbar as S, TextAlign as T, TextAreaField as U, VerticalAlign as V, Width as W, NumberField as X, SliderField as Y, ColorPickerField as Z, UploadField as _, getIconNameByBlockType as a, SelectField as a0, TreeSelectField as a1, AutoCompleteField as a2, RadioGroupField as a3, SwitchField as a4, DatePickerField as a5, CheckboxField as a6, EditTabField as a7, EditGridTabField as a8, InlineTextField as a9, enhancer as aa, RichTextField as ab, getBlockTitle as b, commonjsGlobal as c, BlockAttributeConfigurationManager as d, Align as e, AttributesPanelWrapper as f, getContextMergeTags as g, ContainerBackgroundColor as h, TextDecoration as i, Background as j, LineHeight as k, TextTransform as l, BackgroundColor as m, Direction as n, Link as o, Border as p, BorderColor as q, FontSize$1 as r, MergeTags$1 as s, BorderStyle as t, FontStyle as u, BorderWidth as v, FontWeight as w, ClassName as x, BlockMarketManager as y, BlockMaskWrapper as z };
|
47694
47711
|
//# sourceMappingURL=index2.js.map
|