@elementor/editor-editing-panel 3.35.0-382 → 3.35.0-383

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
@@ -4937,8 +4937,13 @@ var import_editor_ui8 = require("@elementor/editor-ui");
4937
4937
  var import_icons22 = require("@elementor/icons");
4938
4938
  var import_ui40 = require("@elementor/ui");
4939
4939
  var import_i18n58 = require("@wordpress/i18n");
4940
+ function getCustomCssPromotion() {
4941
+ const extendedWindow = window;
4942
+ return extendedWindow.elementor?.config?.v4Promotions?.customCss;
4943
+ }
4940
4944
  var CustomCssSection = () => {
4941
- const [showInfoTip, sethSowInfoTip] = (0, import_react38.useState)(false);
4945
+ const [showInfoTip, setShowInfoTip] = (0, import_react38.useState)(false);
4946
+ const promotion = getCustomCssPromotion();
4942
4947
  return /* @__PURE__ */ React86.createElement(
4943
4948
  StyleTabSection,
4944
4949
  {
@@ -4948,15 +4953,12 @@ var CustomCssSection = () => {
4948
4953
  action: /* @__PURE__ */ React86.createElement(
4949
4954
  import_editor_ui8.PromotionInfotip,
4950
4955
  {
4951
- title: (0, import_i18n58.__)("Custom CSS", "elementor"),
4952
- content: (0, import_i18n58.__)(
4953
- "Add custom CSS to refine and enrich the appearance of any element on your site.",
4954
- "elementor"
4955
- ),
4956
- assetUrl: "https://assets.elementor.com/packages/v1/images/custom-css-promotion.png",
4957
- ctaUrl: "https://go.elementor.com/go-pro-style-custom-css/",
4956
+ title: promotion?.title ?? "",
4957
+ content: promotion?.content ?? "",
4958
+ assetUrl: promotion?.image ?? "",
4959
+ ctaUrl: promotion?.ctaUrl ?? "",
4958
4960
  open: showInfoTip,
4959
- setOpen: sethSowInfoTip
4961
+ setOpen: setShowInfoTip
4960
4962
  },
4961
4963
  /* @__PURE__ */ React86.createElement(
4962
4964
  import_ui40.Chip,
@@ -4971,7 +4973,7 @@ var CustomCssSection = () => {
4971
4973
  display: "none"
4972
4974
  }
4973
4975
  },
4974
- onClick: () => sethSowInfoTip(true)
4976
+ onClick: () => setShowInfoTip(true)
4975
4977
  }
4976
4978
  )
4977
4979
  )