easy-email-pro-theme 1.51.3 → 1.51.5
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/index.js +13 -2
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -16086,12 +16086,22 @@ const FontSize$2 = () => {
|
|
|
16086
16086
|
const [fontSizeValue, setFontSizeValue] = useState();
|
|
16087
16087
|
const { setFieldValue } = useEditorContext();
|
|
16088
16088
|
const editor = useSlate();
|
|
16089
|
-
|
|
16089
|
+
let [nodeEntry] = Editor.nodes(editor, {
|
|
16090
16090
|
match: (node) => {
|
|
16091
16091
|
return Text$2.isText(node);
|
|
16092
16092
|
},
|
|
16093
|
-
mode: "lowest"
|
|
16093
|
+
mode: "lowest",
|
|
16094
|
+
voids: true
|
|
16094
16095
|
});
|
|
16096
|
+
if (!nodeEntry) {
|
|
16097
|
+
const [mergetagNodeEntry] = Editor.nodes(editor, {
|
|
16098
|
+
match: (node) => {
|
|
16099
|
+
return NodeUtils.isMergetagElement(node);
|
|
16100
|
+
},
|
|
16101
|
+
mode: "lowest"
|
|
16102
|
+
});
|
|
16103
|
+
nodeEntry = mergetagNodeEntry;
|
|
16104
|
+
}
|
|
16095
16105
|
const textNode = nodeEntry == null ? void 0 : nodeEntry[0];
|
|
16096
16106
|
useEffect(() => {
|
|
16097
16107
|
let fontSizeValue2 = textNode == null ? void 0 : textNode.fontSize;
|
|
@@ -16179,6 +16189,7 @@ const FontFamily$2 = () => {
|
|
|
16179
16189
|
match: (node) => {
|
|
16180
16190
|
return Text$2.isText(node);
|
|
16181
16191
|
},
|
|
16192
|
+
voids: true,
|
|
16182
16193
|
mode: "lowest"
|
|
16183
16194
|
});
|
|
16184
16195
|
const textNode = nodeEntry == null ? void 0 : nodeEntry[0];
|