easy-email-extensions 4.12.1 → 4.13.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2,5 +2,6 @@ import React from 'react';
2
2
  export interface AttributesPanelWrapper {
3
3
  style?: React.CSSProperties;
4
4
  extra?: React.ReactNode;
5
+ children: React.ReactNode | React.ReactElement;
5
6
  }
6
7
  export declare const AttributesPanelWrapper: React.FC<AttributesPanelWrapper>;
@@ -1,5 +1,6 @@
1
1
  import React from 'react';
2
2
  export interface CollapseWrapperProps {
3
3
  defaultActiveKey: string[];
4
+ children: React.ReactNode | React.ReactElement;
4
5
  }
5
6
  export declare const CollapseWrapper: React.FC<CollapseWrapperProps>;
@@ -3,4 +3,6 @@ export declare const PresetColorsContext: React.Context<{
3
3
  colors: string[];
4
4
  addCurrentColor: (color: string) => void;
5
5
  }>;
6
- export declare const PresetColorsProvider: React.FC<{}>;
6
+ export declare const PresetColorsProvider: React.FC<{
7
+ children: React.ReactNode | React.ReactElement;
8
+ }>;
@@ -3,4 +3,6 @@ export declare const SelectionRangeContext: React.Context<{
3
3
  selectionRange: Range | null;
4
4
  setSelectionRange: React.Dispatch<React.SetStateAction<Range | null>>;
5
5
  }>;
6
- export declare const SelectionRangeProvider: React.FC<{}>;
6
+ export declare const SelectionRangeProvider: React.FC<{
7
+ children: React.ReactNode | React.ReactElement;
8
+ }>;
@@ -3,4 +3,5 @@ import { BlockType } from 'easy-email-core';
3
3
  export declare const BlockMaskWrapper: React.FC<{
4
4
  type: BlockType | string;
5
5
  payload: any;
6
+ children: React.ReactNode | React.ReactElement;
6
7
  }>;
@@ -1,2 +1,4 @@
1
1
  import React from 'react';
2
- export declare const BlocksPanel: React.FC;
2
+ export declare const BlocksPanel: React.FC<{
3
+ children: React.ReactNode | React.ReactElement;
4
+ }>;
@@ -3,4 +3,5 @@ import { BlockLayerProps } from '../BlockLayer';
3
3
  export declare const SimpleLayout: React.FC<{
4
4
  showSourceCode?: boolean;
5
5
  defaultShowLayer?: boolean;
6
+ children: React.ReactNode | React.ReactElement;
6
7
  } & BlockLayerProps>;
@@ -1,5 +1,6 @@
1
1
  import React from 'react';
2
2
  import 'overlayscrollbars/css/OverlayScrollbars.css';
3
3
  export declare const FullHeightOverlayScrollbars: React.FC<{
4
+ children: React.ReactNode | React.ReactElement;
4
5
  height: string | number;
5
6
  }>;
@@ -1,6 +1,7 @@
1
1
  import { BlockLayerProps } from '../../BlockLayer';
2
2
  import React from 'react';
3
3
  export interface ExtensionProps extends BlockLayerProps {
4
+ children?: React.ReactNode | React.ReactElement;
4
5
  categories: Array<{
5
6
  label: string;
6
7
  active?: boolean;
package/lib/index2.js CHANGED
@@ -36304,13 +36304,13 @@ function AttributePanel() {
36304
36304
  style: { position: "absolute" }
36305
36305
  }, /* @__PURE__ */ React__default.createElement(RichTextField, {
36306
36306
  idx: focusIdx2
36307
- })), shadowRoot && ReactDOM.createPortal(/* @__PURE__ */ React__default.createElement("style", null, `
36307
+ })), /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, shadowRoot && ReactDOM.createPortal(/* @__PURE__ */ React__default.createElement("style", null, `
36308
36308
  .email-block [contentEditable="true"],
36309
36309
  .email-block [contentEditable="true"] * {
36310
36310
  outline: none;
36311
36311
  cursor: text;
36312
36312
  }
36313
- `), shadowRoot)));
36313
+ `), shadowRoot))));
36314
36314
  }
36315
36315
  function MergeTags(props) {
36316
36316
  const { execCommand } = props;
@@ -39795,7 +39795,7 @@ const BlocksPanel = (props) => {
39795
39795
  style: { position: "relative" }
39796
39796
  }, /* @__PURE__ */ React__default.createElement("div", {
39797
39797
  onClick: toggleVisible
39798
- }, props.children), ele && visible && createPortal(/* @__PURE__ */ React__default.createElement("div", {
39798
+ }, props.children), /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, ele && visible && createPortal(/* @__PURE__ */ React__default.createElement("div", {
39799
39799
  className: styles$6.BlocksPanel,
39800
39800
  style: {
39801
39801
  pointerEvents: isDragging ? "none" : void 0,
@@ -39835,7 +39835,7 @@ const BlocksPanel = (props) => {
39835
39835
  }, category.title)
39836
39836
  }, /* @__PURE__ */ React__default.createElement(BlockPanelItem, {
39837
39837
  category
39838
- })))))), ele)), [filterCategories, ele, isDragging, props.children, toggleVisible, visible]);
39838
+ })))))), ele))), [filterCategories, ele, isDragging, props.children, toggleVisible, visible]);
39839
39839
  };
39840
39840
  const BlockPanelItem = React__default.memo((props) => {
39841
39841
  return /* @__PURE__ */ React__default.createElement(Tabs$1, {