Skip to content

Commit d286e8b

Browse files
authored
Merge pull request #39 from feedzai/develop
Support for dynamic data / DOM elements
2 parents 8da574d + cbb2773 commit d286e8b

3 files changed

Lines changed: 23 additions & 4 deletions

File tree

CHANGELOG.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,26 @@
11
# Changelog
2+
23
All notable changes to this project will be documented in this file.
34

45
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
56
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
67

78
## Unreleased
89

10+
### Added
11+
12+
- Dynamic changes in the data or DOM elements now trigger updates in the tool
13+
914
## 2.0.1 - 2024-10-08
15+
1016
### Added
17+
1118
- Aligned native ShortcutGuide styling with the prototypes
1219

1320
## 2.0.0 - 2024-10-04
21+
1422
### Added
23+
1524
- Changed bundler from babel to vite
1625
- Replaced jest with cypress
1726
- Converted Javascript to Typescript
@@ -21,22 +30,32 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
2130
- Converted the ShortcutGuide into a prop, making it overridable and customizable
2231

2332
## 1.0.3 - 2024-01-09
33+
2434
### Added
35+
2536
- Remove unused dependency
2637

2738
## 1.0.2 - 2023-12-06
39+
2840
### Added
41+
2942
- Fixed the previously correction of the "series:" class attribution in the data elements that would break the navigation inside multi series charts
3043

3144
## 1.0.1 - 2023-12-06
45+
3246
### Added
47+
3348
- Corrected the attribution of the "series:" class in the data elements that would break the navigation inside multi series charts
3449

3550
## 1.0.0 - 2023-11-14
51+
3652
### Added
53+
3754
- Added support for charts with multiple encodings
3855

3956
## 0.2.0 - 2023-11-02
57+
4058
### Added
59+
4160
- Extended React compatibility to support projects with React >=16.14.0
4261
- Set up automatic semantic versioning

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/AutoVizuA11y.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ const AutoVizuA11y = ({
217217
const SELECTOR = selectorType.element || `.${selectorType.className ?? ""}`;
218218
const NEW_ELEMENTS = Array.from(chartRef.current.querySelectorAll(SELECTOR)) as HTMLElement[];
219219
setElements(NEW_ELEMENTS);
220-
}, [chartRef, selectorType]);
220+
}, [chartRef, selectorType, data, children]);
221221

222222
useEffect(() => {
223223
const initSeries = () => {
@@ -295,7 +295,7 @@ const AutoVizuA11y = ({
295295
return () => clearTimeout(timer);
296296
};
297297
asyncEffect();
298-
}, [chartRef]);
298+
}, [chartRef, data, children]);
299299

300300
const handleOnKeyDown = useCallback(
301301
(event: React.KeyboardEvent<HTMLDivElement>) => {

0 commit comments

Comments
 (0)