@evergis/react 4.0.12 → 4.0.13

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
@@ -8840,8 +8840,10 @@ const ElementSlideshow = ({ elementConfig, type, renderElement }) => {
8840
8840
  isOpen: isOpenGallery, onClose: toggleGallery }))] }))] }));
8841
8841
  };
8842
8842
 
8843
- const ElementSvg = memo(({ type, elementConfig }) => {
8844
- const { layerInfo, attributes } = useWidgetContext(type);
8843
+ const ElementSvg = memo(({ type, elementConfig, ...rest }) => {
8844
+ const ctx = useWidgetContext(type);
8845
+ const layerInfo = rest.layerInfo || ctx.layerInfo;
8846
+ const attributes = rest.attributes || ctx.attributes;
8845
8847
  const { options } = elementConfig || {};
8846
8848
  const { width, height, fontColor } = options || {};
8847
8849
  return (jsx(SvgImage, { url: getSvgUrl({ elementConfig, layerInfo, attributes }), width: width, height: height, fontColor: fontColor }));