@availity/page-header 11.3.1 → 11.3.3
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 +13 -0
- package/package.json +7 -7
- package/src/PageHeader.js +25 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,19 @@
|
|
|
2
2
|
|
|
3
3
|
This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
|
|
4
4
|
|
|
5
|
+
## [11.3.3](https://github.com/Availity/availity-react/compare/@availity/page-header@11.3.2...@availity/page-header@11.3.3) (2023-07-20)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
* **page-header:** fix link ([10dd984](https://github.com/Availity/availity-react/commit/10dd984614b1526ed993ada96a220ebcbe81e9c1))
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
## [11.3.2](https://github.com/Availity/availity-react/compare/@availity/page-header@11.3.1...@availity/page-header@11.3.2) (2023-01-25)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
|
|
5
18
|
## [11.3.1](https://github.com/Availity/availity-react/compare/@availity/page-header@11.3.0...@availity/page-header@11.3.1) (2022-06-14)
|
|
6
19
|
|
|
7
20
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@availity/page-header",
|
|
3
|
-
"version": "11.3.
|
|
3
|
+
"version": "11.3.3",
|
|
4
4
|
"description": "The standard page header for Availity Portal Applications",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|
|
@@ -26,17 +26,17 @@
|
|
|
26
26
|
"publish:canary": "yarn npm publish --access public --tag canary"
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@availity/app-icon": "1.6.
|
|
30
|
-
"@availity/breadcrumbs": "3.3.
|
|
31
|
-
"@availity/feedback": "7.1.
|
|
32
|
-
"@availity/payer-logo": "5.2.
|
|
29
|
+
"@availity/app-icon": "1.6.2",
|
|
30
|
+
"@availity/breadcrumbs": "3.3.3",
|
|
31
|
+
"@availity/feedback": "7.1.6",
|
|
32
|
+
"@availity/payer-logo": "5.2.2",
|
|
33
33
|
"classnames": "^2.3.1",
|
|
34
34
|
"prop-types": "^15.8.1"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
37
|
"@availity/api-axios": "^7.0.1",
|
|
38
|
-
"@availity/spaces": "6.
|
|
39
|
-
"@availity/training-link": "1.
|
|
38
|
+
"@availity/spaces": "6.5.9",
|
|
39
|
+
"@availity/training-link": "1.7.1",
|
|
40
40
|
"axios": "^0.21.4",
|
|
41
41
|
"formik": "^2.2.9",
|
|
42
42
|
"react": "^17.0.2",
|
package/src/PageHeader.js
CHANGED
|
@@ -133,21 +133,37 @@ const PageHeader = ({
|
|
|
133
133
|
};
|
|
134
134
|
|
|
135
135
|
PageHeader.propTypes = {
|
|
136
|
-
|
|
136
|
+
/** Name of the application. */
|
|
137
137
|
appName: PropTypes.string.isRequired,
|
|
138
|
+
/** The name of the class. */
|
|
139
|
+
className: PropTypes.string,
|
|
140
|
+
/** Payer Space Name of the space in which this page is under. */
|
|
138
141
|
spaceName: PropTypes.string,
|
|
142
|
+
/** Payer Space ID of the space in which this page is under. */
|
|
139
143
|
spaceId: PropTypes.string,
|
|
144
|
+
/** If provided and payerId is not provided, the app icon will appear. */
|
|
140
145
|
appAbbr: PropTypes.string,
|
|
146
|
+
/** Potential values: "black", "blue", "green", "orange", "red". Only used if the app icon should appear. Default: "black". */
|
|
141
147
|
iconColor: PropTypes.string,
|
|
148
|
+
/** Triggers the app icon's "branded" styles. Only used if the app icon should appear. */
|
|
142
149
|
branded: PropTypes.bool,
|
|
150
|
+
/** The ID of the payer the application is for. If provided, the payer logo appears and not the app icon. */
|
|
143
151
|
payerId: PropTypes.string,
|
|
152
|
+
/** Allow rendering of an optional component in the top right of the header. */
|
|
144
153
|
component: PropTypes.element,
|
|
154
|
+
/** If true, the feedback loop button appears. */
|
|
145
155
|
feedback: PropTypes.bool,
|
|
156
|
+
/** See Feedback. Props to send to <Feedback /> component */
|
|
146
157
|
feedbackProps: PropTypes.shape({ ...Feedback.propTypes }),
|
|
158
|
+
/** Additional props passed to the page-header-title. */
|
|
147
159
|
titleProps: PropTypes.object,
|
|
160
|
+
/** This value appears at the h1 of the page. Overrides the appName to allow for custom elements (such as a "beta" tag). Default: ${appName}. */
|
|
148
161
|
children: PropTypes.node,
|
|
162
|
+
/** Custom link tag for the links. Default: <a> */
|
|
149
163
|
linkTag: PropTypes.oneOfType([PropTypes.func, PropTypes.string]),
|
|
164
|
+
/** Flag whether or not to show the breadcrumbs. Default: true */
|
|
150
165
|
showCrumbs: PropTypes.bool,
|
|
166
|
+
/** Array of Objects containing name (String) and url (String) properties. The ancestor pages which get passed to the Breadcrumbs component. See Breadcrumbs */
|
|
151
167
|
crumbs: PropTypes.oneOfType([
|
|
152
168
|
PropTypes.arrayOf(
|
|
153
169
|
PropTypes.shape({
|
|
@@ -157,13 +173,21 @@ PageHeader.propTypes = {
|
|
|
157
173
|
),
|
|
158
174
|
PropTypes.node,
|
|
159
175
|
]),
|
|
176
|
+
/** If true will fetch the payer logo using the spaceId or payerId. */
|
|
160
177
|
logo: PropTypes.bool,
|
|
178
|
+
/** The tag to render the page header as. Default: <h1>. */
|
|
161
179
|
tag: PropTypes.oneOfType([PropTypes.func, PropTypes.string]),
|
|
180
|
+
/** Used to customize the contents of the right side of the page header where the feedback and payer logo get rendered. Accepts the rendered payerLogo and feedback as props */
|
|
162
181
|
renderRightContent: PropTypes.func,
|
|
182
|
+
/** Renders the name of the right side of the page header */
|
|
163
183
|
renderRightClassName: PropTypes.string,
|
|
184
|
+
/** Url for the Home route. Default: public/apps/dashboard. */
|
|
164
185
|
homeUrl: PropTypes.string,
|
|
186
|
+
/** Client ID to use in Spaces to fetch the payer's logo */
|
|
165
187
|
clientId: PropTypes.string,
|
|
188
|
+
/** Image source for <AppIcon /> to be used instead of appAbbr. */
|
|
166
189
|
iconSrc: PropTypes.string,
|
|
190
|
+
/** Required if iconSrc is used. Image alt property of <AppIcon /> */
|
|
167
191
|
iconAlt: PropTypes.string,
|
|
168
192
|
};
|
|
169
193
|
|