@availity/feedback 7.1.7 → 7.1.8-alpha.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 +29 -0
- package/package.json +15 -15
- package/project.json +4 -4
- package/src/FeedbackButton.js +10 -0
- package/src/FeedbackForm.js +9 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,35 @@
|
|
|
2
2
|
|
|
3
3
|
This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
|
|
4
4
|
|
|
5
|
+
## [7.1.8-alpha.0](https://github.com/Availity/availity-react/compare/@availity/feedback@7.1.7...@availity/feedback@7.1.8-alpha.0) (2023-10-19)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
* **feedback:** add telemetry ([7591e5f](https://github.com/Availity/availity-react/commit/7591e5f32e9f6609112ccf325cfde13bb7da220f))
|
|
11
|
+
* upgrade deps ([eccefc0](https://github.com/Availity/availity-react/commit/eccefc0549ebd5057595f6ac696642789375f48a))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
### BREAKING CHANGES
|
|
15
|
+
|
|
16
|
+
* axios v1 is now required
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
# [8.0.0](https://github.com/Availity/availity-react/compare/@availity/feedback@7.1.7...@availity/feedback@8.0.0) (2023-10-09)
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
### Features
|
|
24
|
+
|
|
25
|
+
* upgrade deps ([eccefc0](https://github.com/Availity/availity-react/commit/eccefc0549ebd5057595f6ac696642789375f48a))
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
### BREAKING CHANGES
|
|
29
|
+
|
|
30
|
+
* axios v1 is now required
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
|
|
5
34
|
## [7.1.7](https://github.com/Availity/availity-react/compare/@availity/feedback@7.1.6...@availity/feedback@7.1.7) (2023-08-02)
|
|
6
35
|
|
|
7
36
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@availity/feedback",
|
|
3
|
-
"version": "7.1.
|
|
3
|
+
"version": "7.1.8-alpha.0",
|
|
4
4
|
"description": "Availity feedback with smiley faces react component.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|
|
@@ -25,27 +25,27 @@
|
|
|
25
25
|
"publish:canary": "yarn npm publish --access public --tag canary"
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@availity/
|
|
29
|
-
"@availity/
|
|
30
|
-
"@availity/
|
|
31
|
-
"@availity/
|
|
32
|
-
"@availity/
|
|
33
|
-
"@availity/
|
|
28
|
+
"@availity/api-axios": "^8.0.3",
|
|
29
|
+
"@availity/block-ui": "^1.1.2",
|
|
30
|
+
"@availity/form": "1.7.5",
|
|
31
|
+
"@availity/hooks": "5.0.0",
|
|
32
|
+
"@availity/icon": "0.11.4",
|
|
33
|
+
"@availity/native-form": "^5.0.4",
|
|
34
|
+
"@availity/select": "4.0.0",
|
|
34
35
|
"prop-types": "^15.8.1"
|
|
35
36
|
},
|
|
36
37
|
"devDependencies": {
|
|
37
|
-
"@availity/
|
|
38
|
-
"
|
|
39
|
-
"
|
|
40
|
-
"
|
|
41
|
-
"react": "^
|
|
42
|
-
"react-dom": "^17.0.2",
|
|
38
|
+
"@availity/yup": "^5.1.3",
|
|
39
|
+
"axios": "^1.5.0",
|
|
40
|
+
"formik": "^2.4.4",
|
|
41
|
+
"react": "^18.2.0",
|
|
42
|
+
"react-dom": "^18.2.0",
|
|
43
43
|
"reactstrap": "^8.10.1"
|
|
44
44
|
},
|
|
45
45
|
"peerDependencies": {
|
|
46
|
-
"@availity/api-axios": "^
|
|
46
|
+
"@availity/api-axios": "^8.0.0",
|
|
47
47
|
"@availity/yup": "^5.1.0",
|
|
48
|
-
"axios": "^0.
|
|
48
|
+
"axios": "^1.0.0",
|
|
49
49
|
"formik": "^2.0.1",
|
|
50
50
|
"react": ">=16.3.0",
|
|
51
51
|
"reactstrap": "^8.0.0"
|
package/project.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"projectType": "library",
|
|
4
4
|
"targets": {
|
|
5
5
|
"test": {
|
|
6
|
-
"executor": "@
|
|
6
|
+
"executor": "@nx/jest:jest",
|
|
7
7
|
"outputs": ["coverage/feedback"],
|
|
8
8
|
"options": { "jestConfig": "packages/feedback/jest.config.js", "passWithNoTests": true }
|
|
9
9
|
},
|
|
@@ -11,13 +11,13 @@
|
|
|
11
11
|
"executor": "@jscutlery/semver:version",
|
|
12
12
|
"options": {
|
|
13
13
|
"preset": "angular",
|
|
14
|
-
"commitMessageFormat": "chore(
|
|
15
|
-
"tagPrefix": "@availity
|
|
14
|
+
"commitMessageFormat": "chore({projectName}): release version ${version} [skip ci]",
|
|
15
|
+
"tagPrefix": "@availity/{projectName}@",
|
|
16
16
|
"baseBranch": "master"
|
|
17
17
|
}
|
|
18
18
|
},
|
|
19
19
|
"lint": {
|
|
20
|
-
"executor": "@
|
|
20
|
+
"executor": "@nx/linter:eslint",
|
|
21
21
|
"options": {
|
|
22
22
|
"eslintConfig": ".eslintrc.yaml",
|
|
23
23
|
"lintFilePatterns": ["packages/feedback/**/*.{js,ts}"],
|
package/src/FeedbackButton.js
CHANGED
|
@@ -2,6 +2,7 @@ import React from 'react';
|
|
|
2
2
|
import { PropTypes } from 'prop-types';
|
|
3
3
|
import { Button } from 'reactstrap';
|
|
4
4
|
import Icon from '@availity/icon';
|
|
5
|
+
import { avTelemetryApi } from '@availity/api-axios';
|
|
5
6
|
|
|
6
7
|
const btnStyles = { fontSize: '1.4em', padding: '.2em .4em' };
|
|
7
8
|
const iconStyles = { margin: '0px' };
|
|
@@ -12,6 +13,15 @@ const FeedbackButton = ({ onClick, icon, active, children, iconSize, ...rest })
|
|
|
12
13
|
color={active === icon ? 'primary' : 'light'}
|
|
13
14
|
aria-pressed={active === icon}
|
|
14
15
|
onClick={() => {
|
|
16
|
+
avTelemetryApi.info({
|
|
17
|
+
customerId: '0000',
|
|
18
|
+
contact: 'BigBitBandits@availity.com',
|
|
19
|
+
source_system: window.navigator.userAgent,
|
|
20
|
+
version: '1',
|
|
21
|
+
telemetryBody: {
|
|
22
|
+
entries: { event: 'open feedback', action: 'click', label: JSON.stringify(children), category: 'feedback' },
|
|
23
|
+
},
|
|
24
|
+
});
|
|
15
25
|
onClick(icon);
|
|
16
26
|
}}
|
|
17
27
|
onKeyDown={({ keyCode }) => keyCode === 13 && onClick(icon)}
|
package/src/FeedbackForm.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React, { useState, useEffect, useRef } from 'react';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
3
|
import { Button, ModalBody, ModalHeader, ModalFooter, FormGroup } from 'reactstrap';
|
|
4
|
-
import { avLogMessagesApi, avRegionsApi } from '@availity/api-axios';
|
|
4
|
+
import { avLogMessagesApi, avRegionsApi, avTelemetryApi } from '@availity/api-axios';
|
|
5
5
|
import { Form, Field } from '@availity/form';
|
|
6
6
|
import { SelectField } from '@availity/select';
|
|
7
7
|
import * as yup from 'yup';
|
|
@@ -63,6 +63,14 @@ const FeedbackForm = ({
|
|
|
63
63
|
...staticFields, // Spread the static key value pairs onto the logger
|
|
64
64
|
});
|
|
65
65
|
|
|
66
|
+
await avTelemetryApi.info({
|
|
67
|
+
customerId: '0000',
|
|
68
|
+
contact: 'BigBitBandits@availity.com',
|
|
69
|
+
source_system: window.navigator.userAgent,
|
|
70
|
+
version: '1',
|
|
71
|
+
telemetryBody: { entries: { event: 'submit', action: 'click', label: 'Submit', category: 'feedback' } },
|
|
72
|
+
});
|
|
73
|
+
|
|
66
74
|
setSent(values);
|
|
67
75
|
setLoading(false);
|
|
68
76
|
};
|