@ivanholiak/easy-email-extensions 4.16.13 → 4.16.15
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.
- package/lib/index2.js +12 -10
- package/lib/index2.js.map +1 -1
- package/lib/style.css +1 -1
- package/package.json +1 -1
package/lib/index2.js
CHANGED
|
@@ -52,7 +52,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
52
52
|
};
|
|
53
53
|
import * as React$1 from "react";
|
|
54
54
|
import React__default, { createContext, useContext, isValidElement, Children, cloneElement, Component, useRef, useMemo, memo, forwardRef, createRef, useState, useImperativeHandle, useEffect, useLayoutEffect, useCallback, PureComponent, useReducer, Fragment, Suspense } from "react";
|
|
55
|
-
import { IconFont, useEditorProps, Stack as Stack$4, useRefState, getShadowRoot, DATA_CONTENT_EDITABLE_TYPE, ContentEditableType, MergeTagBadge, TextStyle, useEditorContext, useBlock, useFocusIdx, DATA_CONTENT_EDITABLE_IDX, useFocusBlockLayout, AvailableTools, FIXED_CONTAINER_ID, getPluginElement, RICH_TEXT_BAR_ID, CONTENT_EDITABLE_CLASS_NAME, getEditorRoot, scrollBlockEleIntoView, useHoverIdx, useDataTransfer, getBlockNodeByChildEle, getDirectionPosition, DATA_ATTRIBUTE_DROP_CONTAINER, BlockAvatarWrapper, isTextBlock, getBlockNodeByIdx, useLazyState, useActiveTab, ActiveTabKeys
|
|
55
|
+
import { IconFont, useEditorProps, Stack as Stack$4, useRefState, getShadowRoot, DATA_CONTENT_EDITABLE_TYPE, ContentEditableType, MergeTagBadge, TextStyle, useEditorContext, useBlock, useFocusIdx, DATA_CONTENT_EDITABLE_IDX, useFocusBlockLayout, AvailableTools, FIXED_CONTAINER_ID, getPluginElement, RICH_TEXT_BAR_ID, CONTENT_EDITABLE_CLASS_NAME, getEditorRoot, scrollBlockEleIntoView, useHoverIdx, useDataTransfer, getBlockNodeByChildEle, getDirectionPosition, DATA_ATTRIBUTE_DROP_CONTAINER, BlockAvatarWrapper, isTextBlock, getBlockNodeByIdx, useLazyState, useActiveTab, ActiveTabKeys } from "@ivanholiak/easy-email-editor";
|
|
56
56
|
import { BasicType, ImageManager, EMAIL_BLOCK_CLASS_NAME, BlockManager, createBlockDataByType, AdvancedType, Operator, OperatorSymbol, isAdvancedBlock, getParentByIdx, getParentIdx, getIndexByIdx, getSiblingIdx, getNodeIdxFromClassName, getNodeIdxClassName, getPageIdx, getChildIdx, JsonToMjml, getNodeTypeFromClassName } from "@ivanholiak/easy-email-core";
|
|
57
57
|
import ReactDOM$1, { createPortal } from "react-dom";
|
|
58
58
|
import { Field, useForm as useForm$1, useField, Form as Form$3, version as version$2, useFormState as useFormState$2 } from "react-final-form";
|
|
@@ -59391,13 +59391,18 @@ function MergeTagBadgePrompt() {
|
|
|
59391
59391
|
}
|
|
59392
59392
|
const SimpleLayout = (props) => {
|
|
59393
59393
|
const { height: containerHeight } = useEditorProps();
|
|
59394
|
-
const {
|
|
59394
|
+
const {
|
|
59395
|
+
showSourceCode = true,
|
|
59396
|
+
defaultShowLayer = true,
|
|
59397
|
+
jsonReadOnly: jsonReadOnly2 = false,
|
|
59398
|
+
mjmlReadOnly: mjmlReadOnly2 = true
|
|
59399
|
+
} = props;
|
|
59395
59400
|
const [collapsed, setCollapsed] = useState(!defaultShowLayer);
|
|
59396
59401
|
return /* @__PURE__ */ React__default.createElement("div", {
|
|
59397
|
-
className:
|
|
59402
|
+
className: "easy-email-root"
|
|
59398
59403
|
}, /* @__PURE__ */ React__default.createElement(ConfigProvider, {
|
|
59399
59404
|
locale: enUS,
|
|
59400
|
-
getPopupContainer: () => document.querySelector(
|
|
59405
|
+
getPopupContainer: () => document.querySelector(".easy-email-root") || document.body
|
|
59401
59406
|
}, /* @__PURE__ */ React__default.createElement(Layout$1, {
|
|
59402
59407
|
className: styles$4.SimpleLayout,
|
|
59403
59408
|
style: {
|
|
@@ -62532,11 +62537,8 @@ const StandardLayout = (props) => {
|
|
|
62532
62537
|
}, [compact, setFocusIdx]);
|
|
62533
62538
|
return /* @__PURE__ */ React__default.createElement(ExtensionProvider, __spreadProps(__spreadValues({}, props), {
|
|
62534
62539
|
categories
|
|
62535
|
-
}), /* @__PURE__ */ React__default.createElement(
|
|
62536
|
-
|
|
62537
|
-
}, /* @__PURE__ */ React__default.createElement(ConfigProvider, {
|
|
62538
|
-
locale: enUS,
|
|
62539
|
-
getPopupContainer: () => document.querySelector(`.${EASY_EMAIL_ROOT_CLASS}`) || document.body
|
|
62540
|
+
}), /* @__PURE__ */ React__default.createElement(ConfigProvider, {
|
|
62541
|
+
locale: enUS
|
|
62540
62542
|
}, /* @__PURE__ */ React__default.createElement(Card$1, {
|
|
62541
62543
|
style: { padding: 0 },
|
|
62542
62544
|
bodyStyle: {
|
|
@@ -62576,7 +62578,7 @@ const StandardLayout = (props) => {
|
|
|
62576
62578
|
mjmlReadOnly: mjmlReadOnly2
|
|
62577
62579
|
})) : /* @__PURE__ */ React__default.createElement(Layout$1.Sider, {
|
|
62578
62580
|
style: { width: 0, overflow: "hidden" }
|
|
62579
|
-
}))), /* @__PURE__ */ React__default.createElement(InteractivePrompt, null), /* @__PURE__ */ React__default.createElement(MergeTagBadgePrompt, null)))
|
|
62581
|
+
}))), /* @__PURE__ */ React__default.createElement(InteractivePrompt, null), /* @__PURE__ */ React__default.createElement(MergeTagBadgePrompt, null)));
|
|
62580
62582
|
};
|
|
62581
62583
|
export { ExtensionContext as $, AttributePanel as A, BlockLayer as B, Color as C, Decoration as D, FontWeight as E, FontFamily as F, Padding as G, Height as H, ClassName as I, PresetColorsProvider as J, ShortcutToolbar as K, LetterSpacing as L, MjmlToJson as M, NavbarLinkPadding as N, BlockMarketManager as O, Page as P, BlockMaskWrapper as Q, SourceCodePanel as R, SelectionRangeProvider as S, TextAlign as T, InteractivePrompt as U, VerticalAlign as V, Width as W, SimpleLayout as X, StandardLayout as Y, MergeTagBadgePrompt as Z, _objectWithoutPropertiesLoose as _, _extends as a, ExtensionProvider as a0, useExtensionProps as a1, RICH_TEXT_TOOL_BAR as a2, TextField as a3, InputWithUnitField as a4, SearchField as a5, TextAreaField as a6, NumberField as a7, SliderField as a8, UploadField as a9, ImageUploaderField as aa, SelectField as ab, TreeSelectField as ac, AutoCompleteField as ad, RadioGroupField as ae, SwitchField as af, CheckboxField as ag, EditTabField as ah, EditGridTabField as ai, InlineTextField as aj, ColorPickerField as ak, enhancer as al, RichTextField as am, ShadowDom as an, getIconNameByBlockType as b, getBlockTitle as c, BlockAttributeConfigurationManager as d, Align as e, AttributesPanelWrapper as f, getContextMergeTags as g, CollapseWrapper as h, Condition as i, ContainerBackgroundColor as j, TextDecoration as k, Background as l, LineHeight as m, TextTransform as n, BackgroundColor as o, Direction as p, Link as q, Border as r, setIconsMap as s, Margin as t, BorderColor as u, FontSize$1 as v, MergeTags$1 as w, BorderStyle as x, FontStyle as y, BorderWidth as z };
|
|
62582
62584
|
//# sourceMappingURL=index2.js.map
|