@elementor/editor-controls 4.4.0-1078 → 4.4.0-1079
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 +18 -11
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +32 -25
- package/dist/index.mjs.map +1 -1
- package/package.json +16 -16
- package/src/controls/icon-library/icon-library-popover.tsx +11 -4
package/dist/index.js
CHANGED
|
@@ -5458,6 +5458,7 @@ var import_react49 = require("react");
|
|
|
5458
5458
|
var import_editor_ui11 = require("@elementor/editor-ui");
|
|
5459
5459
|
var import_icons21 = require("@elementor/icons");
|
|
5460
5460
|
var import_ui64 = require("@elementor/ui");
|
|
5461
|
+
var import_utils6 = require("@elementor/utils");
|
|
5461
5462
|
var import_i18n32 = require("@wordpress/i18n");
|
|
5462
5463
|
|
|
5463
5464
|
// src/controls/icon-library/font-awesome-7-data.ts
|
|
@@ -5732,6 +5733,7 @@ function useFontAwesome7Catalog(enabled) {
|
|
|
5732
5733
|
// src/controls/icon-library/icon-library-popover.tsx
|
|
5733
5734
|
var ICON_LIBRARY_POPOVER_WIDTH = 300;
|
|
5734
5735
|
var ICON_LIBRARY_ROW_HEIGHT = 48;
|
|
5736
|
+
var ICON_LIBRARY_SEARCH_DEBOUNCE_DELAY = 300;
|
|
5735
5737
|
var ICON_TILE_SIZE = 40;
|
|
5736
5738
|
var ICON_GLYPH_SIZE = 20;
|
|
5737
5739
|
var ICON_LIBRARY_INLINE_SPACING = 1;
|
|
@@ -5748,7 +5750,12 @@ var IconLibraryPopover = ({
|
|
|
5748
5750
|
onClose,
|
|
5749
5751
|
width = ICON_LIBRARY_POPOVER_WIDTH
|
|
5750
5752
|
}) => {
|
|
5751
|
-
const
|
|
5753
|
+
const {
|
|
5754
|
+
debouncedValue: searchValue,
|
|
5755
|
+
inputValue: searchInputValue,
|
|
5756
|
+
handleChange: handleSearchChange,
|
|
5757
|
+
setImmediateValue: setSearchValue
|
|
5758
|
+
} = (0, import_utils6.useDebounceState)({ delay: ICON_LIBRARY_SEARCH_DEBOUNCE_DELAY });
|
|
5752
5759
|
const { data: icons = [], isLoading } = useFontAwesome7Catalog(open);
|
|
5753
5760
|
const items2 = (0, import_react49.useMemo)(() => createIconLibraryItems(icons, searchValue), [icons, searchValue]);
|
|
5754
5761
|
const selectedValue = (0, import_react49.useMemo)(
|
|
@@ -5783,8 +5790,8 @@ var IconLibraryPopover = ({
|
|
|
5783
5790
|
), /* @__PURE__ */ React82.createElement(
|
|
5784
5791
|
import_editor_ui11.SearchField,
|
|
5785
5792
|
{
|
|
5786
|
-
value:
|
|
5787
|
-
onSearch:
|
|
5793
|
+
value: searchInputValue,
|
|
5794
|
+
onSearch: handleSearchChange,
|
|
5788
5795
|
placeholder: (0, import_i18n32.__)("Search", "elementor"),
|
|
5789
5796
|
id: "icon-library-search",
|
|
5790
5797
|
sx: { px: ICON_LIBRARY_INLINE_SPACING, pb: 1 }
|
|
@@ -7787,7 +7794,7 @@ var import_react66 = require("react");
|
|
|
7787
7794
|
var import_editor_props57 = require("@elementor/editor-props");
|
|
7788
7795
|
var import_icons37 = require("@elementor/icons");
|
|
7789
7796
|
var import_ui95 = require("@elementor/ui");
|
|
7790
|
-
var
|
|
7797
|
+
var import_utils8 = require("@elementor/utils");
|
|
7791
7798
|
var import_i18n57 = require("@wordpress/i18n");
|
|
7792
7799
|
|
|
7793
7800
|
// src/controls/selection-size-control.tsx
|
|
@@ -7825,7 +7832,7 @@ var SelectionSizeControl = createControl(
|
|
|
7825
7832
|
);
|
|
7826
7833
|
|
|
7827
7834
|
// src/controls/transition-control/data.ts
|
|
7828
|
-
var
|
|
7835
|
+
var import_utils7 = require("@elementor/utils");
|
|
7829
7836
|
var import_i18n55 = require("@wordpress/i18n");
|
|
7830
7837
|
var initialTransitionValue = {
|
|
7831
7838
|
selection: {
|
|
@@ -7842,14 +7849,14 @@ var getIsSiteRtl = () => {
|
|
|
7842
7849
|
return !!window.elementorFrontend?.config?.is_rtl;
|
|
7843
7850
|
};
|
|
7844
7851
|
var shouldShowAllTransitionProperties = () => {
|
|
7845
|
-
if (!(0,
|
|
7852
|
+
if (!(0, import_utils7.hasProInstalled)()) {
|
|
7846
7853
|
return true;
|
|
7847
7854
|
}
|
|
7848
7855
|
const proVersion = window.elementorPro?.config?.version;
|
|
7849
7856
|
if (!proVersion) {
|
|
7850
7857
|
return false;
|
|
7851
7858
|
}
|
|
7852
|
-
return (0,
|
|
7859
|
+
return (0, import_utils7.isVersionGreaterOrEqual)(proVersion, MIN_PRO_VERSION);
|
|
7853
7860
|
};
|
|
7854
7861
|
var createTransitionPropertiesList = () => {
|
|
7855
7862
|
const isSiteRtl = getIsSiteRtl();
|
|
@@ -8328,7 +8335,7 @@ var TransitionRepeaterControl = createControl(
|
|
|
8328
8335
|
}) => {
|
|
8329
8336
|
const currentStyleIsNormal = currentStyleState === null;
|
|
8330
8337
|
const [recentlyUsedList, setRecentlyUsedList] = (0, import_react66.useState)([]);
|
|
8331
|
-
const proInstalled = (0,
|
|
8338
|
+
const proInstalled = (0, import_utils8.hasProInstalled)();
|
|
8332
8339
|
const { value, setValue } = useBoundProp(childArrayPropTypeUtil);
|
|
8333
8340
|
const { allDisabled: disabledItems, proDisabled: proDisabledItems } = (0, import_react66.useMemo)(
|
|
8334
8341
|
() => getDisabledItemLabels(value),
|
|
@@ -9317,7 +9324,7 @@ var import_ui105 = require("@elementor/ui");
|
|
|
9317
9324
|
|
|
9318
9325
|
// src/controls/email-form-action-control/utils.ts
|
|
9319
9326
|
var import_schema = require("@elementor/schema");
|
|
9320
|
-
var
|
|
9327
|
+
var import_utils9 = require("@elementor/utils");
|
|
9321
9328
|
var MIN_PRO_VERSION_FOR_MENTIONS = "4.1.0";
|
|
9322
9329
|
var CHIP_TRIGGER_KEYS = /* @__PURE__ */ new Set([" ", ","]);
|
|
9323
9330
|
function isValidEmail(email) {
|
|
@@ -9328,14 +9335,14 @@ function isFormFieldShortcode(value) {
|
|
|
9328
9335
|
return FORM_FIELD_SHORTCODE_PATTERN.test(value);
|
|
9329
9336
|
}
|
|
9330
9337
|
var shouldShowMentionsInfo = () => {
|
|
9331
|
-
if (!(0,
|
|
9338
|
+
if (!(0, import_utils9.hasProInstalled)()) {
|
|
9332
9339
|
return true;
|
|
9333
9340
|
}
|
|
9334
9341
|
const proVersion = window.elementorPro?.config?.version;
|
|
9335
9342
|
if (!proVersion) {
|
|
9336
9343
|
return false;
|
|
9337
9344
|
}
|
|
9338
|
-
return (0,
|
|
9345
|
+
return (0, import_utils9.isVersionGreaterOrEqual)(proVersion, MIN_PRO_VERSION_FOR_MENTIONS);
|
|
9339
9346
|
};
|
|
9340
9347
|
|
|
9341
9348
|
// src/controls/email-form-action-control/email-chips-field.tsx
|