@elementor/editor-variables 4.1.0-733 → 4.1.0-735
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/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +15 -15
- package/src/components/fields/font-field.tsx +2 -2
package/dist/index.mjs
CHANGED
|
@@ -3929,7 +3929,7 @@ var ColorField = ({ value, onChange, onValidationChange }) => {
|
|
|
3929
3929
|
|
|
3930
3930
|
// src/components/fields/font-field.tsx
|
|
3931
3931
|
import * as React36 from "react";
|
|
3932
|
-
import { useId as useId4, useRef as useRef13, useState as useState19 } from "react";
|
|
3932
|
+
import { useId as useId4, useMemo as useMemo3, useRef as useRef13, useState as useState19 } from "react";
|
|
3933
3933
|
import { enqueueFont as enqueueFont2, ItemSelector, useFontFamilies } from "@elementor/editor-controls";
|
|
3934
3934
|
import { useSectionWidth } from "@elementor/editor-ui";
|
|
3935
3935
|
import { ChevronDownIcon, TextIcon } from "@elementor/icons";
|
|
@@ -3942,7 +3942,7 @@ var FontField = ({ value, onChange, onValidationChange }) => {
|
|
|
3942
3942
|
const fontPopoverState = usePopupState6({ variant: "popover" });
|
|
3943
3943
|
const fontFamilies = useFontFamilies();
|
|
3944
3944
|
const sectionWidth = useSectionWidth();
|
|
3945
|
-
const mapFontSubs =
|
|
3945
|
+
const mapFontSubs = useMemo3(() => {
|
|
3946
3946
|
return fontFamilies.map(({ label, fonts }) => ({
|
|
3947
3947
|
label,
|
|
3948
3948
|
items: fonts
|