easy-email-extensions 3.1.30 → 3.1.36

Sign up to get free protection for your applications and to get access to all the features.
Files changed (146) hide show
  1. package/lib/AttributePanel/AttributePanel.d.ts +3 -3
  2. package/lib/AttributePanel/components/UI/Help/index.d.ts +7 -7
  3. package/lib/AttributePanel/components/UI/HtmlEditor.d.ts +5 -5
  4. package/lib/AttributePanel/components/attributes/Align.d.ts +3 -3
  5. package/lib/AttributePanel/components/attributes/AttributesPanelWrapper/index.d.ts +6 -6
  6. package/lib/AttributePanel/components/attributes/Background.d.ts +1 -1
  7. package/lib/AttributePanel/components/attributes/BackgroundColor.d.ts +3 -3
  8. package/lib/AttributePanel/components/attributes/Border.d.ts +1 -1
  9. package/lib/AttributePanel/components/attributes/BorderColor.d.ts +1 -1
  10. package/lib/AttributePanel/components/attributes/BorderStyle.d.ts +5 -5
  11. package/lib/AttributePanel/components/attributes/BorderWidth.d.ts +1 -1
  12. package/lib/AttributePanel/components/attributes/Color.d.ts +4 -4
  13. package/lib/AttributePanel/components/attributes/ContainerBackgroundColor.d.ts +3 -3
  14. package/lib/AttributePanel/components/attributes/Decoration.d.ts +1 -1
  15. package/lib/AttributePanel/components/attributes/Direction.d.ts +1 -1
  16. package/lib/AttributePanel/components/attributes/FontFamily.d.ts +1 -1
  17. package/lib/AttributePanel/components/attributes/FontSize.d.ts +1 -1
  18. package/lib/AttributePanel/components/attributes/FontStyle.d.ts +1 -1
  19. package/lib/AttributePanel/components/attributes/FontWeight.d.ts +1 -1
  20. package/lib/AttributePanel/components/attributes/Height.d.ts +3 -3
  21. package/lib/AttributePanel/components/attributes/LetterSpacing.d.ts +1 -1
  22. package/lib/AttributePanel/components/attributes/LineHeight.d.ts +1 -1
  23. package/lib/AttributePanel/components/attributes/Link.d.ts +1 -1
  24. package/lib/AttributePanel/components/attributes/Margin.d.ts +1 -1
  25. package/lib/AttributePanel/components/attributes/MergeTags.d.ts +6 -6
  26. package/lib/AttributePanel/components/attributes/NavbarLinkPadding.d.ts +3 -3
  27. package/lib/AttributePanel/components/attributes/Padding.d.ts +5 -5
  28. package/lib/AttributePanel/components/attributes/TextAlign.d.ts +1 -1
  29. package/lib/AttributePanel/components/attributes/TextDecoration.d.ts +1 -1
  30. package/lib/AttributePanel/components/attributes/TextTransform.d.ts +1 -1
  31. package/lib/AttributePanel/components/attributes/VerticalAlign.d.ts +3 -3
  32. package/lib/AttributePanel/components/attributes/Width.d.ts +5 -5
  33. package/lib/AttributePanel/components/attributes/index.d.ts +29 -29
  34. package/lib/AttributePanel/components/blocks/Accordion/index.d.ts +1 -1
  35. package/lib/AttributePanel/components/blocks/AccordionElement/index.d.ts +1 -1
  36. package/lib/AttributePanel/components/blocks/AccordionText/index.d.ts +1 -1
  37. package/lib/AttributePanel/components/blocks/AccordionTitle/index.d.ts +1 -1
  38. package/lib/AttributePanel/components/blocks/Button/index.d.ts +1 -1
  39. package/lib/AttributePanel/components/blocks/Carousel/index.d.ts +1 -1
  40. package/lib/AttributePanel/components/blocks/Column/index.d.ts +1 -1
  41. package/lib/AttributePanel/components/blocks/Divider/index.d.ts +1 -1
  42. package/lib/AttributePanel/components/blocks/Group/index.d.ts +1 -1
  43. package/lib/AttributePanel/components/blocks/Hero/index.d.ts +1 -1
  44. package/lib/AttributePanel/components/blocks/Image/index.d.ts +1 -1
  45. package/lib/AttributePanel/components/blocks/Navbar/index.d.ts +1 -1
  46. package/lib/AttributePanel/components/blocks/Page/index.d.ts +1 -1
  47. package/lib/AttributePanel/components/blocks/Raw/index.d.ts +1 -1
  48. package/lib/AttributePanel/components/blocks/Section/index.d.ts +1 -1
  49. package/lib/AttributePanel/components/blocks/Social/index.d.ts +1 -1
  50. package/lib/AttributePanel/components/blocks/Spacer/index.d.ts +1 -1
  51. package/lib/AttributePanel/components/blocks/Table/index.d.ts +1 -1
  52. package/lib/AttributePanel/components/blocks/Text/index.d.ts +1 -1
  53. package/lib/AttributePanel/components/blocks/Wrapper/index.d.ts +1 -1
  54. package/lib/AttributePanel/components/blocks/index.d.ts +42 -42
  55. package/lib/AttributePanel/components/provider/PresetColorsProvider/index.d.ts +6 -6
  56. package/lib/AttributePanel/components/provider/SelectionRangeProvider/index.d.ts +6 -6
  57. package/lib/AttributePanel/hooks/useSelectionRange.d.ts +6 -6
  58. package/lib/AttributePanel/index.d.ts +3 -3
  59. package/lib/AttributePanel/utils/BlockAttributeConfigurationManager.d.ts +10 -10
  60. package/lib/AttributePanel/utils/InputNumberAdapter.d.ts +2 -2
  61. package/lib/AttributePanel/utils/PromiseEach.d.ts +1 -1
  62. package/lib/AttributePanel/utils/Uploader.d.ts +35 -35
  63. package/lib/AttributePanel/utils/awaitForElement.d.ts +4 -4
  64. package/lib/AttributePanel/utils/classnames.d.ts +1 -1
  65. package/lib/AttributePanel/utils/getImg.d.ts +8 -8
  66. package/lib/AttributePanel/utils/onDrag.d.ts +10 -10
  67. package/lib/AttributePanel/utils/previewLoadImage.d.ts +1 -1
  68. package/lib/BlockLayer/components/BlockTree/index.d.ts +51 -51
  69. package/lib/BlockLayer/components/BlockTree/transparentImage.d.ts +1 -1
  70. package/lib/BlockLayer/components/ContextMenu/index.d.ts +14 -14
  71. package/lib/BlockLayer/components/EyeIcon/index.d.ts +7 -7
  72. package/lib/BlockLayer/hooks/useAvatarWrapperDrop.d.ts +24 -24
  73. package/lib/BlockLayer/index.d.ts +10 -10
  74. package/lib/InteractivePrompt/components/FocusTooltip.d.ts +1 -1
  75. package/lib/InteractivePrompt/components/HoverTooltip.d.ts +1 -1
  76. package/lib/InteractivePrompt/components/Toolbar.d.ts +1 -1
  77. package/lib/InteractivePrompt/index.d.ts +1 -1
  78. package/lib/InteractivePrompt/utils/awaitForElement.d.ts +4 -4
  79. package/lib/ShortcutToolbar/ShortcutToolbar.d.ts +1 -1
  80. package/lib/ShortcutToolbar/components/BlockMaskWrapper/index.d.ts +6 -6
  81. package/lib/ShortcutToolbar/components/BlocksPanel/index.d.ts +2 -2
  82. package/lib/ShortcutToolbar/components/BlocksPanel/presetTemplate/AccordionBlockItem/index.d.ts +1 -1
  83. package/lib/ShortcutToolbar/components/BlocksPanel/presetTemplate/ButtonBlockItem/index.d.ts +1 -1
  84. package/lib/ShortcutToolbar/components/BlocksPanel/presetTemplate/CarouselBlockItem/index.d.ts +1 -1
  85. package/lib/ShortcutToolbar/components/BlocksPanel/presetTemplate/ColumnBlockItem/index.d.ts +1 -1
  86. package/lib/ShortcutToolbar/components/BlocksPanel/presetTemplate/DividerBlockItem/index.d.ts +1 -1
  87. package/lib/ShortcutToolbar/components/BlocksPanel/presetTemplate/GroupBlockItem/index.d.ts +1 -1
  88. package/lib/ShortcutToolbar/components/BlocksPanel/presetTemplate/HeroBlockItem/index.d.ts +1 -1
  89. package/lib/ShortcutToolbar/components/BlocksPanel/presetTemplate/ImageBlockItem/index.d.ts +1 -1
  90. package/lib/ShortcutToolbar/components/BlocksPanel/presetTemplate/NavbarBlockItem/index.d.ts +1 -1
  91. package/lib/ShortcutToolbar/components/BlocksPanel/presetTemplate/RawBlockItem/index.d.ts +1 -1
  92. package/lib/ShortcutToolbar/components/BlocksPanel/presetTemplate/SectionBlockItem/index.d.ts +1 -1
  93. package/lib/ShortcutToolbar/components/BlocksPanel/presetTemplate/SocialBlockItem/index.d.ts +1 -1
  94. package/lib/ShortcutToolbar/components/BlocksPanel/presetTemplate/SpacerBlockItem/index.d.ts +1 -1
  95. package/lib/ShortcutToolbar/components/BlocksPanel/presetTemplate/TextBlockItem/index.d.ts +1 -1
  96. package/lib/ShortcutToolbar/components/BlocksPanel/presetTemplate/WrapperBlockItem/index.d.ts +1 -1
  97. package/lib/ShortcutToolbar/components/BlocksPanel/presetTemplate/index.d.ts +18 -18
  98. package/lib/ShortcutToolbar/components/Picture/index.d.ts +7 -7
  99. package/lib/ShortcutToolbar/index.d.ts +4 -4
  100. package/lib/ShortcutToolbar/utils/BlockMarketManager.d.ts +32 -32
  101. package/lib/ShortcutToolbar/utils/getImg.d.ts +68 -68
  102. package/lib/SimpleLayout/SimpleLayout.d.ts +4 -4
  103. package/lib/SimpleLayout/index.d.ts +1 -1
  104. package/lib/SourceCodePanel/index.d.ts +1 -1
  105. package/lib/components/AddToCollection/index.d.ts +5 -5
  106. package/lib/components/Form/AddFont.d.ts +1 -1
  107. package/lib/components/Form/AutoComplete.d.ts +11 -11
  108. package/lib/components/Form/CheckBoxGroup.d.ts +14 -14
  109. package/lib/components/Form/CodemirrorEditor/index.d.ts +8 -8
  110. package/lib/components/Form/ColorPicker.d.ts +10 -10
  111. package/lib/components/Form/EditTab.d.ts +10 -10
  112. package/lib/components/Form/ImageUploader/index.d.ts +8 -8
  113. package/lib/components/Form/InlineTextField/index.d.ts +7 -7
  114. package/lib/components/Form/Input.d.ts +7 -7
  115. package/lib/components/Form/InputWithUnit.d.ts +10 -10
  116. package/lib/components/Form/RadioGroup.d.ts +13 -13
  117. package/lib/components/Form/RichTextField/index.d.ts +2 -2
  118. package/lib/components/Form/RichTextToolBar/RichTextToolBar.d.ts +3 -3
  119. package/lib/components/Form/RichTextToolBar/components/FontFamily/index.d.ts +3 -3
  120. package/lib/components/Form/RichTextToolBar/components/FontSizeList/index.d.ts +3 -3
  121. package/lib/components/Form/RichTextToolBar/components/Heading/index.d.ts +3 -3
  122. package/lib/components/Form/RichTextToolBar/components/Link/index.d.ts +12 -12
  123. package/lib/components/Form/RichTextToolBar/components/ToolItem/index.d.ts +7 -7
  124. package/lib/components/Form/RichTextToolBar/components/Tools/Tools.d.ts +5 -5
  125. package/lib/components/Form/RichTextToolBar/components/Tools/index.d.ts +1 -1
  126. package/lib/components/Form/RichTextToolBar/index.d.ts +1 -1
  127. package/lib/components/Form/Select.d.ts +11 -11
  128. package/lib/components/Form/UploadField.d.ts +8 -8
  129. package/lib/components/Form/enhancer.d.ts +20 -20
  130. package/lib/components/Form/index.d.ts +32 -32
  131. package/lib/components/RenderCount/index.d.ts +1 -1
  132. package/lib/components/ShadowDom/index.d.ts +2 -2
  133. package/lib/hooks/useAddToCollection.d.ts +6 -6
  134. package/lib/index.d.ts +10 -10
  135. package/lib/index2.js +58 -48
  136. package/lib/index2.js.map +1 -1
  137. package/lib/index3.js.map +1 -1
  138. package/lib/style.css +1 -1
  139. package/lib/utils/awaitForElement.d.ts +4 -4
  140. package/lib/utils/classnames.d.ts +1 -1
  141. package/lib/utils/getBlockTitle.d.ts +2 -2
  142. package/lib/utils/getContextMergeTags.d.ts +7 -7
  143. package/lib/utils/getIconNameByBlockType.d.ts +1 -1
  144. package/lib/utils/getPreviewClassName.d.ts +1 -1
  145. package/package.json +2 -2
  146. 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,10 @@
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';
package/lib/index2.js CHANGED
@@ -30737,6 +30737,13 @@ function BlockTree(props) {
30737
30737
  const dragNode = useRef(null);
30738
30738
  const { treeData, allowDrop, onContextMenu, selectedKeys } = props;
30739
30739
  const treeDataRef = useRef(treeData);
30740
+ const {
30741
+ onDragStart: propsDragStart,
30742
+ onDrop: propsDrop,
30743
+ renderTitle: propsRenderTitle,
30744
+ onDragEnd: propsDragEnd,
30745
+ onSelect: propsSelect
30746
+ } = props;
30740
30747
  const [expandedKeys, setExpandedKeys] = useState([]);
30741
30748
  const onExpand = useCallback((keys2) => {
30742
30749
  setExpandedKeys(keys2);
@@ -30757,7 +30764,6 @@ function BlockTree(props) {
30757
30764
  setExpandedKeys((keys2) => props.expandedKeys ? [...keys2, ...props.expandedKeys] : keys2);
30758
30765
  }, [props.expandedKeys]);
30759
30766
  const onDragStart = useCallback((e, node) => {
30760
- var _a;
30761
30767
  e.dataTransfer.dropEffect = "none";
30762
30768
  const dragNodeData = node.props.dataRef;
30763
30769
  dragNode.current = {
@@ -30766,8 +30772,8 @@ function BlockTree(props) {
30766
30772
  key: node.props._key,
30767
30773
  parentKey: node.props.parentKey
30768
30774
  };
30769
- (_a = props.onDragStart) == null ? void 0 : _a.call(props);
30770
- }, [props.onDragStart]);
30775
+ propsDragStart == null ? void 0 : propsDragStart();
30776
+ }, [propsDragStart]);
30771
30777
  const onDragMove = useCallback((option) => {
30772
30778
  if (!dragNode.current)
30773
30779
  return false;
@@ -30787,7 +30793,7 @@ function BlockTree(props) {
30787
30793
  return true;
30788
30794
  }
30789
30795
  return false;
30790
- }, [dragNode]);
30796
+ }, [allowDrop]);
30791
30797
  const onDrop = useCallback((info2) => {
30792
30798
  const { dropNode, dropPosition, e } = info2;
30793
30799
  e.dataTransfer.dropEffect = "move";
@@ -30804,22 +30810,21 @@ function BlockTree(props) {
30804
30810
  },
30805
30811
  dropPosition
30806
30812
  };
30807
- props.onDrop(currentDropData);
30808
- }, []);
30813
+ propsDrop(currentDropData);
30814
+ }, [propsDrop]);
30809
30815
  const renderTitle = useCallback((nodeData) => {
30810
30816
  return /* @__PURE__ */ React__default.createElement("div", {
30811
30817
  style: { display: "inline-flex", width: "100%" },
30812
30818
  onContextMenu: (ev) => onContextMenu && onContextMenu(nodeData, ev)
30813
- }, props.renderTitle(nodeData));
30814
- }, [onContextMenu]);
30819
+ }, propsRenderTitle(nodeData));
30820
+ }, [onContextMenu, propsRenderTitle]);
30815
30821
  const onDragEnd = useCallback(() => {
30816
- var _a;
30817
30822
  dragNode.current = null;
30818
- (_a = props.onDragEnd) == null ? void 0 : _a.call(props);
30819
- }, [props.onDragEnd]);
30823
+ propsDragEnd == null ? void 0 : propsDragEnd();
30824
+ }, [propsDragEnd]);
30820
30825
  const onSelect = useCallback((selectedKeys2) => {
30821
- props.onSelect(selectedKeys2[0]);
30822
- }, [props.onSelect]);
30826
+ propsSelect(selectedKeys2[0]);
30827
+ }, [propsSelect]);
30823
30828
  useEffect(() => {
30824
30829
  if (blockTreeRef) {
30825
30830
  blockTreeRef.addEventListener("dragover", (e) => {
@@ -38477,7 +38482,7 @@ function enhancer(Component2, changeAdapter) {
38477
38482
  setCurrentValue(newVal);
38478
38483
  debounceCallbackChange(newVal);
38479
38484
  onBlur3();
38480
- }, [onBlur3, onChangeAdapter, debounceCallbackChange]);
38485
+ }, [onBlur3]);
38481
38486
  if (!wrapper2)
38482
38487
  return /* @__PURE__ */ React__default.createElement(Component2, __spreadProps(__spreadValues({}, rest), {
38483
38488
  id,
@@ -38549,10 +38554,15 @@ function enhancer(Component2, changeAdapter) {
38549
38554
  };
38550
38555
  }
38551
38556
  function Input(props) {
38552
- const { quickchange, value = "", onKeyDown: onPropsKeyDown } = props;
38557
+ const {
38558
+ quickchange,
38559
+ value = "",
38560
+ onKeyDown: onPropsKeyDown,
38561
+ onChange: propsOnChange
38562
+ } = props;
38553
38563
  const onChange = useCallback((val) => {
38554
- props.onChange(val);
38555
- }, [props.onChange]);
38564
+ propsOnChange(val);
38565
+ }, [propsOnChange]);
38556
38566
  const onKeyDown = useCallback((ev) => {
38557
38567
  if (onPropsKeyDown) {
38558
38568
  onPropsKeyDown == null ? void 0 : onPropsKeyDown(ev);
@@ -38632,9 +38642,6 @@ function InputWithUnit(props) {
38632
38642
  unit: arr[3] || unitOptions[0].value
38633
38643
  };
38634
38644
  }, [value, unitOptions]);
38635
- useCallback((val) => {
38636
- props.onChange(val);
38637
- }, [props.onChange]);
38638
38645
  return /* @__PURE__ */ React__default.createElement(Input, __spreadProps(__spreadValues({
38639
38646
  value
38640
38647
  }, restProps), {
@@ -39216,7 +39223,7 @@ const MergeTags = React__default.memo((props) => {
39216
39223
  };
39217
39224
  Object.keys(contextMergeTags).map((key) => deep(key, key, contextMergeTags, treeData));
39218
39225
  return treeData;
39219
- }, [contextMergeTags]);
39226
+ }, [contextMergeTags, mergeTagGenerate]);
39220
39227
  const onSelect = useCallback((value) => {
39221
39228
  return props.onChange(value);
39222
39229
  }, [props]);
@@ -39408,22 +39415,20 @@ function Padding(props = {}) {
39408
39415
  const defaultConfig = useMemo(() => type ? createBlockDataByType(type) : void 0, [type]);
39409
39416
  const paddingValue = focusBlock2 == null ? void 0 : focusBlock2.attributes[attributeName];
39410
39417
  const defaultPaddingValue = defaultConfig == null ? void 0 : defaultConfig.attributes[attributeName];
39411
- const paddingList = paddingValue == null ? void 0 : paddingValue.split(" ");
39412
- const defaultPaddingList = defaultPaddingValue == null ? void 0 : defaultPaddingValue.split(" ");
39413
39418
  const paddingFormValues = useMemo(() => {
39414
- const paddingList2 = paddingValue == null ? void 0 : paddingValue.split(" ");
39415
- const defaultPaddingList2 = defaultPaddingValue == null ? void 0 : defaultPaddingValue.split(" ");
39416
- const top = paddingList2 ? paddingList2[0] : (defaultPaddingList2 == null ? void 0 : defaultPaddingList2[0]) || "";
39417
- const right = paddingList2 ? paddingList2[1] : (defaultPaddingList2 == null ? void 0 : defaultPaddingList2[1]) || "";
39418
- const bottom = paddingList2 ? paddingList2[2] : (defaultPaddingList2 == null ? void 0 : defaultPaddingList2[2]) || "";
39419
- const left = paddingList2 ? paddingList2[3] : (defaultPaddingList2 == null ? void 0 : defaultPaddingList2[3]) || "";
39419
+ const paddingList = paddingValue == null ? void 0 : paddingValue.split(" ");
39420
+ const defaultPaddingList = defaultPaddingValue == null ? void 0 : defaultPaddingValue.split(" ");
39421
+ const top = paddingList ? paddingList[0] : (defaultPaddingList == null ? void 0 : defaultPaddingList[0]) || "";
39422
+ const right = paddingList ? paddingList[1] : (defaultPaddingList == null ? void 0 : defaultPaddingList[1]) || "";
39423
+ const bottom = paddingList ? paddingList[2] : (defaultPaddingList == null ? void 0 : defaultPaddingList[2]) || "";
39424
+ const left = paddingList ? paddingList[3] : (defaultPaddingList == null ? void 0 : defaultPaddingList[3]) || "";
39420
39425
  return {
39421
39426
  top,
39422
39427
  left,
39423
39428
  bottom,
39424
39429
  right
39425
39430
  };
39426
- }, [paddingList, defaultPaddingList, defaultPaddingValue, paddingValue]);
39431
+ }, [defaultPaddingValue, paddingValue]);
39427
39432
  const onChancePadding = useCallback((val) => {
39428
39433
  change(focusIdx2 + `.attributes[${attributeName}]`, val);
39429
39434
  }, [focusIdx2, attributeName, change]);
@@ -39470,9 +39475,10 @@ const PaddingChangeWrapper = (props) => {
39470
39475
  const {
39471
39476
  values: { top, right, bottom, left }
39472
39477
  } = useFormState();
39478
+ const { onChange } = props;
39473
39479
  useEffect(() => {
39474
- props.onChange([top, right, bottom, left].join(" "));
39475
- }, [top, right, bottom, left]);
39480
+ onChange([top, right, bottom, left].join(" "));
39481
+ }, [top, right, bottom, left, onChange]);
39476
39482
  return /* @__PURE__ */ React__default.createElement(React__default.Fragment, null);
39477
39483
  };
39478
39484
  function BackgroundColor({
@@ -41710,6 +41716,7 @@ function ContextMenu({
41710
41716
  const { blockData, left, top } = contextMenuData;
41711
41717
  const idx = blockData.id;
41712
41718
  const { modal, modalVisible, setModalVisible } = useAddToCollection();
41719
+ const props = useEditorProps();
41713
41720
  const ref = useRef(null);
41714
41721
  const handleMoveUp = () => {
41715
41722
  moveBlock(idx, getSiblingIdx(idx, -1));
@@ -41768,7 +41775,7 @@ function ContextMenu({
41768
41775
  }, /* @__PURE__ */ React__default.createElement(IconFont, {
41769
41776
  iconName: "icon-copy",
41770
41777
  style: { marginRight: 10 }
41771
- }), " ", /* @__PURE__ */ React__default.createElement(TextStyle, null, "Copy")), /* @__PURE__ */ React__default.createElement("div", {
41778
+ }), " ", /* @__PURE__ */ React__default.createElement(TextStyle, null, "Copy")), props.onAddCollection && /* @__PURE__ */ React__default.createElement("div", {
41772
41779
  className: styles$5.listItem,
41773
41780
  onClick: handleAddToCollection
41774
41781
  }, /* @__PURE__ */ React__default.createElement(IconFont, {
@@ -41780,13 +41787,7 @@ function ContextMenu({
41780
41787
  }, /* @__PURE__ */ React__default.createElement(IconFont, {
41781
41788
  iconName: "icon-delete",
41782
41789
  style: { marginRight: 10 }
41783
- }), " ", /* @__PURE__ */ React__default.createElement(TextStyle, null, "Delete")), /* @__PURE__ */ React__default.createElement("div", {
41784
- className: styles$5.listItem,
41785
- onClick: handleAddToCollection
41786
- }, /* @__PURE__ */ React__default.createElement(IconFont, {
41787
- iconName: "icon-start",
41788
- style: { marginRight: 10 }
41789
- }), " ", /* @__PURE__ */ React__default.createElement(TextStyle, null, "Add to collection"))), /* @__PURE__ */ React__default.createElement("div", {
41790
+ }), " ", /* @__PURE__ */ React__default.createElement(TextStyle, null, "Delete"))), /* @__PURE__ */ React__default.createElement("div", {
41790
41791
  className: styles$5.contextmenuMark,
41791
41792
  onClick: onClose,
41792
41793
  onContextMenu: (e) => {
@@ -41851,7 +41852,7 @@ function useAvatarWrapperDrop() {
41851
41852
  setDirection("");
41852
41853
  setHoverIdx("");
41853
41854
  return false;
41854
- }, [setDirection, setHoverIdx, removeHightLightClassName]);
41855
+ }, [setDirection, setHoverIdx, valuesRef]);
41855
41856
  useEffect(() => {
41856
41857
  if (blockLayerRef) {
41857
41858
  const onDragOver = lodash.exports.debounce((ev) => {
@@ -41941,7 +41942,16 @@ function useAvatarWrapperDrop() {
41941
41942
  blockLayerRef.removeEventListener("dragleave", onDragend);
41942
41943
  };
41943
41944
  }
41944
- }, [blockLayerRef, dataTransferRef, valuesRef, removeHightLightClassName]);
41945
+ }, [
41946
+ blockLayerRef,
41947
+ dataTransferRef,
41948
+ valuesRef,
41949
+ removeHightLightClassName,
41950
+ allowDrop,
41951
+ setDirection,
41952
+ setHoverIdx,
41953
+ setDataTransfer
41954
+ ]);
41945
41955
  return {
41946
41956
  setBlockLayerRef,
41947
41957
  blockLayerRef,
@@ -42003,7 +42013,7 @@ function BlockLayer() {
42003
42013
  blockData.data.hidden = !Boolean(blockData.data.hidden);
42004
42014
  setValueByIdx2(id, blockData);
42005
42015
  }
42006
- }, [setValueByIdx2]);
42016
+ }, [setValueByIdx2, valueRef]);
42007
42017
  const renderTitle = useCallback((data) => {
42008
42018
  const isPage = data.type === BasicType.PAGE;
42009
42019
  const title2 = getBlockTitle(data);
@@ -42092,7 +42102,7 @@ function BlockLayer() {
42092
42102
  setHoverIdx(dropResult.key);
42093
42103
  }
42094
42104
  return dropResult;
42095
- }, [allowDrop]);
42105
+ }, [allowDrop, removeHightLightClassName, setDirection, setHoverIdx]);
42096
42106
  const selectedKeys = useMemo(() => {
42097
42107
  if (!focusIdx2)
42098
42108
  return [];
@@ -44544,6 +44554,7 @@ function Toolbar() {
44544
44554
  const { focusIdx: focusIdx2, setFocusIdx } = useFocusIdx();
44545
44555
  const { focusBlockRect } = useFocusBlockLayout();
44546
44556
  const { modal, setModalVisible } = useAddToCollection();
44557
+ const props = useEditorProps();
44547
44558
  const isPage = (focusBlock2 == null ? void 0 : focusBlock2.type) === BasicType.PAGE;
44548
44559
  const handleAddToCollection = () => {
44549
44560
  if (document.activeElement instanceof HTMLElement) {
@@ -44621,7 +44632,7 @@ function Toolbar() {
44621
44632
  }), /* @__PURE__ */ React__default.createElement(ToolItem, {
44622
44633
  iconName: "icon-copy",
44623
44634
  onClick: handleCopy
44624
- }), /* @__PURE__ */ React__default.createElement(ToolItem, {
44635
+ }), props.onAddCollection && /* @__PURE__ */ React__default.createElement(ToolItem, {
44625
44636
  iconName: "icon-collection",
44626
44637
  onClick: handleAddToCollection
44627
44638
  }), /* @__PURE__ */ React__default.createElement(ToolItem, {
@@ -44957,8 +44968,8 @@ function InteractivePrompt() {
44957
44968
  return null;
44958
44969
  return /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, /* @__PURE__ */ React__default.createElement(HoverTooltip, null), /* @__PURE__ */ React__default.createElement(FocusTooltip, null));
44959
44970
  }
44960
- const SimpleLayout$1 = "_SimpleLayout_3z8xk_1";
44961
- const customScrollBar = "_customScrollBar_3z8xk_5";
44971
+ const SimpleLayout$1 = "_SimpleLayout_1fd8j_1";
44972
+ const customScrollBar = "_customScrollBar_1fd8j_8";
44962
44973
  var styles = {
44963
44974
  SimpleLayout: SimpleLayout$1,
44964
44975
  customScrollBar
@@ -45173,7 +45184,6 @@ const SimpleLayout = (props) => {
45173
45184
  bodyStyle: { padding: 0 },
45174
45185
  className: styles.customScrollBar
45175
45186
  }, /* @__PURE__ */ React__default.createElement(Tabs$1, null, /* @__PURE__ */ React__default.createElement(Tabs$1.TabPane, {
45176
- style: { marginTop: 0 },
45177
45187
  key: "Configuration",
45178
45188
  title: "Configuration"
45179
45189
  }, /* @__PURE__ */ React__default.createElement(AttributePanel, null)), showSourceCode && /* @__PURE__ */ React__default.createElement(Tabs$1.TabPane, {