easy-email-extensions 3.1.28 → 3.1.33

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,4 +1,4 @@
1
- import { InputWithUnitProps } from '@extensions/components/Form/InputWithUnit';
1
+ import { InputWithUnitProps } from '../../../components/Form/InputWithUnit';
2
2
  export declare function Width({ inline, unitOptions, }: {
3
3
  inline?: boolean;
4
4
  unitOptions?: InputWithUnitProps['unitOptions'];
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { useBlock } from 'easy-email-editor';
2
+ import { useBlock } from '../../../../easy-email-editor';
3
3
  import { IBlockDataWithId } from '../../../BlockLayer';
4
4
  export declare function ContextMenu({ moveBlock, copyBlock, removeBlock, contextMenuData, onClose, }: {
5
5
  onClose: (ev?: React.MouseEvent) => void;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { IBlockData } from 'easy-email-core';
2
+ import { IBlockData } from '../../easy-email-core';
3
3
  export interface IBlockDataWithId extends IBlockData {
4
4
  id: string;
5
5
  icon?: React.ReactElement;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { BlockType } from 'easy-email-core';
2
+ import { BlockType } from '../../../../easy-email-core';
3
3
  export declare const BlockMaskWrapper: React.FC<{
4
4
  type: BlockType | string;
5
5
  payload: any;
@@ -1,4 +1,4 @@
1
- import { BasicType } from 'easy-email-core';
1
+ import { BasicType } from '../../../../../easy-email-core';
2
2
  import { TextBlockItem } from './TextBlockItem';
3
3
  import { ImageBlockItem } from './ImageBlockItem';
4
4
  export declare const defaultCategories: {
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import { IBlockData } from 'easy-email-core';
2
+ import { IBlockData } from '../../../easy-email-core';
3
3
  export interface BlockMarketCategory {
4
4
  name: string;
5
5
  title: string;
@@ -1,4 +1,4 @@
1
- import { UploaderServer } from '@extensions/AttributePanel/utils/Uploader';
1
+ import { UploaderServer } from '../../../AttributePanel/utils/Uploader';
2
2
  export interface ImageUploaderProps {
3
3
  onChange: (val: string) => void;
4
4
  value: string;
@@ -1,4 +1,4 @@
1
- import { StackProps } from 'easy-email-editor';
1
+ import { StackProps } from '../../../easy-email-editor';
2
2
  import { FieldProps } from 'react-final-form';
3
3
  import React from 'react';
4
4
  import { InputProps } from './Input';
package/lib/index2.js CHANGED
@@ -39222,11 +39222,11 @@ const MergeTags = React__default.memo((props) => {
39222
39222
  }, [props]);
39223
39223
  const mergeTagContent = useMemo(() => renderMergeTagContent ? renderMergeTagContent({
39224
39224
  onChange: props.onChange,
39225
- isSelect: props.isSelect,
39225
+ isSelect: Boolean(props.isSelect),
39226
39226
  value: props.value
39227
39227
  }) : /* @__PURE__ */ React__default.createElement(React__default.Fragment, null), [renderMergeTagContent, props.onChange, props.isSelect, props.value]);
39228
39228
  if (renderMergeTagContent) {
39229
- return mergeTagContent;
39229
+ return /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, mergeTagContent);
39230
39230
  }
39231
39231
  return /* @__PURE__ */ React__default.createElement("div", {
39232
39232
  style: { color: "#333" }
@@ -41780,13 +41780,7 @@ function ContextMenu({
41780
41780
  }, /* @__PURE__ */ React__default.createElement(IconFont, {
41781
41781
  iconName: "icon-delete",
41782
41782
  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", {
41783
+ }), " ", /* @__PURE__ */ React__default.createElement(TextStyle, null, "Delete"))), /* @__PURE__ */ React__default.createElement("div", {
41790
41784
  className: styles$5.contextmenuMark,
41791
41785
  onClick: onClose,
41792
41786
  onContextMenu: (e) => {
@@ -44957,8 +44951,8 @@ function InteractivePrompt() {
44957
44951
  return null;
44958
44952
  return /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, /* @__PURE__ */ React__default.createElement(HoverTooltip, null), /* @__PURE__ */ React__default.createElement(FocusTooltip, null));
44959
44953
  }
44960
- const SimpleLayout$1 = "_SimpleLayout_3z8xk_1";
44961
- const customScrollBar = "_customScrollBar_3z8xk_5";
44954
+ const SimpleLayout$1 = "_SimpleLayout_1fd8j_1";
44955
+ const customScrollBar = "_customScrollBar_1fd8j_8";
44962
44956
  var styles = {
44963
44957
  SimpleLayout: SimpleLayout$1,
44964
44958
  customScrollBar
@@ -45173,7 +45167,6 @@ const SimpleLayout = (props) => {
45173
45167
  bodyStyle: { padding: 0 },
45174
45168
  className: styles.customScrollBar
45175
45169
  }, /* @__PURE__ */ React__default.createElement(Tabs$1, null, /* @__PURE__ */ React__default.createElement(Tabs$1.TabPane, {
45176
- style: { marginTop: 0 },
45177
45170
  key: "Configuration",
45178
45171
  title: "Configuration"
45179
45172
  }, /* @__PURE__ */ React__default.createElement(AttributePanel, null)), showSourceCode && /* @__PURE__ */ React__default.createElement(Tabs$1.TabPane, {