html-reporter 7.6.1 → 7.7.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 +10 -0
- package/README.md +38 -0
- package/lib/static/gui.min.js +12 -12
- package/lib/static/modules/load-plugin.js +5 -1
- package/lib/static/report.min.js +12 -12
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,16 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
|
4
4
|
|
|
5
|
+
<a name="7.7.0"></a>
|
|
6
|
+
# [7.7.0](https://github.com/gemini-testing/html-reporter/compare/v7.6.1...v7.7.0) (2021-11-09)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* add ability to share html-reporter components with its plugins ([#407](https://github.com/gemini-testing/html-reporter/issues/407)) ([f95b50f](https://github.com/gemini-testing/html-reporter/commit/f95b50f))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
5
15
|
<a name="7.6.1"></a>
|
|
6
16
|
## [7.6.1](https://github.com/gemini-testing/html-reporter/compare/v7.6.0...v7.6.1) (2021-11-08)
|
|
7
17
|
|
package/README.md
CHANGED
|
@@ -270,10 +270,48 @@ directory.
|
|
|
270
270
|
```
|
|
271
271
|
|
|
272
272
|
In the example you can also see another convenient properties:
|
|
273
|
+
- `pluginName` - plugin name;
|
|
273
274
|
- `actions` - the html-reporter **Redux** actions;
|
|
274
275
|
- `selectors` - the memoized html-reporter selectors which created using **reselect** library
|
|
275
276
|
- `pluginConfig` - plugin configuration.
|
|
276
277
|
|
|
278
|
+
Available dependencies:
|
|
279
|
+
- `react`
|
|
280
|
+
- `redux`
|
|
281
|
+
- `react-redux`
|
|
282
|
+
- `lodash`
|
|
283
|
+
- `prop-types`
|
|
284
|
+
- `classnames`
|
|
285
|
+
- `semantic-ui-react`
|
|
286
|
+
- `react-markdown`
|
|
287
|
+
- `reduce-reducers`
|
|
288
|
+
- `immer`
|
|
289
|
+
- `reselect`
|
|
290
|
+
- `axios`
|
|
291
|
+
|
|
292
|
+
Available components:
|
|
293
|
+
- `components`
|
|
294
|
+
- `<Details />` - component which allows users to toggle the display of content.
|
|
295
|
+
Example of usage:
|
|
296
|
+
```js
|
|
297
|
+
// ... inside your react component
|
|
298
|
+
render() {
|
|
299
|
+
return <Details
|
|
300
|
+
title='Some title'
|
|
301
|
+
content='Some content' // content that will appear when you click on the title
|
|
302
|
+
extendClassNames='some_class_name' // ability to add own css-classes to component
|
|
303
|
+
onClick={() => console.log('clicked')} // ability to add handler
|
|
304
|
+
/>
|
|
305
|
+
}
|
|
306
|
+
```
|
|
307
|
+
|
|
308
|
+
, where:
|
|
309
|
+
|
|
310
|
+
* **title** (required) `String|JSX.Element` - title that describes information hidden underneath.
|
|
311
|
+
* **content** (required) `Function|String|Array<String>|JSX.Element` - content that will appear after click on the title.
|
|
312
|
+
* **extendClassNames** (optional) `String|Array<String>` - ability to add own css classes to the component.
|
|
313
|
+
* **onClick** (optional) `Function` - handler that will be called when the title is clicked.
|
|
314
|
+
|
|
277
315
|
#### Extension points
|
|
278
316
|
|
|
279
317
|
Extension points - places within the report UI that are available to extend with React components with the help of [html-reporter plugins](#html-reporter-plugins).
|