@elementor/editor-editing-panel 4.2.0-880 → 4.2.0-882
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 +33 -40
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +11 -18
- package/dist/index.mjs.map +1 -1
- package/package.json +24 -24
- package/src/components/css-classes/css-class-selector.tsx +5 -14
package/dist/index.mjs
CHANGED
|
@@ -158,7 +158,6 @@ import {
|
|
|
158
158
|
validateStyleLabel as validateStyleLabel2
|
|
159
159
|
} from "@elementor/editor-styles-repository";
|
|
160
160
|
import { InfoAlert, WarningInfotip } from "@elementor/editor-ui";
|
|
161
|
-
import { isExperimentActive } from "@elementor/editor-v1-adapters";
|
|
162
161
|
import { ColorSwatchIcon, MapPinIcon } from "@elementor/icons";
|
|
163
162
|
import { createLocation as createLocation2 } from "@elementor/locations";
|
|
164
163
|
import {
|
|
@@ -1248,18 +1247,12 @@ var validateLabel = (newLabel) => {
|
|
|
1248
1247
|
// src/components/css-classes/css-class-selector.tsx
|
|
1249
1248
|
var ID = "elementor-css-class-selector";
|
|
1250
1249
|
var TAGS_LIMIT = 50;
|
|
1251
|
-
var EVENT_OPEN_GLOBAL_CLASSES_MANAGER = "elementor/open-global-classes-manager";
|
|
1252
|
-
var EVENT_TOGGLE_DESIGN_SYSTEM = "elementor/toggle-design-system";
|
|
1253
1250
|
function openClassManagerPanel() {
|
|
1254
|
-
|
|
1255
|
-
|
|
1256
|
-
|
|
1257
|
-
|
|
1258
|
-
|
|
1259
|
-
);
|
|
1260
|
-
return;
|
|
1261
|
-
}
|
|
1262
|
-
window.dispatchEvent(new CustomEvent(EVENT_OPEN_GLOBAL_CLASSES_MANAGER));
|
|
1251
|
+
window.dispatchEvent(
|
|
1252
|
+
new CustomEvent("elementor/toggle-design-system", {
|
|
1253
|
+
detail: { tab: "classes" }
|
|
1254
|
+
})
|
|
1255
|
+
);
|
|
1263
1256
|
}
|
|
1264
1257
|
var EMPTY_OPTION = {
|
|
1265
1258
|
label: __6("local", "elementor"),
|
|
@@ -1889,7 +1882,7 @@ function EditorPanelErrorFallback() {
|
|
|
1889
1882
|
import { Fragment as Fragment9 } from "react";
|
|
1890
1883
|
import * as React86 from "react";
|
|
1891
1884
|
import { getWidgetsCache as getWidgetsCache2 } from "@elementor/editor-elements";
|
|
1892
|
-
import { isExperimentActive as
|
|
1885
|
+
import { isExperimentActive as isExperimentActive3 } from "@elementor/editor-v1-adapters";
|
|
1893
1886
|
import { Divider as Divider6, Stack as Stack13, Tab, TabPanel, Tabs, useTabs } from "@elementor/ui";
|
|
1894
1887
|
import { __ as __60 } from "@wordpress/i18n";
|
|
1895
1888
|
|
|
@@ -3491,7 +3484,7 @@ var EffectsSection = () => {
|
|
|
3491
3484
|
import * as React55 from "react";
|
|
3492
3485
|
import { ControlFormLabel as ControlFormLabel2 } from "@elementor/editor-controls";
|
|
3493
3486
|
import { useParentElement } from "@elementor/editor-elements";
|
|
3494
|
-
import { isExperimentActive as
|
|
3487
|
+
import { isExperimentActive as isExperimentActive2 } from "@elementor/editor-v1-adapters";
|
|
3495
3488
|
import { __ as __33 } from "@wordpress/i18n";
|
|
3496
3489
|
|
|
3497
3490
|
// src/hooks/use-computed-style.ts
|
|
@@ -3814,7 +3807,7 @@ var getOptions2 = (parentStyleDirection) => {
|
|
|
3814
3807
|
import * as React44 from "react";
|
|
3815
3808
|
import { useMemo as useMemo9 } from "react";
|
|
3816
3809
|
import { ToggleControl as ToggleControl6 } from "@elementor/editor-controls";
|
|
3817
|
-
import { isExperimentActive
|
|
3810
|
+
import { isExperimentActive } from "@elementor/editor-v1-adapters";
|
|
3818
3811
|
import { __ as __22 } from "@wordpress/i18n";
|
|
3819
3812
|
var DISPLAY_LABEL = __22("Display", "elementor");
|
|
3820
3813
|
var displayFieldItems = [
|
|
@@ -3857,7 +3850,7 @@ var displayFieldItems = [
|
|
|
3857
3850
|
];
|
|
3858
3851
|
var DisplayField = () => {
|
|
3859
3852
|
const placeholder = useDisplayPlaceholderValue();
|
|
3860
|
-
const isGridActive =
|
|
3853
|
+
const isGridActive = isExperimentActive("e_css_grid");
|
|
3861
3854
|
const items3 = useMemo9(
|
|
3862
3855
|
() => isGridActive ? displayFieldItems : displayFieldItems.filter((item) => item.value !== "grid"),
|
|
3863
3856
|
[isGridActive]
|
|
@@ -4550,7 +4543,7 @@ var LayoutSection = () => {
|
|
|
4550
4543
|
history: { propDisplayName: DISPLAY_LABEL2 }
|
|
4551
4544
|
});
|
|
4552
4545
|
const displayPlaceholder = useDisplayPlaceholderValue();
|
|
4553
|
-
const isGridExperimentActive =
|
|
4546
|
+
const isGridExperimentActive = isExperimentActive2("e_css_grid");
|
|
4554
4547
|
const isDisplayFlex = shouldDisplayFlexFields(display, displayPlaceholder);
|
|
4555
4548
|
const isDisplayGrid = "grid" === (display?.value ?? displayPlaceholder?.value);
|
|
4556
4549
|
const { element } = useElement();
|
|
@@ -5542,7 +5535,7 @@ var PanelTabContent = () => {
|
|
|
5542
5535
|
const { element } = useElement();
|
|
5543
5536
|
const editorDefaults = useDefaultPanelSettings();
|
|
5544
5537
|
const defaultComponentTab = editorDefaults.defaultTab;
|
|
5545
|
-
const isInteractionsActive =
|
|
5538
|
+
const isInteractionsActive = isExperimentActive3("e_interactions");
|
|
5546
5539
|
const isPromotedElement = !!getWidgetsCache2()?.[element.type]?.meta?.is_pro_promotion;
|
|
5547
5540
|
const [storedTab, setCurrentTab] = useStateByElement("tab", defaultComponentTab);
|
|
5548
5541
|
const currentTab = isPromotedElement && storedTab === "settings" ? "style" : storedTab;
|