@dexma/ui-components 5.5.0 → 5.6.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.
- package/CHANGELOG.md +18 -2
- package/README.md +22 -2
- package/dist/main.bundle.js +1 -1
- package/dist/main.bundle.js.map +1 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,19 @@
|
|
|
1
|
+
# [5.6.0](https://github.com/dexma/ui-components/compare/v5.5.0...v5.6.0) (2022-07-18)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* **styles:** add styles from antd to global styles ([fe645a9](https://github.com/dexma/ui-components/commit/fe645a9369ebab0f84cdc17a0d9723d7d53e2d74))
|
|
7
|
+
* **styles:** import antd styles without alias ([35f289a](https://github.com/dexma/ui-components/commit/35f289a58753ae586769657408fd51a1ad004a60))
|
|
8
|
+
* **test:** fix today and tomorrow values on tests ([dd49744](https://github.com/dexma/ui-components/commit/dd49744253ae4ef10b6395cad434bfefb402f493))
|
|
9
|
+
* **tooltip:** add retrocompatibility on Tooltip props ([29190ba](https://github.com/dexma/ui-components/commit/29190ba3b42204e511d979c06c976322ed02ea38))
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
### Features
|
|
13
|
+
|
|
14
|
+
* **datepicker:** datepicker based on ant design ([cdc0277](https://github.com/dexma/ui-components/commit/cdc0277db07de28c5715173250b4c1d408cf5e9b))
|
|
15
|
+
* **deps:** bump antd from 3.16.1 to 4.21.0 ([880489e](https://github.com/dexma/ui-components/commit/880489ed0fe478eb8da0ef58906e65df736d3295))
|
|
16
|
+
|
|
1
17
|
# [5.5.0](https://github.com/dexma/ui-components/compare/v5.4.0...v5.5.0) (2022-07-14)
|
|
2
18
|
|
|
3
19
|
|
|
@@ -5,7 +21,7 @@
|
|
|
5
21
|
|
|
6
22
|
* **version:** update version ([cc6d514](https://github.com/dexma/ui-components/commit/cc6d514056f27644ef960cc1117970b31edec9ec))
|
|
7
23
|
|
|
8
|
-
# [5.4.0](https://github.com/dexma/ui-components/compare/v5.3.2...v5.4.0) (2022-07-14)
|
|
24
|
+
# [5.4.0](https://github.com/dexma/ui-components/compare/v5.3.2...v5.4.0) (2022-07-14) (deprecated)
|
|
9
25
|
|
|
10
26
|
|
|
11
27
|
### Bug Fixes
|
|
@@ -17,7 +33,7 @@
|
|
|
17
33
|
|
|
18
34
|
* **version:** update version ([f5c54c9](https://github.com/dexma/ui-components/commit/f5c54c9fea02af68887e9319c8465f91d1ea74b6))
|
|
19
35
|
|
|
20
|
-
## [5.3.3](https://github.com/dexma/ui-components/compare/v5.3.2...v5.3.3) (2022-07-14)
|
|
36
|
+
## [5.3.3](https://github.com/dexma/ui-components/compare/v5.3.2...v5.3.3) (2022-07-14) (deprecated)
|
|
21
37
|
|
|
22
38
|
|
|
23
39
|
### Bug Fixes
|
package/README.md
CHANGED
|
@@ -67,15 +67,35 @@ For the documentation we use storybook docs that transforms our stories into wor
|
|
|
67
67
|
- If you need to export static doc run `npm run build-storybook` this will export a static folder with all our component docs
|
|
68
68
|
|
|
69
69
|
## Changelog
|
|
70
|
+
|
|
70
71
|
For changelogs, check out [the CHANGELOG section of ui-components](https://github.com/dexma/ui-components/blob/master/CHANGELOG.md)
|
|
71
72
|
|
|
72
73
|
## Testing
|
|
74
|
+
|
|
73
75
|
We use React Testing Library as our testing lib you can check out the [documentation](https://testing-library.com/docs/react-testing-library/intro)
|
|
74
76
|
|
|
75
77
|
- To run our test: `npm run test`
|
|
76
78
|
|
|
77
|
-
|
|
78
|
-
Check out the [CONTRIBUTING document](https://github.com/dexma/ui-components/blob/master/CONTRIBUTING.md) in the root of the repository to learn how you can contribute.
|
|
79
|
+
Note: Due to the use of third-party libraries, some components use methods that JSDOM (the DOM implementation used by Jest) hasn't implemented yet, testing it is not easily possible. This is the case with window.matchMedia(). Jest returns ```TypeError: window.matchMedia is not a function``` and doesn't properly execute the test.
|
|
79
80
|
|
|
81
|
+
In this case, to resolve this issue to execute successfully your tests when @dexma/ui-components is used, include the following code on setupTest file for Jest to mock matchMedia and it should solve the issue:
|
|
80
82
|
|
|
83
|
+
```javascript
|
|
84
|
+
Object.defineProperty(window, 'matchMedia', {
|
|
85
|
+
writable: true,
|
|
86
|
+
value: jest.fn().mockImplementation(query => ({
|
|
87
|
+
matches: false,
|
|
88
|
+
media: query,
|
|
89
|
+
onchange: null,
|
|
90
|
+
addListener: jest.fn(), // deprecated
|
|
91
|
+
removeListener: jest.fn(), // deprecated
|
|
92
|
+
addEventListener: jest.fn(),
|
|
93
|
+
removeEventListener: jest.fn(),
|
|
94
|
+
dispatchEvent: jest.fn(),
|
|
95
|
+
})),
|
|
96
|
+
});
|
|
97
|
+
```
|
|
98
|
+
|
|
99
|
+
## Contributing
|
|
81
100
|
|
|
101
|
+
Check out the [CONTRIBUTING document](https://github.com/dexma/ui-components/blob/master/CONTRIBUTING.md) in the root of the repository to learn how you can contribute.
|