@availity/feedback 7.1.7 → 7.1.8-alpha.1
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 +33 -0
- package/package.json +15 -15
- package/project.json +4 -4
- package/src/Feedback.js +21 -2
- package/src/FeedbackForm.js +9 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,39 @@
|
|
|
2
2
|
|
|
3
3
|
This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
|
|
4
4
|
|
|
5
|
+
## [7.1.8-alpha.1](https://github.com/Availity/availity-react/compare/@availity/feedback@7.1.8-alpha.0...@availity/feedback@7.1.8-alpha.1) (2023-10-19)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
## [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)
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
### Features
|
|
13
|
+
|
|
14
|
+
* **feedback:** add telemetry ([7591e5f](https://github.com/Availity/availity-react/commit/7591e5f32e9f6609112ccf325cfde13bb7da220f))
|
|
15
|
+
* upgrade deps ([eccefc0](https://github.com/Availity/availity-react/commit/eccefc0549ebd5057595f6ac696642789375f48a))
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
### BREAKING CHANGES
|
|
19
|
+
|
|
20
|
+
* axios v1 is now required
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
# [8.0.0](https://github.com/Availity/availity-react/compare/@availity/feedback@7.1.7...@availity/feedback@8.0.0) (2023-10-09)
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
### Features
|
|
28
|
+
|
|
29
|
+
* upgrade deps ([eccefc0](https://github.com/Availity/availity-react/commit/eccefc0549ebd5057595f6ac696642789375f48a))
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
### BREAKING CHANGES
|
|
33
|
+
|
|
34
|
+
* axios v1 is now required
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
|
|
5
38
|
## [7.1.7](https://github.com/Availity/availity-react/compare/@availity/feedback@7.1.6...@availity/feedback@7.1.7) (2023-08-02)
|
|
6
39
|
|
|
7
40
|
|
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.1",
|
|
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/Feedback.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
3
|
import { Dropdown, DropdownToggle } from 'reactstrap';
|
|
4
|
-
import { avLogMessagesApi } from '@availity/api-axios';
|
|
4
|
+
import { avLogMessagesApi, avTelemetryApi } from '@availity/api-axios';
|
|
5
5
|
import { useToggle } from '@availity/hooks';
|
|
6
6
|
import FeedbackDropdown from './FeedbackDropdown';
|
|
7
7
|
import FeedbackModal from './FeedbackModal';
|
|
@@ -37,7 +37,26 @@ const Feedback = ({
|
|
|
37
37
|
className={`${className} hidden-print`}
|
|
38
38
|
{...props}
|
|
39
39
|
>
|
|
40
|
-
<DropdownToggle
|
|
40
|
+
<DropdownToggle
|
|
41
|
+
color={color}
|
|
42
|
+
outline={outline}
|
|
43
|
+
onClick={() =>
|
|
44
|
+
avTelemetryApi.info({
|
|
45
|
+
customerId: '0000',
|
|
46
|
+
contact: 'BigBitBandits@availity.com',
|
|
47
|
+
source_system: window.navigator.userAgent,
|
|
48
|
+
version: '1',
|
|
49
|
+
telemetryBody: {
|
|
50
|
+
entries: {
|
|
51
|
+
event: 'open feedback',
|
|
52
|
+
action: 'click',
|
|
53
|
+
label: JSON.stringify(children),
|
|
54
|
+
category: 'feedback',
|
|
55
|
+
},
|
|
56
|
+
},
|
|
57
|
+
})
|
|
58
|
+
}
|
|
59
|
+
>
|
|
41
60
|
{children || (showSupport ? 'Feedback & Support' : 'Give Feedback')}
|
|
42
61
|
</DropdownToggle>
|
|
43
62
|
{modal ? (
|
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
|
};
|