@availity/page-header 13.0.8 → 14.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 +17 -0
- package/package.json +2 -2
- package/src/PageHeader.js +7 -19
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,23 @@
|
|
|
2
2
|
|
|
3
3
|
This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
|
|
4
4
|
|
|
5
|
+
# [14.0.0](https://github.com/Availity/availity-react/compare/@availity/page-header@13.0.8...@availity/page-header@14.0.0) (2024-07-12)
|
|
6
|
+
|
|
7
|
+
### Dependency Updates
|
|
8
|
+
|
|
9
|
+
* `feedback` updated to version `13.0.8`
|
|
10
|
+
|
|
11
|
+
### Features
|
|
12
|
+
|
|
13
|
+
* **page-header:** remove defaultProps usage ([a757455](https://github.com/Availity/availity-react/commit/a7574558931895d65f53bcdb72eca39234161ef1))
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
### BREAKING CHANGES
|
|
17
|
+
|
|
18
|
+
* **page-header:** feedback has a breaking change which requires a breaking change here
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
5
22
|
## [13.0.8](https://github.com/Availity/availity-react/compare/@availity/page-header@13.0.7...@availity/page-header@13.0.8) (2024-05-31)
|
|
6
23
|
|
|
7
24
|
### Dependency Updates
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@availity/page-header",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "14.0.0",
|
|
4
4
|
"description": "The standard page header for Availity Portal Applications",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"dependencies": {
|
|
29
29
|
"@availity/app-icon": "1.6.5",
|
|
30
30
|
"@availity/breadcrumbs": "3.3.5",
|
|
31
|
-
"@availity/feedback": "
|
|
31
|
+
"@availity/feedback": "9.0.0",
|
|
32
32
|
"@availity/payer-logo": "7.0.2",
|
|
33
33
|
"classnames": "^2.3.2",
|
|
34
34
|
"prop-types": "^15.8.1"
|
package/src/PageHeader.js
CHANGED
|
@@ -8,28 +8,28 @@ import Spaces, { SpacesLogo, useSpaces, useSpacesContext } from '@availity/space
|
|
|
8
8
|
import '../styles.scss';
|
|
9
9
|
|
|
10
10
|
const PageHeader = ({
|
|
11
|
-
payerId,
|
|
11
|
+
payerId = null,
|
|
12
12
|
logo,
|
|
13
13
|
spaceName,
|
|
14
|
-
spaceId,
|
|
14
|
+
spaceId = null,
|
|
15
15
|
children,
|
|
16
16
|
appName,
|
|
17
17
|
appAbbr,
|
|
18
18
|
iconColor,
|
|
19
19
|
branded,
|
|
20
|
-
showCrumbs,
|
|
20
|
+
showCrumbs = true,
|
|
21
21
|
crumbs,
|
|
22
22
|
feedback: showFeedback,
|
|
23
23
|
feedbackProps,
|
|
24
|
-
titleProps: { className: titleClassName, ...restTitleProps },
|
|
24
|
+
titleProps: { className: titleClassName, ...restTitleProps } = {},
|
|
25
25
|
renderRightContent: RenderRightContent,
|
|
26
|
-
renderRightClassName,
|
|
26
|
+
renderRightClassName = 'page-header-right',
|
|
27
27
|
component,
|
|
28
|
-
tag: Tag,
|
|
28
|
+
tag: Tag = 'div',
|
|
29
29
|
clientId,
|
|
30
30
|
iconSrc,
|
|
31
31
|
iconAlt,
|
|
32
|
-
homeUrl,
|
|
32
|
+
homeUrl = '/public/apps/dashboard',
|
|
33
33
|
linkTag,
|
|
34
34
|
className,
|
|
35
35
|
...props
|
|
@@ -191,16 +191,4 @@ PageHeader.propTypes = {
|
|
|
191
191
|
iconAlt: PropTypes.string,
|
|
192
192
|
};
|
|
193
193
|
|
|
194
|
-
PageHeader.defaultProps = {
|
|
195
|
-
tag: 'div',
|
|
196
|
-
// SpaceId and payerId are defaulted to null to prevent `useSpace` from
|
|
197
|
-
// returning a space we may not want
|
|
198
|
-
spaceId: null,
|
|
199
|
-
payerId: null,
|
|
200
|
-
homeUrl: '/public/apps/dashboard',
|
|
201
|
-
titleProps: {},
|
|
202
|
-
renderRightClassName: 'page-header-right',
|
|
203
|
-
showCrumbs: true,
|
|
204
|
-
};
|
|
205
|
-
|
|
206
194
|
export default PageHeader;
|