@wix/editor-react-components 1.2233.0 → 1.2235.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.
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import { useMemo } from "react";
|
|
2
3
|
import { useService } from "@wix/services-manager-react";
|
|
3
4
|
import { T as TranslationsDefinition } from "../chunks/index5.js";
|
|
4
5
|
import { a as getDataAttributes } from "../chunks/dataUtils.js";
|
|
6
|
+
import { p as parseSvg } from "../chunks/parseSvg.js";
|
|
5
7
|
import { c as clsx } from "../chunks/clsx.js";
|
|
6
8
|
import { L as Link } from "../chunks/Link.js";
|
|
7
9
|
import { A as ARIA_LABEL_NAMESPACE, a as ARIA_LABEL_KEY, b as ARIA_LABEL_DEFAULT } from "../chunks/constants26.js";
|
|
@@ -28,16 +30,8 @@ const defaultSvgContent = `
|
|
|
28
30
|
</svg>
|
|
29
31
|
`;
|
|
30
32
|
const LinkButtonIcon = ({ svg }) => {
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
{
|
|
34
|
-
"aria-hidden": true,
|
|
35
|
-
className: styles.svgWrapper,
|
|
36
|
-
dangerouslySetInnerHTML: {
|
|
37
|
-
__html: svg || ""
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
);
|
|
33
|
+
const svgContent = useMemo(() => svg ? parseSvg(svg) : null, [svg]);
|
|
34
|
+
return /* @__PURE__ */ jsx("div", { "aria-hidden": true, className: styles.svgWrapper, children: svgContent });
|
|
41
35
|
};
|
|
42
36
|
const LinkBar = (props) => {
|
|
43
37
|
const { translate } = useService(
|
|
@@ -264,6 +264,10 @@ const dropdownConfig = {
|
|
|
264
264
|
{
|
|
265
265
|
property: "--dropdown-menu-item-justify-self",
|
|
266
266
|
value: "var(--dropdown-menu-item-container-align)"
|
|
267
|
+
},
|
|
268
|
+
{
|
|
269
|
+
property: "--dropdown-menu-item-align",
|
|
270
|
+
value: "var(--dropdown-menu-item-container-align)"
|
|
267
271
|
}
|
|
268
272
|
]
|
|
269
273
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/editor-react-components",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.2235.0",
|
|
4
4
|
"description": "React components for the Wix Editor",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -188,5 +188,5 @@
|
|
|
188
188
|
"registry": "https://registry.npmjs.org/",
|
|
189
189
|
"access": "public"
|
|
190
190
|
},
|
|
191
|
-
"falconPackageHash": "
|
|
191
|
+
"falconPackageHash": "d1f2d4944ed72248169793732edede1a1924932a5a2b6ed0847bb0dd"
|
|
192
192
|
}
|