@wix/editor-react-components 1.2308.0 → 1.2310.0

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.
@@ -59,5 +59,7 @@
59
59
  }
60
60
 
61
61
  .linkLayer__hoVt- {
62
- display: inline;
62
+ display: block;
63
+ inline-size: 100%;
64
+ block-size: 100%;
63
65
  }
@@ -1520,7 +1520,11 @@ const MenuItem = (props) => {
1520
1520
  });
1521
1521
  const { isHamburgerMenuOpened } = useMenuContext();
1522
1522
  const { setDropdownDomStylesApplier, dropdownElementRef } = useContext(DropdownContext);
1523
- setDropdownDomStylesApplier(updateDropdownDomStyles2);
1523
+ useEffect(() => {
1524
+ if (forceOpen) {
1525
+ setDropdownDomStylesApplier(updateDropdownDomStyles2);
1526
+ }
1527
+ }, [forceOpen, setDropdownDomStylesApplier, updateDropdownDomStyles2]);
1524
1528
  const eventListeners = createEventListeners({
1525
1529
  showDropdown,
1526
1530
  hideDropdown,
@@ -1640,7 +1644,7 @@ const MenuItem = (props) => {
1640
1644
  {
1641
1645
  ...sharedDropdownProps,
1642
1646
  menuOrientation: "horizontal",
1643
- ref: dropdownElementRef,
1647
+ ref: forceOpen ? dropdownElementRef : void 0,
1644
1648
  direction: submenuDirection
1645
1649
  }
1646
1650
  )
@@ -1,3 +1,9 @@
1
+ .link__UCcRC {
2
+ display: block;
3
+ inline-size: 100%;
4
+ block-size: 100%;
5
+ }
6
+
1
7
  .svgImageSource__g-ESq {
2
8
  fill-opacity: var(--opacity, 1);
3
9
  }
@@ -133,5 +139,7 @@
133
139
  }
134
140
 
135
141
  .linkLayer__hoVt- {
136
- display: inline;
142
+ display: block;
143
+ inline-size: 100%;
144
+ block-size: 100%;
137
145
  }
@@ -1,3 +1,9 @@
1
+ .link__UCcRC {
2
+ display: block;
3
+ inline-size: 100%;
4
+ block-size: 100%;
5
+ }
6
+
1
7
  .svgImageSource__g-ESq {
2
8
  fill-opacity: var(--opacity, 1);
3
9
  }
@@ -77,25 +77,27 @@ function processSvgProps(props, svgInfo) {
77
77
  const semanticClassNames = {
78
78
  root: "svg-image"
79
79
  };
80
+ const link = "link__UCcRC";
80
81
  const svgImageSource = "svgImageSource__g-ESq";
81
82
  const svgImageRoot = "svgImageRoot__XFDeg";
82
83
  const styles = {
84
+ link,
83
85
  svgImageSource,
84
86
  svgImageRoot
85
87
  };
86
88
  const ConditionalLink = ({
87
- link,
89
+ link: link2,
88
90
  children
89
91
  }) => {
90
- const hasLink = !isEmptyObject(link);
92
+ const hasLink = !isEmptyObject(link2);
91
93
  if (!hasLink) {
92
94
  return /* @__PURE__ */ jsx(Fragment, { children });
93
95
  }
94
- return /* @__PURE__ */ jsx(Link, { ...link, children });
96
+ return /* @__PURE__ */ jsx(Link, { className: styles.link, ...link2, children });
95
97
  };
96
98
  const SvgImageBase = ({
97
99
  id,
98
- link,
100
+ link: link2,
99
101
  alt = "",
100
102
  svgString,
101
103
  svgType,
@@ -121,7 +123,7 @@ const SvgImageBase = ({
121
123
  className ?? ""
122
124
  )
123
125
  ),
124
- children: /* @__PURE__ */ jsx(ConditionalLink, { link, children: /* @__PURE__ */ jsx(
126
+ children: /* @__PURE__ */ jsx(ConditionalLink, { link: link2, children: /* @__PURE__ */ jsx(
125
127
  "div",
126
128
  {
127
129
  "data-testid": `svgRoot-${id}`,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wix/editor-react-components",
3
- "version": "1.2308.0",
3
+ "version": "1.2310.0",
4
4
  "description": "React components for the Wix Editor",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -190,5 +190,5 @@
190
190
  "registry": "https://registry.npmjs.org/",
191
191
  "access": "public"
192
192
  },
193
- "falconPackageHash": "9dfd10337aa7fde680c442ede6926f574b28f44b697e1af1483cce75"
193
+ "falconPackageHash": "cf5b22a3c686ab6086bfda4f318108304d710c2c69d349da7f6efc5a"
194
194
  }