@elementor/editor-editing-panel 4.0.0-675 → 4.0.0-677
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
|
@@ -4806,6 +4806,7 @@ var React82 = __toESM(require("react"));
|
|
|
4806
4806
|
var import_react35 = require("react");
|
|
4807
4807
|
var import_editor_controls50 = require("@elementor/editor-controls");
|
|
4808
4808
|
var import_i18n56 = require("@wordpress/i18n");
|
|
4809
|
+
var TRACKING_DATA = { target_name: "custom_css", location_l2: "style" };
|
|
4809
4810
|
var CustomCssSection = () => {
|
|
4810
4811
|
const triggerRef = (0, import_react35.useRef)(null);
|
|
4811
4812
|
return /* @__PURE__ */ React82.createElement(
|
|
@@ -4815,7 +4816,7 @@ var CustomCssSection = () => {
|
|
|
4815
4816
|
name: "Custom CSS",
|
|
4816
4817
|
title: (0, import_i18n56.__)("Custom CSS", "elementor"),
|
|
4817
4818
|
action: {
|
|
4818
|
-
component: /* @__PURE__ */ React82.createElement(import_editor_controls50.PromotionTrigger, { ref: triggerRef, promotionKey: "customCss" }),
|
|
4819
|
+
component: /* @__PURE__ */ React82.createElement(import_editor_controls50.PromotionTrigger, { ref: triggerRef, promotionKey: "customCss", trackingData: TRACKING_DATA }),
|
|
4819
4820
|
onClick: () => triggerRef.current?.toggle()
|
|
4820
4821
|
}
|
|
4821
4822
|
}
|
|
@@ -5475,8 +5476,8 @@ var DynamicControl = ({ bind, children }) => {
|
|
|
5475
5476
|
};
|
|
5476
5477
|
|
|
5477
5478
|
// src/dynamics/components/dynamic-selection.tsx
|
|
5478
|
-
var import_react39 = require("react");
|
|
5479
5479
|
var React87 = __toESM(require("react"));
|
|
5480
|
+
var import_react39 = require("react");
|
|
5480
5481
|
var import_editor_controls57 = require("@elementor/editor-controls");
|
|
5481
5482
|
var import_editor_ui8 = require("@elementor/editor-ui");
|
|
5482
5483
|
var import_icons24 = require("@elementor/icons");
|
|
@@ -5496,6 +5497,13 @@ var DynamicSelection = ({ close: closePopover, expired = false }) => {
|
|
|
5496
5497
|
const isCurrentValueDynamic = !!dynamicValue;
|
|
5497
5498
|
const options12 = useFilteredOptions(searchValue);
|
|
5498
5499
|
const hasNoDynamicTags = !options12.length && !searchValue.trim();
|
|
5500
|
+
(0, import_react39.useEffect)(() => {
|
|
5501
|
+
if (hasNoDynamicTags) {
|
|
5502
|
+
(0, import_editor_controls57.trackViewPromotion)({ target_name: "dynamic_tags", location_l1: "style" });
|
|
5503
|
+
} else if (expired) {
|
|
5504
|
+
(0, import_editor_controls57.trackViewPromotion)({ target_name: "dynamic_tags" });
|
|
5505
|
+
}
|
|
5506
|
+
}, [hasNoDynamicTags, expired]);
|
|
5499
5507
|
const handleSearch = (value) => {
|
|
5500
5508
|
setSearchValue(value);
|
|
5501
5509
|
};
|
|
@@ -5583,7 +5591,14 @@ var NoDynamicTags = () => /* @__PURE__ */ React87.createElement(React87.Fragment
|
|
|
5583
5591
|
/* @__PURE__ */ React87.createElement(import_icons24.DatabaseIcon, { fontSize: "large" }),
|
|
5584
5592
|
/* @__PURE__ */ React87.createElement(import_ui38.Typography, { align: "center", variant: "subtitle2" }, (0, import_i18n59.__)("Streamline your workflow with dynamic tags", "elementor")),
|
|
5585
5593
|
/* @__PURE__ */ React87.createElement(import_ui38.Typography, { align: "center", variant: "caption", width: PROMO_TEXT_WIDTH }, (0, import_i18n59.__)("Upgrade now to display your content dynamically.", "elementor")),
|
|
5586
|
-
/* @__PURE__ */ React87.createElement(
|
|
5594
|
+
/* @__PURE__ */ React87.createElement(
|
|
5595
|
+
import_editor_ui8.CtaButton,
|
|
5596
|
+
{
|
|
5597
|
+
size: "small",
|
|
5598
|
+
href: PRO_DYNAMIC_TAGS_URL,
|
|
5599
|
+
onClick: () => (0, import_editor_controls57.trackUpgradePromotionClick)({ target_name: "dynamic_tags", location_l1: "style" })
|
|
5600
|
+
}
|
|
5601
|
+
)
|
|
5587
5602
|
));
|
|
5588
5603
|
var ExpiredDynamicTags = () => /* @__PURE__ */ React87.createElement(React87.Fragment, null, /* @__PURE__ */ React87.createElement(import_ui38.Divider, null), /* @__PURE__ */ React87.createElement(
|
|
5589
5604
|
import_ui38.Stack,
|
|
@@ -5599,7 +5614,15 @@ var ExpiredDynamicTags = () => /* @__PURE__ */ React87.createElement(React87.Fra
|
|
|
5599
5614
|
/* @__PURE__ */ React87.createElement(import_icons24.DatabaseIcon, { fontSize: "large" }),
|
|
5600
5615
|
/* @__PURE__ */ React87.createElement(import_ui38.Typography, { align: "center", variant: "subtitle2" }, (0, import_i18n59.__)("Unlock your Dynamic tags again", "elementor")),
|
|
5601
5616
|
/* @__PURE__ */ React87.createElement(import_ui38.Typography, { align: "center", variant: "caption", width: PROMO_TEXT_WIDTH }, (0, import_i18n59.__)("Dynamic tags need Elementor Pro. Renew now to keep them active.", "elementor")),
|
|
5602
|
-
/* @__PURE__ */ React87.createElement(
|
|
5617
|
+
/* @__PURE__ */ React87.createElement(
|
|
5618
|
+
import_editor_ui8.CtaButton,
|
|
5619
|
+
{
|
|
5620
|
+
size: "small",
|
|
5621
|
+
href: RENEW_DYNAMIC_TAGS_URL,
|
|
5622
|
+
onClick: () => (0, import_editor_controls57.trackUpgradePromotionClick)({ target_name: "dynamic_tags" }),
|
|
5623
|
+
children: (0, import_i18n59.__)("Renew Now", "elementor")
|
|
5624
|
+
}
|
|
5625
|
+
)
|
|
5603
5626
|
));
|
|
5604
5627
|
var useFilteredOptions = (searchValue) => {
|
|
5605
5628
|
const dynamicTags = usePropDynamicTags();
|