@availity/feedback 7.1.8-alpha.1 → 8.0.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 CHANGED
@@ -2,22 +2,7 @@
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
5
+ ## [8.0.1](https://github.com/Availity/availity-react/compare/@availity/feedback@8.0.0...@availity/feedback@8.0.1) (2023-10-19)
21
6
 
22
7
 
23
8
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@availity/feedback",
3
- "version": "7.1.8-alpha.1",
3
+ "version": "8.0.1",
4
4
  "description": "Availity feedback with smiley faces react component.",
5
5
  "keywords": [
6
6
  "react",
@@ -25,16 +25,16 @@
25
25
  "publish:canary": "yarn npm publish --access public --tag canary"
26
26
  },
27
27
  "dependencies": {
28
- "@availity/api-axios": "^8.0.3",
29
28
  "@availity/block-ui": "^1.1.2",
30
29
  "@availity/form": "1.7.5",
31
30
  "@availity/hooks": "5.0.0",
32
- "@availity/icon": "0.11.4",
31
+ "@availity/icon": "0.11.5",
33
32
  "@availity/native-form": "^5.0.4",
34
33
  "@availity/select": "4.0.0",
35
34
  "prop-types": "^15.8.1"
36
35
  },
37
36
  "devDependencies": {
37
+ "@availity/api-axios": "^8.0.3",
38
38
  "@availity/yup": "^5.1.3",
39
39
  "axios": "^1.5.0",
40
40
  "formik": "^2.4.4",
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, avTelemetryApi } from '@availity/api-axios';
4
+ import { avLogMessagesApi } from '@availity/api-axios';
5
5
  import { useToggle } from '@availity/hooks';
6
6
  import FeedbackDropdown from './FeedbackDropdown';
7
7
  import FeedbackModal from './FeedbackModal';
@@ -37,26 +37,7 @@ const Feedback = ({
37
37
  className={`${className} hidden-print`}
38
38
  {...props}
39
39
  >
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
- >
40
+ <DropdownToggle color={color} outline={outline}>
60
41
  {children || (showSupport ? 'Feedback & Support' : 'Give Feedback')}
61
42
  </DropdownToggle>
62
43
  {modal ? (
@@ -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, avTelemetryApi } from '@availity/api-axios';
4
+ import { avLogMessagesApi, avRegionsApi } 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,14 +63,6 @@ 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
-
74
66
  setSent(values);
75
67
  setLoading(false);
76
68
  };