@availity/mui-feedback 0.1.32 → 0.2.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 +16 -0
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/index.mjs +2 -2
- package/package.json +6 -6
- package/src/lib/Feedback.tsx +3 -4
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,22 @@
|
|
|
2
2
|
|
|
3
3
|
This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
|
|
4
4
|
|
|
5
|
+
## [0.2.1](https://github.com/Availity/element/compare/@availity/mui-feedback@0.2.0...@availity/mui-feedback@0.2.1) (2024-07-22)
|
|
6
|
+
|
|
7
|
+
### Dependency Updates
|
|
8
|
+
|
|
9
|
+
* `mui-button` updated to version `0.2.0`
|
|
10
|
+
* `mui-form-utils` updated to version `0.2.0`
|
|
11
|
+
* `mui-icon` updated to version `0.2.0`
|
|
12
|
+
* `mui-textfield` updated to version `0.2.0`
|
|
13
|
+
* `mui-toggle-button` updated to version `0.2.0`
|
|
14
|
+
## [0.2.0](https://github.com/Availity/element/compare/@availity/mui-feedback@0.1.32...@availity/mui-feedback@0.2.0) (2024-07-22)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Features
|
|
18
|
+
|
|
19
|
+
* **mui-feedback:** use avLogMessagesApiV2 for logging ([b549b87](https://github.com/Availity/element/commit/b549b87d0c8887dfcff8d57e8c5c4a0bdceab8a4))
|
|
20
|
+
|
|
5
21
|
## [0.1.32](https://github.com/Availity/element/compare/@availity/mui-feedback@0.1.31...@availity/mui-feedback@0.1.32) (2024-07-19)
|
|
6
22
|
|
|
7
23
|
### Dependency Updates
|
package/dist/index.d.mts
CHANGED
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -270,7 +270,7 @@ var FeedbackHeader = ({ appName, handleClose, loading, sent }) => {
|
|
|
270
270
|
var import_jsx_runtime3 = require("react/jsx-runtime");
|
|
271
271
|
var FeedbackContainer = (0, import_styles3.styled)(import_Container.default, { name: "AvFeedbackContainer", slot: "root" })({});
|
|
272
272
|
var GiveFeedbackButton = (0, import_styles3.styled)(import_mui_button3.Button, { name: "AvGiveFeedbackButton", slot: "root" })({});
|
|
273
|
-
var Feedback = ({ analytics = import_api_axios2.
|
|
273
|
+
var Feedback = ({ analytics = import_api_axios2.avLogMessagesApiV2, appName }) => {
|
|
274
274
|
const [anchorEl, setAnchorEl] = (0, import_react2.useState)(null);
|
|
275
275
|
const [sent, setSent] = (0, import_react2.useState)(false);
|
|
276
276
|
const [loading, setLoading] = (0, import_react2.useState)(false);
|
package/dist/index.mjs
CHANGED
|
@@ -56,7 +56,7 @@ import { Popover } from "@availity/mui-popover";
|
|
|
56
56
|
import { Button as Button2 } from "@availity/mui-button";
|
|
57
57
|
import Container from "@mui/material/Container";
|
|
58
58
|
import { styled as styled3 } from "@mui/material/styles";
|
|
59
|
-
import {
|
|
59
|
+
import { avLogMessagesApiV2 } from "@availity/api-axios";
|
|
60
60
|
|
|
61
61
|
// src/lib/FeedbackForm.tsx
|
|
62
62
|
import { useEffect } from "react";
|
|
@@ -237,7 +237,7 @@ var FeedbackHeader = ({ appName, handleClose, loading, sent }) => {
|
|
|
237
237
|
import { Fragment, jsx as jsx3, jsxs as jsxs3 } from "react/jsx-runtime";
|
|
238
238
|
var FeedbackContainer = styled3(Container, { name: "AvFeedbackContainer", slot: "root" })({});
|
|
239
239
|
var GiveFeedbackButton = styled3(Button2, { name: "AvGiveFeedbackButton", slot: "root" })({});
|
|
240
|
-
var Feedback = ({ analytics =
|
|
240
|
+
var Feedback = ({ analytics = avLogMessagesApiV2, appName }) => {
|
|
241
241
|
const [anchorEl, setAnchorEl] = useState(null);
|
|
242
242
|
const [sent, setSent] = useState(false);
|
|
243
243
|
const [loading, setLoading] = useState(false);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@availity/mui-feedback",
|
|
3
|
-
"version": "0.1
|
|
3
|
+
"version": "0.2.1",
|
|
4
4
|
"description": "Availity MUI Feedback Component - part of the @availity/element design system",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|
|
@@ -47,12 +47,12 @@
|
|
|
47
47
|
},
|
|
48
48
|
"dependencies": {
|
|
49
49
|
"@availity/api-axios": "^8.0.8",
|
|
50
|
-
"@availity/mui-button": "^0.6.
|
|
51
|
-
"@availity/mui-form-utils": "^0.12.
|
|
52
|
-
"@availity/mui-icon": "^0.
|
|
50
|
+
"@availity/mui-button": "^0.6.8",
|
|
51
|
+
"@availity/mui-form-utils": "^0.12.1",
|
|
52
|
+
"@availity/mui-icon": "^0.9.0",
|
|
53
53
|
"@availity/mui-popover": "^0.1.5",
|
|
54
|
-
"@availity/mui-textfield": "^0.6.
|
|
55
|
-
"@availity/mui-toggle-button": "^0.1.
|
|
54
|
+
"@availity/mui-textfield": "^0.6.1",
|
|
55
|
+
"@availity/mui-toggle-button": "^0.1.11",
|
|
56
56
|
"@availity/mui-typography": "^0.2.0",
|
|
57
57
|
"react-hook-form": "^7.51.3"
|
|
58
58
|
}
|
package/src/lib/Feedback.tsx
CHANGED
|
@@ -3,13 +3,12 @@ import { Popover } from '@availity/mui-popover';
|
|
|
3
3
|
import { Button } from '@availity/mui-button';
|
|
4
4
|
import Container from '@mui/material/Container';
|
|
5
5
|
import { styled } from '@mui/material/styles';
|
|
6
|
-
import {
|
|
6
|
+
import { avLogMessagesApiV2 } from '@availity/api-axios';
|
|
7
7
|
import { FeedbackForm } from './FeedbackForm';
|
|
8
8
|
import { FeedbackHeader } from './FeedbackHeader';
|
|
9
9
|
|
|
10
10
|
export interface FeedbackProps {
|
|
11
|
-
|
|
12
|
-
analytics?: { info: (entries: any) => any };
|
|
11
|
+
analytics?: { info: (entries: Record<string, unknown>) => void };
|
|
13
12
|
appName: string;
|
|
14
13
|
}
|
|
15
14
|
|
|
@@ -17,7 +16,7 @@ const FeedbackContainer = styled(Container, { name: 'AvFeedbackContainer', slot:
|
|
|
17
16
|
|
|
18
17
|
const GiveFeedbackButton = styled(Button, { name: 'AvGiveFeedbackButton', slot: 'root' })({});
|
|
19
18
|
|
|
20
|
-
export const Feedback = ({ analytics =
|
|
19
|
+
export const Feedback = ({ analytics = avLogMessagesApiV2, appName }: FeedbackProps): JSX.Element => {
|
|
21
20
|
const [anchorEl, setAnchorEl] = useState<HTMLElement | null>(null);
|
|
22
21
|
const [sent, setSent] = useState<boolean>(false);
|
|
23
22
|
const [loading, setLoading] = useState<boolean>(false);
|