easy-email-extensions 4.0.0-alpha.0 → 4.0.0-alpha.1
Sign up to get free protection for your applications and to get access to all the features.
- package/lib/MergeTagBadgePrompt/index.d.ts +1 -0
- package/lib/index.d.ts +1 -1
- package/lib/index.js +1 -1
- package/lib/index2.js +6 -6
- package/lib/index2.js.map +1 -1
- package/package.json +2 -2
- package/lib/MergeTagBadge/index.d.ts +0 -1
@@ -0,0 +1 @@
|
|
1
|
+
export declare function MergeTagBadgePrompt(): JSX.Element;
|
package/lib/index.d.ts
CHANGED
@@ -5,7 +5,7 @@ export * from './ShortcutToolbar';
|
|
5
5
|
export * from './SourceCodePanel';
|
6
6
|
export * from './InteractivePrompt';
|
7
7
|
export * from './SimpleLayout';
|
8
|
-
export * from './
|
8
|
+
export * from './MergeTagBadgePrompt';
|
9
9
|
export * from './components/Form';
|
10
10
|
export { getContextMergeTags } from './utils/getContextMergeTags';
|
11
11
|
export { getIconNameByBlockType } from './utils/getIconNameByBlockType';
|
package/lib/index.js
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
export { e as Align, A as AttributePanel, f as AttributesPanelWrapper, a0 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, a4 as CheckboxField, C as Color, X as ColorPickerField, h as ContainerBackgroundColor, a3 as DatePickerField, D as Decoration, n as Direction, a6 as EditGridTabField, a5 as EditTabField, F as FontFamily, r as FontSize, u as FontStyle, w as FontWeight, H as Height, Z as ImageUploaderField, a7 as InlineTextField, K as InputWithUnitField, I as InteractivePrompt, L as LetterSpacing, k as LineHeight, o as Link, M as Margin, G as
|
1
|
+
export { e as Align, A as AttributePanel, f as AttributesPanelWrapper, a0 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, a4 as CheckboxField, C as Color, X as ColorPickerField, h as ContainerBackgroundColor, a3 as DatePickerField, D as Decoration, n as Direction, a6 as EditGridTabField, a5 as EditTabField, F as FontFamily, r as FontSize, u as FontStyle, w as FontWeight, H as Height, Z as ImageUploaderField, a7 as InlineTextField, K as InputWithUnitField, I as InteractivePrompt, L as LetterSpacing, k as LineHeight, o as Link, M as Margin, G as MergeTagBadgePrompt, s as MergeTags, N as NavbarLinkPadding, R as NumberField, P as Padding, a1 as RadioGroupField, a9 as RichTextField, O as SearchField, _ as SelectField, S as ShortcutToolbar, E as SimpleLayout, U as SliderField, z as SourceCodePanel, a2 as SwitchField, T as TextAlign, Q as TextAreaField, i as TextDecoration, J as TextField, l as TextTransform, $ as TreeSelectField, Y as UploadField, V as VerticalAlign, W as Width, a8 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
@@ -55,7 +55,7 @@ var __async = (__this, __arguments, generator) => {
|
|
55
55
|
};
|
56
56
|
import * as React from "react";
|
57
57
|
import React__default, { Children, isValidElement, cloneElement, createContext, useContext, Component, useMemo, memo, forwardRef, useEffect, useRef, useLayoutEffect, useState, createRef, useImperativeHandle, PureComponent, useCallback, useReducer, Fragment, createElement, Suspense } from "react";
|
58
|
-
import { IconFont, useEditorProps, Stack as Stack$6, getShadowRoot, TextStyle, useEditorContext, useBlock, useFocusIdx, useFocusBlockLayout, getEditNode, MergeTagBadge
|
58
|
+
import { IconFont, useEditorProps, Stack as Stack$6, getShadowRoot, TextStyle, useEditorContext, useBlock, useFocusIdx, useFocusBlockLayout, getEditNode, MergeTagBadge, FIXED_CONTAINER_ID, getPluginElement, isTextBlock, scrollBlockEleIntoView, useHoverIdx, useDataTransfer, useRefState, getBlockNodeByChildEle, getDirectionPosition, DATA_ATTRIBUTE_DROP_CONTAINER, BlockAvatarWrapper, getBlockNodeByIdx, useLazyState, getEditorRoot, useActiveTab, ActiveTabKeys } from "easy-email-editor";
|
59
59
|
import { BasicType, ImageManager, EMAIL_BLOCK_CLASS_NAME, BlockManager, createBlockDataByType, AdvancedType, Operator, OperatorSymbol, isAdvancedBlock, getParentByIdx, getParentIdx, getIndexByIdx, getSiblingIdx, getNodeIdxFromClassName, getNodeIdxClassName, getPageIdx, getChildIdx, MjmlToJson, JsonToMjml, getNodeTypeFromClassName } from "easy-email-core";
|
60
60
|
import ReactDOM, { findDOMNode, render as render$1, unmountComponentAtNode, createPortal } from "react-dom";
|
61
61
|
import { useField, Field, useForm as useForm$1, Form as Form$3, version as version$2, useFormState } from "react-final-form";
|
@@ -43666,7 +43666,7 @@ function Tools(props) {
|
|
43666
43666
|
} else if (cmd === "insertHTML") {
|
43667
43667
|
let newContent = val;
|
43668
43668
|
if (enabledMergeTagsBadge) {
|
43669
|
-
newContent = MergeTagBadge
|
43669
|
+
newContent = MergeTagBadge.transform(val, uuid2);
|
43670
43670
|
}
|
43671
43671
|
document.execCommand(cmd, false, newContent);
|
43672
43672
|
const insertMergeTagEle = getShadowRoot().getElementById(uuid2);
|
@@ -43861,7 +43861,7 @@ function FieldWrapper(props) {
|
|
43861
43861
|
const { mergeTagGenerate, enabledMergeTagsBadge } = useEditorProps();
|
43862
43862
|
const debounceCallbackChange = useCallback(lodash.exports.debounce((val) => {
|
43863
43863
|
if (enabledMergeTagsBadge) {
|
43864
|
-
input.onChange(MergeTagBadge
|
43864
|
+
input.onChange(MergeTagBadge.revert(val, mergeTagGenerate));
|
43865
43865
|
} else {
|
43866
43866
|
input.onChange(val);
|
43867
43867
|
}
|
@@ -47429,7 +47429,7 @@ const removeAllActiveBadge = () => {
|
|
47429
47429
|
});
|
47430
47430
|
getShadowRoot().querySelectorAll(".easy-email-merge-tag-popover");
|
47431
47431
|
};
|
47432
|
-
function
|
47432
|
+
function MergeTagBadgePrompt() {
|
47433
47433
|
const { initialized } = useEditorContext();
|
47434
47434
|
const popoverRef = useRef(null);
|
47435
47435
|
const { onChangeMergeTag, mergeTags: mergeTags2 } = useEditorProps();
|
@@ -47629,7 +47629,7 @@ const SimpleLayout = (props) => {
|
|
47629
47629
|
title: /* @__PURE__ */ React__default.createElement("div", {
|
47630
47630
|
style: { height: 31, lineHeight: "31px" }
|
47631
47631
|
}, "Source code")
|
47632
|
-
}, /* @__PURE__ */ React__default.createElement(SourceCodePanel, null))))), /* @__PURE__ */ React__default.createElement(InteractivePrompt, null), /* @__PURE__ */ React__default.createElement(
|
47632
|
+
}, /* @__PURE__ */ React__default.createElement(SourceCodePanel, null))))), /* @__PURE__ */ React__default.createElement(InteractivePrompt, null), /* @__PURE__ */ React__default.createElement(MergeTagBadgePrompt, null)));
|
47633
47633
|
};
|
47634
|
-
export { TreeSelectField as $, AttributePanel as A, BlockLayer as B, Color as C, Decoration as D, SimpleLayout as E, FontFamily as F,
|
47634
|
+
export { TreeSelectField as $, AttributePanel as A, BlockLayer as B, Color as C, Decoration as D, SimpleLayout as E, FontFamily as F, MergeTagBadgePrompt as G, Height as H, InteractivePrompt as I, TextField as J, InputWithUnitField as K, LetterSpacing as L, Margin as M, NavbarLinkPadding as N, SearchField as O, Padding as P, TextAreaField as Q, NumberField as R, ShortcutToolbar as S, TextAlign as T, SliderField as U, VerticalAlign as V, Width as W, ColorPickerField as X, UploadField as Y, ImageUploaderField as Z, SelectField as _, getIconNameByBlockType as a, AutoCompleteField as a0, RadioGroupField as a1, SwitchField as a2, DatePickerField as a3, CheckboxField as a4, EditTabField as a5, EditGridTabField as a6, InlineTextField as a7, enhancer as a8, RichTextField as a9, 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, BlockMarketManager as x, BlockMaskWrapper as y, SourceCodePanel as z };
|
47635
47635
|
//# sourceMappingURL=index2.js.map
|