@availity/page-header 14.0.1 → 14.0.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 CHANGED
@@ -2,6 +2,159 @@
2
2
 
3
3
  This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
4
4
 
5
+ ## [14.0.3](https://github.com/Availity/availity-react/compare/@availity/page-header@14.0.2...@availity/page-header@14.0.3) (2024-08-27)
6
+
7
+ ### Dependency Updates
8
+
9
+ * `@availity/spaces` updated to version `14.0.2`
10
+
11
+
12
+ ## [14.0.2](https://github.com/Availity/availity-react/compare/@availity/page-header@14.0.1...@availity/page-header@14.0.2) (2024-08-22)
13
+
14
+ ### Dependency Updates
15
+
16
+ * `@availity/spaces` updated to version `14.0.1`
17
+ * `@availity/training-link` updated to version `14.0.1`
18
+ * `@availity/app-icon` updated to version `14.0.1`
19
+ * `@availity/breadcrumbs` updated to version `14.0.1`
20
+ * `@availity/feedback` updated to version `14.0.1`
21
+ * `@availity/payer-logo` updated to version `14.0.1`
22
+
23
+
24
+ # 1.0.0 (2024-08-22)
25
+
26
+ ### Dependency Updates
27
+
28
+ * `@availity/spaces` updated to version `1.0.0`
29
+ * `@availity/training-link` updated to version `0.1.0`
30
+ * `@availity/app-icon` updated to version `0.1.0`
31
+ * `@availity/breadcrumbs` updated to version `1.0.0`
32
+ * `@availity/feedback` updated to version `1.0.0`
33
+ * `@availity/payer-logo` updated to version `1.0.0`
34
+
35
+ ### Bug Fixes
36
+
37
+ * **breadcrumbs, page-header:** fixed tests ([63e0ac7](https://github.com/Availity/availity-react/commit/63e0ac7fcb0f072286c6f0dc821729f826d3a2f8))
38
+ * eslint issues ([bc4d8e9](https://github.com/Availity/availity-react/commit/bc4d8e9252a37c067de3e5b15e583c4a3c06d6c5))
39
+ * **feature:** fixed the repository for npm ([7a13a9e](https://github.com/Availity/availity-react/commit/7a13a9ea4533c1565998ed6c28439d22016c285e))
40
+ * fixed package-locks ([ddb49bb](https://github.com/Availity/availity-react/commit/ddb49bbffef1e4fae59f84fb283f5c4a422c8657))
41
+ * included pageheader test snapshot ([a315f8e](https://github.com/Availity/availity-react/commit/a315f8e0c453efc4b0335bb9cf9890ee79a62663))
42
+ * package lock urls ([51fbc03](https://github.com/Availity/availity-react/commit/51fbc0337503712f2a289897b7887ca0a739e8f0))
43
+ * **page-header:** account for payerId with multiple associated spaces and no spaceId passed ([871caf0](https://github.com/Availity/availity-react/commit/871caf05ad4d94bcd51f3df8a899d7a36191a227))
44
+ * **page-header:** add trackDeps ([1b48275](https://github.com/Availity/availity-react/commit/1b482754aba9e0df7f3451787832397c9ec2a2f2))
45
+ * **page-header:** allow crumbs to be hidden ([38f93e7](https://github.com/Availity/availity-react/commit/38f93e7b4ae9e970919f5c9dc096232e704c4cbc))
46
+ * **page-header:** allow custom crumbs in crumbs prop ([d3af59f](https://github.com/Availity/availity-react/commit/d3af59fc94b48f43f961f646c9c9d4737e12c03e))
47
+ * **page-header:** correct usage of useSpace ([2bc911c](https://github.com/Availity/availity-react/commit/2bc911c4d93ddf493bcc9e058036f166b7c5e9f0))
48
+ * **page-header:** dont send in empty payerId ([9b9e551](https://github.com/Availity/availity-react/commit/9b9e5512216cefffe2e3f67ca223e50e805dfc90))
49
+ * **page-header:** ensure breadcrumbs parent div never gets squished ([2060a03](https://github.com/Availity/availity-react/commit/2060a03d5c6bcfd7a11d8a3c39dd892123123ebd))
50
+ * **page-header:** fix link ([10dd984](https://github.com/Availity/availity-react/commit/10dd984614b1526ed993ada96a220ebcbe81e9c1))
51
+ * **page-header:** honor custom crumbs passed in ([d28e188](https://github.com/Availity/availity-react/commit/d28e188050230c3ab1c44b68e13748fb1a7cbf8a))
52
+ * **page-header:** made spaces peer dep to prevent duplicate installations ([a3d705d](https://github.com/Availity/availity-react/commit/a3d705d2e6ac3b60f2ca3da962539a2f6ebfb246))
53
+ * **page-header:** removing breadcrumb type check ([0896c2d](https://github.com/Availity/availity-react/commit/0896c2d53801da347d44b307ae049641cee5b29a))
54
+ * **page-header:** update types ReactNode ([23292dd](https://github.com/Availity/availity-react/commit/23292dd5a0fa4193f55723de9c3205934292199d))
55
+ * re-created package-locks ([49726de](https://github.com/Availity/availity-react/commit/49726dea08a61201a44c7c63c14715dda195cc25))
56
+ * removed npmrc and added config to lerna for now creating locks ([efe82ab](https://github.com/Availity/availity-react/commit/efe82ab5a9a38cc8113d5cc71416f1ef347eb4c4))
57
+ * removed package-locks,added npmrc ignore,fixed react as hoisted dep ([4648319](https://github.com/Availity/availity-react/commit/4648319b1298096de2e3e37bf6246e5f169ace0e))
58
+ * so many package-lock.json's ([8b5dc24](https://github.com/Availity/availity-react/commit/8b5dc24168f9eecae9f3f52da0b49e6da831a643))
59
+ * **spaces:** fixes from code review ([47ba435](https://github.com/Availity/availity-react/commit/47ba435806f0e76870564b085a741298b7350a92))
60
+ * update peerDep ranges ([1e26d13](https://github.com/Availity/availity-react/commit/1e26d1388383fdbd1dc919ab97c1b6f1c5a047be))
61
+ * upgrade yup and update sb stories ([68aeafe](https://github.com/Availity/availity-react/commit/68aeafe4fd7d90d7c88dbb24636ba7770fe87aa3))
62
+
63
+
64
+ ### Build System
65
+
66
+ * **page-header:** update dependencies ([104ed57](https://github.com/Availity/availity-react/commit/104ed5781d92c4cf8563084eae4ae4cfcab579de))
67
+
68
+
69
+ ### chore
70
+
71
+ * **page-header:** feedback update to latest formik should have been major bump ([f217189](https://github.com/Availity/availity-react/commit/f21718948013b9a4fbf7ed6c3105088f6fafe9a7))
72
+
73
+
74
+ ### Code Refactoring
75
+
76
+ * **page-header:** made api resources peer dep ([66e136a](https://github.com/Availity/availity-react/commit/66e136a0f3751ef20e84524761eb760e5334fe91))
77
+ * **page-header:** refactored page header strcuture to fix ux ([d79d269](https://github.com/Availity/availity-react/commit/d79d2697356935c8d0a4c9d4f1b4d4ab8335e836))
78
+ * **spaces:** remove useSpace hook in favor of useSpaces ([8a6a932](https://github.com/Availity/availity-react/commit/8a6a932da6cde1adc12fff5ff725615d0ea641a0))
79
+
80
+
81
+ ### Features
82
+
83
+ * add spaces package ([e2eff44](https://github.com/Availity/availity-react/commit/e2eff4448cfe4d28e91dfaeb87dc1e4ca17df817))
84
+ * added dynamic breadcrumb (react-router tests) ([f79f8cf](https://github.com/Availity/availity-react/commit/f79f8cfe27522f3bb1fd2266fa613a9bf28a0611))
85
+ * **docs:** updated to use yarn and added readmes ([3b94748](https://github.com/Availity/availity-react/commit/3b947487ef18c6e11486ad39203882a11bc8a1e7))
86
+ * **feature:** added packages from av-react to public ([2c32cf3](https://github.com/Availity/availity-react/commit/2c32cf353f22847a5a293eecf800315a051646f3))
87
+ * **feature:** adding typescript support ([cfe57a2](https://github.com/Availity/availity-react/commit/cfe57a265b97ba9a053fb3bee54d2b054fa86e8f))
88
+ * **feedback:** refactored feedback component with more options ([becab2e](https://github.com/Availity/availity-react/commit/becab2ebb2b5ada96b1d08f054e372376dfa17ea))
89
+ * **form:** add currency input ([fa9eea6](https://github.com/Availity/availity-react/commit/fa9eea6a3b3dd2ef741a0658c102e36c6db5288c))
90
+ * integrated dynamic breadcrumbs into PageHeader ([7865b13](https://github.com/Availity/availity-react/commit/7865b13041fe570165caf5dcfc0888f264af2ff4))
91
+ * move storybook, stories, and fix hmr ([2f65f71](https://github.com/Availity/availity-react/commit/2f65f71769d2d981e22700b87a09516833588f64))
92
+ * **page-header:** add clientId prop ([85067b9](https://github.com/Availity/availity-react/commit/85067b95951b12a327be783c6c25bcd013c5b258))
93
+ * **page-header:** add feedbackProps prop type ([525b9e9](https://github.com/Availity/availity-react/commit/525b9e91892f253dc5a12f02181866828f0d1f16))
94
+ * **page-header:** add renderRightClassName props and defaults ([c8403fe](https://github.com/Availity/availity-react/commit/c8403feca1ec881c9bdc8e6e4b5416a83311da76))
95
+ * **page-header:** added function prop to render custom right content ([9b36f16](https://github.com/Availity/availity-react/commit/9b36f162714c7bf277b20627e170b389a41c8810))
96
+ * **page-header:** added new app-icon props to page-header ([b1a4ca0](https://github.com/Availity/availity-react/commit/b1a4ca0425f2f752ad8bf78336af98e7096e97eb))
97
+ * **page-header:** allow crumbs to be hidden ([f882669](https://github.com/Availity/availity-react/commit/f8826692cd4beabe54c3ab11c21e61fe38a44529))
98
+ * **page-header:** allow logo and feedback to rendered at same time ([227d6b9](https://github.com/Availity/availity-react/commit/227d6b9fefadcd86f53d86da077fa4e6bf37d445)), closes [#88](https://github.com/Availity/availity-react/issues/88)
99
+ * **page-header:** remove defaultProps usage ([a757455](https://github.com/Availity/availity-react/commit/a7574558931895d65f53bcdb72eca39234161ef1))
100
+ * **page-header:** require spaces ^8.0.0 ([316b74f](https://github.com/Availity/availity-react/commit/316b74f94a1c8cf1ec3fdc7b9f02d739767e5641))
101
+ * **page-header:** responsiveness and debootstrapifying ([ce4b2f9](https://github.com/Availity/availity-react/commit/ce4b2f9086d2fe2c808297fc606db6581b768a7b))
102
+ * **page-header:** switch to webQL from slotmachine ([14fe0e7](https://github.com/Availity/availity-react/commit/14fe0e76c64befdd786f2ec2491d39925b7a5416))
103
+ * **page-header:** use space from spaces provider if it exists ([f3e5bdd](https://github.com/Availity/availity-react/commit/f3e5bddf064d0c5f267f65f1b91252df4670279a))
104
+ * **select:** add autofill prop ([37d3fba](https://github.com/Availity/availity-react/commit/37d3fba66e4020a34b628eda0bac3da4fa35ccf3))
105
+ * **spaces:** add SpacesFile component ([d0d95a9](https://github.com/Availity/availity-react/commit/d0d95a97a04f6af660841bbe24a95ce20dabd3f7))
106
+ * upgrade deps ([eccefc0](https://github.com/Availity/availity-react/commit/eccefc0549ebd5057595f6ac696642789375f48a))
107
+
108
+
109
+ ### BREAKING CHANGES
110
+
111
+ * **page-header:** feedback has a breaking change which requires a breaking change here
112
+ * **page-header:** the @availity/spaces peer dependency must be ^8.0.0 in
113
+ order to use this package now
114
+ * axios v1 is now required
115
+ * **page-header:** response format of webQL is different than from
116
+ slotmachine
117
+
118
+ This is unlikely to break anyone using the components in this package in
119
+ a typical fashion, but if you:
120
+
121
+ 1. use the `useSpaces` hook to do anything
122
+ custom, the shape of a configuration (returned by webQL) differs
123
+ slightly from a space (return by slotmachine). you may need to account
124
+ for this
125
+
126
+ 2. pass in a custom query or variables to the Spaces provider the query
127
+ format and variables structure in webQL is different than that from slotmachine
128
+ * **page-header:** api-core and localstorage-core have been bumped to next major version
129
+ * **spaces:** `useSpace` is no longer available. Use `useSpaces`
130
+ instead. Additionally, `isGhost` is no longer exported as that property is computed server side and assigned to the space asset
131
+
132
+ *Before:*
133
+ ```js
134
+ import { useSpace } from '@availity/spaces';
135
+
136
+ // ...
137
+ const { space: space1, loading, error, isGhost } = useSpace('1');
138
+ const { space: space2 } = useSpace('2');
139
+ const { space: space3 } = useSpace('3');
140
+ ```
141
+
142
+ *After:*
143
+ ```js
144
+ import { useSpaces, useSpacesContext } from '@availity/spaces';
145
+
146
+ // ...
147
+ const [space1, space2, space3] = useSpaces('1', '2', '3');
148
+ const { loading, error } = useSpacesContext();
149
+ ```
150
+ * **page-header:** Tag prop now is defaulted to div and appName instead of children will render an h1 tag by default
151
+ * **page-header:** `@availity/spaces` is now a peer dependency
152
+ * **page-header:** api-axios api-core and axios are peer deps now
153
+ * **page-header:** this requires formik and yup to be installed alongside for feedback to work
154
+ * **feedback:** The feedback modal has a new look.
155
+
156
+
157
+
5
158
  ## [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
159
 
7
160
  ### Dependency Updates
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@availity/page-header",
3
- "version": "14.0.1",
3
+ "version": "14.0.3",
4
4
  "description": "The standard page header for Availity Portal Applications",
5
5
  "keywords": [
6
6
  "react",
@@ -26,27 +26,27 @@
26
26
  "publish:canary": "yarn npm publish --access public --tag canary"
27
27
  },
28
28
  "dependencies": {
29
- "@availity/app-icon": "1.6.5",
30
- "@availity/breadcrumbs": "3.3.5",
31
- "@availity/feedback": "9.0.1",
32
- "@availity/payer-logo": "7.0.2",
33
- "classnames": "^2.3.2",
29
+ "@availity/app-icon": "1.6.6",
30
+ "@availity/breadcrumbs": "3.3.6",
31
+ "@availity/feedback": "9.0.2",
32
+ "@availity/payer-logo": "7.0.3",
33
+ "classnames": "^2.5.1",
34
34
  "prop-types": "^15.8.1"
35
35
  },
36
36
  "devDependencies": {
37
- "@availity/api-axios": "^8.0.7",
38
- "@availity/spaces": "8.0.7",
39
- "@availity/training-link": "1.8.2",
40
- "axios": "^1.6.7",
41
- "formik": "^2.4.4",
42
- "react": "^18.2.0",
43
- "react-dom": "^18.2.0",
37
+ "@availity/api-axios": "^9.0.0",
38
+ "@availity/spaces": "8.0.9",
39
+ "@availity/training-link": "1.8.3",
40
+ "axios": "^1.7.4",
41
+ "formik": "^2.4.6",
42
+ "react": "^18.3.1",
43
+ "react-dom": "^18.3.1",
44
44
  "yup": "^0.32.11"
45
45
  },
46
46
  "peerDependencies": {
47
47
  "@availity/api-axios": "^8.0.0",
48
48
  "@availity/spaces": "^8.0.0",
49
- "axios": "^1.0.0",
49
+ "axios": "^1.7.4",
50
50
  "formik": "^2.0.1",
51
51
  "react": ">=16.11.0",
52
52
  "react-dom": ">=16.11.0",
package/project.json CHANGED
@@ -1,27 +1,29 @@
1
1
  {
2
- "root": "packages/page-header",
2
+ "name": "@availity/page-header",
3
+ "$schema": "../../node_modules/nx/schemas/project-schema.json",
3
4
  "projectType": "library",
4
5
  "targets": {
5
6
  "test": {
6
7
  "executor": "@nx/jest:jest",
7
- "outputs": ["coverage/page-header"],
8
- "options": { "jestConfig": "packages/page-header/jest.config.js", "passWithNoTests": true }
8
+ "outputs": ["{workspaceRoot}/coverage/page-header"],
9
+ "options": {
10
+ "jestConfig": "packages/page-header/jest.config.js"
11
+ }
9
12
  },
10
13
  "version": {
11
14
  "executor": "@jscutlery/semver:version",
12
15
  "options": {
13
16
  "preset": "angular",
14
17
  "commitMessageFormat": "chore({projectName}): release version ${version} [skip ci]",
15
- "tagPrefix": "@availity/{projectName}@",
18
+ "tagPrefix": "{projectName}@",
16
19
  "baseBranch": "master",
17
20
  "trackDeps": true
18
21
  }
19
22
  },
20
23
  "lint": {
21
- "executor": "@nx/linter:eslint",
24
+ "executor": "@nx/eslint:lint",
22
25
  "options": {
23
26
  "eslintConfig": ".eslintrc.yaml",
24
- "lintFilePatterns": ["packages/page-header/**/*.{js,ts}"],
25
27
  "silent": false,
26
28
  "fix": false,
27
29
  "cache": true,
package/src/PageHeader.js CHANGED
@@ -88,6 +88,7 @@ const PageHeader = ({
88
88
  <>
89
89
  <div className="page-header-above">
90
90
  {showCrumbs ? (
91
+ // eslint-disable-next-line react/jsx-no-useless-fragment
91
92
  <>
92
93
  {React.isValidElement(crumbs) ? (
93
94
  crumbs