qpp-style 9.20.2 → 9.20.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/components/Footer/FooterUI.jsx +16 -14
- package/coverage/clover.xml +407 -355
- package/coverage/coverage-final.json +24 -23
- package/coverage/lcov-report/index.html +75 -75
- package/coverage/lcov-report/react/components/Accordion/index.html +1 -1
- package/coverage/lcov-report/react/components/Accordion/index.jsx.html +1 -1
- package/coverage/lcov-report/react/components/Button/index.html +1 -1
- package/coverage/lcov-report/react/components/Button/index.js.html +1 -1
- package/coverage/lcov-report/react/components/Dropdown/index.html +1 -1
- package/coverage/lcov-report/react/components/Dropdown/index.js.html +1 -1
- package/coverage/lcov-report/react/components/Error/Collapsible.jsx.html +1 -1
- package/coverage/lcov-report/react/components/Error/ErrorUI.jsx.html +1 -1
- package/coverage/lcov-report/react/components/Error/error.js.html +1 -1
- package/coverage/lcov-report/react/components/Error/index.html +1 -1
- package/coverage/lcov-report/react/components/Footer/FooterUI.jsx.html +22 -16
- package/coverage/lcov-report/react/components/Footer/SocialLinks.jsx.html +1 -1
- package/coverage/lcov-report/react/components/Footer/Subscribe.jsx.html +1 -1
- package/coverage/lcov-report/react/components/Footer/footer.js.html +1 -1
- 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 +26 -251
- package/coverage/lcov-report/react/components/Header/HeaderCancel.jsx.html +1 -1
- package/coverage/lcov-report/react/components/Header/HeaderContainer.jsx.html +2 -2
- package/coverage/lcov-report/react/components/Header/HeaderLogo.jsx.html +4 -4
- package/coverage/lcov-report/react/components/Header/HeaderMenuButton.js.html +1 -1
- package/coverage/lcov-report/react/components/Header/HeaderMenuItem.jsx.html +19 -19
- package/coverage/lcov-report/react/components/Header/HeaderMenuLink.js.html +26 -8
- package/coverage/lcov-report/react/components/Header/HeaderMenuSignOutButton.js.html +1 -1
- package/coverage/lcov-report/react/components/Header/HeaderMobileButton.js.html +2 -2
- package/coverage/lcov-report/react/components/Header/HeaderUI.jsx.html +89 -113
- package/coverage/lcov-report/react/components/Header/HelpIcon.jsx.html +2 -2
- package/coverage/lcov-report/react/components/Header/ImpersonatorBanner.jsx.html +5 -5
- package/coverage/lcov-report/react/components/Header/NavigationButtonIcon.jsx.html +1 -1
- package/coverage/lcov-report/react/components/Header/header.js.html +1 -1
- package/coverage/lcov-report/react/components/Header/hooks.js.html +59 -17
- package/coverage/lcov-report/react/components/Header/index.html +36 -36
- package/coverage/lcov-report/react/components/Header/utag-helpers.js.html +1 -1
- package/coverage/lcov-report/react/components/Infotip/Infotip.jsx.html +1 -1
- package/coverage/lcov-report/react/components/Infotip/InfotipIcon.jsx.html +1 -1
- package/coverage/lcov-report/react/components/Infotip/index.html +1 -1
- package/coverage/lcov-report/react/components/Infotip/index.js.html +1 -1
- package/coverage/lcov-report/react/components/Modal/LegacyModal.jsx.html +1 -1
- package/coverage/lcov-report/react/components/Modal/Modal.jsx.html +1 -1
- package/coverage/lcov-report/react/components/Modal/index.html +1 -1
- package/coverage/lcov-report/react/components/Modal/index.jsx.html +1 -1
- package/coverage/lcov-report/react/components/NotificationBanner/CollapsedView.js.html +202 -0
- package/coverage/lcov-report/react/components/NotificationBanner/ExpandedView.js.html +220 -0
- package/coverage/lcov-report/react/components/NotificationBanner/index.html +51 -21
- package/coverage/lcov-report/react/components/NotificationBanner/index.js.html +168 -300
- package/coverage/lcov-report/react/components/SanitizedContent/index.html +1 -1
- package/coverage/lcov-report/react/components/SanitizedContent/index.jsx.html +1 -1
- package/coverage/lcov-report/react/components/SessionDialog/index.html +1 -1
- package/coverage/lcov-report/react/components/SessionDialog/sessionDialog.js.html +1 -1
- package/coverage/lcov-report/react/components/SessionDialogUI.jsx.html +1 -1
- package/coverage/lcov-report/react/components/SideNav/AnimationGroup/AnimationGroup.jsx.html +1 -1
- package/coverage/lcov-report/react/components/SideNav/AnimationGroup/index.html +1 -1
- package/coverage/lcov-report/react/components/SideNav/Chart/ScoreChart.jsx.html +1 -1
- package/coverage/lcov-report/react/components/SideNav/Chart/index.html +1 -1
- package/coverage/lcov-report/react/components/SideNav/Chart/index.js.html +1 -1
- package/coverage/lcov-report/react/components/SideNav/Content/LevelOneContent.jsx.html +109 -31
- package/coverage/lcov-report/react/components/SideNav/Content/LevelTwoContent.jsx.html +1 -1
- package/coverage/lcov-report/react/components/SideNav/Content/SelectRole/index.html +15 -15
- package/coverage/lcov-report/react/components/SideNav/Content/SelectRole/index.js.html +10 -16
- package/coverage/lcov-report/react/components/SideNav/Content/SelectRole/utils.js.html +104 -44
- package/coverage/lcov-report/react/components/SideNav/Content/index.html +19 -19
- package/coverage/lcov-report/react/components/SideNav/Content/index.js.html +1 -1
- package/coverage/lcov-report/react/components/SideNav/Details/IndividualDetails.jsx.html +1 -1
- package/coverage/lcov-report/react/components/SideNav/Details/PracticeDetails.jsx.html +1 -1
- package/coverage/lcov-report/react/components/SideNav/Details/index.html +1 -1
- package/coverage/lcov-report/react/components/SideNav/Details/index.js.html +1 -1
- package/coverage/lcov-report/react/components/SideNav/Links/CmsSwitchLink.jsx.html +1 -1
- package/coverage/lcov-report/react/components/SideNav/Links/NavItemInline.jsx.html +1 -1
- package/coverage/lcov-report/react/components/SideNav/Links/NavLinkContainer.jsx.html +1 -1
- package/coverage/lcov-report/react/components/SideNav/Links/NavLinkDrawer.jsx.html +3 -3
- package/coverage/lcov-report/react/components/SideNav/Links/NavLinkInline.jsx.html +1 -1
- package/coverage/lcov-report/react/components/SideNav/Links/NavLinkToggle.jsx.html +1 -1
- package/coverage/lcov-report/react/components/SideNav/Links/index.html +1 -1
- package/coverage/lcov-report/react/components/SideNav/Links/index.js.html +1 -1
- package/coverage/lcov-report/react/components/SideNav/UI/SideNavUI.jsx.html +4 -16
- package/coverage/lcov-report/react/components/SideNav/UI/index.html +1 -1
- package/coverage/lcov-report/react/components/SideNav/UI/index.js.html +1 -1
- package/coverage/lcov-report/react/components/SideNav/helpers.js.html +264 -18
- package/coverage/lcov-report/react/components/SideNav/index.html +19 -19
- package/coverage/lcov-report/react/components/SideNav/index.js.html +1 -1
- package/coverage/lcov-report/react/components/Tooltip/Tooltip.jsx.html +1 -1
- package/coverage/lcov-report/react/components/Tooltip/index.html +1 -1
- package/coverage/lcov-report/react/components/Tooltip/index.js.html +1 -1
- package/coverage/lcov-report/react/components/Tooltip/position.js.html +1 -1
- package/coverage/lcov-report/react/components/hooks/index.html +19 -19
- package/coverage/lcov-report/react/components/hooks/useGetConfig.js.html +37 -37
- package/coverage/lcov-report/react/components/index.html +1 -1
- 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 +2 -2
- package/coverage/lcov-report/react/lib/SvgComponents.jsx.html +61 -10
- package/coverage/lcov-report/react/lib/index.html +14 -29
- package/coverage/lcov-report/react/session/index.html +1 -1
- package/coverage/lcov-report/react/session/index.js.html +1 -1
- package/coverage/lcov-report/react/session/logout.js.html +1 -1
- package/coverage/lcov-report/react/session/refresh.js.html +1 -1
- package/coverage/lcov-report/react/session/ttl.js.html +1 -1
- package/coverage/lcov.info +808 -718
- 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 +10 -10
- package/styles/qppds/components/_footer.scss +2 -0
|
@@ -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">60% </span>
|
|
27
27
|
<span class="quiet">Statements</span>
|
|
28
|
-
<span class='fraction'>
|
|
28
|
+
<span class='fraction'>36/60</span>
|
|
29
29
|
</div>
|
|
30
30
|
|
|
31
31
|
|
|
32
32
|
<div class='fl pad1y space-right2'>
|
|
33
|
-
<span class="strong">
|
|
33
|
+
<span class="strong">32.14% </span>
|
|
34
34
|
<span class="quiet">Branches</span>
|
|
35
|
-
<span class='fraction'>
|
|
35
|
+
<span class='fraction'>9/28</span>
|
|
36
36
|
</div>
|
|
37
37
|
|
|
38
38
|
|
|
39
39
|
<div class='fl pad1y space-right2'>
|
|
40
|
-
<span class="strong">
|
|
40
|
+
<span class="strong">57.14% </span>
|
|
41
41
|
<span class="quiet">Functions</span>
|
|
42
|
-
<span class='fraction'>
|
|
42
|
+
<span class='fraction'>8/14</span>
|
|
43
43
|
</div>
|
|
44
44
|
|
|
45
45
|
|
|
46
46
|
<div class='fl pad1y space-right2'>
|
|
47
|
-
<span class="strong">
|
|
47
|
+
<span class="strong">60% </span>
|
|
48
48
|
<span class="quiet">Lines</span>
|
|
49
|
-
<span class='fraction'>
|
|
49
|
+
<span class='fraction'>36/60</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 medium'></div>
|
|
65
65
|
<pre><table class="coverage">
|
|
66
66
|
<tr><td class="line-count quiet"><a name='L1'></a><a href='#L1'>1</a>
|
|
67
67
|
<a name='L2'></a><a href='#L2'>2</a>
|
|
@@ -284,51 +284,7 @@
|
|
|
284
284
|
<a name='L219'></a><a href='#L219'>219</a>
|
|
285
285
|
<a name='L220'></a><a href='#L220'>220</a>
|
|
286
286
|
<a name='L221'></a><a href='#L221'>221</a>
|
|
287
|
-
<a name='L222'></a><a href='#L222'>222</a>
|
|
288
|
-
<a name='L223'></a><a href='#L223'>223</a>
|
|
289
|
-
<a name='L224'></a><a href='#L224'>224</a>
|
|
290
|
-
<a name='L225'></a><a href='#L225'>225</a>
|
|
291
|
-
<a name='L226'></a><a href='#L226'>226</a>
|
|
292
|
-
<a name='L227'></a><a href='#L227'>227</a>
|
|
293
|
-
<a name='L228'></a><a href='#L228'>228</a>
|
|
294
|
-
<a name='L229'></a><a href='#L229'>229</a>
|
|
295
|
-
<a name='L230'></a><a href='#L230'>230</a>
|
|
296
|
-
<a name='L231'></a><a href='#L231'>231</a>
|
|
297
|
-
<a name='L232'></a><a href='#L232'>232</a>
|
|
298
|
-
<a name='L233'></a><a href='#L233'>233</a>
|
|
299
|
-
<a name='L234'></a><a href='#L234'>234</a>
|
|
300
|
-
<a name='L235'></a><a href='#L235'>235</a>
|
|
301
|
-
<a name='L236'></a><a href='#L236'>236</a>
|
|
302
|
-
<a name='L237'></a><a href='#L237'>237</a>
|
|
303
|
-
<a name='L238'></a><a href='#L238'>238</a>
|
|
304
|
-
<a name='L239'></a><a href='#L239'>239</a>
|
|
305
|
-
<a name='L240'></a><a href='#L240'>240</a>
|
|
306
|
-
<a name='L241'></a><a href='#L241'>241</a>
|
|
307
|
-
<a name='L242'></a><a href='#L242'>242</a>
|
|
308
|
-
<a name='L243'></a><a href='#L243'>243</a>
|
|
309
|
-
<a name='L244'></a><a href='#L244'>244</a>
|
|
310
|
-
<a name='L245'></a><a href='#L245'>245</a>
|
|
311
|
-
<a name='L246'></a><a href='#L246'>246</a>
|
|
312
|
-
<a name='L247'></a><a href='#L247'>247</a>
|
|
313
|
-
<a name='L248'></a><a href='#L248'>248</a>
|
|
314
|
-
<a name='L249'></a><a href='#L249'>249</a>
|
|
315
|
-
<a name='L250'></a><a href='#L250'>250</a>
|
|
316
|
-
<a name='L251'></a><a href='#L251'>251</a>
|
|
317
|
-
<a name='L252'></a><a href='#L252'>252</a>
|
|
318
|
-
<a name='L253'></a><a href='#L253'>253</a>
|
|
319
|
-
<a name='L254'></a><a href='#L254'>254</a>
|
|
320
|
-
<a name='L255'></a><a href='#L255'>255</a>
|
|
321
|
-
<a name='L256'></a><a href='#L256'>256</a>
|
|
322
|
-
<a name='L257'></a><a href='#L257'>257</a>
|
|
323
|
-
<a name='L258'></a><a href='#L258'>258</a>
|
|
324
|
-
<a name='L259'></a><a href='#L259'>259</a>
|
|
325
|
-
<a name='L260'></a><a href='#L260'>260</a>
|
|
326
|
-
<a name='L261'></a><a href='#L261'>261</a>
|
|
327
|
-
<a name='L262'></a><a href='#L262'>262</a>
|
|
328
|
-
<a name='L263'></a><a href='#L263'>263</a>
|
|
329
|
-
<a name='L264'></a><a href='#L264'>264</a>
|
|
330
|
-
<a name='L265'></a><a href='#L265'>265</a>
|
|
331
|
-
<a name='L266'></a><a href='#L266'>266</a></td><td class="line-coverage quiet"><span class="cline-any cline-neutral"> </span>
|
|
287
|
+
<a name='L222'></a><a href='#L222'>222</a></td><td class="line-coverage quiet"><span class="cline-any cline-neutral"> </span>
|
|
332
288
|
<span class="cline-any cline-neutral"> </span>
|
|
333
289
|
<span class="cline-any cline-neutral"> </span>
|
|
334
290
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -336,74 +292,80 @@
|
|
|
336
292
|
<span class="cline-any cline-neutral"> </span>
|
|
337
293
|
<span class="cline-any cline-neutral"> </span>
|
|
338
294
|
<span class="cline-any cline-neutral"> </span>
|
|
339
|
-
<span class="cline-any cline-
|
|
340
|
-
<span class="cline-any cline-
|
|
341
|
-
<span class="cline-any cline-
|
|
342
|
-
<span class="cline-any cline-
|
|
295
|
+
<span class="cline-any cline-yes">1x</span>
|
|
296
|
+
<span class="cline-any cline-no"> </span>
|
|
297
|
+
<span class="cline-any cline-no"> </span>
|
|
298
|
+
<span class="cline-any cline-no"> </span>
|
|
299
|
+
<span class="cline-any cline-no"> </span>
|
|
343
300
|
<span class="cline-any cline-neutral"> </span>
|
|
344
301
|
<span class="cline-any cline-neutral"> </span>
|
|
345
302
|
<span class="cline-any cline-neutral"> </span>
|
|
346
303
|
<span class="cline-any cline-neutral"> </span>
|
|
347
304
|
<span class="cline-any cline-yes">2x</span>
|
|
348
|
-
<span class="cline-any cline-yes">2x</span>
|
|
349
|
-
<span class="cline-any cline-yes">2x</span>
|
|
350
|
-
<span class="cline-any cline-yes">2x</span>
|
|
351
305
|
<span class="cline-any cline-neutral"> </span>
|
|
352
306
|
<span class="cline-any cline-neutral"> </span>
|
|
353
307
|
<span class="cline-any cline-neutral"> </span>
|
|
354
|
-
<span class="cline-any cline-yes">2x</span>
|
|
355
|
-
<span class="cline-any cline-no"> </span>
|
|
356
308
|
<span class="cline-any cline-neutral"> </span>
|
|
357
309
|
<span class="cline-any cline-neutral"> </span>
|
|
358
310
|
<span class="cline-any cline-neutral"> </span>
|
|
311
|
+
<span class="cline-any cline-yes">2x</span>
|
|
359
312
|
<span class="cline-any cline-neutral"> </span>
|
|
360
313
|
<span class="cline-any cline-yes">2x</span>
|
|
361
314
|
<span class="cline-any cline-yes">2x</span>
|
|
315
|
+
<span class="cline-any cline-yes">2x</span>
|
|
316
|
+
<span class="cline-any cline-yes">2x</span>
|
|
317
|
+
<span class="cline-any cline-yes">2x</span>
|
|
318
|
+
<span class="cline-any cline-yes">2x</span>
|
|
319
|
+
<span class="cline-any cline-yes">2x</span>
|
|
320
|
+
<span class="cline-any cline-yes">2x</span>
|
|
362
321
|
<span class="cline-any cline-neutral"> </span>
|
|
322
|
+
<span class="cline-any cline-yes">2x</span>
|
|
363
323
|
<span class="cline-any cline-neutral"> </span>
|
|
324
|
+
<span class="cline-any cline-yes">1x</span>
|
|
364
325
|
<span class="cline-any cline-neutral"> </span>
|
|
365
|
-
<span class="cline-any cline-
|
|
366
|
-
<span class="cline-any cline-no"> </span>
|
|
367
|
-
<span class="cline-any cline-no"> </span>
|
|
368
|
-
<span class="cline-any cline-no"> </span>
|
|
326
|
+
<span class="cline-any cline-yes">1x</span>
|
|
369
327
|
<span class="cline-any cline-no"> </span>
|
|
370
328
|
<span class="cline-any cline-neutral"> </span>
|
|
371
329
|
<span class="cline-any cline-neutral"> </span>
|
|
330
|
+
<span class="cline-any cline-yes">1x</span>
|
|
331
|
+
<span class="cline-any cline-no"> </span>
|
|
372
332
|
<span class="cline-any cline-neutral"> </span>
|
|
373
333
|
<span class="cline-any cline-neutral"> </span>
|
|
334
|
+
<span class="cline-any cline-yes">1x</span>
|
|
374
335
|
<span class="cline-any cline-neutral"> </span>
|
|
336
|
+
<span class="cline-any cline-yes">1x</span>
|
|
337
|
+
<span class="cline-any cline-yes">1x</span>
|
|
375
338
|
<span class="cline-any cline-neutral"> </span>
|
|
376
339
|
<span class="cline-any cline-neutral"> </span>
|
|
377
340
|
<span class="cline-any cline-neutral"> </span>
|
|
378
|
-
<span class="cline-any cline-
|
|
379
|
-
<span class="cline-any cline-neutral"> </span>
|
|
341
|
+
<span class="cline-any cline-yes">2x</span>
|
|
380
342
|
<span class="cline-any cline-neutral"> </span>
|
|
381
343
|
<span class="cline-any cline-yes">1x</span>
|
|
382
344
|
<span class="cline-any cline-yes">1x</span>
|
|
383
|
-
<span class="cline-any cline-no"> </span>
|
|
384
|
-
<span class="cline-any cline-neutral"> </span>
|
|
385
|
-
<span class="cline-any cline-no"> </span>
|
|
386
|
-
<span class="cline-any cline-neutral"> </span>
|
|
387
345
|
<span class="cline-any cline-neutral"> </span>
|
|
388
346
|
<span class="cline-any cline-neutral"> </span>
|
|
389
|
-
<span class="cline-any cline-no"> </span>
|
|
390
|
-
<span class="cline-any cline-neutral"> </span>
|
|
391
347
|
<span class="cline-any cline-neutral"> </span>
|
|
348
|
+
<span class="cline-any cline-yes">2x</span>
|
|
349
|
+
<span class="cline-any cline-yes">1x</span>
|
|
350
|
+
<span class="cline-any cline-yes">1x</span>
|
|
392
351
|
<span class="cline-any cline-neutral"> </span>
|
|
352
|
+
<span class="cline-any cline-yes">1x</span>
|
|
393
353
|
<span class="cline-any cline-neutral"> </span>
|
|
394
354
|
<span class="cline-any cline-neutral"> </span>
|
|
395
355
|
<span class="cline-any cline-neutral"> </span>
|
|
356
|
+
<span class="cline-any cline-yes">1x</span>
|
|
396
357
|
<span class="cline-any cline-neutral"> </span>
|
|
397
358
|
<span class="cline-any cline-neutral"> </span>
|
|
359
|
+
<span class="cline-any cline-yes">2x</span>
|
|
360
|
+
<span class="cline-any cline-yes">1x</span>
|
|
398
361
|
<span class="cline-any cline-no"> </span>
|
|
399
362
|
<span class="cline-any cline-no"> </span>
|
|
400
363
|
<span class="cline-any cline-neutral"> </span>
|
|
401
|
-
<span class="cline-any cline-no"> </span>
|
|
402
364
|
<span class="cline-any cline-neutral"> </span>
|
|
403
365
|
<span class="cline-any cline-neutral"> </span>
|
|
366
|
+
<span class="cline-any cline-no"> </span>
|
|
404
367
|
<span class="cline-any cline-neutral"> </span>
|
|
405
368
|
<span class="cline-any cline-neutral"> </span>
|
|
406
|
-
<span class="cline-any cline-no"> </span>
|
|
407
369
|
<span class="cline-any cline-neutral"> </span>
|
|
408
370
|
<span class="cline-any cline-neutral"> </span>
|
|
409
371
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -413,8 +375,9 @@
|
|
|
413
375
|
<span class="cline-any cline-neutral"> </span>
|
|
414
376
|
<span class="cline-any cline-neutral"> </span>
|
|
415
377
|
<span class="cline-any cline-neutral"> </span>
|
|
416
|
-
<span class="cline-any cline-no"> </span>
|
|
417
378
|
<span class="cline-any cline-neutral"> </span>
|
|
379
|
+
<span class="cline-any cline-yes">2x</span>
|
|
380
|
+
<span class="cline-any cline-yes">2x</span>
|
|
418
381
|
<span class="cline-any cline-neutral"> </span>
|
|
419
382
|
<span class="cline-any cline-neutral"> </span>
|
|
420
383
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -422,7 +385,7 @@
|
|
|
422
385
|
<span class="cline-any cline-neutral"> </span>
|
|
423
386
|
<span class="cline-any cline-neutral"> </span>
|
|
424
387
|
<span class="cline-any cline-neutral"> </span>
|
|
425
|
-
<span class="cline-any cline-
|
|
388
|
+
<span class="cline-any cline-yes">2x</span>
|
|
426
389
|
<span class="cline-any cline-no"> </span>
|
|
427
390
|
<span class="cline-any cline-no"> </span>
|
|
428
391
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -457,52 +420,20 @@
|
|
|
457
420
|
<span class="cline-any cline-neutral"> </span>
|
|
458
421
|
<span class="cline-any cline-neutral"> </span>
|
|
459
422
|
<span class="cline-any cline-neutral"> </span>
|
|
423
|
+
<span class="cline-any cline-yes">2x</span>
|
|
460
424
|
<span class="cline-any cline-no"> </span>
|
|
461
425
|
<span class="cline-any cline-no"> </span>
|
|
462
426
|
<span class="cline-any cline-no"> </span>
|
|
463
427
|
<span class="cline-any cline-no"> </span>
|
|
464
|
-
<span class="cline-any cline-no"> </span>
|
|
465
|
-
<span class="cline-any cline-neutral"> </span>
|
|
466
|
-
<span class="cline-any cline-neutral"> </span>
|
|
467
|
-
<span class="cline-any cline-neutral"> </span>
|
|
468
428
|
<span class="cline-any cline-neutral"> </span>
|
|
469
|
-
<span class="cline-any cline-neutral"> </span>
|
|
470
|
-
<span class="cline-any cline-neutral"> </span>
|
|
471
|
-
<span class="cline-any cline-no"> </span>
|
|
472
429
|
<span class="cline-any cline-no"> </span>
|
|
473
430
|
<span class="cline-any cline-no"> </span>
|
|
474
|
-
<span class="cline-any cline-no"> </span>
|
|
475
|
-
<span class="cline-any cline-neutral"> </span>
|
|
476
|
-
<span class="cline-any cline-neutral"> </span>
|
|
477
|
-
<span class="cline-any cline-neutral"> </span>
|
|
478
|
-
<span class="cline-any cline-neutral"> </span>
|
|
479
|
-
<span class="cline-any cline-neutral"> </span>
|
|
480
|
-
<span class="cline-any cline-neutral"> </span>
|
|
481
|
-
<span class="cline-any cline-neutral"> </span>
|
|
482
|
-
<span class="cline-any cline-neutral"> </span>
|
|
483
|
-
<span class="cline-any cline-neutral"> </span>
|
|
484
|
-
<span class="cline-any cline-neutral"> </span>
|
|
485
|
-
<span class="cline-any cline-neutral"> </span>
|
|
486
|
-
<span class="cline-any cline-neutral"> </span>
|
|
487
|
-
<span class="cline-any cline-neutral"> </span>
|
|
488
|
-
<span class="cline-any cline-neutral"> </span>
|
|
489
431
|
<span class="cline-any cline-neutral"> </span>
|
|
490
432
|
<span class="cline-any cline-neutral"> </span>
|
|
433
|
+
<span class="cline-any cline-yes">2x</span>
|
|
491
434
|
<span class="cline-any cline-no"> </span>
|
|
492
435
|
<span class="cline-any cline-no"> </span>
|
|
493
436
|
<span class="cline-any cline-no"> </span>
|
|
494
|
-
<span class="cline-any cline-neutral"> </span>
|
|
495
|
-
<span class="cline-any cline-neutral"> </span>
|
|
496
|
-
<span class="cline-any cline-neutral"> </span>
|
|
497
|
-
<span class="cline-any cline-neutral"> </span>
|
|
498
|
-
<span class="cline-any cline-neutral"> </span>
|
|
499
|
-
<span class="cline-any cline-neutral"> </span>
|
|
500
|
-
<span class="cline-any cline-neutral"> </span>
|
|
501
|
-
<span class="cline-any cline-neutral"> </span>
|
|
502
|
-
<span class="cline-any cline-neutral"> </span>
|
|
503
|
-
<span class="cline-any cline-neutral"> </span>
|
|
504
|
-
<span class="cline-any cline-neutral"> </span>
|
|
505
|
-
<span class="cline-any cline-neutral"> </span>
|
|
506
437
|
<span class="cline-any cline-no"> </span>
|
|
507
438
|
<span class="cline-any cline-neutral"> </span>
|
|
508
439
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -512,24 +443,14 @@
|
|
|
512
443
|
<span class="cline-any cline-neutral"> </span>
|
|
513
444
|
<span class="cline-any cline-neutral"> </span>
|
|
514
445
|
<span class="cline-any cline-neutral"> </span>
|
|
515
|
-
<span class="cline-any cline-neutral"> </span>
|
|
516
|
-
<span class="cline-any cline-yes">2x</span>
|
|
517
|
-
<span class="cline-any cline-yes">2x</span>
|
|
518
|
-
<span class="cline-any cline-yes">2x</span>
|
|
519
446
|
<span class="cline-any cline-yes">2x</span>
|
|
520
447
|
<span class="cline-any cline-neutral"> </span>
|
|
521
|
-
<span class="cline-any cline-no"> </span>
|
|
522
|
-
<span class="cline-any cline-no"> </span>
|
|
523
|
-
<span class="cline-any cline-no"> </span>
|
|
524
448
|
<span class="cline-any cline-neutral"> </span>
|
|
525
|
-
<span class="cline-any cline-no"> </span>
|
|
526
449
|
<span class="cline-any cline-neutral"> </span>
|
|
527
450
|
<span class="cline-any cline-neutral"> </span>
|
|
528
|
-
<span class="cline-any cline-no"> </span>
|
|
529
451
|
<span class="cline-any cline-neutral"> </span>
|
|
530
452
|
<span class="cline-any cline-neutral"> </span>
|
|
531
453
|
<span class="cline-any cline-neutral"> </span>
|
|
532
|
-
<span class="cline-any cline-no"> </span>
|
|
533
454
|
<span class="cline-any cline-neutral"> </span>
|
|
534
455
|
<span class="cline-any cline-neutral"> </span>
|
|
535
456
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -542,15 +463,6 @@
|
|
|
542
463
|
<span class="cline-any cline-neutral"> </span>
|
|
543
464
|
<span class="cline-any cline-neutral"> </span>
|
|
544
465
|
<span class="cline-any cline-neutral"> </span>
|
|
545
|
-
<span class="cline-any cline-no"> </span>
|
|
546
|
-
<span class="cline-any cline-neutral"> </span>
|
|
547
|
-
<span class="cline-any cline-neutral"> </span>
|
|
548
|
-
<span class="cline-any cline-neutral"> </span>
|
|
549
|
-
<span class="cline-any cline-neutral"> </span>
|
|
550
|
-
<span class="cline-any cline-no"> </span>
|
|
551
|
-
<span class="cline-any cline-neutral"> </span>
|
|
552
|
-
<span class="cline-any cline-neutral"> </span>
|
|
553
|
-
<span class="cline-any cline-neutral"> </span>
|
|
554
466
|
<span class="cline-any cline-neutral"> </span>
|
|
555
467
|
<span class="cline-any cline-neutral"> </span>
|
|
556
468
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -560,12 +472,11 @@
|
|
|
560
472
|
<span class="cline-any cline-neutral"> </span>
|
|
561
473
|
<span class="cline-any cline-neutral"> </span>
|
|
562
474
|
<span class="cline-any cline-neutral"> </span>
|
|
475
|
+
<span class="cline-any cline-yes">2x</span>
|
|
563
476
|
<span class="cline-any cline-neutral"> </span>
|
|
564
477
|
<span class="cline-any cline-neutral"> </span>
|
|
565
478
|
<span class="cline-any cline-neutral"> </span>
|
|
566
479
|
<span class="cline-any cline-neutral"> </span>
|
|
567
|
-
<span class="cline-any cline-yes">2x</span>
|
|
568
|
-
<span class="cline-any cline-neutral"> </span>
|
|
569
480
|
<span class="cline-any cline-neutral"> </span>
|
|
570
481
|
<span class="cline-any cline-neutral"> </span>
|
|
571
482
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -593,83 +504,91 @@
|
|
|
593
504
|
<span class="cline-any cline-neutral"> </span>
|
|
594
505
|
<span class="cline-any cline-neutral"> </span>
|
|
595
506
|
<span class="cline-any cline-neutral"> </span>
|
|
596
|
-
<span class="cline-any cline-neutral"> </span
|
|
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 'react';
|
|
597
509
|
import PropTypes from 'prop-types';
|
|
598
|
-
|
|
599
|
-
import
|
|
600
|
-
import { CloseXIcon, BellOutline } from '../../lib/SvgComponents.jsx';
|
|
510
|
+
import ExpandedView from './ExpandedView';
|
|
511
|
+
import CollapsedView from './CollapsedView';
|
|
601
512
|
import { withGetConfig } from '../hooks/useGetConfig';
|
|
602
513
|
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
};
|
|
514
|
+
function debounce(fn, ms) {
|
|
515
|
+
let timer;
|
|
516
|
+
return <span class="fstat-no" title="function not covered" >()</span> => {
|
|
517
|
+
<span class="cstat-no" title="statement not covered" > clearTimeout(timer);</span>
|
|
518
|
+
<span class="cstat-no" title="statement not covered" > timer = setTimeout(<span class="fstat-no" title="function not covered" >()</span> => {</span>
|
|
519
|
+
<span class="cstat-no" title="statement not covered" > timer = null;</span>
|
|
520
|
+
<span class="cstat-no" title="statement not covered" > fn.apply(this, arguments);</span>
|
|
521
|
+
}, ms);
|
|
522
|
+
};
|
|
523
|
+
}
|
|
611
524
|
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
525
|
+
const NotificationBanner = ({ result }) => {
|
|
526
|
+
const {
|
|
527
|
+
color = <span class="branch-0 cbranch-no" title="branch not covered" >'blue',</span>
|
|
528
|
+
content,
|
|
529
|
+
dismissable,
|
|
530
|
+
enabled,
|
|
531
|
+
label = <span class="branch-0 cbranch-no" title="branch not covered" >'Update',</span>
|
|
532
|
+
} = result.content;
|
|
617
533
|
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
534
|
+
const bannerContainerRef = useRef(null);
|
|
535
|
+
const collapsedWrapperRef = useRef(null);
|
|
536
|
+
const collapsedBannerRef = useRef(null);
|
|
537
|
+
const VIEW_BREAKPOINT = 767;
|
|
538
|
+
const [height, setHeight] = useState('100%');
|
|
539
|
+
const [expanded, setExpanded] = useState();
|
|
540
|
+
const [windowWidth, setWindowWidth] = useState(window.innerWidth);
|
|
541
|
+
const cssDeterminesBannerView = expanded ? 'expanded' : 'collapsed';
|
|
624
542
|
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
543
|
+
useEffect(() => {
|
|
544
|
+
//setBannerHeight on Load & Resize
|
|
545
|
+
setBannerHeight();
|
|
628
546
|
|
|
629
|
-
|
|
630
|
-
<span class="
|
|
631
|
-
<span class="cstat-no" title="statement not covered" > if (prevProps.result !== this.props?.result) {</span>
|
|
632
|
-
const { result: notifications } = <span class="cstat-no" title="statement not covered" >this.props;</span>
|
|
633
|
-
<span class="cstat-no" title="statement not covered" > if (Object.keys(notifications).length > 0) {</span>
|
|
634
|
-
<span class="cstat-no" title="statement not covered" > this.setState({</span>
|
|
635
|
-
expanded: this.isNotificationExpanded(notifications.content),
|
|
636
|
-
});
|
|
637
|
-
}
|
|
547
|
+
<span class="missing-if-branch" title="if path not taken" >I</span>if (window.innerWidth <= VIEW_BREAKPOINT) {
|
|
548
|
+
<span class="cstat-no" title="statement not covered" > setExpanded(false);</span>
|
|
638
549
|
}
|
|
639
|
-
}
|
|
640
550
|
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
content: { content },
|
|
645
|
-
},
|
|
646
|
-
} = this.props;
|
|
647
|
-
<span class="missing-if-branch" title="if path not taken" >I</span>if (content) {
|
|
648
|
-
<span class="cstat-no" title="statement not covered" > this.bannerContainer.style.transition = 'none';</span>
|
|
551
|
+
const debounceBrowserResizeHandler = debounce(<span class="fstat-no" title="function not covered" >()</span> => {
|
|
552
|
+
<span class="cstat-no" title="statement not covered" > return setWindowWidth(window.innerWidth);</span>
|
|
553
|
+
}, 600);
|
|
649
554
|
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
555
|
+
window.addEventListener('resize', debounceBrowserResizeHandler);
|
|
556
|
+
|
|
557
|
+
return () => {
|
|
558
|
+
window.removeEventListener('resize', debounceBrowserResizeHandler);
|
|
559
|
+
};
|
|
560
|
+
}, [windowWidth]);
|
|
653
561
|
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
});
|
|
562
|
+
useEffect(() => {
|
|
563
|
+
// setExpanded => updates cssDeterminesBannerView
|
|
564
|
+
<span class="missing-if-branch" title="else path not taken" >E</span>if (Object.keys(result).length > 0) {
|
|
565
|
+
setExpanded(isNotificationExpanded());
|
|
659
566
|
}
|
|
660
|
-
}
|
|
567
|
+
}, [result]);
|
|
661
568
|
|
|
662
|
-
|
|
663
|
-
const dateDismissed =
|
|
664
|
-
const dateUpdated =
|
|
569
|
+
const isNotificationExpanded = () => {
|
|
570
|
+
const dateDismissed = new Date(result.content.dateDismissed);
|
|
571
|
+
const dateUpdated = new Date(result.content.dateUpdated);
|
|
665
572
|
const notDismissed =
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
dateUpdated >= dateDismissed) ||
|
|
669
|
-
!
|
|
573
|
+
(isDateValid(dateUpdated) &&
|
|
574
|
+
<span class="branch-1 cbranch-no" title="branch not covered" > isDateValid(dateDismissed) </span>&&
|
|
575
|
+
<span class="branch-2 cbranch-no" title="branch not covered" > dateUpdated >= dateDismissed)</span> ||
|
|
576
|
+
!isDateValid(dateDismissed);
|
|
577
|
+
return notDismissed;
|
|
578
|
+
};
|
|
670
579
|
|
|
671
|
-
|
|
672
|
-
|
|
580
|
+
const setBannerHeight = () => {
|
|
581
|
+
<span class="missing-if-branch" title="if path not taken" >I</span>if (content) {
|
|
582
|
+
<span class="cstat-no" title="statement not covered" > bannerContainerRef.current.style.transition = 'none';</span>
|
|
583
|
+
<span class="cstat-no" title="statement not covered" > expanded</span>
|
|
584
|
+
? collapsedBannerRef.current.setAttribute('tabIndex', '-1')
|
|
585
|
+
: collapsedBannerRef.current.setAttribute('tabIndex', ' ');
|
|
586
|
+
|
|
587
|
+
<span class="cstat-no" title="statement not covered" > setHeight(</span>
|
|
588
|
+
expanded ? '100%' : `${collapsedWrapperRef.current.offsetHeight}px`
|
|
589
|
+
);
|
|
590
|
+
}
|
|
591
|
+
};
|
|
673
592
|
|
|
674
593
|
/**
|
|
675
594
|
* Whether the date is valid, i.e. not null
|
|
@@ -677,17 +596,17 @@ class NotificationBanner extends Component {
|
|
|
677
596
|
* @param {Date} date
|
|
678
597
|
* @return {Boolean}
|
|
679
598
|
*/
|
|
680
|
-
<span class="fstat-no" title="function not covered" > is</span>DateValid(date) {
|
|
681
|
-
<span class="cstat-no" title="statement not covered" > return !isNaN(Date.parse(date));</span>
|
|
682
|
-
}
|
|
683
599
|
|
|
600
|
+
const isDateValid = (date) => {
|
|
601
|
+
return !isNaN(Date.parse(date));
|
|
602
|
+
};
|
|
684
603
|
/**
|
|
685
604
|
* Try to find this NotificationBanner instance in localStorage, or else add
|
|
686
605
|
* a minimal version of it, and mark it with a dateDismissed, then update
|
|
687
606
|
* localStorage.
|
|
688
607
|
*/
|
|
689
|
-
|
|
690
|
-
|
|
608
|
+
|
|
609
|
+
const markNotificationClosed = <span class="fstat-no" title="function not covered" >()</span> => {
|
|
691
610
|
const dateDismissed = <span class="cstat-no" title="statement not covered" >new Date().toISOString();</span>
|
|
692
611
|
const storageNotification = <span class="cstat-no" title="statement not covered" >result || {};</span>
|
|
693
612
|
|
|
@@ -714,128 +633,76 @@ class NotificationBanner extends Component {
|
|
|
714
633
|
})
|
|
715
634
|
);
|
|
716
635
|
}
|
|
717
|
-
}
|
|
636
|
+
};
|
|
718
637
|
|
|
719
638
|
/**
|
|
720
639
|
* Callback when the user dimisses a notification. Mark it as dismissed in
|
|
721
640
|
* localStorage, empty the contents, and dispatch a custom event to notify
|
|
722
641
|
* any observers that it has been dismissed.
|
|
723
642
|
*/
|
|
724
|
-
|
|
643
|
+
|
|
644
|
+
const collapseNotification = <span class="fstat-no" title="function not covered" >(e</span>) => {
|
|
725
645
|
<span class="cstat-no" title="statement not covered" > e.stopPropagation();</span>
|
|
726
|
-
<span class="cstat-no" title="statement not covered" >
|
|
727
|
-
<span class="cstat-no" title="statement not covered" >
|
|
728
|
-
<span class="cstat-no" title="statement not covered" >
|
|
729
|
-
<span class="cstat-no" title="statement not covered" > this.setState({</span>
|
|
730
|
-
expanded: false,
|
|
731
|
-
height: this.collapsedWrapper.offsetHeight + 'px',
|
|
732
|
-
});
|
|
733
|
-
}
|
|
646
|
+
<span class="cstat-no" title="statement not covered" > markNotificationClosed();</span>
|
|
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>
|
|
734
649
|
|
|
735
|
-
<span class="
|
|
736
|
-
<span class="cstat-no" title="statement not covered" >
|
|
737
|
-
|
|
738
|
-
<span class="cstat-no" title="statement not covered" > this.bannerContainer.style.transition = 'height .2s ease-out';</span>
|
|
739
|
-
<span class="cstat-no" title="statement not covered" > this.setState({</span>
|
|
740
|
-
expanded: true,
|
|
741
|
-
height: '100%',
|
|
742
|
-
});
|
|
743
|
-
}
|
|
744
|
-
}
|
|
650
|
+
<span class="cstat-no" title="statement not covered" > setExpanded(false);</span>
|
|
651
|
+
<span class="cstat-no" title="statement not covered" > setHeight(`${collapsedWrapperRef.current.offsetHeight}px`);</span>
|
|
652
|
+
};
|
|
745
653
|
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
const {
|
|
753
|
-
result: {
|
|
754
|
-
content: { dismissable },
|
|
755
|
-
},
|
|
756
|
-
} = <span class="cstat-no" title="statement not covered" >this.props;</span>
|
|
757
|
-
<span class="cstat-no" title="statement not covered" > if (dismissable) {</span>
|
|
758
|
-
<span class="cstat-no" title="statement not covered" > return (</span>
|
|
759
|
-
<button
|
|
760
|
-
onClick={this._collapseNotification}
|
|
761
|
-
type="button"
|
|
762
|
-
className="notification-banner-close"
|
|
763
|
-
>
|
|
764
|
-
<svg className="close-icon" aria-hidden="true" focusable="false">
|
|
765
|
-
<CloseXIcon />
|
|
766
|
-
</svg>
|
|
767
|
-
<span className="sr-only">Close</span>
|
|
768
|
-
</button>
|
|
769
|
-
);
|
|
770
|
-
} else {
|
|
771
|
-
<span class="cstat-no" title="statement not covered" > return '';</span>
|
|
772
|
-
}
|
|
773
|
-
}
|
|
654
|
+
const expandNotification = <span class="fstat-no" title="function not covered" >()</span> => {
|
|
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
|
+
<span class="cstat-no" title="statement not covered" > setExpanded(true);</span>
|
|
658
|
+
<span class="cstat-no" title="statement not covered" > setHeight('100%');</span>
|
|
659
|
+
};
|
|
774
660
|
|
|
775
661
|
/**
|
|
776
662
|
* Render the notification if it has any contents.
|
|
777
663
|
*
|
|
778
664
|
* @return {String} HTML content
|
|
779
665
|
*/
|
|
780
|
-
render() {
|
|
781
|
-
const { expanded, height } = this.state;
|
|
782
|
-
const { result: { content: { enabled, content } = <span class="branch-0 cbranch-no" title="branch not covered" >{} </span>} = <span class="branch-0 cbranch-no" title="branch not covered" >{} </span>} = this.props;
|
|
783
|
-
if (!content || <span class="branch-1 cbranch-no" title="branch not covered" >!enabled)</span> {
|
|
784
|
-
return <div id="notification-banner" />;
|
|
785
|
-
} else <span class="missing-if-branch" title="else path not taken" >E</span>{
|
|
786
|
-
const notificationStatus = <span class="cstat-no" title="statement not covered" >expanded ? 'expanded' : 'collapsed';</span>
|
|
787
|
-
const { color = <span class="branch-0 cbranch-no" title="branch not covered" >'blue',</span> label = <span class="branch-0 cbranch-no" title="branch not covered" >'Update' </span>} = <span class="cstat-no" title="statement not covered" >content;</span>
|
|
788
|
-
const className = <span class="cstat-no" title="statement not covered" >`notification-banner notification-banner-${color} ${notificationStatus}`;</span>
|
|
789
666
|
|
|
790
|
-
|
|
791
|
-
|
|
667
|
+
return (
|
|
668
|
+
<>
|
|
669
|
+
{!content || <span class="branch-1 cbranch-no" title="branch not covered" >!enabled </span>? (
|
|
670
|
+
<div id="notification-banner" />
|
|
671
|
+
) : (
|
|
672
|
+
<span class="branch-1 cbranch-no" title="branch not covered" > <div</span>
|
|
673
|
+
ref={bannerContainerRef}
|
|
792
674
|
style={{ height }}
|
|
793
|
-
|
|
794
|
-
className={className}
|
|
675
|
+
className={`notification-banner notification-banner-${color} ${cssDeterminesBannerView}`}
|
|
795
676
|
>
|
|
796
|
-
<
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
html={expanded ? content : '<p>Nothing to see here</p>'}
|
|
804
|
-
/>
|
|
805
|
-
</div>
|
|
806
|
-
{expanded && this._renderCloseButton()}
|
|
807
|
-
</div>
|
|
677
|
+
<ExpandedView
|
|
678
|
+
label={label}
|
|
679
|
+
expanded={expanded}
|
|
680
|
+
content={content}
|
|
681
|
+
dismissable={dismissable}
|
|
682
|
+
collapseNotification={collapseNotification}
|
|
683
|
+
/>
|
|
808
684
|
|
|
809
|
-
<
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
<button
|
|
815
|
-
ref={<span class="fstat-no" title="function not covered" >(e</span>lem) => (<span class="cstat-no" title="statement not covered" >this.collapsedBanner = elem)</span>}
|
|
816
|
-
className={`notification-banner-label`}
|
|
817
|
-
>
|
|
818
|
-
{label}
|
|
819
|
-
<span className="bell-icon">
|
|
820
|
-
<svg aria-hidden="true" focusable="false">
|
|
821
|
-
<BellOutline />
|
|
822
|
-
</svg>
|
|
823
|
-
</span>
|
|
824
|
-
</button>
|
|
825
|
-
</div>
|
|
685
|
+
<CollapsedView
|
|
686
|
+
expandNotification={expandNotification}
|
|
687
|
+
label={label}
|
|
688
|
+
ref={{ collapsedWrapperRef, collapsedBannerRef }}
|
|
689
|
+
/>
|
|
826
690
|
</div>
|
|
827
|
-
)
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
}
|
|
691
|
+
)}
|
|
692
|
+
</>
|
|
693
|
+
);
|
|
694
|
+
};
|
|
831
695
|
|
|
832
696
|
NotificationBanner.propTypes = {
|
|
833
697
|
result: PropTypes.shape({
|
|
834
698
|
content: PropTypes.shape({
|
|
835
|
-
content: PropTypes.string,
|
|
836
|
-
label: PropTypes.string,
|
|
837
699
|
color: PropTypes.string,
|
|
700
|
+
content: PropTypes.string,
|
|
701
|
+
dateDismissed: PropTypes.string,
|
|
702
|
+
dateUpdated: PropTypes.string,
|
|
838
703
|
dismissable: PropTypes.bool,
|
|
704
|
+
enabled: PropTypes.bool,
|
|
705
|
+
label: PropTypes.string,
|
|
839
706
|
}),
|
|
840
707
|
}),
|
|
841
708
|
};
|
|
@@ -843,10 +710,11 @@ NotificationBanner.propTypes = {
|
|
|
843
710
|
NotificationBanner.defaultProps = {
|
|
844
711
|
result: {
|
|
845
712
|
content: {
|
|
846
|
-
content: null,
|
|
847
|
-
label: 'Update',
|
|
848
713
|
color: 'blue',
|
|
714
|
+
content: null,
|
|
849
715
|
dismissable: true,
|
|
716
|
+
enabled: true,
|
|
717
|
+
label: 'Update',
|
|
850
718
|
},
|
|
851
719
|
},
|
|
852
720
|
};
|
|
@@ -865,7 +733,7 @@ export default withGetConfig(NotificationBanner, {
|
|
|
865
733
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
866
734
|
Code coverage generated by
|
|
867
735
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
868
|
-
at
|
|
736
|
+
at Wed Oct 19 2022 10:43:33 GMT-0400 (Eastern Daylight Time)
|
|
869
737
|
</div>
|
|
870
738
|
<script src="../../../prettify.js"></script>
|
|
871
739
|
<script>
|