@elementor/editor-controls 4.1.0-723 → 4.1.0-725
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
CHANGED
|
@@ -5789,6 +5789,7 @@ var import_react50 = require("react");
|
|
|
5789
5789
|
var import_editor_props50 = require("@elementor/editor-props");
|
|
5790
5790
|
var import_icons33 = require("@elementor/icons");
|
|
5791
5791
|
var import_ui84 = require("@elementor/ui");
|
|
5792
|
+
var import_utils7 = require("@elementor/utils");
|
|
5792
5793
|
var import_i18n50 = require("@wordpress/i18n");
|
|
5793
5794
|
|
|
5794
5795
|
// src/controls/selection-size-control.tsx
|
|
@@ -5842,9 +5843,9 @@ var MIN_PRO_VERSION = "3.35";
|
|
|
5842
5843
|
var getIsSiteRtl = () => {
|
|
5843
5844
|
return !!window.elementorFrontend?.config?.is_rtl;
|
|
5844
5845
|
};
|
|
5845
|
-
var
|
|
5846
|
+
var shouldShowAllTransitionProperties = () => {
|
|
5846
5847
|
if (!(0, import_utils6.hasProInstalled)()) {
|
|
5847
|
-
return
|
|
5848
|
+
return true;
|
|
5848
5849
|
}
|
|
5849
5850
|
const proVersion = window.elementorPro?.config?.version;
|
|
5850
5851
|
if (!proVersion) {
|
|
@@ -5981,7 +5982,7 @@ var createTransitionPropertiesList = () => {
|
|
|
5981
5982
|
]
|
|
5982
5983
|
}
|
|
5983
5984
|
];
|
|
5984
|
-
return
|
|
5985
|
+
return shouldShowAllTransitionProperties() ? baseProperties : [baseProperties[0]];
|
|
5985
5986
|
};
|
|
5986
5987
|
var transitionProperties = createTransitionPropertiesList();
|
|
5987
5988
|
var transitionsItemsList = transitionProperties.map((category) => ({
|
|
@@ -6330,6 +6331,7 @@ var TransitionRepeaterControl = createControl(
|
|
|
6330
6331
|
}) => {
|
|
6331
6332
|
const currentStyleIsNormal = currentStyleState === null;
|
|
6332
6333
|
const [recentlyUsedList, setRecentlyUsedList] = (0, import_react50.useState)([]);
|
|
6334
|
+
const proInstalled = (0, import_utils7.hasProInstalled)();
|
|
6333
6335
|
const { value, setValue } = useBoundProp(childArrayPropTypeUtil);
|
|
6334
6336
|
const { allDisabled: disabledItems, proDisabled: proDisabledItems } = (0, import_react50.useMemo)(
|
|
6335
6337
|
() => getDisabledItemLabels(value),
|
|
@@ -6338,10 +6340,14 @@ var TransitionRepeaterControl = createControl(
|
|
|
6338
6340
|
const allowedTransitionSet = (0, import_react50.useMemo)(() => {
|
|
6339
6341
|
const set = /* @__PURE__ */ new Set();
|
|
6340
6342
|
transitionProperties.forEach((category) => {
|
|
6341
|
-
category.properties.forEach((prop) =>
|
|
6343
|
+
category.properties.forEach((prop) => {
|
|
6344
|
+
if (!prop.isDisabled || proInstalled) {
|
|
6345
|
+
set.add(prop.value);
|
|
6346
|
+
}
|
|
6347
|
+
});
|
|
6342
6348
|
});
|
|
6343
6349
|
return set;
|
|
6344
|
-
}, []);
|
|
6350
|
+
}, [proInstalled]);
|
|
6345
6351
|
(0, import_react50.useEffect)(() => {
|
|
6346
6352
|
if (!value || value.length === 0) {
|
|
6347
6353
|
return;
|
|
@@ -6466,7 +6472,7 @@ var React101 = __toESM(require("react"));
|
|
|
6466
6472
|
var import_react53 = require("react");
|
|
6467
6473
|
var import_editor_props53 = require("@elementor/editor-props");
|
|
6468
6474
|
var import_ui87 = require("@elementor/ui");
|
|
6469
|
-
var
|
|
6475
|
+
var import_utils8 = require("@elementor/utils");
|
|
6470
6476
|
|
|
6471
6477
|
// src/components/inline-editor.tsx
|
|
6472
6478
|
var React100 = __toESM(require("react"));
|
|
@@ -6649,7 +6655,7 @@ var InlineEditingControl = createControl(
|
|
|
6649
6655
|
const { value, setValue } = useBoundProp(import_editor_props53.htmlV3PropTypeUtil);
|
|
6650
6656
|
const content = import_editor_props53.stringPropTypeUtil.extract(value?.content ?? null) ?? "";
|
|
6651
6657
|
const debouncedParse = (0, import_react53.useMemo)(
|
|
6652
|
-
() => (0,
|
|
6658
|
+
() => (0, import_utils8.debounce)((html) => {
|
|
6653
6659
|
const parsed = (0, import_editor_props53.parseHtmlChildren)(html);
|
|
6654
6660
|
setValue({
|
|
6655
6661
|
content: parsed.content ? import_editor_props53.stringPropTypeUtil.create(parsed.content) : null,
|