@availity/mui-feedback 1.0.15 → 2.0.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 +35 -0
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +2 -2
- package/dist/index.mjs +2 -2
- package/package.json +16 -15
- package/src/lib/Feedback.tsx +1 -1
- package/src/lib/FeedbackForm.tsx +3 -3
- package/src/lib/FeedbackHeader.tsx +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,41 @@
|
|
|
2
2
|
|
|
3
3
|
This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
|
|
4
4
|
|
|
5
|
+
## [2.0.0](https://github.com/Availity/element/compare/@availity/mui-feedback@1.0.16...@availity/mui-feedback@2.0.0) (2025-11-17)
|
|
6
|
+
|
|
7
|
+
### Dependency Updates
|
|
8
|
+
|
|
9
|
+
* `mui-button` updated to version `1.0.16`
|
|
10
|
+
* `mui-form-utils` updated to version `1.0.16`
|
|
11
|
+
* `mui-icon` updated to version `1.0.16`
|
|
12
|
+
* `mui-layout` updated to version `1.0.16`
|
|
13
|
+
* `mui-popover` updated to version `1.0.16`
|
|
14
|
+
* `mui-textfield` updated to version `1.0.16`
|
|
15
|
+
* `mui-toggle-button` updated to version `1.0.16`
|
|
16
|
+
* `mui-typography` updated to version `1.0.16`
|
|
17
|
+
|
|
18
|
+
### ⚠ BREAKING CHANGES
|
|
19
|
+
|
|
20
|
+
* @mui/material upgraded to v7
|
|
21
|
+
* @mui/x-* upgraded to v8
|
|
22
|
+
* react upgraded to v19
|
|
23
|
+
|
|
24
|
+
### Features
|
|
25
|
+
|
|
26
|
+
* upgrade material and react dependencies ([51602a4](https://github.com/Availity/element/commit/51602a48c5304db6f61e2c7e772c9a3a4aa3f65c))
|
|
27
|
+
|
|
28
|
+
## [1.0.16](https://github.com/Availity/element/compare/@availity/mui-feedback@1.0.15...@availity/mui-feedback@1.0.16) (2025-10-30)
|
|
29
|
+
|
|
30
|
+
### Dependency Updates
|
|
31
|
+
|
|
32
|
+
* `mui-button` updated to version `1.0.15`
|
|
33
|
+
* `mui-form-utils` updated to version `1.0.15`
|
|
34
|
+
* `mui-icon` updated to version `1.0.15`
|
|
35
|
+
* `mui-layout` updated to version `1.0.15`
|
|
36
|
+
* `mui-popover` updated to version `1.0.15`
|
|
37
|
+
* `mui-textfield` updated to version `1.0.15`
|
|
38
|
+
* `mui-toggle-button` updated to version `1.0.15`
|
|
39
|
+
* `mui-typography` updated to version `1.0.15`
|
|
5
40
|
## [1.0.15](https://github.com/Availity/element/compare/@availity/mui-feedback@1.0.14...@availity/mui-feedback@1.0.15) (2025-05-29)
|
|
6
41
|
|
|
7
42
|
### Dependency Updates
|
package/dist/index.d.mts
CHANGED
|
@@ -5,6 +5,6 @@ interface FeedbackProps {
|
|
|
5
5
|
appName: string;
|
|
6
6
|
buttonVariant?: 'secondary' | 'tertiary';
|
|
7
7
|
}
|
|
8
|
-
declare const Feedback: ({ analytics, appName, buttonVariant, }: FeedbackProps) => JSX.Element;
|
|
8
|
+
declare const Feedback: ({ analytics, appName, buttonVariant, }: FeedbackProps) => React.JSX.Element;
|
|
9
9
|
|
|
10
10
|
export { Feedback, type FeedbackProps };
|
package/dist/index.d.ts
CHANGED
|
@@ -5,6 +5,6 @@ interface FeedbackProps {
|
|
|
5
5
|
appName: string;
|
|
6
6
|
buttonVariant?: 'secondary' | 'tertiary';
|
|
7
7
|
}
|
|
8
|
-
declare const Feedback: ({ analytics, appName, buttonVariant, }: FeedbackProps) => JSX.Element;
|
|
8
|
+
declare const Feedback: ({ analytics, appName, buttonVariant, }: FeedbackProps) => React.JSX.Element;
|
|
9
9
|
|
|
10
10
|
export { Feedback, type FeedbackProps };
|
package/dist/index.js
CHANGED
|
@@ -140,7 +140,7 @@ var FeedbackForm = ({
|
|
|
140
140
|
setValue,
|
|
141
141
|
watch
|
|
142
142
|
} = (0, import_react_hook_form.useForm)();
|
|
143
|
-
const onSubmit = (_a) => __async(
|
|
143
|
+
const onSubmit = (_a) => __async(null, null, function* () {
|
|
144
144
|
var _b = _a, { smileField } = _b, values = __objRest(_b, ["smileField"]);
|
|
145
145
|
setLoading(true);
|
|
146
146
|
try {
|
|
@@ -242,7 +242,7 @@ var FeedbackForm = ({
|
|
|
242
242
|
),
|
|
243
243
|
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(FormActions, { container: true, direction: "row", width: "100%", spacing: 1, wrap: "wrap", children: [
|
|
244
244
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_mui_layout.Grid, { sx: { flex: 1, minWidth: "147px" }, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_mui_button.Button, { color: "secondary", disabled: loading, onClick: handleClose, children: "Close" }) }),
|
|
245
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_mui_layout.Grid, { sx: { flex: 1, minWidth: "147px" }, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_mui_button.LoadingButton, { disabled: !smileFieldValue, loading, type: "submit",
|
|
245
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_mui_layout.Grid, { sx: { flex: 1, minWidth: "147px" }, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_mui_button.LoadingButton, { disabled: !smileFieldValue, loading, type: "submit", children: "Send Feedback" }) })
|
|
246
246
|
] })
|
|
247
247
|
]
|
|
248
248
|
}
|
package/dist/index.mjs
CHANGED
|
@@ -107,7 +107,7 @@ var FeedbackForm = ({
|
|
|
107
107
|
setValue,
|
|
108
108
|
watch
|
|
109
109
|
} = useForm();
|
|
110
|
-
const onSubmit = (_a) => __async(
|
|
110
|
+
const onSubmit = (_a) => __async(null, null, function* () {
|
|
111
111
|
var _b = _a, { smileField } = _b, values = __objRest(_b, ["smileField"]);
|
|
112
112
|
setLoading(true);
|
|
113
113
|
try {
|
|
@@ -209,7 +209,7 @@ var FeedbackForm = ({
|
|
|
209
209
|
),
|
|
210
210
|
/* @__PURE__ */ jsxs(FormActions, { container: true, direction: "row", width: "100%", spacing: 1, wrap: "wrap", children: [
|
|
211
211
|
/* @__PURE__ */ jsx(Grid, { sx: { flex: 1, minWidth: "147px" }, children: /* @__PURE__ */ jsx(Button, { color: "secondary", disabled: loading, onClick: handleClose, children: "Close" }) }),
|
|
212
|
-
/* @__PURE__ */ jsx(Grid, { sx: { flex: 1, minWidth: "147px" }, children: /* @__PURE__ */ jsx(LoadingButton, { disabled: !smileFieldValue, loading, type: "submit",
|
|
212
|
+
/* @__PURE__ */ jsx(Grid, { sx: { flex: 1, minWidth: "147px" }, children: /* @__PURE__ */ jsx(LoadingButton, { disabled: !smileFieldValue, loading, type: "submit", children: "Send Feedback" }) })
|
|
213
213
|
] })
|
|
214
214
|
]
|
|
215
215
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@availity/mui-feedback",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.0",
|
|
4
4
|
"description": "Availity MUI Feedback Component - part of the @availity/element design system",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|
|
@@ -40,29 +40,30 @@
|
|
|
40
40
|
"publish:canary": "yarn npm publish --access public --tag canary"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
|
-
"@mui/material": "^
|
|
44
|
-
"react": "
|
|
45
|
-
"react-dom": "
|
|
43
|
+
"@mui/material": "^7.3.4",
|
|
44
|
+
"react": "19.2.0",
|
|
45
|
+
"react-dom": "19.2.0",
|
|
46
46
|
"tsup": "^8.4.0",
|
|
47
47
|
"typescript": "^5.4.5"
|
|
48
48
|
},
|
|
49
49
|
"peerDependencies": {
|
|
50
|
-
"@mui/material": "^
|
|
51
|
-
"react": ">=
|
|
50
|
+
"@mui/material": "^7.0.0",
|
|
51
|
+
"react": ">=17.0.0"
|
|
52
52
|
},
|
|
53
53
|
"publishConfig": {
|
|
54
54
|
"access": "public"
|
|
55
55
|
},
|
|
56
56
|
"dependencies": {
|
|
57
57
|
"@availity/api-axios": "^11.0.0",
|
|
58
|
-
"@availity/mui-button": "^
|
|
59
|
-
"@availity/mui-form-utils": "^
|
|
60
|
-
"@availity/mui-icon": "^
|
|
61
|
-
"@availity/mui-layout": "^
|
|
62
|
-
"@availity/mui-popover": "^
|
|
63
|
-
"@availity/mui-textfield": "^
|
|
64
|
-
"@availity/mui-toggle-button": "^
|
|
65
|
-
"@availity/mui-typography": "^
|
|
58
|
+
"@availity/mui-button": "^2.0.0",
|
|
59
|
+
"@availity/mui-form-utils": "^2.0.0",
|
|
60
|
+
"@availity/mui-icon": "^2.0.0",
|
|
61
|
+
"@availity/mui-layout": "^2.0.0",
|
|
62
|
+
"@availity/mui-popover": "^2.0.0",
|
|
63
|
+
"@availity/mui-textfield": "^2.0.0",
|
|
64
|
+
"@availity/mui-toggle-button": "^2.0.0",
|
|
65
|
+
"@availity/mui-typography": "^2.0.0",
|
|
66
66
|
"react-hook-form": "^7.55.0"
|
|
67
|
-
}
|
|
67
|
+
},
|
|
68
|
+
"sideEffects": false
|
|
68
69
|
}
|
package/src/lib/Feedback.tsx
CHANGED
|
@@ -22,7 +22,7 @@ export const Feedback = ({
|
|
|
22
22
|
analytics = avLogMessagesApiV2,
|
|
23
23
|
appName,
|
|
24
24
|
buttonVariant = 'secondary',
|
|
25
|
-
}: FeedbackProps): JSX.Element => {
|
|
25
|
+
}: FeedbackProps): React.JSX.Element => {
|
|
26
26
|
const [anchorEl, setAnchorEl] = useState<HTMLElement | null>(null);
|
|
27
27
|
const [sent, setSent] = useState<boolean>(false);
|
|
28
28
|
const [loading, setLoading] = useState<boolean>(false);
|
package/src/lib/FeedbackForm.tsx
CHANGED
|
@@ -18,7 +18,7 @@ interface Inputs {
|
|
|
18
18
|
|
|
19
19
|
interface SmileButtonProps extends ToggleButtonProps {
|
|
20
20
|
disabled: boolean;
|
|
21
|
-
Icon: (props: SvgIconProps) => JSX.Element;
|
|
21
|
+
Icon: (props: SvgIconProps) => React.JSX.Element;
|
|
22
22
|
label: string;
|
|
23
23
|
value: string;
|
|
24
24
|
}
|
|
@@ -64,7 +64,7 @@ export const FeedbackForm = ({
|
|
|
64
64
|
sent,
|
|
65
65
|
setLoading,
|
|
66
66
|
setSent,
|
|
67
|
-
}: FeedbackFormProps): JSX.Element | null => {
|
|
67
|
+
}: FeedbackFormProps): React.JSX.Element | null => {
|
|
68
68
|
const {
|
|
69
69
|
control,
|
|
70
70
|
formState: { errors },
|
|
@@ -183,7 +183,7 @@ export const FeedbackForm = ({
|
|
|
183
183
|
</Button>
|
|
184
184
|
</Grid>
|
|
185
185
|
<Grid sx={{ flex: 1, minWidth: '147px' }}>
|
|
186
|
-
<LoadingButton disabled={!smileFieldValue} loading={loading} type="submit"
|
|
186
|
+
<LoadingButton disabled={!smileFieldValue} loading={loading} type="submit">
|
|
187
187
|
Send Feedback
|
|
188
188
|
</LoadingButton>
|
|
189
189
|
</Grid>
|
|
@@ -13,7 +13,7 @@ interface FeedbackHeaderProps {
|
|
|
13
13
|
|
|
14
14
|
const FeedbackHeaderContainer = styled(Grid, { name: 'AvFeedbackContainer', slot: 'FeedbackHeaderContainer' })({});
|
|
15
15
|
|
|
16
|
-
export const FeedbackHeader = ({ appName, handleClose, loading, sent }: FeedbackHeaderProps): JSX.Element => {
|
|
16
|
+
export const FeedbackHeader = ({ appName, handleClose, loading, sent }: FeedbackHeaderProps): React.JSX.Element => {
|
|
17
17
|
return (
|
|
18
18
|
<FeedbackHeaderContainer
|
|
19
19
|
alignItems="flex-start"
|