qpp-style 9.34.3 → 9.34.4
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/coverage/clover.xml +139 -142
- package/coverage/coverage-final.json +13 -12
- package/coverage/lcov-report/Infotip.jsx.html +298 -0
- package/coverage/lcov-report/InfotipContent.jsx.html +223 -0
- package/coverage/lcov-report/InfotipIcon.jsx.html +208 -0
- package/coverage/lcov-report/index.html +51 -51
- package/coverage/lcov-report/index.js.html +94 -0
- package/coverage/lcov-report/react/components/Accordion/index.html +1 -1
- package/coverage/lcov-report/react/components/Accordion/index.jsx.html +14 -14
- package/coverage/lcov-report/react/components/Button/index.html +1 -1
- package/coverage/lcov-report/react/components/Button/index.js.html +16 -16
- package/coverage/lcov-report/react/components/Dropdown/index.html +1 -1
- package/coverage/lcov-report/react/components/Dropdown/index.js.html +10 -10
- package/coverage/lcov-report/react/components/Error/Collapsible.jsx.html +4 -4
- package/coverage/lcov-report/react/components/Error/ErrorUI.jsx.html +5 -5
- package/coverage/lcov-report/react/components/Error/error.js.html +4 -4
- package/coverage/lcov-report/react/components/Error/index.html +1 -1
- package/coverage/lcov-report/react/components/Footer/FooterUI.jsx.html +11 -11
- package/coverage/lcov-report/react/components/Footer/SocialLinks.jsx.html +2 -2
- package/coverage/lcov-report/react/components/Footer/Subscribe.jsx.html +2 -2
- package/coverage/lcov-report/react/components/Footer/footer.js.html +5 -5
- package/coverage/lcov-report/react/components/Footer/index.html +1 -1
- package/coverage/lcov-report/react/components/GovBanner/index.html +1 -1
- package/coverage/lcov-report/react/components/GovBanner/index.js.html +3 -3
- package/coverage/lcov-report/react/components/Header/HeaderAccountMenu.jsx.html +9 -9
- package/coverage/lcov-report/react/components/Header/HeaderCancel.jsx.html +3 -3
- package/coverage/lcov-report/react/components/Header/HeaderContainer.jsx.html +22 -16
- package/coverage/lcov-report/react/components/Header/HeaderLogo.jsx.html +64 -10
- package/coverage/lcov-report/react/components/Header/HeaderMenuButton.js.html +8 -8
- package/coverage/lcov-report/react/components/Header/HeaderMenuItem.jsx.html +38 -38
- package/coverage/lcov-report/react/components/Header/HeaderMenuLink.js.html +10 -10
- package/coverage/lcov-report/react/components/Header/HeaderMenuSignOutButton.js.html +10 -10
- package/coverage/lcov-report/react/components/Header/HeaderMobileButton.js.html +5 -5
- package/coverage/lcov-report/react/components/Header/HeaderUI.jsx.html +17 -14
- package/coverage/lcov-report/react/components/Header/HelpIcon.jsx.html +2 -2
- package/coverage/lcov-report/react/components/Header/ImpersonatorBanner.jsx.html +25 -25
- package/coverage/lcov-report/react/components/Header/NavigationButtonIcon.jsx.html +2 -2
- package/coverage/lcov-report/react/components/Header/header.js.html +4 -4
- package/coverage/lcov-report/react/components/Header/hooks.js.html +9 -9
- package/coverage/lcov-report/react/components/Header/index.html +13 -13
- package/coverage/lcov-report/react/components/Header/utag-helpers.js.html +2 -2
- package/coverage/lcov-report/react/components/Infotip/Infotip.jsx.html +41 -41
- package/coverage/lcov-report/react/components/Infotip/InfotipContent.jsx.html +18 -18
- package/coverage/lcov-report/react/components/Infotip/InfotipIcon.jsx.html +11 -11
- package/coverage/lcov-report/react/components/Infotip/index.html +38 -23
- package/coverage/lcov-report/react/components/Infotip/index.js.html +2 -2
- package/coverage/lcov-report/react/components/Modal/LegacyModal.jsx.html +9 -9
- package/coverage/lcov-report/react/components/Modal/Modal.jsx.html +11 -11
- package/coverage/lcov-report/react/components/Modal/index.html +1 -1
- package/coverage/lcov-report/react/components/Modal/index.jsx.html +6 -6
- package/coverage/lcov-report/react/components/NotificationBanner/CollapsedView.js.html +5 -5
- package/coverage/lcov-report/react/components/NotificationBanner/ExpandedView.js.html +6 -6
- package/coverage/lcov-report/react/components/NotificationBanner/index.html +1 -1
- package/coverage/lcov-report/react/components/NotificationBanner/index.js.html +29 -29
- package/coverage/lcov-report/react/components/SanitizedContent/index.html +1 -1
- package/coverage/lcov-report/react/components/SanitizedContent/index.jsx.html +178 -178
- package/coverage/lcov-report/react/components/Session/Session.jsx.html +9 -9
- package/coverage/lcov-report/react/components/Session/SessionDialogWrapped.jsx.html +4 -4
- package/coverage/lcov-report/react/components/Session/index.html +1 -1
- package/coverage/lcov-report/react/components/Session/index.jsx.html +2 -2
- package/coverage/lcov-report/react/components/SideNav/AnimationGroup/AnimationGroup.jsx.html +6 -6
- package/coverage/lcov-report/react/components/SideNav/AnimationGroup/index.html +1 -1
- package/coverage/lcov-report/react/components/SideNav/Content/LevelOneContent.jsx.html +11 -11
- package/coverage/lcov-report/react/components/SideNav/Content/SelectRole/index.html +1 -1
- package/coverage/lcov-report/react/components/SideNav/Content/SelectRole/index.js.html +6 -6
- package/coverage/lcov-report/react/components/SideNav/Content/SelectRole/utils.js.html +23 -23
- package/coverage/lcov-report/react/components/SideNav/Content/index.html +1 -1
- package/coverage/lcov-report/react/components/SideNav/Content/index.js.html +2 -2
- package/coverage/lcov-report/react/components/SideNav/Details/IndividualDetails.jsx.html +3 -3
- package/coverage/lcov-report/react/components/SideNav/Details/PracticeDetails.jsx.html +4 -4
- package/coverage/lcov-report/react/components/SideNav/Details/index.html +1 -1
- package/coverage/lcov-report/react/components/SideNav/Details/index.js.html +3 -3
- package/coverage/lcov-report/react/components/SideNav/Links/CmsSwitchLink.jsx.html +5 -5
- package/coverage/lcov-report/react/components/SideNav/Links/NavItemInline.jsx.html +8 -8
- package/coverage/lcov-report/react/components/SideNav/Links/NavLinkContainer.jsx.html +3 -3
- package/coverage/lcov-report/react/components/SideNav/Links/NavLinkDrawer.jsx.html +33 -33
- package/coverage/lcov-report/react/components/SideNav/Links/NavLinkInline.jsx.html +15 -15
- package/coverage/lcov-report/react/components/SideNav/Links/NavLinkToggle.jsx.html +8 -8
- package/coverage/lcov-report/react/components/SideNav/Links/index.html +1 -1
- package/coverage/lcov-report/react/components/SideNav/Links/index.js.html +6 -6
- package/coverage/lcov-report/react/components/SideNav/UI/SideNavUI.jsx.html +36 -126
- package/coverage/lcov-report/react/components/SideNav/UI/default-markup.js.html +1 -1
- package/coverage/lcov-report/react/components/SideNav/UI/index.html +19 -19
- package/coverage/lcov-report/react/components/SideNav/UI/index.js.html +2 -2
- package/coverage/lcov-report/react/components/SideNav/helpers.js.html +96 -84
- package/coverage/lcov-report/react/components/SideNav/index.html +10 -10
- package/coverage/lcov-report/react/components/SideNav/index.js.html +4 -4
- package/coverage/lcov-report/react/components/hooks/index.html +1 -1
- package/coverage/lcov-report/react/components/hooks/useGetConfig.js.html +7 -7
- package/coverage/lcov-report/react/index.html +1 -1
- package/coverage/lcov-report/react/index.js.html +1 -1
- package/coverage/lcov-report/react/lib/Chevron.jsx.html +1 -1
- package/coverage/lcov-report/react/lib/SvgComponents.jsx.html +1 -1
- package/coverage/lcov-report/react/lib/index.html +1 -1
- package/coverage/lcov-report/react/session/index.html +20 -20
- package/coverage/lcov-report/react/session/index.js.html +1 -1
- package/coverage/lcov-report/react/session/isAuthV2.js.html +2 -2
- package/coverage/lcov-report/react/session/logout.js.html +43 -43
- package/coverage/lcov-report/react/session/refresh.js.html +2 -2
- package/coverage/lcov-report/react/session/ttl.js.html +2 -2
- package/coverage/lcov.info +253 -258
- package/dist/browser.js +1 -1
- package/dist/browser.js.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/react/index.js +1 -1
- package/dist/react/index.js.map +1 -1
- package/package.json +14 -20
- package/test/components/FooterUI.test.js +18 -19
- package/test/components/Infotip.test.js +29 -31
- package/test/session/session.test.js +64 -65
|
@@ -30,9 +30,9 @@
|
|
|
30
30
|
|
|
31
31
|
|
|
32
32
|
<div class='fl pad1y space-right2'>
|
|
33
|
-
<span class="strong">
|
|
33
|
+
<span class="strong">100% </span>
|
|
34
34
|
<span class="quiet">Branches</span>
|
|
35
|
-
<span class='fraction'>
|
|
35
|
+
<span class='fraction'>6/6</span>
|
|
36
36
|
</div>
|
|
37
37
|
|
|
38
38
|
|
|
@@ -107,8 +107,8 @@
|
|
|
107
107
|
<a name='L42'></a><a href='#L42'>42</a></td><td class="line-coverage quiet"><span class="cline-any cline-neutral"> </span>
|
|
108
108
|
<span class="cline-any cline-neutral"> </span>
|
|
109
109
|
<span class="cline-any cline-neutral"> </span>
|
|
110
|
-
<span class="cline-any cline-yes">2x</span>
|
|
111
110
|
<span class="cline-any cline-yes">3x</span>
|
|
111
|
+
<span class="cline-any cline-yes">7x</span>
|
|
112
112
|
<span class="cline-any cline-neutral"> </span>
|
|
113
113
|
<span class="cline-any cline-neutral"> </span>
|
|
114
114
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -138,15 +138,15 @@
|
|
|
138
138
|
<span class="cline-any cline-neutral"> </span>
|
|
139
139
|
<span class="cline-any cline-neutral"> </span>
|
|
140
140
|
<span class="cline-any cline-neutral"> </span>
|
|
141
|
-
<span class="cline-any cline-yes">
|
|
141
|
+
<span class="cline-any cline-yes">3x</span>
|
|
142
142
|
<span class="cline-any cline-neutral"> </span>
|
|
143
143
|
<span class="cline-any cline-neutral"> </span>
|
|
144
144
|
<span class="cline-any cline-neutral"> </span>
|
|
145
|
-
<span class="cline-any cline-yes">
|
|
145
|
+
<span class="cline-any cline-yes">3x</span>
|
|
146
146
|
<span class="cline-any cline-neutral"> </span>
|
|
147
147
|
<span class="cline-any cline-neutral"> </span>
|
|
148
|
-
<span class="cline-any cline-neutral"> </span></td><td class="text"><pre class="prettyprint lang-js">import React from
|
|
149
|
-
import PropTypes from
|
|
148
|
+
<span class="cline-any cline-neutral"> </span></td><td class="text"><pre class="prettyprint lang-js">import React from "react";
|
|
149
|
+
import PropTypes from "prop-types";
|
|
150
150
|
|
|
151
151
|
const InfotipIcon = ({ lightIcon, ...props }) => (
|
|
152
152
|
<svg
|
|
@@ -164,13 +164,13 @@ const InfotipIcon = ({ lightIcon, ...props }) => (
|
|
|
164
164
|
/>
|
|
165
165
|
<path
|
|
166
166
|
d="M9.721 0C4.361 0 0 4.469 0 9.962c0 5.493 4.36 9.962 9.721 9.962 5.36 0 9.722-4.469 9.722-9.962C19.443 4.469 15.082 0 9.72 0z"
|
|
167
|
-
fill={lightIcon ?
|
|
167
|
+
fill={lightIcon ? "#FFF" : "#0073C8"}
|
|
168
168
|
/>
|
|
169
169
|
<path
|
|
170
170
|
d="M9.721 14.765c-.206 0-.374.112-.374.25v.5c0 .138.168.25.374.25.207 0 .374-.112.374-.25v-.5c0-.138-.167-.25-.374-.25zM9.764 4.706H9.72c-.792 0-1.536.29-2.1.821a2.767 2.767 0 0 0-.89 2.03c0 .197.166.356.373.356s.374-.159.374-.356c0-.577.237-1.118.668-1.523a2.268 2.268 0 0 1 1.607-.615c1.182.016 2.195.98 2.211 2.107.011.743-.373 1.427-1.028 1.83-.995.61-1.589 1.691-1.589 2.89v1.013c0 .197.168.357.374.357.207 0 .374-.16.374-.357v-1.013c0-.941.477-1.82 1.246-2.292.873-.537 1.386-1.448 1.371-2.438-.022-1.527-1.345-2.788-2.948-2.81z"
|
|
171
|
-
stroke={lightIcon ?
|
|
171
|
+
stroke={lightIcon ? "#0073C8" : "#FFF"}
|
|
172
172
|
strokeWidth=".5"
|
|
173
|
-
fill={lightIcon ?
|
|
173
|
+
fill={lightIcon ? "#0073C8" : "#FFF"}
|
|
174
174
|
fillRule="nonzero"
|
|
175
175
|
/>
|
|
176
176
|
</g>
|
|
@@ -193,7 +193,7 @@ InfotipIcon.defaultProps = {
|
|
|
193
193
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
194
194
|
Code coverage generated by
|
|
195
195
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
196
|
-
at 2023-
|
|
196
|
+
at 2023-10-09T20:35:15.116Z
|
|
197
197
|
</div>
|
|
198
198
|
<script src="../../../prettify.js"></script>
|
|
199
199
|
<script>
|
|
@@ -23,30 +23,30 @@
|
|
|
23
23
|
<div class='clearfix'>
|
|
24
24
|
|
|
25
25
|
<div class='fl pad1y space-right2'>
|
|
26
|
-
<span class="strong">
|
|
26
|
+
<span class="strong">100% </span>
|
|
27
27
|
<span class="quiet">Statements</span>
|
|
28
|
-
<span class='fraction'>
|
|
28
|
+
<span class='fraction'>24/24</span>
|
|
29
29
|
</div>
|
|
30
30
|
|
|
31
31
|
|
|
32
32
|
<div class='fl pad1y space-right2'>
|
|
33
|
-
<span class="strong">
|
|
33
|
+
<span class="strong">100% </span>
|
|
34
34
|
<span class="quiet">Branches</span>
|
|
35
|
-
<span class='fraction'>
|
|
35
|
+
<span class='fraction'>8/8</span>
|
|
36
36
|
</div>
|
|
37
37
|
|
|
38
38
|
|
|
39
39
|
<div class='fl pad1y space-right2'>
|
|
40
|
-
<span class="strong">
|
|
40
|
+
<span class="strong">100% </span>
|
|
41
41
|
<span class="quiet">Functions</span>
|
|
42
|
-
<span class='fraction'>
|
|
42
|
+
<span class='fraction'>5/5</span>
|
|
43
43
|
</div>
|
|
44
44
|
|
|
45
45
|
|
|
46
46
|
<div class='fl pad1y space-right2'>
|
|
47
|
-
<span class="strong">
|
|
47
|
+
<span class="strong">100% </span>
|
|
48
48
|
<span class="quiet">Lines</span>
|
|
49
|
-
<span class='fraction'>
|
|
49
|
+
<span class='fraction'>24/24</span>
|
|
50
50
|
</div>
|
|
51
51
|
|
|
52
52
|
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
</div>
|
|
62
62
|
</template>
|
|
63
63
|
</div>
|
|
64
|
-
<div class='status-line
|
|
64
|
+
<div class='status-line high'></div>
|
|
65
65
|
<div class="pad1">
|
|
66
66
|
<table class="coverage-summary">
|
|
67
67
|
<thead>
|
|
@@ -79,18 +79,18 @@
|
|
|
79
79
|
</tr>
|
|
80
80
|
</thead>
|
|
81
81
|
<tbody><tr>
|
|
82
|
-
<td class="file
|
|
83
|
-
<td data-value="
|
|
84
|
-
<div class="chart"><div class="cover-fill" style="width:
|
|
82
|
+
<td class="file high" data-value="Infotip.jsx"><a href="Infotip.jsx.html">Infotip.jsx</a></td>
|
|
83
|
+
<td data-value="100" class="pic high">
|
|
84
|
+
<div class="chart"><div class="cover-fill cover-full" style="width: 100%"></div><div class="cover-empty" style="width: 0%"></div></div>
|
|
85
85
|
</td>
|
|
86
|
-
<td data-value="
|
|
87
|
-
<td data-value="13" class="abs
|
|
88
|
-
<td data-value="
|
|
89
|
-
<td data-value="2" class="abs
|
|
90
|
-
<td data-value="
|
|
91
|
-
<td data-value="3" class="abs
|
|
92
|
-
<td data-value="
|
|
93
|
-
<td data-value="13" class="abs
|
|
86
|
+
<td data-value="100" class="pct high">100%</td>
|
|
87
|
+
<td data-value="13" class="abs high">13/13</td>
|
|
88
|
+
<td data-value="100" class="pct high">100%</td>
|
|
89
|
+
<td data-value="2" class="abs high">2/2</td>
|
|
90
|
+
<td data-value="100" class="pct high">100%</td>
|
|
91
|
+
<td data-value="3" class="abs high">3/3</td>
|
|
92
|
+
<td data-value="100" class="pct high">100%</td>
|
|
93
|
+
<td data-value="13" class="abs high">13/13</td>
|
|
94
94
|
</tr>
|
|
95
95
|
|
|
96
96
|
<tr>
|
|
@@ -115,14 +115,29 @@
|
|
|
115
115
|
</td>
|
|
116
116
|
<td data-value="100" class="pct high">100%</td>
|
|
117
117
|
<td data-value="4" class="abs high">4/4</td>
|
|
118
|
-
<td data-value="
|
|
119
|
-
<td data-value="6" class="abs
|
|
118
|
+
<td data-value="100" class="pct high">100%</td>
|
|
119
|
+
<td data-value="6" class="abs high">6/6</td>
|
|
120
120
|
<td data-value="100" class="pct high">100%</td>
|
|
121
121
|
<td data-value="1" class="abs high">1/1</td>
|
|
122
122
|
<td data-value="100" class="pct high">100%</td>
|
|
123
123
|
<td data-value="4" class="abs high">4/4</td>
|
|
124
124
|
</tr>
|
|
125
125
|
|
|
126
|
+
<tr>
|
|
127
|
+
<td class="file empty" data-value="index.js"><a href="index.js.html">index.js</a></td>
|
|
128
|
+
<td data-value="0" class="pic empty">
|
|
129
|
+
<div class="chart"><div class="cover-fill" style="width: 0%"></div><div class="cover-empty" style="width: 100%"></div></div>
|
|
130
|
+
</td>
|
|
131
|
+
<td data-value="0" class="pct empty">0%</td>
|
|
132
|
+
<td data-value="0" class="abs empty">0/0</td>
|
|
133
|
+
<td data-value="0" class="pct empty">0%</td>
|
|
134
|
+
<td data-value="0" class="abs empty">0/0</td>
|
|
135
|
+
<td data-value="0" class="pct empty">0%</td>
|
|
136
|
+
<td data-value="0" class="abs empty">0/0</td>
|
|
137
|
+
<td data-value="0" class="pct empty">0%</td>
|
|
138
|
+
<td data-value="0" class="abs empty">0/0</td>
|
|
139
|
+
</tr>
|
|
140
|
+
|
|
126
141
|
</tbody>
|
|
127
142
|
</table>
|
|
128
143
|
</div>
|
|
@@ -131,7 +146,7 @@
|
|
|
131
146
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
132
147
|
Code coverage generated by
|
|
133
148
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
134
|
-
at 2023-
|
|
149
|
+
at 2023-10-09T20:35:15.116Z
|
|
135
150
|
</div>
|
|
136
151
|
<script src="../../../prettify.js"></script>
|
|
137
152
|
<script>
|
|
@@ -69,7 +69,7 @@
|
|
|
69
69
|
<a name='L4'></a><a href='#L4'>4</a></td><td class="line-coverage quiet"><span class="cline-any cline-neutral"> </span>
|
|
70
70
|
<span class="cline-any cline-neutral"> </span>
|
|
71
71
|
<span class="cline-any cline-neutral"> </span>
|
|
72
|
-
<span class="cline-any cline-neutral"> </span></td><td class="text"><pre class="prettyprint lang-js">import Infotip from
|
|
72
|
+
<span class="cline-any cline-neutral"> </span></td><td class="text"><pre class="prettyprint lang-js">import Infotip from "./Infotip";
|
|
73
73
|
|
|
74
74
|
export default Infotip;
|
|
75
75
|
</pre></td></tr></table></pre>
|
|
@@ -79,7 +79,7 @@ export default Infotip;
|
|
|
79
79
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
80
80
|
Code coverage generated by
|
|
81
81
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
82
|
-
at 2023-
|
|
82
|
+
at 2023-10-09T20:35:15.116Z
|
|
83
83
|
</div>
|
|
84
84
|
<script src="../../../prettify.js"></script>
|
|
85
85
|
<script>
|
|
@@ -207,12 +207,12 @@
|
|
|
207
207
|
<span class="cline-any cline-neutral"> </span>
|
|
208
208
|
<span class="cline-any cline-neutral"> </span>
|
|
209
209
|
<span class="cline-any cline-neutral"> </span>
|
|
210
|
-
<span class="cline-any cline-neutral"> </span></td><td class="text"><pre class="prettyprint lang-js">import React, { Component } from
|
|
211
|
-
import { render } from
|
|
212
|
-
import ReactModal from
|
|
213
|
-
import { CloseXIcon } from
|
|
214
|
-
import SanitizedContent from
|
|
215
|
-
import PropTypes from
|
|
210
|
+
<span class="cline-any cline-neutral"> </span></td><td class="text"><pre class="prettyprint lang-js">import React, { Component } from "react";
|
|
211
|
+
import { render } from "react-dom";
|
|
212
|
+
import ReactModal from "react-modal";
|
|
213
|
+
import { CloseXIcon } from "../../lib/SvgComponents.jsx";
|
|
214
|
+
import SanitizedContent from "../SanitizedContent";
|
|
215
|
+
import PropTypes from "prop-types";
|
|
216
216
|
|
|
217
217
|
class Modal extends Component {
|
|
218
218
|
<span class="fstat-no" title="function not covered" > co</span>nstructor() {
|
|
@@ -225,7 +225,7 @@ class Modal extends Component {
|
|
|
225
225
|
<span class="cstat-no" title="statement not covered" > this.handleOpenModal = this.handleOpenModal.bind(this);</span>
|
|
226
226
|
<span class="cstat-no" title="statement not covered" > this.handleCloseModal = this.handleCloseModal.bind(this);</span>
|
|
227
227
|
|
|
228
|
-
<span class="cstat-no" title="statement not covered" > ReactModal.setAppElement(
|
|
228
|
+
<span class="cstat-no" title="statement not covered" > ReactModal.setAppElement("body > *:not(.ReactModalPortal)");</span>
|
|
229
229
|
}
|
|
230
230
|
|
|
231
231
|
<span class="fstat-no" title="function not covered" > ha</span>ndleOpenModal() {
|
|
@@ -247,7 +247,7 @@ class Modal extends Component {
|
|
|
247
247
|
<div>
|
|
248
248
|
<ReactModal
|
|
249
249
|
role="alertdialog"
|
|
250
|
-
contentLabel={this.props.contentLabel ||
|
|
250
|
+
contentLabel={this.props.contentLabel || "Informational Modal Dialog"}
|
|
251
251
|
isOpen={this.state.showModal}
|
|
252
252
|
className="info-modal-content"
|
|
253
253
|
overlayClassName="info-modal-overlay"
|
|
@@ -286,7 +286,7 @@ export default displayModal;
|
|
|
286
286
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
287
287
|
Code coverage generated by
|
|
288
288
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
289
|
-
at 2023-
|
|
289
|
+
at 2023-10-09T20:35:15.116Z
|
|
290
290
|
</div>
|
|
291
291
|
<script src="../../../prettify.js"></script>
|
|
292
292
|
<script>
|
|
@@ -343,11 +343,11 @@
|
|
|
343
343
|
<span class="cline-any cline-neutral"> </span>
|
|
344
344
|
<span class="cline-any cline-neutral"> </span>
|
|
345
345
|
<span class="cline-any cline-neutral"> </span>
|
|
346
|
-
<span class="cline-any cline-neutral"> </span></td><td class="text"><pre class="prettyprint lang-js">import React, { useRef, useState, useEffect } from
|
|
347
|
-
import ReactModal from
|
|
348
|
-
import PropTypes from
|
|
346
|
+
<span class="cline-any cline-neutral"> </span></td><td class="text"><pre class="prettyprint lang-js">import React, { useRef, useState, useEffect } from "react";
|
|
347
|
+
import ReactModal from "react-modal";
|
|
348
|
+
import PropTypes from "prop-types";
|
|
349
349
|
|
|
350
|
-
import { CloseXIcon2 } from
|
|
350
|
+
import { CloseXIcon2 } from "../../lib/SvgComponents.jsx";
|
|
351
351
|
|
|
352
352
|
const Modal = <span class="fstat-no" title="function not covered" >({</span>
|
|
353
353
|
children,
|
|
@@ -392,14 +392,14 @@ const Modal = <span class="fstat-no" title="function not covered" >({</span>
|
|
|
392
392
|
}
|
|
393
393
|
}}
|
|
394
394
|
aria={{
|
|
395
|
-
labelledby:
|
|
396
|
-
describedby:
|
|
395
|
+
labelledby: "modal-heading",
|
|
396
|
+
describedby: "modal-body",
|
|
397
397
|
}}
|
|
398
398
|
{...props}
|
|
399
399
|
>
|
|
400
400
|
<div
|
|
401
401
|
className={`qpp-c-modal__header ${
|
|
402
|
-
overflowSeparator ?
|
|
402
|
+
overflowSeparator ? "qpp-c-modal__header-sep" : ""
|
|
403
403
|
}`}
|
|
404
404
|
>
|
|
405
405
|
<h3 id="modal-heading">{title}</h3>
|
|
@@ -417,7 +417,7 @@ const Modal = <span class="fstat-no" title="function not covered" >({</span>
|
|
|
417
417
|
id="modal-body"
|
|
418
418
|
className="qpp-c-modal__body"
|
|
419
419
|
ref={contentRef}
|
|
420
|
-
tabIndex={overflowSeparator ?
|
|
420
|
+
tabIndex={overflowSeparator ? "0" : undefined}
|
|
421
421
|
>
|
|
422
422
|
{children}
|
|
423
423
|
</div>
|
|
@@ -426,7 +426,7 @@ const Modal = <span class="fstat-no" title="function not covered" >({</span>
|
|
|
426
426
|
{secondary && (
|
|
427
427
|
<button
|
|
428
428
|
className={`qpp-c-button qpp-c-button--secondary ${
|
|
429
|
-
primary ?
|
|
429
|
+
primary ? "qpp-u-margin-right--16" : ""
|
|
430
430
|
}`}
|
|
431
431
|
loading={secondary.loading}
|
|
432
432
|
onClick={secondary.onClick || onRequestClose}
|
|
@@ -478,7 +478,7 @@ Modal.defaultProps = {
|
|
|
478
478
|
title: undefined,
|
|
479
479
|
primary: null,
|
|
480
480
|
secondary: null,
|
|
481
|
-
appElement:
|
|
481
|
+
appElement: "body > *:not(.qpp-c-modal)",
|
|
482
482
|
isOpen: false,
|
|
483
483
|
};
|
|
484
484
|
|
|
@@ -490,7 +490,7 @@ export default Modal;
|
|
|
490
490
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
491
491
|
Code coverage generated by
|
|
492
492
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
493
|
-
at 2023-
|
|
493
|
+
at 2023-10-09T20:35:15.116Z
|
|
494
494
|
</div>
|
|
495
495
|
<script src="../../../prettify.js"></script>
|
|
496
496
|
<script>
|
|
@@ -131,7 +131,7 @@
|
|
|
131
131
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
132
132
|
Code coverage generated by
|
|
133
133
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
134
|
-
at 2023-
|
|
134
|
+
at 2023-10-09T20:35:15.116Z
|
|
135
135
|
</div>
|
|
136
136
|
<script src="../../../prettify.js"></script>
|
|
137
137
|
<script>
|
|
@@ -107,11 +107,11 @@
|
|
|
107
107
|
<span class="cline-any cline-yes">2x</span>
|
|
108
108
|
<span class="cline-any cline-neutral"> </span>
|
|
109
109
|
<span class="cline-any cline-neutral"> </span>
|
|
110
|
-
<span class="cline-any cline-neutral"> </span></td><td class="text"><pre class="prettyprint lang-js">import React from
|
|
111
|
-
import PropTypes from
|
|
110
|
+
<span class="cline-any cline-neutral"> </span></td><td class="text"><pre class="prettyprint lang-js">import React from "react";
|
|
111
|
+
import PropTypes from "prop-types";
|
|
112
112
|
|
|
113
|
-
import LegacyModal from
|
|
114
|
-
import DsModal from
|
|
113
|
+
import LegacyModal from "./LegacyModal";
|
|
114
|
+
import DsModal from "./Modal";
|
|
115
115
|
|
|
116
116
|
const Modal = <span class="fstat-no" title="function not covered" >({</span> useDesignSystem, ...rest }) => {
|
|
117
117
|
<span class="cstat-no" title="statement not covered" > if (useDesignSystem) {</span>
|
|
@@ -126,7 +126,7 @@ Modal.propTypes = {
|
|
|
126
126
|
Modal.defaultProps = {
|
|
127
127
|
useDesignSystem: false,
|
|
128
128
|
};
|
|
129
|
-
Modal.displayName =
|
|
129
|
+
Modal.displayName = "Modal";
|
|
130
130
|
|
|
131
131
|
export default Modal;
|
|
132
132
|
</pre></td></tr></table></pre>
|
|
@@ -136,7 +136,7 @@ export default Modal;
|
|
|
136
136
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
137
137
|
Code coverage generated by
|
|
138
138
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
139
|
-
at 2023-
|
|
139
|
+
at 2023-10-09T20:35:15.116Z
|
|
140
140
|
</div>
|
|
141
141
|
<script src="../../../prettify.js"></script>
|
|
142
142
|
<script>
|
|
@@ -141,9 +141,9 @@
|
|
|
141
141
|
<span class="cline-any cline-neutral"> </span>
|
|
142
142
|
<span class="cline-any cline-neutral"> </span>
|
|
143
143
|
<span class="cline-any cline-neutral"> </span>
|
|
144
|
-
<span class="cline-any cline-neutral"> </span></td><td class="text"><pre class="prettyprint lang-js">import React, { forwardRef } from
|
|
145
|
-
import PropTypes from
|
|
146
|
-
import { BellOutline } from
|
|
144
|
+
<span class="cline-any cline-neutral"> </span></td><td class="text"><pre class="prettyprint lang-js">import React, { forwardRef } from "react";
|
|
145
|
+
import PropTypes from "prop-types";
|
|
146
|
+
import { BellOutline } from "../../lib/SvgComponents.jsx";
|
|
147
147
|
|
|
148
148
|
const CollapsedView = forwardRef(
|
|
149
149
|
<span class="fstat-no" title="function not covered" > (</span>
|
|
@@ -172,7 +172,7 @@ const CollapsedView = forwardRef(
|
|
|
172
172
|
},
|
|
173
173
|
);
|
|
174
174
|
|
|
175
|
-
CollapsedView.displayName =
|
|
175
|
+
CollapsedView.displayName = "CollapsedView";
|
|
176
176
|
|
|
177
177
|
CollapsedView.propTypes = {
|
|
178
178
|
expandNotification: PropTypes.func,
|
|
@@ -187,7 +187,7 @@ export default CollapsedView;
|
|
|
187
187
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
188
188
|
Code coverage generated by
|
|
189
189
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
190
|
-
at 2023-
|
|
190
|
+
at 2023-10-09T20:35:15.116Z
|
|
191
191
|
</div>
|
|
192
192
|
<script src="../../../prettify.js"></script>
|
|
193
193
|
<script>
|
|
@@ -153,10 +153,10 @@
|
|
|
153
153
|
<span class="cline-any cline-neutral"> </span>
|
|
154
154
|
<span class="cline-any cline-neutral"> </span>
|
|
155
155
|
<span class="cline-any cline-neutral"> </span>
|
|
156
|
-
<span class="cline-any cline-neutral"> </span></td><td class="text"><pre class="prettyprint lang-js">import React from
|
|
157
|
-
import PropTypes from
|
|
158
|
-
import SanitizedContent from
|
|
159
|
-
import { CloseXIcon } from
|
|
156
|
+
<span class="cline-any cline-neutral"> </span></td><td class="text"><pre class="prettyprint lang-js">import React from "react";
|
|
157
|
+
import PropTypes from "prop-types";
|
|
158
|
+
import SanitizedContent from "../SanitizedContent";
|
|
159
|
+
import { CloseXIcon } from "../../lib/SvgComponents.jsx";
|
|
160
160
|
|
|
161
161
|
const ExpandedView = <span class="fstat-no" title="function not covered" >({</span>
|
|
162
162
|
label,
|
|
@@ -170,7 +170,7 @@ const ExpandedView = <span class="fstat-no" title="function not covered" >({</sp
|
|
|
170
170
|
<div className="notification-banner-label">{label}</div>
|
|
171
171
|
<div className="notification-banner-content qppds">
|
|
172
172
|
<SanitizedContent
|
|
173
|
-
html={expanded ? content :
|
|
173
|
+
html={expanded ? content : "<p>No notifications to display</p>"}
|
|
174
174
|
/>
|
|
175
175
|
</div>
|
|
176
176
|
{expanded && dismissable && (
|
|
@@ -205,7 +205,7 @@ export default ExpandedView;
|
|
|
205
205
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
206
206
|
Code coverage generated by
|
|
207
207
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
208
|
-
at 2023-
|
|
208
|
+
at 2023-10-09T20:35:15.116Z
|
|
209
209
|
</div>
|
|
210
210
|
<script src="../../../prettify.js"></script>
|
|
211
211
|
<script>
|
|
@@ -131,7 +131,7 @@
|
|
|
131
131
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
132
132
|
Code coverage generated by
|
|
133
133
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
134
|
-
at 2023-
|
|
134
|
+
at 2023-10-09T20:35:15.116Z
|
|
135
135
|
</div>
|
|
136
136
|
<script src="../../../prettify.js"></script>
|
|
137
137
|
<script>
|
|
@@ -505,11 +505,11 @@
|
|
|
505
505
|
<span class="cline-any cline-neutral"> </span>
|
|
506
506
|
<span class="cline-any cline-neutral"> </span>
|
|
507
507
|
<span class="cline-any cline-neutral"> </span>
|
|
508
|
-
<span class="cline-any cline-neutral"> </span></td><td class="text"><pre class="prettyprint lang-js">import React, { useState, useEffect, useRef } from
|
|
509
|
-
import PropTypes from
|
|
510
|
-
import ExpandedView from
|
|
511
|
-
import CollapsedView from
|
|
512
|
-
import { withGetConfig } from
|
|
508
|
+
<span class="cline-any cline-neutral"> </span></td><td class="text"><pre class="prettyprint lang-js">import React, { useState, useEffect, useRef } from "react";
|
|
509
|
+
import PropTypes from "prop-types";
|
|
510
|
+
import ExpandedView from "./ExpandedView";
|
|
511
|
+
import CollapsedView from "./CollapsedView";
|
|
512
|
+
import { withGetConfig } from "../hooks/useGetConfig";
|
|
513
513
|
|
|
514
514
|
function <span class="fstat-no" title="function not covered" >debounce(</span>fn, ms) {
|
|
515
515
|
let timer;
|
|
@@ -524,21 +524,21 @@ function <span class="fstat-no" title="function not covered" >debounce(</span>fn
|
|
|
524
524
|
|
|
525
525
|
const NotificationBanner = <span class="fstat-no" title="function not covered" >({</span> result }) => {
|
|
526
526
|
const {
|
|
527
|
-
color = <span class="branch-0 cbranch-no" title="branch not covered" >
|
|
527
|
+
color = <span class="branch-0 cbranch-no" title="branch not covered" >"blue",</span>
|
|
528
528
|
content,
|
|
529
529
|
dismissable,
|
|
530
530
|
enabled,
|
|
531
|
-
label = <span class="branch-0 cbranch-no" title="branch not covered" >
|
|
531
|
+
label = <span class="branch-0 cbranch-no" title="branch not covered" >"Update",</span>
|
|
532
532
|
} = <span class="cstat-no" title="statement not covered" >result.content;</span>
|
|
533
533
|
|
|
534
534
|
const bannerContainerRef = <span class="cstat-no" title="statement not covered" >useRef(null);</span>
|
|
535
535
|
const collapsedWrapperRef = <span class="cstat-no" title="statement not covered" >useRef(null);</span>
|
|
536
536
|
const collapsedBannerRef = <span class="cstat-no" title="statement not covered" >useRef(null);</span>
|
|
537
537
|
const VIEW_BREAKPOINT = <span class="cstat-no" title="statement not covered" >767;</span>
|
|
538
|
-
const [height, setHeight] = <span class="cstat-no" title="statement not covered" >useState(
|
|
538
|
+
const [height, setHeight] = <span class="cstat-no" title="statement not covered" >useState("100%");</span>
|
|
539
539
|
const [expanded, setExpanded] = <span class="cstat-no" title="statement not covered" >useState();</span>
|
|
540
540
|
const [windowWidth, setWindowWidth] = <span class="cstat-no" title="statement not covered" >useState(window.innerWidth);</span>
|
|
541
|
-
const cssDeterminesBannerView = <span class="cstat-no" title="statement not covered" >expanded ?
|
|
541
|
+
const cssDeterminesBannerView = <span class="cstat-no" title="statement not covered" >expanded ? "expanded" : "collapsed";</span>
|
|
542
542
|
|
|
543
543
|
<span class="cstat-no" title="statement not covered" > useEffect(<span class="fstat-no" title="function not covered" >()</span> => {</span>
|
|
544
544
|
//setBannerHeight on Load & Resize
|
|
@@ -552,10 +552,10 @@ const NotificationBanner = <span class="fstat-no" title="function not covered" >
|
|
|
552
552
|
<span class="cstat-no" title="statement not covered" > return setWindowWidth(window.innerWidth);</span>
|
|
553
553
|
}, 600);
|
|
554
554
|
|
|
555
|
-
<span class="cstat-no" title="statement not covered" > window.addEventListener(
|
|
555
|
+
<span class="cstat-no" title="statement not covered" > window.addEventListener("resize", debounceBrowserResizeHandler);</span>
|
|
556
556
|
|
|
557
557
|
<span class="cstat-no" title="statement not covered" > return <span class="fstat-no" title="function not covered" >()</span> => {</span>
|
|
558
|
-
<span class="cstat-no" title="statement not covered" > window.removeEventListener(
|
|
558
|
+
<span class="cstat-no" title="statement not covered" > window.removeEventListener("resize", debounceBrowserResizeHandler);</span>
|
|
559
559
|
};
|
|
560
560
|
}, [windowWidth]);
|
|
561
561
|
|
|
@@ -579,13 +579,13 @@ const NotificationBanner = <span class="fstat-no" title="function not covered" >
|
|
|
579
579
|
|
|
580
580
|
const setBannerHeight = <span class="cstat-no" title="statement not covered" ><span class="fstat-no" title="function not covered" >()</span> => {</span>
|
|
581
581
|
<span class="cstat-no" title="statement not covered" > if (content) {</span>
|
|
582
|
-
<span class="cstat-no" title="statement not covered" > bannerContainerRef.current.style.transition =
|
|
582
|
+
<span class="cstat-no" title="statement not covered" > bannerContainerRef.current.style.transition = "none";</span>
|
|
583
583
|
<span class="cstat-no" title="statement not covered" > expanded</span>
|
|
584
|
-
? collapsedBannerRef.current.setAttribute(
|
|
585
|
-
: collapsedBannerRef.current.setAttribute(
|
|
584
|
+
? collapsedBannerRef.current.setAttribute("tabIndex", "-1")
|
|
585
|
+
: collapsedBannerRef.current.setAttribute("tabIndex", " ");
|
|
586
586
|
|
|
587
587
|
<span class="cstat-no" title="statement not covered" > setHeight(</span>
|
|
588
|
-
expanded ?
|
|
588
|
+
expanded ? "100%" : `${collapsedWrapperRef.current.offsetHeight}px`,
|
|
589
589
|
);
|
|
590
590
|
}
|
|
591
591
|
};
|
|
@@ -612,7 +612,7 @@ const NotificationBanner = <span class="fstat-no" title="function not covered" >
|
|
|
612
612
|
|
|
613
613
|
<span class="cstat-no" title="statement not covered" > if (storageNotification && Object.keys(storageNotification).length > 0) {</span>
|
|
614
614
|
<span class="cstat-no" title="statement not covered" > window.localStorage.setItem(</span>
|
|
615
|
-
|
|
615
|
+
"notifications",
|
|
616
616
|
JSON.stringify({
|
|
617
617
|
...storageNotification,
|
|
618
618
|
content: {
|
|
@@ -623,11 +623,11 @@ const NotificationBanner = <span class="fstat-no" title="function not covered" >
|
|
|
623
623
|
);
|
|
624
624
|
} else {
|
|
625
625
|
<span class="cstat-no" title="statement not covered" > window.localStorage.setItem(</span>
|
|
626
|
-
|
|
626
|
+
"notifications",
|
|
627
627
|
JSON.stringify({
|
|
628
628
|
...storageNotification,
|
|
629
629
|
content: {
|
|
630
|
-
name:
|
|
630
|
+
name: "header-notification",
|
|
631
631
|
dateDismissed,
|
|
632
632
|
},
|
|
633
633
|
}),
|
|
@@ -644,18 +644,18 @@ const NotificationBanner = <span class="fstat-no" title="function not covered" >
|
|
|
644
644
|
const collapseNotification = <span class="cstat-no" title="statement not covered" ><span class="fstat-no" title="function not covered" >(e</span>) => {</span>
|
|
645
645
|
<span class="cstat-no" title="statement not covered" > e.stopPropagation();</span>
|
|
646
646
|
<span class="cstat-no" title="statement not covered" > markNotificationClosed();</span>
|
|
647
|
-
<span class="cstat-no" title="statement not covered" > collapsedBannerRef.current.setAttribute(
|
|
648
|
-
<span class="cstat-no" title="statement not covered" > bannerContainerRef.current.style.transition =
|
|
647
|
+
<span class="cstat-no" title="statement not covered" > collapsedBannerRef.current.setAttribute("tabIndex", " ");</span>
|
|
648
|
+
<span class="cstat-no" title="statement not covered" > bannerContainerRef.current.style.transition = "height .2s ease-out";</span>
|
|
649
649
|
|
|
650
650
|
<span class="cstat-no" title="statement not covered" > setExpanded(false);</span>
|
|
651
651
|
<span class="cstat-no" title="statement not covered" > setHeight(`${collapsedWrapperRef.current.offsetHeight}px`);</span>
|
|
652
652
|
};
|
|
653
653
|
|
|
654
654
|
const expandNotification = <span class="cstat-no" title="statement not covered" ><span class="fstat-no" title="function not covered" >()</span> => {</span>
|
|
655
|
-
<span class="cstat-no" title="statement not covered" > collapsedBannerRef.current.setAttribute(
|
|
656
|
-
<span class="cstat-no" title="statement not covered" > bannerContainerRef.current.style.transition =
|
|
655
|
+
<span class="cstat-no" title="statement not covered" > collapsedBannerRef.current.setAttribute("tabIndex", "-1");</span>
|
|
656
|
+
<span class="cstat-no" title="statement not covered" > bannerContainerRef.current.style.transition = "height .2s ease-out";</span>
|
|
657
657
|
<span class="cstat-no" title="statement not covered" > setExpanded(true);</span>
|
|
658
|
-
<span class="cstat-no" title="statement not covered" > setHeight(
|
|
658
|
+
<span class="cstat-no" title="statement not covered" > setHeight("100%");</span>
|
|
659
659
|
};
|
|
660
660
|
|
|
661
661
|
/**
|
|
@@ -710,20 +710,20 @@ NotificationBanner.propTypes = {
|
|
|
710
710
|
NotificationBanner.defaultProps = {
|
|
711
711
|
result: {
|
|
712
712
|
content: {
|
|
713
|
-
color:
|
|
713
|
+
color: "blue",
|
|
714
714
|
content: null,
|
|
715
715
|
dismissable: true,
|
|
716
716
|
enabled: true,
|
|
717
|
-
label:
|
|
717
|
+
label: "Update",
|
|
718
718
|
},
|
|
719
719
|
},
|
|
720
720
|
};
|
|
721
721
|
|
|
722
722
|
export default withGetConfig(NotificationBanner, {
|
|
723
723
|
timeout: 5,
|
|
724
|
-
url:
|
|
725
|
-
localStorageName:
|
|
726
|
-
equalityCheckExclude: [
|
|
724
|
+
url: "/config/notification",
|
|
725
|
+
localStorageName: "active_notification",
|
|
726
|
+
equalityCheckExclude: ["dateDismissed", "dateUpdated"],
|
|
727
727
|
defaultContent: {},
|
|
728
728
|
});
|
|
729
729
|
</pre></td></tr></table></pre>
|
|
@@ -733,7 +733,7 @@ export default withGetConfig(NotificationBanner, {
|
|
|
733
733
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
734
734
|
Code coverage generated by
|
|
735
735
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
736
|
-
at 2023-
|
|
736
|
+
at 2023-10-09T20:35:15.116Z
|
|
737
737
|
</div>
|
|
738
738
|
<script src="../../../prettify.js"></script>
|
|
739
739
|
<script>
|
|
@@ -101,7 +101,7 @@
|
|
|
101
101
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
102
102
|
Code coverage generated by
|
|
103
103
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
104
|
-
at 2023-
|
|
104
|
+
at 2023-10-09T20:35:15.116Z
|
|
105
105
|
</div>
|
|
106
106
|
<script src="../../../prettify.js"></script>
|
|
107
107
|
<script>
|