@evergis/react 4.0.12 → 4.0.14
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/react.esm.js
CHANGED
|
@@ -7160,6 +7160,7 @@ const RoundedBackgroundContainerWrapper = styled(Flex) `
|
|
|
7160
7160
|
|
|
7161
7161
|
* {
|
|
7162
7162
|
color: ${$color};
|
|
7163
|
+
fill: ${$color};
|
|
7163
7164
|
}
|
|
7164
7165
|
`};
|
|
7165
7166
|
|
|
@@ -8840,8 +8841,10 @@ const ElementSlideshow = ({ elementConfig, type, renderElement }) => {
|
|
|
8840
8841
|
isOpen: isOpenGallery, onClose: toggleGallery }))] }))] }));
|
|
8841
8842
|
};
|
|
8842
8843
|
|
|
8843
|
-
const ElementSvg = memo(({ type, elementConfig }) => {
|
|
8844
|
-
const
|
|
8844
|
+
const ElementSvg = memo(({ type, elementConfig, ...rest }) => {
|
|
8845
|
+
const ctx = useWidgetContext(type);
|
|
8846
|
+
const layerInfo = rest.layerInfo || ctx.layerInfo;
|
|
8847
|
+
const attributes = rest.attributes || ctx.attributes;
|
|
8845
8848
|
const { options } = elementConfig || {};
|
|
8846
8849
|
const { width, height, fontColor } = options || {};
|
|
8847
8850
|
return (jsx(SvgImage, { url: getSvgUrl({ elementConfig, layerInfo, attributes }), width: width, height: height, fontColor: fontColor }));
|