easy-email-extensions 3.1.41 → 3.1.48
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/Color.d.ts +4 -4
- 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 +1 -1
- package/lib/AttributePanel/components/attributes/FontSize.d.ts +1 -1
- package/lib/AttributePanel/components/attributes/FontStyle.d.ts +1 -1
- package/lib/AttributePanel/components/attributes/FontWeight.d.ts +1 -1
- package/lib/AttributePanel/components/attributes/Height.d.ts +3 -3
- package/lib/AttributePanel/components/attributes/LetterSpacing.d.ts +1 -1
- package/lib/AttributePanel/components/attributes/LineHeight.d.ts +1 -1
- 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 +5 -5
- package/lib/AttributePanel/components/attributes/TextAlign.d.ts +1 -1
- package/lib/AttributePanel/components/attributes/TextDecoration.d.ts +1 -1
- package/lib/AttributePanel/components/attributes/TextTransform.d.ts +1 -1
- 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 +29 -29
- 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 +42 -42
- 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 +6 -6
- 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 -10
- 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/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/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 +5 -4
- 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/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/FontFamily/index.d.ts +3 -3
- package/lib/components/Form/RichTextToolBar/components/FontSizeList/index.d.ts +3 -3
- package/lib/components/Form/RichTextToolBar/components/Heading/index.d.ts +3 -3
- package/lib/components/Form/RichTextToolBar/components/Link/index.d.ts +12 -12
- package/lib/components/Form/RichTextToolBar/components/ToolItem/index.d.ts +7 -7
- package/lib/components/Form/RichTextToolBar/components/Tools/Tools.d.ts +5 -5
- package/lib/components/Form/RichTextToolBar/components/Tools/index.d.ts +1 -1
- 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 +32 -32
- package/lib/components/RenderCount/index.d.ts +1 -1
- package/lib/components/ShadowDom/index.d.ts +2 -2
- package/lib/hooks/useAddToCollection.d.ts +6 -6
- package/lib/index.d.ts +11 -10
- package/lib/index.js +1 -1
- package/lib/index2.js +17 -11
- package/lib/index2.js.map +1 -1
- package/lib/index3.js.map +1 -1
- package/lib/style.css +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 +5 -3
- package/readme.md +138 -138
@@ -1,32 +1,32 @@
|
|
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 { InlineTextProps } from './InlineTextField';
|
12
|
-
import { AutoCompleteProps } from './AutoComplete';
|
13
|
-
export { RichTextField } from './RichTextField';
|
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;
|
16
|
-
export declare const SearchField: (props: import("./enhancer").EnhancerProps<InputProps> & Omit<InputProps, "value" | "onChange" | "mutators">) => JSX.Element;
|
17
|
-
export declare const TextAreaField: (props: import("./enhancer").EnhancerProps<TextAreaProps> & Omit<TextAreaProps, "value" | "onChange" | "mutators">) => JSX.Element;
|
18
|
-
export declare const NumberField: (props: import("./enhancer").EnhancerProps<InputNumberProps> & Omit<InputNumberProps, "value" | "onChange" | "mutators">) => JSX.Element;
|
19
|
-
export declare const SliderField: (props: import("./enhancer").EnhancerProps<SliderProps> & Omit<SliderProps, "value" | "onChange" | "mutators">) => JSX.Element;
|
20
|
-
export declare const ColorPickerField: (props: import("./enhancer").EnhancerProps<ColorPickerProps> & Omit<ColorPickerProps, "value" | "onChange" | "mutators">) => JSX.Element;
|
21
|
-
export declare const UploadField: (props: import("./enhancer").EnhancerProps<UploadFieldProps> & Omit<UploadFieldProps, "value" | "onChange" | "mutators">) => JSX.Element;
|
22
|
-
export declare const ImageUploaderField: (props: import("./enhancer").EnhancerProps<ImageUploaderProps> & Omit<ImageUploaderProps, "value" | "onChange" | "mutators">) => JSX.Element;
|
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;
|
25
|
-
export declare const AutoCompleteField: (props: import("./enhancer").EnhancerProps<AutoCompleteProps> & Omit<AutoCompleteProps, "value" | "onChange" | "mutators">) => JSX.Element;
|
26
|
-
export declare const RadioGroupField: (props: import("./enhancer").EnhancerProps<RadioGroupProps> & Omit<RadioGroupProps, "value" | "onChange" | "mutators">) => JSX.Element;
|
27
|
-
export declare const SwitchField: (props: import("./enhancer").EnhancerProps<SwitchProps> & Omit<SwitchProps, "value" | "onChange" | "mutators">) => JSX.Element;
|
28
|
-
export declare const DatePickerField: (props: import("./enhancer").EnhancerProps<DatePickerProps> & Omit<DatePickerProps, "value" | "onChange" | "mutators">) => JSX.Element;
|
29
|
-
export declare const CheckboxField: (props: import("./enhancer").EnhancerProps<CheckboxGroupProps<any>> & Omit<CheckboxGroupProps<any>, "value" | "onChange" | "mutators">) => JSX.Element;
|
30
|
-
export declare const EditTabField: (props: import("./enhancer").EnhancerProps<EditTabProps<any>> & Omit<EditTabProps<any>, "value" | "onChange" | "mutators">) => JSX.Element;
|
31
|
-
export declare const InlineTextField: (props: import("./enhancer").EnhancerProps<InlineTextProps> & Omit<InlineTextProps, "value" | "onChange" | "mutators">) => JSX.Element;
|
32
|
-
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 { InlineTextProps } from './InlineTextField';
|
12
|
+
import { AutoCompleteProps } from './AutoComplete';
|
13
|
+
export { RichTextField } from './RichTextField';
|
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;
|
16
|
+
export declare const SearchField: (props: import("./enhancer").EnhancerProps<InputProps> & Omit<InputProps, "value" | "onChange" | "mutators">) => JSX.Element;
|
17
|
+
export declare const TextAreaField: (props: import("./enhancer").EnhancerProps<TextAreaProps> & Omit<TextAreaProps, "value" | "onChange" | "mutators">) => JSX.Element;
|
18
|
+
export declare const NumberField: (props: import("./enhancer").EnhancerProps<InputNumberProps> & Omit<InputNumberProps, "value" | "onChange" | "mutators">) => JSX.Element;
|
19
|
+
export declare const SliderField: (props: import("./enhancer").EnhancerProps<SliderProps> & Omit<SliderProps, "value" | "onChange" | "mutators">) => JSX.Element;
|
20
|
+
export declare const ColorPickerField: (props: import("./enhancer").EnhancerProps<ColorPickerProps> & Omit<ColorPickerProps, "value" | "onChange" | "mutators">) => JSX.Element;
|
21
|
+
export declare const UploadField: (props: import("./enhancer").EnhancerProps<UploadFieldProps> & Omit<UploadFieldProps, "value" | "onChange" | "mutators">) => JSX.Element;
|
22
|
+
export declare const ImageUploaderField: (props: import("./enhancer").EnhancerProps<ImageUploaderProps> & Omit<ImageUploaderProps, "value" | "onChange" | "mutators">) => JSX.Element;
|
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;
|
25
|
+
export declare const AutoCompleteField: (props: import("./enhancer").EnhancerProps<AutoCompleteProps> & Omit<AutoCompleteProps, "value" | "onChange" | "mutators">) => JSX.Element;
|
26
|
+
export declare const RadioGroupField: (props: import("./enhancer").EnhancerProps<RadioGroupProps> & Omit<RadioGroupProps, "value" | "onChange" | "mutators">) => JSX.Element;
|
27
|
+
export declare const SwitchField: (props: import("./enhancer").EnhancerProps<SwitchProps> & Omit<SwitchProps, "value" | "onChange" | "mutators">) => JSX.Element;
|
28
|
+
export declare const DatePickerField: (props: import("./enhancer").EnhancerProps<DatePickerProps> & Omit<DatePickerProps, "value" | "onChange" | "mutators">) => JSX.Element;
|
29
|
+
export declare const CheckboxField: (props: import("./enhancer").EnhancerProps<CheckboxGroupProps<any>> & Omit<CheckboxGroupProps<any>, "value" | "onChange" | "mutators">) => JSX.Element;
|
30
|
+
export declare const EditTabField: (props: import("./enhancer").EnhancerProps<EditTabProps<any>> & Omit<EditTabProps<any>, "value" | "onChange" | "mutators">) => JSX.Element;
|
31
|
+
export declare const InlineTextField: (props: import("./enhancer").EnhancerProps<InlineTextProps> & Omit<InlineTextProps, "value" | "onChange" | "mutators">) => JSX.Element;
|
32
|
+
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>>;
|
@@ -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
|
+
};
|
package/lib/index.d.ts
CHANGED
@@ -1,10 +1,11 @@
|
|
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 './components/Form';
|
9
|
-
export { getContextMergeTags } from './utils/getContextMergeTags';
|
10
|
-
export { getIconNameByBlockType } from './utils/getIconNameByBlockType';
|
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 './components/Form';
|
9
|
+
export { getContextMergeTags } from './utils/getContextMergeTags';
|
10
|
+
export { getIconNameByBlockType } from './utils/getIconNameByBlockType';
|
11
|
+
export { getBlockTitle } from './utils/getBlockTitle';
|
package/lib/index.js
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
export {
|
1
|
+
export { e as Align, A as AttributePanel, f as AttributesPanelWrapper, $ as AutoCompleteField, j as Background, m as BackgroundColor, d as BlockAttributeConfigurationManager, B as BlockLayer, x as BlockMarketManager, y as BlockMaskWrapper, p as Border, q as BorderColor, t as BorderStyle, v as BorderWidth, a3 as CheckboxField, C as Color, U as ColorPickerField, h as ContainerBackgroundColor, a2 as DatePickerField, D as Decoration, n as Direction, a4 as EditTabField, F as FontFamily, r as FontSize, u as FontStyle, w as FontWeight, H as Height, Y as ImageUploaderField, a5 as InlineTextField, J as InputWithUnitField, I as InteractivePrompt, L as LetterSpacing, k as LineHeight, o as Link, M as Margin, s as MergeTags, N as NavbarLinkPadding, Q as NumberField, P as Padding, a0 as RadioGroupField, a7 as RichTextField, K as SearchField, Z as SelectField, S as ShortcutToolbar, E as SimpleLayout, R as SliderField, z as SourceCodePanel, a1 as SwitchField, T as TextAlign, O as TextAreaField, i as TextDecoration, G as TextField, l as TextTransform, _ as TreeSelectField, X as UploadField, V as VerticalAlign, W as Width, a6 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
@@ -42015,7 +42015,7 @@ const iconsMap = {
|
|
42015
42015
|
[BasicType.NAVBAR]: "icon-navbar",
|
42016
42016
|
[BasicType.HERO]: "icon-hero",
|
42017
42017
|
[BasicType.SPACER]: "icon-spacing",
|
42018
|
-
[BasicType.SOCIAL]: "icon-
|
42018
|
+
[BasicType.SOCIAL]: "icon-social",
|
42019
42019
|
[BasicType.CAROUSEL]: "icon-carousel",
|
42020
42020
|
[BasicType.ACCORDION]: "icon-accordion"
|
42021
42021
|
};
|
@@ -42031,11 +42031,12 @@ function getBlockTitle(blockData, isFromContent = true) {
|
|
42031
42031
|
tempEle.innerHTML = blockData.data.value.content;
|
42032
42032
|
return tempEle.innerText;
|
42033
42033
|
}
|
42034
|
-
const blockName = (_a = BlockManager.getBlockByType(blockData.type)) == null ? void 0 : _a.name;
|
42034
|
+
const blockName = ((_a = BlockManager.getBlockByType(blockData.type)) == null ? void 0 : _a.name) || "";
|
42035
42035
|
return blockName;
|
42036
42036
|
}
|
42037
|
-
function BlockLayer() {
|
42037
|
+
function BlockLayer(props) {
|
42038
42038
|
const { pageData: pageData2 } = useEditorContext();
|
42039
|
+
const { renderTitle: propsRenderTitle } = props;
|
42039
42040
|
const { focusIdx: focusIdx2, setFocusIdx } = useFocusIdx();
|
42040
42041
|
const { setHoverIdx, setIsDragging, setDirection } = useHoverIdx();
|
42041
42042
|
const { moveBlock, setValueByIdx: setValueByIdx2, copyBlock, removeBlock, values: values2 } = useBlock();
|
@@ -42052,7 +42053,7 @@ function BlockLayer() {
|
|
42052
42053
|
}, [setValueByIdx2, valueRef]);
|
42053
42054
|
const renderTitle = useCallback((data) => {
|
42054
42055
|
const isPage = data.type === BasicType.PAGE;
|
42055
|
-
const title2 = getBlockTitle(data);
|
42056
|
+
const title2 = propsRenderTitle ? propsRenderTitle(data) : getBlockTitle(data);
|
42056
42057
|
return /* @__PURE__ */ React__default.createElement("div", {
|
42057
42058
|
"data-tree-idx": data.id,
|
42058
42059
|
className: classnames(styles$6.title, !isPage && getNodeIdxClassName(data.id), !isPage && "email-block")
|
@@ -42063,7 +42064,7 @@ function BlockLayer() {
|
|
42063
42064
|
iconName: getIconNameByBlockType(data.type),
|
42064
42065
|
style: { fontSize: 12, color: "#999" }
|
42065
42066
|
}), /* @__PURE__ */ React__default.createElement("div", {
|
42066
|
-
title: title2,
|
42067
|
+
title: lodash.exports.isString(title2) ? title2 : "",
|
42067
42068
|
style: { overflow: "hidden", whiteSpace: "nowrap", width: "5em" }
|
42068
42069
|
}, /* @__PURE__ */ React__default.createElement(TextStyle, {
|
42069
42070
|
size: "smallest"
|
@@ -42073,7 +42074,7 @@ function BlockLayer() {
|
|
42073
42074
|
blockData: data,
|
42074
42075
|
onToggleVisible
|
42075
42076
|
})));
|
42076
|
-
}, [onToggleVisible]);
|
42077
|
+
}, [onToggleVisible, propsRenderTitle]);
|
42077
42078
|
const treeData = useMemo(() => {
|
42078
42079
|
const copyData = lodash.exports.cloneDeep(pageData2);
|
42079
42080
|
const loop2 = (item2, id, parent2) => {
|
@@ -45011,10 +45012,12 @@ function InteractivePrompt() {
|
|
45011
45012
|
return null;
|
45012
45013
|
return /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, /* @__PURE__ */ React__default.createElement(HoverTooltip, null), /* @__PURE__ */ React__default.createElement(FocusTooltip, null));
|
45013
45014
|
}
|
45014
|
-
const SimpleLayout$1 = "
|
45015
|
-
const
|
45015
|
+
const SimpleLayout$1 = "_SimpleLayout_1wve4_1";
|
45016
|
+
const rightSide = "_rightSide_1wve4_5";
|
45017
|
+
const customScrollBar = "_customScrollBar_1wve4_9";
|
45016
45018
|
var styles = {
|
45017
45019
|
SimpleLayout: SimpleLayout$1,
|
45020
|
+
rightSide,
|
45018
45021
|
customScrollBar
|
45019
45022
|
};
|
45020
45023
|
var Calendar = {
|
@@ -45207,7 +45210,9 @@ const SimpleLayout = (props) => {
|
|
45207
45210
|
}, /* @__PURE__ */ React__default.createElement(Card$1, {
|
45208
45211
|
title: "Layout",
|
45209
45212
|
style: { border: "none" }
|
45210
|
-
}, /* @__PURE__ */ React__default.createElement(BlockLayer,
|
45213
|
+
}, /* @__PURE__ */ React__default.createElement(BlockLayer, {
|
45214
|
+
renderTitle: props.renderTitle
|
45215
|
+
}))))), /* @__PURE__ */ React__default.createElement(Layout$1, {
|
45211
45216
|
style: { height: containerHeight }
|
45212
45217
|
}, props.children), /* @__PURE__ */ React__default.createElement(Layout$1.Sider, {
|
45213
45218
|
style: {
|
@@ -45215,7 +45220,8 @@ const SimpleLayout = (props) => {
|
|
45215
45220
|
minWidth: 300,
|
45216
45221
|
maxWidth: 350,
|
45217
45222
|
width: 350
|
45218
|
-
}
|
45223
|
+
},
|
45224
|
+
className: styles.rightSide
|
45219
45225
|
}, /* @__PURE__ */ React__default.createElement(Card$1, {
|
45220
45226
|
size: "small",
|
45221
45227
|
id: "rightSide",
|
@@ -45234,5 +45240,5 @@ const SimpleLayout = (props) => {
|
|
45234
45240
|
title: "Source code"
|
45235
45241
|
}, /* @__PURE__ */ React__default.createElement(SourceCodePanel, null))))), /* @__PURE__ */ React__default.createElement(InteractivePrompt, null)));
|
45236
45242
|
};
|
45237
|
-
export {
|
45243
|
+
export { AutoCompleteField as $, AttributePanel as A, BlockLayer as B, Color as C, Decoration as D, SimpleLayout as E, FontFamily as F, TextField as G, Height as H, InteractivePrompt as I, InputWithUnitField as J, SearchField as K, LetterSpacing as L, Margin as M, NavbarLinkPadding as N, TextAreaField as O, Padding as P, NumberField as Q, SliderField as R, ShortcutToolbar as S, TextAlign as T, ColorPickerField as U, VerticalAlign as V, Width as W, UploadField as X, ImageUploaderField as Y, SelectField as Z, TreeSelectField as _, getIconNameByBlockType as a, RadioGroupField as a0, SwitchField as a1, DatePickerField as a2, CheckboxField as a3, EditTabField as a4, InlineTextField as a5, enhancer as a6, RichTextField as a7, 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 as r, MergeTags as s, BorderStyle as t, FontStyle as u, BorderWidth as v, FontWeight as w, BlockMarketManager as x, BlockMaskWrapper as y, SourceCodePanel as z };
|
45238
45244
|
//# sourceMappingURL=index2.js.map
|