@elementor/editor-ui 4.0.0-680 → 4.0.0-681

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.d.mts CHANGED
@@ -142,8 +142,9 @@ declare const PromotionChip: React$1.ForwardRefExoticComponent<React$1.RefAttrib
142
142
  type PromotionAlertProps = {
143
143
  message: string;
144
144
  upgradeUrl: string;
145
+ onCtaClick?: () => void;
145
146
  };
146
- declare const PromotionAlert: ({ message, upgradeUrl }: PromotionAlertProps) => React$1.JSX.Element;
147
+ declare const PromotionAlert: ({ message, upgradeUrl, onCtaClick }: PromotionAlertProps) => React$1.JSX.Element;
147
148
 
148
149
  declare function FloatingActionsBar({ actions, children }: PropsWithChildren<{
149
150
  actions: ReactElement[];
package/dist/index.d.ts CHANGED
@@ -142,8 +142,9 @@ declare const PromotionChip: React$1.ForwardRefExoticComponent<React$1.RefAttrib
142
142
  type PromotionAlertProps = {
143
143
  message: string;
144
144
  upgradeUrl: string;
145
+ onCtaClick?: () => void;
145
146
  };
146
- declare const PromotionAlert: ({ message, upgradeUrl }: PromotionAlertProps) => React$1.JSX.Element;
147
+ declare const PromotionAlert: ({ message, upgradeUrl, onCtaClick }: PromotionAlertProps) => React$1.JSX.Element;
147
148
 
148
149
  declare function FloatingActionsBar({ actions, children }: PropsWithChildren<{
149
150
  actions: ReactElement[];
package/dist/index.js CHANGED
@@ -714,7 +714,7 @@ var React17 = __toESM(require("react"));
714
714
  var import_icons7 = require("@elementor/icons");
715
715
  var import_ui17 = require("@elementor/ui");
716
716
  var import_i18n5 = require("@wordpress/i18n");
717
- var PromotionAlert = ({ message, upgradeUrl }) => /* @__PURE__ */ React17.createElement(
717
+ var PromotionAlert = ({ message, upgradeUrl, onCtaClick }) => /* @__PURE__ */ React17.createElement(
718
718
  import_ui17.Alert,
719
719
  {
720
720
  variant: "standard",
@@ -735,7 +735,8 @@ var PromotionAlert = ({ message, upgradeUrl }) => /* @__PURE__ */ React17.create
735
735
  target: "_blank",
736
736
  href: upgradeUrl,
737
737
  rel: "noopener noreferrer",
738
- startIcon: /* @__PURE__ */ React17.createElement(import_icons7.CrownFilledIcon, { fontSize: "tiny" })
738
+ startIcon: /* @__PURE__ */ React17.createElement(import_icons7.CrownFilledIcon, { fontSize: "tiny" }),
739
+ onClick: onCtaClick
739
740
  },
740
741
  (0, import_i18n5.__)("Upgrade now", "elementor")
741
742
  )
package/dist/index.mjs CHANGED
@@ -676,7 +676,7 @@ import * as React17 from "react";
676
676
  import { CrownFilledIcon as CrownFilledIcon4 } from "@elementor/icons";
677
677
  import { Alert as Alert4, Button as Button5 } from "@elementor/ui";
678
678
  import { __ as __5 } from "@wordpress/i18n";
679
- var PromotionAlert = ({ message, upgradeUrl }) => /* @__PURE__ */ React17.createElement(
679
+ var PromotionAlert = ({ message, upgradeUrl, onCtaClick }) => /* @__PURE__ */ React17.createElement(
680
680
  Alert4,
681
681
  {
682
682
  variant: "standard",
@@ -697,7 +697,8 @@ var PromotionAlert = ({ message, upgradeUrl }) => /* @__PURE__ */ React17.create
697
697
  target: "_blank",
698
698
  href: upgradeUrl,
699
699
  rel: "noopener noreferrer",
700
- startIcon: /* @__PURE__ */ React17.createElement(CrownFilledIcon4, { fontSize: "tiny" })
700
+ startIcon: /* @__PURE__ */ React17.createElement(CrownFilledIcon4, { fontSize: "tiny" }),
701
+ onClick: onCtaClick
701
702
  },
702
703
  __5("Upgrade now", "elementor")
703
704
  )
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@elementor/editor-ui",
3
3
  "description": "Elementor Editor UI",
4
- "version": "4.0.0-680",
4
+ "version": "4.0.0-681",
5
5
  "private": false,
6
6
  "author": "Elementor Team",
7
7
  "homepage": "https://elementor.com/",
@@ -37,7 +37,7 @@
37
37
  "react-dom": "^18.3.1"
38
38
  },
39
39
  "dependencies": {
40
- "@elementor/editor-v1-adapters": "4.0.0-680",
40
+ "@elementor/editor-v1-adapters": "4.0.0-681",
41
41
  "@elementor/icons": "^1.68.0",
42
42
  "@elementor/ui": "1.36.17",
43
43
  "@tanstack/react-virtual": "^3.13.3",
@@ -6,9 +6,10 @@ import { __ } from '@wordpress/i18n';
6
6
  type PromotionAlertProps = {
7
7
  message: string;
8
8
  upgradeUrl: string;
9
+ onCtaClick?: () => void;
9
10
  };
10
11
 
11
- export const PromotionAlert = ( { message, upgradeUrl }: PromotionAlertProps ) => (
12
+ export const PromotionAlert = ( { message, upgradeUrl, onCtaClick }: PromotionAlertProps ) => (
12
13
  <Alert
13
14
  variant="standard"
14
15
  color="promotion"
@@ -27,6 +28,7 @@ export const PromotionAlert = ( { message, upgradeUrl }: PromotionAlertProps ) =
27
28
  href={ upgradeUrl }
28
29
  rel="noopener noreferrer"
29
30
  startIcon={ <CrownFilledIcon fontSize="tiny" /> }
31
+ onClick={ onCtaClick }
30
32
  >
31
33
  { __( 'Upgrade now', 'elementor' ) }
32
34
  </Button>