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