@ivanholiak/easy-email-extensions 4.16.11 → 4.16.12

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 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 } from "@ivanholiak/easy-email-editor";
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, EASY_EMAIL_ROOT_CLASS } 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";
@@ -59381,8 +59381,11 @@ const SimpleLayout = (props) => {
59381
59381
  const { height: containerHeight } = useEditorProps();
59382
59382
  const { showSourceCode = true, defaultShowLayer = true, jsonReadOnly: jsonReadOnly2 = false, mjmlReadOnly: mjmlReadOnly2 = true } = props;
59383
59383
  const [collapsed, setCollapsed] = useState(!defaultShowLayer);
59384
- return /* @__PURE__ */ React__default.createElement(ConfigProvider, {
59385
- locale: enUS
59384
+ return /* @__PURE__ */ React__default.createElement("div", {
59385
+ className: EASY_EMAIL_ROOT_CLASS
59386
+ }, /* @__PURE__ */ React__default.createElement(ConfigProvider, {
59387
+ locale: enUS,
59388
+ getPopupContainer: () => document.querySelector(`.${EASY_EMAIL_ROOT_CLASS}`) || document.body
59386
59389
  }, /* @__PURE__ */ React__default.createElement(Layout$1, {
59387
59390
  className: styles$4.SimpleLayout,
59388
59391
  style: {
@@ -59464,7 +59467,7 @@ const SimpleLayout = (props) => {
59464
59467
  }, /* @__PURE__ */ React__default.createElement(SourceCodePanel, {
59465
59468
  jsonReadOnly: jsonReadOnly2,
59466
59469
  mjmlReadOnly: mjmlReadOnly2
59467
- }))))), /* @__PURE__ */ React__default.createElement(InteractivePrompt, null), /* @__PURE__ */ React__default.createElement(MergeTagBadgePrompt, null)));
59470
+ }))))), /* @__PURE__ */ React__default.createElement(InteractivePrompt, null), /* @__PURE__ */ React__default.createElement(MergeTagBadgePrompt, null))));
59468
59471
  };
59469
59472
  const StandardLayout$1 = "_StandardLayout_xv0bc_1";
59470
59473
  var styles$3 = {
@@ -62517,8 +62520,11 @@ const StandardLayout = (props) => {
62517
62520
  }, [compact, setFocusIdx]);
62518
62521
  return /* @__PURE__ */ React__default.createElement(ExtensionProvider, __spreadProps(__spreadValues({}, props), {
62519
62522
  categories
62520
- }), /* @__PURE__ */ React__default.createElement(ConfigProvider, {
62521
- locale: enUS
62523
+ }), /* @__PURE__ */ React__default.createElement("div", {
62524
+ className: EASY_EMAIL_ROOT_CLASS
62525
+ }, /* @__PURE__ */ React__default.createElement(ConfigProvider, {
62526
+ locale: enUS,
62527
+ getPopupContainer: () => document.querySelector(`.${EASY_EMAIL_ROOT_CLASS}`) || document.body
62522
62528
  }, /* @__PURE__ */ React__default.createElement(Card$1, {
62523
62529
  style: { padding: 0 },
62524
62530
  bodyStyle: {
@@ -62558,7 +62564,7 @@ const StandardLayout = (props) => {
62558
62564
  mjmlReadOnly: mjmlReadOnly2
62559
62565
  })) : /* @__PURE__ */ React__default.createElement(Layout$1.Sider, {
62560
62566
  style: { width: 0, overflow: "hidden" }
62561
- }))), /* @__PURE__ */ React__default.createElement(InteractivePrompt, null), /* @__PURE__ */ React__default.createElement(MergeTagBadgePrompt, null)));
62567
+ }))), /* @__PURE__ */ React__default.createElement(InteractivePrompt, null), /* @__PURE__ */ React__default.createElement(MergeTagBadgePrompt, null))));
62562
62568
  };
62563
62569
  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 };
62564
62570
  //# sourceMappingURL=index2.js.map