@availity/feedback 7.1.8-alpha.0 → 7.1.8-alpha.2
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 +13 -0
- package/package.json +1 -1
- package/src/Feedback.js +21 -2
- package/src/FeedbackButton.js +0 -10
- package/src/FeedbackForm.js +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,19 @@
|
|
|
2
2
|
|
|
3
3
|
This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
|
|
4
4
|
|
|
5
|
+
## [7.1.8-alpha.2](https://github.com/Availity/availity-react/compare/@availity/feedback@7.1.8-alpha.1...@availity/feedback@7.1.8-alpha.2) (2023-10-23)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
* **feedback:** use appName for source_system in telemetry body ([8a33d9a](https://github.com/Availity/availity-react/commit/8a33d9a80bbd5c4715088dfb88f6294f11262cd2))
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
## [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)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
|
|
5
18
|
## [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
19
|
|
|
7
20
|
|
package/package.json
CHANGED
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: appName,
|
|
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/FeedbackButton.js
CHANGED
|
@@ -2,7 +2,6 @@ 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';
|
|
6
5
|
|
|
7
6
|
const btnStyles = { fontSize: '1.4em', padding: '.2em .4em' };
|
|
8
7
|
const iconStyles = { margin: '0px' };
|
|
@@ -13,15 +12,6 @@ const FeedbackButton = ({ onClick, icon, active, children, iconSize, ...rest })
|
|
|
13
12
|
color={active === icon ? 'primary' : 'light'}
|
|
14
13
|
aria-pressed={active === icon}
|
|
15
14
|
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
|
-
});
|
|
25
15
|
onClick(icon);
|
|
26
16
|
}}
|
|
27
17
|
onKeyDown={({ keyCode }) => keyCode === 13 && onClick(icon)}
|
package/src/FeedbackForm.js
CHANGED
|
@@ -66,7 +66,7 @@ const FeedbackForm = ({
|
|
|
66
66
|
await avTelemetryApi.info({
|
|
67
67
|
customerId: '0000',
|
|
68
68
|
contact: 'BigBitBandits@availity.com',
|
|
69
|
-
source_system:
|
|
69
|
+
source_system: name,
|
|
70
70
|
version: '1',
|
|
71
71
|
telemetryBody: { entries: { event: 'submit', action: 'click', label: 'Submit', category: 'feedback' } },
|
|
72
72
|
});
|