@ivanholiak/easy-email-extensions 4.16.13 → 4.16.14

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, EASY_EMAIL_ROOT_CLASS } 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 } 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";
@@ -59394,10 +59394,10 @@ const SimpleLayout = (props) => {
59394
59394
  const { showSourceCode = true, defaultShowLayer = true, jsonReadOnly: jsonReadOnly2 = false, mjmlReadOnly: mjmlReadOnly2 = true } = props;
59395
59395
  const [collapsed, setCollapsed] = useState(!defaultShowLayer);
59396
59396
  return /* @__PURE__ */ React__default.createElement("div", {
59397
- className: EASY_EMAIL_ROOT_CLASS
59397
+ className: "easy-email-root"
59398
59398
  }, /* @__PURE__ */ React__default.createElement(ConfigProvider, {
59399
59399
  locale: enUS,
59400
- getPopupContainer: () => document.querySelector(`.${EASY_EMAIL_ROOT_CLASS}`) || document.body
59400
+ getPopupContainer: () => document.querySelector(".easy-email-root") || document.body
59401
59401
  }, /* @__PURE__ */ React__default.createElement(Layout$1, {
59402
59402
  className: styles$4.SimpleLayout,
59403
59403
  style: {
@@ -62533,10 +62533,10 @@ const StandardLayout = (props) => {
62533
62533
  return /* @__PURE__ */ React__default.createElement(ExtensionProvider, __spreadProps(__spreadValues({}, props), {
62534
62534
  categories
62535
62535
  }), /* @__PURE__ */ React__default.createElement("div", {
62536
- className: EASY_EMAIL_ROOT_CLASS
62536
+ className: "easy-email-root"
62537
62537
  }, /* @__PURE__ */ React__default.createElement(ConfigProvider, {
62538
62538
  locale: enUS,
62539
- getPopupContainer: () => document.querySelector(`.${EASY_EMAIL_ROOT_CLASS}`) || document.body
62539
+ getPopupContainer: () => document.querySelector(".easy-email-root") || document.body
62540
62540
  }, /* @__PURE__ */ React__default.createElement(Card$1, {
62541
62541
  style: { padding: 0 },
62542
62542
  bodyStyle: {