@elementor/editor-app-bar 4.4.0-1079 → 4.4.0-1081
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 +33 -7
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +38 -12
- package/dist/index.mjs.map +1 -1
- package/package.json +12 -12
- package/src/extensions/angie/angie-consts.ts +5 -2
- package/src/extensions/angie/components/angie-guide-card.tsx +32 -11
package/dist/index.mjs
CHANGED
|
@@ -192,7 +192,7 @@ import { injectIntoTop as injectIntoTop2 } from "@elementor/editor";
|
|
|
192
192
|
import * as React23 from "react";
|
|
193
193
|
import { useRef } from "react";
|
|
194
194
|
import { __useActiveDocument as useActiveDocument } from "@elementor/editor-documents";
|
|
195
|
-
import { AppBar as BaseAppBar, Box as
|
|
195
|
+
import { AppBar as BaseAppBar, Box as Box4, Divider as Divider2, Grid, ThemeProvider as ThemeProvider3, Toolbar } from "@elementor/ui";
|
|
196
196
|
|
|
197
197
|
// src/constants.ts
|
|
198
198
|
var MIN_APP_BAR_WIDTH = 800;
|
|
@@ -406,23 +406,49 @@ var ANGIE_DESCRIPTION = __2(
|
|
|
406
406
|
"elementor"
|
|
407
407
|
);
|
|
408
408
|
var AI_WIDGET_CTA_VIEWED_EVENT = "ai_widget_cta_viewed";
|
|
409
|
-
var ANGIE_TOP_BAR_PROMOTION_IMAGE_URL = "https://assets.elementor.com/packages/v1/images/angie-top-bar-promotion.svg";
|
|
410
|
-
var ANGIE_TOP_BAR_DESCRIPTION = __2(
|
|
409
|
+
var ANGIE_TOP_BAR_PROMOTION_IMAGE_URL = "https://assets.elementor.com/packages/v1/images/angie-top-bar-promotion-0926.svg";
|
|
410
|
+
var ANGIE_TOP_BAR_DESCRIPTION = __2(
|
|
411
|
+
"Describe what you want to build in plain language and Angie generates it in native Elementor structure, fully editable and customizable.",
|
|
412
|
+
"elementor"
|
|
413
|
+
);
|
|
411
414
|
|
|
412
415
|
// src/extensions/angie/components/angie-guide-card.tsx
|
|
413
416
|
import * as React15 from "react";
|
|
414
|
-
import {
|
|
417
|
+
import { Box as Box3, Button, ClickAwayListener, CloseButton, Image, Stack as Stack2, Typography } from "@elementor/ui";
|
|
415
418
|
import { __ as __3 } from "@wordpress/i18n";
|
|
416
419
|
function AngieGuideCard({ imageUrl, description, learnMoreUrl, onInstall, onClose }) {
|
|
417
|
-
return /* @__PURE__ */ React15.createElement(ClickAwayListener, { onClickAway: onClose }, /* @__PURE__ */ React15.createElement(Stack2, { sx: { width: 296 }, "data-testid": "e-angie-guide-card" }, /* @__PURE__ */ React15.createElement(
|
|
420
|
+
return /* @__PURE__ */ React15.createElement(ClickAwayListener, { onClickAway: onClose }, /* @__PURE__ */ React15.createElement(Stack2, { sx: { width: 296 }, "data-testid": "e-angie-guide-card" }, /* @__PURE__ */ React15.createElement(Box3, { sx: { position: "relative", p: 1.5 } }, /* @__PURE__ */ React15.createElement(
|
|
421
|
+
Image,
|
|
422
|
+
{
|
|
423
|
+
src: imageUrl,
|
|
424
|
+
alt: __3("Angie", "elementor"),
|
|
425
|
+
sx: {
|
|
426
|
+
width: "100%",
|
|
427
|
+
maxHeight: 200,
|
|
428
|
+
objectFit: "cover",
|
|
429
|
+
objectPosition: "center top",
|
|
430
|
+
borderRadius: 1,
|
|
431
|
+
display: "block"
|
|
432
|
+
}
|
|
433
|
+
}
|
|
434
|
+
), /* @__PURE__ */ React15.createElement(
|
|
418
435
|
CloseButton,
|
|
419
436
|
{
|
|
420
|
-
|
|
421
|
-
|
|
437
|
+
sx: {
|
|
438
|
+
position: "absolute",
|
|
439
|
+
top: 15,
|
|
440
|
+
insetInlineEnd: 15,
|
|
441
|
+
color: "common.white",
|
|
442
|
+
filter: "drop-shadow(0 1px 2px rgba(0,0,0,0.6))",
|
|
443
|
+
"&:hover": {
|
|
444
|
+
bgcolor: "rgba(255,255,255,0.2)",
|
|
445
|
+
color: "common.white"
|
|
446
|
+
}
|
|
447
|
+
},
|
|
422
448
|
slotProps: { icon: { fontSize: "small" } },
|
|
423
449
|
onClick: onClose
|
|
424
450
|
}
|
|
425
|
-
)), /* @__PURE__ */ React15.createElement(
|
|
451
|
+
)), /* @__PURE__ */ React15.createElement(Stack2, { px: 2, pt: 0.5, pb: 0.5 }, /* @__PURE__ */ React15.createElement(Typography, { variant: "subtitle2" }, __3("Generate full pages with AI", "elementor"))), /* @__PURE__ */ React15.createElement(Stack2, { px: 2, pt: 0.5, pb: 1.5 }, /* @__PURE__ */ React15.createElement(Typography, { variant: "body2", color: "secondary" }, description)), /* @__PURE__ */ React15.createElement(Stack2, { direction: "row", justifyContent: "flex-end", gap: 1, pb: 1.5, px: 2 }, /* @__PURE__ */ React15.createElement(
|
|
426
452
|
Button,
|
|
427
453
|
{
|
|
428
454
|
variant: "text",
|
|
@@ -434,7 +460,7 @@ function AngieGuideCard({ imageUrl, description, learnMoreUrl, onInstall, onClos
|
|
|
434
460
|
}
|
|
435
461
|
},
|
|
436
462
|
__3("Learn More", "elementor")
|
|
437
|
-
), onInstall && /* @__PURE__ */ React15.createElement(Button, { variant: "contained", size: "small", color: "
|
|
463
|
+
), onInstall && /* @__PURE__ */ React15.createElement(Button, { variant: "contained", size: "small", color: "primary", onClick: onInstall }, __3("Build with Angie", "elementor")))));
|
|
438
464
|
}
|
|
439
465
|
|
|
440
466
|
// src/extensions/angie/hooks/use-auto-show.ts
|
|
@@ -743,7 +769,7 @@ function AppBar() {
|
|
|
743
769
|
const containerWidth = useContainerWidth(containerRef);
|
|
744
770
|
const maxToolbarActions = getMaxToolbarActions(containerWidth);
|
|
745
771
|
return /* @__PURE__ */ React23.createElement(ThemeProvider3, { colorScheme: "dark" }, /* @__PURE__ */ React23.createElement(BaseAppBar, { position: "sticky" }, /* @__PURE__ */ React23.createElement(Toolbar, { disableGutters: true, variant: "dense", sx: { overflowX: "auto" } }, /* @__PURE__ */ React23.createElement(
|
|
746
|
-
|
|
772
|
+
Box4,
|
|
747
773
|
{
|
|
748
774
|
ref: containerRef,
|
|
749
775
|
display: "grid",
|
|
@@ -963,7 +989,7 @@ import { ChevronDownIcon } from "@elementor/icons";
|
|
|
963
989
|
import {
|
|
964
990
|
bindMenu as bindMenu4,
|
|
965
991
|
bindTrigger as bindTrigger4,
|
|
966
|
-
Box as
|
|
992
|
+
Box as Box5,
|
|
967
993
|
Button as Button3,
|
|
968
994
|
ButtonGroup,
|
|
969
995
|
CircularProgress,
|
|
@@ -1079,7 +1105,7 @@ function PrimaryAction() {
|
|
|
1079
1105
|
}
|
|
1080
1106
|
}
|
|
1081
1107
|
},
|
|
1082
|
-
/* @__PURE__ */ React25.createElement(
|
|
1108
|
+
/* @__PURE__ */ React25.createElement(Box5, { component: "span", "aria-label": void 0 }, /* @__PURE__ */ React25.createElement(
|
|
1083
1109
|
Button3,
|
|
1084
1110
|
{
|
|
1085
1111
|
size: "small",
|