easy-email-extensions 4.16.5 → 4.17.1
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 +5 -4
- package/lib/index2.js.map +1 -1
- package/package.json +2 -2
package/lib/index2.js
CHANGED
|
@@ -57,7 +57,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
57
57
|
import * as React from "react";
|
|
58
58
|
import React__default, { Children, isValidElement, cloneElement, createContext, useContext, Component, useMemo, memo, forwardRef, useEffect, useRef, useLayoutEffect, useState, useImperativeHandle, PureComponent, useCallback, useReducer, createRef, Fragment, createElement, Suspense } from "react";
|
|
59
59
|
import { IconFont, useEditorProps, Stack as Stack$4, useRefState, getShadowRoot, DATA_CONTENT_EDITABLE_TYPE, ContentEditableType, TextStyle, useEditorContext, useBlock, useFocusIdx, DATA_CONTENT_EDITABLE_IDX, useFocusBlockLayout, MergeTagBadge, 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 "easy-email-editor";
|
|
60
|
-
import { BasicType, ImageManager, EMAIL_BLOCK_CLASS_NAME, BlockManager, createBlockDataByType, AdvancedType, Operator, OperatorSymbol, isAdvancedBlock, getParentByIdx, getParentIdx, getIndexByIdx, getSiblingIdx, getNodeIdxFromClassName, getNodeIdxClassName,
|
|
60
|
+
import { BasicType, ImageManager, EMAIL_BLOCK_CLASS_NAME, BlockManager, createBlockDataByType, AdvancedType, Operator, OperatorSymbol, isAdvancedBlock, getParentByIdx, getParentIdx, getIndexByIdx, getSiblingIdx, getNodeIdxFromClassName, getNodeIdxClassName, getChildIdx, getPageIdx, JsonToMjml, getNodeTypeFromClassName } from "easy-email-core";
|
|
61
61
|
import ReactDOM, { findDOMNode, render, createPortal } from "react-dom";
|
|
62
62
|
import { Field, useForm as useForm$1, useField, Form as Form$3, version as version$2, useFormState } from "react-final-form";
|
|
63
63
|
import { v4 } from "uuid";
|
|
@@ -38341,8 +38341,8 @@ function BlockLayer(props) {
|
|
|
38341
38341
|
blockData: data,
|
|
38342
38342
|
onToggleVisible
|
|
38343
38343
|
})));
|
|
38344
|
-
}, [onToggleVisible, propsRenderTitle]);
|
|
38345
|
-
const
|
|
38344
|
+
}, [onToggleVisible, propsRenderTitle, values2]);
|
|
38345
|
+
const getTreeData = () => {
|
|
38346
38346
|
const copyData = lodash.exports.cloneDeep(pageData2);
|
|
38347
38347
|
const loop = (item2, id, parent2) => {
|
|
38348
38348
|
item2.id = id;
|
|
@@ -38351,7 +38351,8 @@ function BlockLayer(props) {
|
|
|
38351
38351
|
};
|
|
38352
38352
|
loop(copyData, getPageIdx(), null);
|
|
38353
38353
|
return [copyData];
|
|
38354
|
-
}
|
|
38354
|
+
};
|
|
38355
|
+
const treeData = getTreeData();
|
|
38355
38356
|
const onSelect = useCallback((selectedId) => {
|
|
38356
38357
|
setFocusIdx(selectedId);
|
|
38357
38358
|
setTimeout(() => {
|