@availity/page-header 13.0.8 → 14.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,6 +2,31 @@
2
2
 
3
3
  This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
4
4
 
5
+ ## [14.0.1](https://github.com/Availity/availity-react/compare/@availity/page-header@14.0.0...@availity/page-header@14.0.1) (2024-08-14)
6
+
7
+ ### Dependency Updates
8
+
9
+ * `feedback` updated to version `14.0.0`
10
+ * `spaces` updated to version `14.0.0`
11
+
12
+
13
+ # [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)
14
+
15
+ ### Dependency Updates
16
+
17
+ * `feedback` updated to version `13.0.8`
18
+
19
+ ### Features
20
+
21
+ * **page-header:** remove defaultProps usage ([a757455](https://github.com/Availity/availity-react/commit/a7574558931895d65f53bcdb72eca39234161ef1))
22
+
23
+
24
+ ### BREAKING CHANGES
25
+
26
+ * **page-header:** feedback has a breaking change which requires a breaking change here
27
+
28
+
29
+
5
30
  ## [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
31
 
7
32
  ### Dependency Updates
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@availity/page-header",
3
- "version": "13.0.8",
3
+ "version": "14.0.1",
4
4
  "description": "The standard page header for Availity Portal Applications",
5
5
  "keywords": [
6
6
  "react",
@@ -28,14 +28,14 @@
28
28
  "dependencies": {
29
29
  "@availity/app-icon": "1.6.5",
30
30
  "@availity/breadcrumbs": "3.3.5",
31
- "@availity/feedback": "8.0.4",
31
+ "@availity/feedback": "9.0.1",
32
32
  "@availity/payer-logo": "7.0.2",
33
33
  "classnames": "^2.3.2",
34
34
  "prop-types": "^15.8.1"
35
35
  },
36
36
  "devDependencies": {
37
37
  "@availity/api-axios": "^8.0.7",
38
- "@availity/spaces": "8.0.6",
38
+ "@availity/spaces": "8.0.7",
39
39
  "@availity/training-link": "1.8.2",
40
40
  "axios": "^1.6.7",
41
41
  "formik": "^2.4.4",
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;