@elementor/editor-editing-panel 4.3.0-1019 → 4.3.0-1020
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 +10 -12
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -4
- package/dist/index.mjs.map +1 -1
- package/package.json +24 -24
- package/src/components/editing-panel-tabs.tsx +4 -10
package/dist/index.js
CHANGED
|
@@ -1985,7 +1985,6 @@ var EditingPanelStickyPromotion = () => {
|
|
|
1985
1985
|
var import_react37 = require("react");
|
|
1986
1986
|
var React90 = __toESM(require("react"));
|
|
1987
1987
|
var import_editor_elements13 = require("@elementor/editor-elements");
|
|
1988
|
-
var import_editor_v1_adapters7 = require("@elementor/editor-v1-adapters");
|
|
1989
1988
|
var import_ui44 = require("@elementor/ui");
|
|
1990
1989
|
var import_i18n63 = require("@wordpress/i18n");
|
|
1991
1990
|
|
|
@@ -5587,7 +5586,6 @@ var PanelTabContent = () => {
|
|
|
5587
5586
|
const { element } = useElement();
|
|
5588
5587
|
const editorDefaults = useDefaultPanelSettings();
|
|
5589
5588
|
const defaultComponentTab = editorDefaults.defaultTab;
|
|
5590
|
-
const isInteractionsActive = (0, import_editor_v1_adapters7.isExperimentActive)("e_interactions");
|
|
5591
5589
|
const isPromotedElement = !!(0, import_editor_elements13.getWidgetsCache)()?.[element.type]?.meta?.is_pro_promotion;
|
|
5592
5590
|
const [storedTab, setCurrentTab] = useStateByElement("tab", defaultComponentTab);
|
|
5593
5591
|
const currentTab = isPromotedElement && storedTab === "settings" ? "style" : storedTab;
|
|
@@ -5606,8 +5604,8 @@ var PanelTabContent = () => {
|
|
|
5606
5604
|
},
|
|
5607
5605
|
!isPromotedElement && /* @__PURE__ */ React90.createElement(import_ui44.Tab, { label: (0, import_i18n63.__)("General", "elementor"), ...getTabProps("settings") }),
|
|
5608
5606
|
/* @__PURE__ */ React90.createElement(import_ui44.Tab, { label: (0, import_i18n63.__)("Style", "elementor"), ...getTabProps("style") }),
|
|
5609
|
-
|
|
5610
|
-
), /* @__PURE__ */ React90.createElement(import_ui44.Divider, null)), !isPromotedElement && /* @__PURE__ */ React90.createElement(import_ui44.TabPanel, { ...getTabPanelProps("settings"), disablePadding: true }, /* @__PURE__ */ React90.createElement(SettingsTab, null)), /* @__PURE__ */ React90.createElement(import_ui44.TabPanel, { ...getTabPanelProps("style"), disablePadding: true }, /* @__PURE__ */ React90.createElement(StyleTab, null)),
|
|
5607
|
+
/* @__PURE__ */ React90.createElement(import_ui44.Tab, { label: (0, import_i18n63.__)("Interactions", "elementor"), ...getTabProps("interactions") })
|
|
5608
|
+
), /* @__PURE__ */ React90.createElement(import_ui44.Divider, null)), !isPromotedElement && /* @__PURE__ */ React90.createElement(import_ui44.TabPanel, { ...getTabPanelProps("settings"), disablePadding: true }, /* @__PURE__ */ React90.createElement(SettingsTab, null)), /* @__PURE__ */ React90.createElement(import_ui44.TabPanel, { ...getTabPanelProps("style"), disablePadding: true }, /* @__PURE__ */ React90.createElement(StyleTab, null)), /* @__PURE__ */ React90.createElement(import_ui44.TabPanel, { ...getTabPanelProps("interactions"), disablePadding: true }, /* @__PURE__ */ React90.createElement(InteractionsTab, null))));
|
|
5611
5609
|
};
|
|
5612
5610
|
|
|
5613
5611
|
// src/components/editing-panel.tsx
|
|
@@ -5632,11 +5630,11 @@ var EditingPanel = () => {
|
|
|
5632
5630
|
// src/init.ts
|
|
5633
5631
|
var import_editor = require("@elementor/editor");
|
|
5634
5632
|
var import_editor_panels3 = require("@elementor/editor-panels");
|
|
5635
|
-
var
|
|
5633
|
+
var import_editor_v1_adapters10 = require("@elementor/editor-v1-adapters");
|
|
5636
5634
|
|
|
5637
5635
|
// src/hooks/use-open-editor-panel.ts
|
|
5638
5636
|
var import_react38 = require("react");
|
|
5639
|
-
var
|
|
5637
|
+
var import_editor_v1_adapters7 = require("@elementor/editor-v1-adapters");
|
|
5640
5638
|
|
|
5641
5639
|
// src/panel.ts
|
|
5642
5640
|
var import_editor_panels2 = require("@elementor/editor-panels");
|
|
@@ -5660,7 +5658,7 @@ var isAtomicWidgetSelected = () => {
|
|
|
5660
5658
|
var useOpenEditorPanel = () => {
|
|
5661
5659
|
const { open } = usePanelActions();
|
|
5662
5660
|
(0, import_react38.useEffect)(() => {
|
|
5663
|
-
return (0,
|
|
5661
|
+
return (0, import_editor_v1_adapters7.__privateListenTo)((0, import_editor_v1_adapters7.commandStartEvent)("panel/editor/open"), () => {
|
|
5664
5662
|
if (isAtomicWidgetSelected()) {
|
|
5665
5663
|
open();
|
|
5666
5664
|
}
|
|
@@ -6109,7 +6107,7 @@ var import_react41 = require("react");
|
|
|
6109
6107
|
var import_editor_controls60 = require("@elementor/editor-controls");
|
|
6110
6108
|
|
|
6111
6109
|
// src/dynamics/sync/get-atomic-dynamic-tags.ts
|
|
6112
|
-
var
|
|
6110
|
+
var import_editor_v1_adapters8 = require("@elementor/editor-v1-adapters");
|
|
6113
6111
|
|
|
6114
6112
|
// src/hooks/use-license-config.ts
|
|
6115
6113
|
var import_react40 = require("react");
|
|
@@ -6132,7 +6130,7 @@ function useLicenseConfig() {
|
|
|
6132
6130
|
|
|
6133
6131
|
// src/dynamics/sync/get-atomic-dynamic-tags.ts
|
|
6134
6132
|
var getAtomicDynamicTags = (shouldFilterByLicense = true) => {
|
|
6135
|
-
const { atomicDynamicTags } = (0,
|
|
6133
|
+
const { atomicDynamicTags } = (0, import_editor_v1_adapters8.getElementorConfig)();
|
|
6136
6134
|
if (!atomicDynamicTags) {
|
|
6137
6135
|
return null;
|
|
6138
6136
|
}
|
|
@@ -6155,7 +6153,7 @@ var filterByLicense = (tags) => {
|
|
|
6155
6153
|
|
|
6156
6154
|
// src/dynamics/utils.ts
|
|
6157
6155
|
var import_editor_props19 = require("@elementor/editor-props");
|
|
6158
|
-
var
|
|
6156
|
+
var import_editor_v1_adapters9 = require("@elementor/editor-v1-adapters");
|
|
6159
6157
|
var import_schema = require("@elementor/schema");
|
|
6160
6158
|
var DYNAMIC_PROP_TYPE_KEY = "dynamic";
|
|
6161
6159
|
var dynamicPropTypeUtil = (0, import_editor_props19.createPropUtils)(
|
|
@@ -6167,7 +6165,7 @@ var dynamicPropTypeUtil = (0, import_editor_props19.createPropUtils)(
|
|
|
6167
6165
|
})
|
|
6168
6166
|
);
|
|
6169
6167
|
var isDynamicTagSupported = (tagName) => {
|
|
6170
|
-
return !!(0,
|
|
6168
|
+
return !!(0, import_editor_v1_adapters9.getElementorConfig)()?.atomicDynamicTags?.tags?.[tagName];
|
|
6171
6169
|
};
|
|
6172
6170
|
var isDynamicPropType = (prop) => prop.key === DYNAMIC_PROP_TYPE_KEY;
|
|
6173
6171
|
var getDynamicPropType = (propType) => {
|
|
@@ -7498,7 +7496,7 @@ function init4() {
|
|
|
7498
7496
|
init();
|
|
7499
7497
|
}
|
|
7500
7498
|
var blockV1Panel = () => {
|
|
7501
|
-
(0,
|
|
7499
|
+
(0, import_editor_v1_adapters10.blockCommand)({
|
|
7502
7500
|
command: "panel/editor/open",
|
|
7503
7501
|
condition: isAtomicWidgetSelected
|
|
7504
7502
|
});
|