← All changes
|
assets/js/packages/editor-widget-creation/editor-widget-creation.js
+7
-4
4.3.0-beta1
→
trunk
View file →
| @@ -64,9 +64,9 @@ | ||
| 64 | 64 | |
| 65 | 65 | //#endregion |
| 66 | 66 | //#region packages/packages/core/editor-widget-creation/src/components/create-widget.tsx |
| 67 | 67 | var CREATE_WIDGET_EVENT = "elementor/editor/create-widget"; |
| 68 | - var ANGIE_MODAL_PROMOTION_IMAGE_URL = "https://assets.elementor.com/packages/v1/images/angie-modal-promotion.png"; | |
| 68 | + var ANGIE_MODAL_PROMOTION_IMAGE_URL = "https://assets.elementor.com/packages/v1/images/angie-top-bar-promotion-modal-0926.png"; | |
| 69 | 69 | var ANGIE_CTA_CLICKED_EVENT = "ai_widget_cta_clicked"; |
| 70 | 70 | var ANGIE_INSTALL_STARTED_EVENT = "angie_install_started"; |
| 71 | 71 | var ANGIE_INSTALL_COMPLETED_EVENT = "angie_install_completed"; |
| 72 | 72 | var ANGIE_INSTALL_ABANDONED_EVENT = "angie_install_abandoned"; |
| @@ -143,9 +143,12 @@ | ||
| 143 | 143 | }, /* @__PURE__ */ react.createElement(_elementor_ui.Typography, { |
| 144 | 144 | variant: "h4", |
| 145 | 145 | fontWeight: 600, |
| 146 | 146 | color: "text.secondary" |
| 147 | - }, installState === "error" ? (0, _wordpress_i18n.__)("Installation failed", "elementor") : (0, _wordpress_i18n.__)("Create custom widgets with Angie", "elementor")), /* @__PURE__ */ react.createElement(_elementor_ui.Typography, { variant: "body2" }, installState === "error" ? (0, _wordpress_i18n.__)("We couldn't install Angie automatically. Click below to install it manually.", "elementor") : (0, _wordpress_i18n.__)("Build custom widgets, sections, and code using simple instructions. Install once to start building directly from the editor.", "elementor")), installState !== "error" && /* @__PURE__ */ react.createElement(_elementor_ui.FormControlLabel, { | |
| 147 | + }, installState === "error" ? (0, _wordpress_i18n.__)("Installation failed", "elementor") : /* @__PURE__ */ react.createElement(react.Fragment, null, (0, _wordpress_i18n.__)("Pages, layouts,", "elementor"), /* @__PURE__ */ react.createElement("br", null), (0, _wordpress_i18n.__)("widgets and more", "elementor"))), /* @__PURE__ */ react.createElement(_elementor_ui.Typography, { | |
| 148 | + variant: "body2", | |
| 149 | + fontWeight: 500 | |
| 150 | + }, installState === "error" ? (0, _wordpress_i18n.__)("We couldn't install Angie automatically. Click below to install it manually.", "elementor") : (0, _wordpress_i18n.__)("Ask Angie to build you full pages, custom widgets, snippets, and code directly in Elementor. Install and activate Angie once on this site to start building.", "elementor")), installState !== "error" && /* @__PURE__ */ react.createElement(_elementor_ui.FormControlLabel, { | |
| 148 | 151 | control: /* @__PURE__ */ react.createElement(_elementor_ui.Checkbox, { |
| 149 | 152 | size: "small", |
| 150 | 153 | checked: agreedToTerms, |
| 151 | 154 | onChange: (_e, checked) => setAgreedToTerms(checked) |
| @@ -152,9 +155,9 @@ | ||
| 152 | 155 | }), |
| 153 | 156 | label: /* @__PURE__ */ react.createElement(_elementor_ui.Typography, { |
| 154 | 157 | variant: "body2", |
| 155 | 158 | color: "text.secondary" |
| 156 | - }, interpolateLinks((0, _wordpress_i18n.sprintf)((0, _wordpress_i18n.__)("I agree to the %1$s & %2$s.", "elementor"), "{{terms}}", "{{privacy}}"), { | |
| 159 | + }, interpolateLinks((0, _wordpress_i18n.sprintf)((0, _wordpress_i18n.__)("By installing, you agree to our %1$s & %2$s.", "elementor"), "{{terms}}", "{{privacy}}"), { | |
| 157 | 160 | terms: { |
| 158 | 161 | label: (0, _wordpress_i18n.__)("Terms", "elementor"), |
| 159 | 162 | href: "https://elementor.com/terms/angie-terms-conditions/" |
| 160 | 163 | }, |
| @@ -178,9 +181,9 @@ | ||
| 178 | 181 | startIcon: installState === "installing" ? /* @__PURE__ */ react.createElement(_elementor_ui.CircularProgress, { |
| 179 | 182 | size: 18, |
| 180 | 183 | color: "inherit" |
| 181 | 184 | }) : void 0 |
| 182 | - }, installState === "installing" ? (0, _wordpress_i18n.__)("Installing…", "elementor") : (0, _wordpress_i18n.__)("Install & Activate", "elementor")))))))); | |
| 185 | + }, installState === "installing" ? (0, _wordpress_i18n.__)("Installing…", "elementor") : (0, _wordpress_i18n.__)("Install and activate", "elementor")))))))); | |
| 183 | 186 | } |
| 184 | 187 | function CreateWidget() { |
| 185 | 188 | const [modalData, setModalData] = (0, react.useState)(null); |
| 186 | 189 | (0, react.useEffect)(() => { |