@elementor/editor-variables 4.0.0-509 → 4.0.0-511
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 +4 -5
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +15 -15
- package/src/components/fields/font-field.tsx +1 -2
package/dist/index.js
CHANGED
|
@@ -42,7 +42,7 @@ module.exports = __toCommonJS(index_exports);
|
|
|
42
42
|
|
|
43
43
|
// src/init.ts
|
|
44
44
|
var import_editor = require("@elementor/editor");
|
|
45
|
-
var
|
|
45
|
+
var import_editor_editing_panel2 = require("@elementor/editor-editing-panel");
|
|
46
46
|
var import_editor_panels2 = require("@elementor/editor-panels");
|
|
47
47
|
var import_editor_props7 = require("@elementor/editor-props");
|
|
48
48
|
|
|
@@ -3585,7 +3585,6 @@ var ColorField = ({ value, onChange, onValidationChange }) => {
|
|
|
3585
3585
|
var React34 = __toESM(require("react"));
|
|
3586
3586
|
var import_react24 = require("react");
|
|
3587
3587
|
var import_editor_controls13 = require("@elementor/editor-controls");
|
|
3588
|
-
var import_editor_editing_panel2 = require("@elementor/editor-editing-panel");
|
|
3589
3588
|
var import_editor_ui12 = require("@elementor/editor-ui");
|
|
3590
3589
|
var import_icons15 = require("@elementor/icons");
|
|
3591
3590
|
var import_ui32 = require("@elementor/ui");
|
|
@@ -3595,7 +3594,7 @@ var FontField = ({ value, onChange, onValidationChange }) => {
|
|
|
3595
3594
|
const defaultRef = (0, import_react24.useRef)(null);
|
|
3596
3595
|
const anchorRef = usePopoverContentRef() ?? defaultRef.current;
|
|
3597
3596
|
const fontPopoverState = (0, import_ui32.usePopupState)({ variant: "popover" });
|
|
3598
|
-
const fontFamilies = (0,
|
|
3597
|
+
const fontFamilies = (0, import_editor_controls13.useFontFamilies)();
|
|
3599
3598
|
const sectionWidth = (0, import_editor_ui12.useSectionWidth)();
|
|
3600
3599
|
const mapFontSubs = React34.useMemo(() => {
|
|
3601
3600
|
return fontFamilies.map(({ label, fonts }) => ({
|
|
@@ -3797,11 +3796,11 @@ var hasAssignedColorVariable = (propValue) => {
|
|
|
3797
3796
|
};
|
|
3798
3797
|
|
|
3799
3798
|
// src/init.ts
|
|
3800
|
-
var { registerPopoverAction } =
|
|
3799
|
+
var { registerPopoverAction } = import_editor_editing_panel2.controlActionsMenu;
|
|
3801
3800
|
function init() {
|
|
3802
3801
|
registerVariableTypes();
|
|
3803
3802
|
registerRepeaterInjections();
|
|
3804
|
-
(0,
|
|
3803
|
+
(0, import_editor_editing_panel2.registerControlReplacement)({
|
|
3805
3804
|
component: VariableControl,
|
|
3806
3805
|
condition: ({ value, placeholder }) => {
|
|
3807
3806
|
if (hasVariableAssigned(value)) {
|