@elementor/editor-components 3.35.0-400 → 3.35.0-402

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.mjs CHANGED
@@ -732,14 +732,14 @@ function useOverridableProps2(componentId) {
732
732
  import * as React2 from "react";
733
733
  import { useState } from "react";
734
734
  import { ComponentPropListIcon } from "@elementor/icons";
735
- import { Link, Stack as Stack2, Typography as Typography2 } from "@elementor/ui";
735
+ import { Link as Link2, Stack as Stack2, Typography as Typography2 } from "@elementor/ui";
736
736
  import { __ as __3 } from "@wordpress/i18n";
737
737
 
738
738
  // src/components/components-tab/component-introduction.tsx
739
739
  import * as React from "react";
740
740
  import { PopoverContent } from "@elementor/editor-controls";
741
741
  import { PopoverHeader } from "@elementor/editor-ui";
742
- import { Box, Button, Image, Popover, Stack, Typography } from "@elementor/ui";
742
+ import { Box, Button, Image, Link, Popover, Stack, Typography } from "@elementor/ui";
743
743
  import { __ as __2 } from "@wordpress/i18n";
744
744
  var ComponentIntroduction = ({
745
745
  anchorRef,
@@ -771,13 +771,23 @@ var ComponentIntroduction = ({
771
771
  src: "https://assets.elementor.com/packages/v1/images/components-properties-intro.png",
772
772
  alt: ""
773
773
  }
774
- ), /* @__PURE__ */ React.createElement(PopoverContent, null, /* @__PURE__ */ React.createElement(Stack, { gap: 1, sx: { p: 2 } }, /* @__PURE__ */ React.createElement(Typography, { variant: "body2" }, __2("Properties make instances flexible.", "elementor")), /* @__PURE__ */ React.createElement(Typography, { variant: "body2" }, __2(
774
+ ), /* @__PURE__ */ React.createElement(PopoverContent, null, /* @__PURE__ */ React.createElement(Stack, { sx: { p: 2 } }, /* @__PURE__ */ React.createElement(Typography, { variant: "body2" }, __2("Properties make instances flexible.", "elementor")), /* @__PURE__ */ React.createElement(Typography, { variant: "body2" }, __2(
775
775
  "Click next to any setting you want users to customize - like text, images, or links.",
776
776
  "elementor"
777
- )), /* @__PURE__ */ React.createElement(Typography, { variant: "body2" }, __2(
777
+ )), /* @__PURE__ */ React.createElement(Typography, { variant: "body2", sx: { mt: 2 } }, __2(
778
778
  "Your properties will appear in the Properties panel, where you can organize and manage them anytime.",
779
779
  "elementor"
780
- )), /* @__PURE__ */ React.createElement(Stack, { direction: "row", alignItems: "center", justifyContent: "flex-end" }, /* @__PURE__ */ React.createElement(Button, { size: "medium", variant: "contained", onClick: onClose }, __2("Got it", "elementor"))))))
780
+ )), /* @__PURE__ */ React.createElement(
781
+ Link,
782
+ {
783
+ href: "http://go.elementor.com/components-guide",
784
+ target: "_blank",
785
+ sx: { mt: 2 },
786
+ color: "info.main",
787
+ variant: "body2"
788
+ },
789
+ __2("Learn more", "elementor")
790
+ ), /* @__PURE__ */ React.createElement(Stack, { direction: "row", alignItems: "center", justifyContent: "flex-end", sx: { pt: 1 } }, /* @__PURE__ */ React.createElement(Button, { size: "medium", variant: "contained", onClick: onClose }, __2("Got it", "elementor"))))))
781
791
  );
782
792
  };
783
793
 
@@ -799,7 +809,7 @@ function PropertiesEmptyState({ introductionRef }) {
799
809
  /* @__PURE__ */ React2.createElement(Typography2, { align: "center", variant: "caption" }, __3("Make instances flexible while keeping design synced.", "elementor")),
800
810
  /* @__PURE__ */ React2.createElement(Typography2, { align: "center", variant: "caption" }, __3("Select any element, then click + next to a setting to expose it.", "elementor")),
801
811
  /* @__PURE__ */ React2.createElement(
802
- Link,
812
+ Link2,
803
813
  {
804
814
  variant: "caption",
805
815
  color: "secondary",
@@ -1596,7 +1606,7 @@ var ComponentSearch = () => {
1596
1606
  // src/components/components-tab/components-list.tsx
1597
1607
  import * as React15 from "react";
1598
1608
  import { ComponentsIcon as ComponentsIcon2, EyeIcon } from "@elementor/icons";
1599
- import { Box as Box11, Divider as Divider3, Icon, Link as Link2, List as List3, Stack as Stack10, Typography as Typography8 } from "@elementor/ui";
1609
+ import { Box as Box11, Divider as Divider3, Icon, Link as Link3, List as List3, Stack as Stack10, Typography as Typography8 } from "@elementor/ui";
1600
1610
  import { __ as __15 } from "@wordpress/i18n";
1601
1611
 
1602
1612
  // src/hooks/use-components.ts
@@ -2042,7 +2052,7 @@ var ComponentItem = ({ component }) => {
2042
2052
  ListItemButton,
2043
2053
  {
2044
2054
  draggable: true,
2045
- onDragStart: () => startDragElementFromPanel(componentModel),
2055
+ onDragStart: (event) => startDragElementFromPanel(componentModel, event),
2046
2056
  onDragEnd: handleDragEnd,
2047
2057
  shape: "rounded",
2048
2058
  sx: {
@@ -2245,7 +2255,7 @@ var EmptySearchResult = () => {
2245
2255
  )
2246
2256
  ),
2247
2257
  /* @__PURE__ */ React15.createElement(Typography8, { align: "center", variant: "caption", color: "inherit" }, __15("Try something else.", "elementor")),
2248
- /* @__PURE__ */ React15.createElement(Typography8, { align: "center", variant: "caption", color: "inherit" }, /* @__PURE__ */ React15.createElement(Link2, { color: "secondary", variant: "caption", component: "button", onClick: clearSearch }, __15("Clear & try again", "elementor")))
2258
+ /* @__PURE__ */ React15.createElement(Typography8, { align: "center", variant: "caption", color: "inherit" }, /* @__PURE__ */ React15.createElement(Link3, { color: "secondary", variant: "caption", component: "button", onClick: clearSearch }, __15("Clear & try again", "elementor")))
2249
2259
  );
2250
2260
  };
2251
2261
  var useFilteredComponents = () => {