@evergis/react 3.1.60 → 3.1.61

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.
@@ -2,5 +2,4 @@ import { FC } from 'react';
2
2
  import { ConfigContainerChild, ContainerProps } from '../../types';
3
3
  export declare const ElementLegend: FC<ContainerProps & {
4
4
  element: ConfigContainerChild;
5
- expandedContainers: Record<string, boolean>;
6
5
  }>;
@@ -11,7 +11,6 @@ export declare const elementComponents: {
11
11
  readonly chart: import('react').FC<import('..').ContainerProps>;
12
12
  readonly legend: import('react').FC<import('..').ContainerProps & {
13
13
  element: import('..').ConfigContainerChild;
14
- expandedContainers: Record<string, boolean>;
15
14
  }>;
16
15
  readonly markdown: import('react').FC<import('..').ContainerProps>;
17
16
  readonly uploader: import('react').FC<import('..').ContainerProps>;
package/dist/index.js CHANGED
@@ -7604,8 +7604,8 @@ const ElementImage = React.memo(({ type, elementConfig }) => {
7604
7604
  return firstImage ? jsxRuntime.jsx("img", { src: firstImage, alt: firstImage, width: width }) : null;
7605
7605
  });
7606
7606
 
7607
- const ElementLegend = React.memo(({ type, element, elementConfig, expandedContainers }) => {
7608
- const { attributes, dataSources } = useWidgetContext(type);
7607
+ const ElementLegend = React.memo(({ type, element, elementConfig }) => {
7608
+ const { attributes, dataSources, expandedContainers } = useWidgetContext(type);
7609
7609
  const { options } = elementConfig || {};
7610
7610
  const { twoColumns, chartId, relatedDataSources, fontSize } = options || {};
7611
7611
  const chartElement = React.useMemo(() => findAnd.returnFound(element?.children, { id: chartId }), [chartId, element?.children]);
package/dist/react.esm.js CHANGED
@@ -7602,8 +7602,8 @@ const ElementImage = memo(({ type, elementConfig }) => {
7602
7602
  return firstImage ? jsx("img", { src: firstImage, alt: firstImage, width: width }) : null;
7603
7603
  });
7604
7604
 
7605
- const ElementLegend = memo(({ type, element, elementConfig, expandedContainers }) => {
7606
- const { attributes, dataSources } = useWidgetContext(type);
7605
+ const ElementLegend = memo(({ type, element, elementConfig }) => {
7606
+ const { attributes, dataSources, expandedContainers } = useWidgetContext(type);
7607
7607
  const { options } = elementConfig || {};
7608
7608
  const { twoColumns, chartId, relatedDataSources, fontSize } = options || {};
7609
7609
  const chartElement = useMemo(() => returnFound(element?.children, { id: chartId }), [chartId, element?.children]);
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "3.1.60",
2
+ "version": "3.1.61",
3
3
  "name": "@evergis/react",
4
4
  "author": "Everpoint",
5
5
  "license": "MIT",
@@ -81,5 +81,5 @@
81
81
  "swiper": "^8.3.2",
82
82
  "wkt": "^0.1.1"
83
83
  },
84
- "gitHead": "e063496bf8f3f9830feda68faf41e745457013f3"
84
+ "gitHead": "e6ceb8d924d7ad436df906f2914ebee479733ce1"
85
85
  }