qpp-style 9.31.2 → 9.32.0
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/index.js +0 -4
- package/coverage/clover.xml +126 -125
- package/coverage/coverage-final.json +70 -70
- package/coverage/lcov-report/components/Accordion/index.html +20 -20
- package/coverage/lcov-report/components/Accordion/index.jsx.html +109 -121
- package/coverage/lcov-report/components/Error/Collapsible.jsx.html +98 -98
- package/coverage/lcov-report/components/Error/ErrorUI.jsx.html +33 -33
- package/coverage/lcov-report/components/Error/index.html +23 -23
- package/coverage/lcov-report/components/Footer/FooterUI.jsx.html +557 -395
- package/coverage/lcov-report/components/Footer/LegacyFooterUI.jsx.html +667 -0
- package/coverage/lcov-report/components/Footer/SocialLinks.jsx.html +70 -70
- package/coverage/lcov-report/components/Footer/Subscribe.jsx.html +44 -44
- package/coverage/lcov-report/components/Footer/index.html +48 -33
- package/coverage/lcov-report/components/Infotip/Infotip.jsx.html +108 -96
- package/coverage/lcov-report/components/Infotip/InfotipIcon.jsx.html +49 -49
- package/coverage/lcov-report/components/Infotip/index.html +32 -32
- package/coverage/lcov-report/components/Infotip/index.js.html +1 -1
- package/coverage/lcov-report/components/Modal/LegacyModal.jsx.html +116 -116
- package/coverage/lcov-report/components/Modal/Modal.jsx.html +252 -252
- package/coverage/lcov-report/components/Modal/index.html +38 -38
- package/coverage/lcov-report/components/Modal/index.jsx.html +31 -31
- package/coverage/lcov-report/components/SanitizedContent/index.html +19 -19
- package/coverage/lcov-report/components/SanitizedContent/index.jsx.html +218 -287
- package/coverage/lcov-report/components/SessionDialogUI.jsx.html +440 -440
- package/coverage/lcov-report/components/SideNav/AnimationGroup/AnimationGroup.jsx.html +166 -0
- package/coverage/lcov-report/components/SideNav/{Content/SelectRole → AnimationGroup}/index.html +29 -29
- package/coverage/lcov-report/components/SideNav/Chart/ScoreChart.jsx.html +7 -7
- package/coverage/lcov-report/components/SideNav/Chart/index.html +16 -1
- package/coverage/lcov-report/components/SideNav/Chart/index.js.html +94 -0
- package/coverage/lcov-report/components/SideNav/Content/LevelOneContent.jsx.html +709 -0
- package/coverage/lcov-report/components/SideNav/Content/LevelTwoContent.jsx.html +733 -0
- package/coverage/lcov-report/components/SideNav/Content/index.html +146 -0
- package/coverage/lcov-report/components/SideNav/Content/index.js.html +97 -0
- package/coverage/lcov-report/components/{Header/HeaderCancel.jsx.html → SideNav/Details/IndividualDetails.jsx.html} +41 -35
- package/coverage/lcov-report/components/SideNav/Details/PracticeDetails.jsx.html +220 -0
- package/coverage/lcov-report/components/{NotificationBanner → SideNav/Details}/index.html +46 -46
- package/coverage/lcov-report/components/SideNav/Details/index.js.html +97 -0
- package/coverage/lcov-report/components/SideNav/Links/CmsSwitchLink.jsx.html +208 -0
- package/coverage/lcov-report/components/SideNav/Links/NavItemInline.jsx.html +247 -0
- package/coverage/lcov-report/components/SideNav/Links/NavLinkContainer.jsx.html +199 -0
- package/coverage/lcov-report/components/SideNav/Links/NavLinkDrawer.jsx.html +832 -0
- package/coverage/lcov-report/components/SideNav/Links/NavLinkInline.jsx.html +406 -0
- package/coverage/lcov-report/components/SideNav/Links/NavLinkToggle.jsx.html +187 -0
- package/coverage/lcov-report/components/SideNav/Links/index.html +206 -0
- package/coverage/lcov-report/components/{Header/utag-helpers.js.html → SideNav/Links/index.js.html} +46 -34
- package/coverage/lcov-report/components/SideNav/UI/SideNavUI.jsx.html +1084 -0
- package/coverage/lcov-report/components/{GovBanner → SideNav/UI}/index.html +45 -30
- package/coverage/lcov-report/components/SideNav/UI/index.js.html +94 -0
- package/coverage/lcov-report/components/SideNav/helpers.js.html +54 -1125
- package/coverage/lcov-report/components/SideNav/index.html +19 -19
- package/coverage/lcov-report/components/Tooltip/Tooltip.jsx.html +9 -9
- package/coverage/lcov-report/components/Tooltip/index.html +1 -1
- package/coverage/lcov-report/components/Tooltip/index.js.html +1 -1
- package/coverage/lcov-report/components/Tooltip/position.js.html +1 -1
- package/coverage/lcov-report/components/hooks/index.html +21 -21
- package/coverage/lcov-report/components/hooks/useGetConfig.js.html +128 -131
- package/coverage/lcov-report/components/index.html +21 -21
- package/coverage/lcov-report/index.html +26 -26
- package/coverage/lcov-report/lib/Chevron.jsx.html +36 -36
- package/coverage/lcov-report/lib/SvgComponents.jsx.html +973 -1471
- package/coverage/lcov-report/lib/index.html +36 -21
- package/coverage/lcov-report/lib/svg-definitions.svg.html +460 -0
- 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 +1 -1
- package/coverage/lcov-report/react/components/Footer/LegacyFooterUI.jsx.html +1 -1
- 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 +1 -1
- package/coverage/lcov-report/react/components/Header/HeaderAccountMenu.jsx.html +1 -1
- package/coverage/lcov-report/react/components/Header/HeaderCancel.jsx.html +1 -1
- package/coverage/lcov-report/react/components/Header/HeaderContainer.jsx.html +1 -1
- package/coverage/lcov-report/react/components/Header/HeaderLogo.jsx.html +1 -1
- package/coverage/lcov-report/react/components/Header/HeaderMenuButton.js.html +1 -1
- package/coverage/lcov-report/react/components/Header/HeaderMenuItem.jsx.html +1 -1
- package/coverage/lcov-report/react/components/Header/HeaderMenuLink.js.html +1 -1
- package/coverage/lcov-report/react/components/Header/HeaderMenuSignOutButton.js.html +1 -1
- package/coverage/lcov-report/react/components/Header/HeaderMobileButton.js.html +1 -1
- package/coverage/lcov-report/react/components/Header/HeaderUI.jsx.html +1 -1
- package/coverage/lcov-report/react/components/Header/HelpIcon.jsx.html +1 -1
- package/coverage/lcov-report/react/components/Header/ImpersonatorBanner.jsx.html +1 -1
- 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 +1 -1
- package/coverage/lcov-report/react/components/Header/index.html +1 -1
- 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/InfotipContent.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 +1 -1
- package/coverage/lcov-report/react/components/NotificationBanner/ExpandedView.js.html +1 -1
- package/coverage/lcov-report/react/components/NotificationBanner/index.html +1 -1
- package/coverage/lcov-report/react/components/NotificationBanner/index.js.html +1 -1
- 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 +1 -1
- package/coverage/lcov-report/react/components/SideNav/Content/LevelTwoContent.jsx.html +1 -1
- 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 +1 -1
- package/coverage/lcov-report/react/components/SideNav/Content/SelectRole/utils.js.html +1 -1
- package/coverage/lcov-report/react/components/SideNav/Content/index.html +1 -1
- 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 +1 -1
- 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 +29 -14
- package/coverage/lcov-report/react/components/SideNav/UI/default-markup.js.html +1 -1
- package/coverage/lcov-report/react/components/SideNav/UI/index.html +15 -15
- package/coverage/lcov-report/react/components/SideNav/UI/index.js.html +1 -1
- package/coverage/lcov-report/react/components/SideNav/helpers.js.html +12 -33
- 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 +2 -2
- 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 +1 -1
- package/coverage/lcov-report/react/components/hooks/useGetConfig.js.html +1 -1
- 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 +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/lib/svg-definitions.svg.html +1 -1
- 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-report/session/index.html +53 -53
- package/coverage/lcov-report/session/index.js.html +13 -13
- package/coverage/lcov-report/session/logout.js.html +127 -145
- package/coverage/lcov-report/session/refresh.js.html +90 -90
- package/coverage/lcov-report/session/ttl.js.html +77 -77
- package/coverage/lcov.info +121 -120
- package/dist/browser.js +1 -1
- package/dist/index.js +1 -1
- package/dist/react/index.js +1 -1
- package/dist/react/index.js.map +1 -1
- package/package.json +1 -1
- package/styles/components/_footer.scss +593 -0
- package/styles/components/_header.scss +890 -0
- package/styles/components/_sidebar.scss +8 -0
- package/styles/components/sidebar/_animations.scss +38 -0
- package/styles/components/sidebar/_cms.scss +61 -0
- package/styles/components/sidebar/_details.scss +58 -0
- package/styles/components/sidebar/_links.scss +420 -0
- package/styles/components/sidebar/_sidebar-animation.scss +121 -0
- package/styles/components/sidebar/_sidebar-tooltip.scss +33 -0
- package/styles/components/sidebar/_sidebar.scss +141 -0
- package/styles/components/sidebar/project-specific/_wi.scss +42 -0
- package/styles/qppds/components/_infotip-content.scss +49 -0
- package/styles/qppds/components/_spinner.scss +46 -0
- package/styles/qppds/components/sidebar/_sidebar-animation.scss +114 -87
- package/components/CalloutBox/index.js +0 -109
- package/components/Card/index.js +0 -137
- package/coverage/lcov-report/components/Button/index.html +0 -116
- package/coverage/lcov-report/components/Button/index.js.html +0 -355
- package/coverage/lcov-report/components/GovBanner/index.js.html +0 -436
- package/coverage/lcov-report/components/Header/HeaderAccountMenu.jsx.html +0 -367
- package/coverage/lcov-report/components/Header/HeaderContainer.jsx.html +0 -307
- package/coverage/lcov-report/components/Header/HeaderLogo.jsx.html +0 -211
- package/coverage/lcov-report/components/Header/HeaderMenuButton.js.html +0 -235
- package/coverage/lcov-report/components/Header/HeaderMenuItem.jsx.html +0 -802
- package/coverage/lcov-report/components/Header/HeaderMenuLink.js.html +0 -253
- package/coverage/lcov-report/components/Header/HeaderMenuSignOutButton.js.html +0 -271
- package/coverage/lcov-report/components/Header/HeaderMobileButton.js.html +0 -196
- package/coverage/lcov-report/components/Header/HeaderUI.jsx.html +0 -586
- package/coverage/lcov-report/components/Header/HelpIcon.jsx.html +0 -181
- package/coverage/lcov-report/components/Header/ImpersonatorBanner.jsx.html +0 -328
- package/coverage/lcov-report/components/Header/NavigationButtonIcon.jsx.html +0 -166
- package/coverage/lcov-report/components/Header/hooks.js.html +0 -283
- package/coverage/lcov-report/components/Header/index.html +0 -326
- package/coverage/lcov-report/components/Infotip/InfotipContent.jsx.html +0 -223
- package/coverage/lcov-report/components/NotificationBanner/CollapsedView.js.html +0 -202
- package/coverage/lcov-report/components/NotificationBanner/ExpandedView.js.html +0 -220
- package/coverage/lcov-report/components/NotificationBanner/index.js.html +0 -748
- package/coverage/lcov-report/components/SideNav/Content/SelectRole/utils.js.html +0 -532
|
@@ -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">54.54% </span>
|
|
27
27
|
<span class="quiet">Statements</span>
|
|
28
|
-
<span class='fraction'>
|
|
28
|
+
<span class='fraction'>12/22</span>
|
|
29
29
|
</div>
|
|
30
30
|
|
|
31
31
|
|
|
32
32
|
<div class='fl pad1y space-right2'>
|
|
33
|
-
<span class="strong">
|
|
33
|
+
<span class="strong">0% </span>
|
|
34
34
|
<span class="quiet">Branches</span>
|
|
35
|
-
<span class='fraction'>0/
|
|
35
|
+
<span class='fraction'>0/4</span>
|
|
36
36
|
</div>
|
|
37
37
|
|
|
38
38
|
|
|
39
39
|
<div class='fl pad1y space-right2'>
|
|
40
40
|
<span class="strong">0% </span>
|
|
41
41
|
<span class="quiet">Functions</span>
|
|
42
|
-
<span class='fraction'>0/
|
|
42
|
+
<span class='fraction'>0/3</span>
|
|
43
43
|
</div>
|
|
44
44
|
|
|
45
45
|
|
|
46
46
|
<div class='fl pad1y space-right2'>
|
|
47
|
-
<span class="strong">
|
|
47
|
+
<span class="strong">54.54% </span>
|
|
48
48
|
<span class="quiet">Lines</span>
|
|
49
|
-
<span class='fraction'>
|
|
49
|
+
<span class='fraction'>12/22</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
|
<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 medium" data-value="helpers.js"><a href="helpers.js.html">helpers.js</a></td>
|
|
83
|
+
<td data-value="54.54" class="pic medium">
|
|
84
|
+
<div class="chart"><div class="cover-fill" style="width: 54%"></div><div class="cover-empty" style="width: 46%"></div></div>
|
|
85
85
|
</td>
|
|
86
|
-
<td data-value="
|
|
87
|
-
<td data-value="
|
|
88
|
-
<td data-value="
|
|
89
|
-
<td data-value="
|
|
86
|
+
<td data-value="54.54" class="pct medium">54.54%</td>
|
|
87
|
+
<td data-value="22" class="abs medium">12/22</td>
|
|
88
|
+
<td data-value="0" class="pct low">0%</td>
|
|
89
|
+
<td data-value="4" class="abs low">0/4</td>
|
|
90
90
|
<td data-value="0" class="pct low">0%</td>
|
|
91
|
-
<td data-value="
|
|
92
|
-
<td data-value="
|
|
93
|
-
<td data-value="
|
|
91
|
+
<td data-value="3" class="abs low">0/3</td>
|
|
92
|
+
<td data-value="54.54" class="pct medium">54.54%</td>
|
|
93
|
+
<td data-value="22" class="abs medium">12/22</td>
|
|
94
94
|
</tr>
|
|
95
95
|
|
|
96
96
|
</tbody>
|
|
@@ -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
|
|
104
|
+
at Fri Apr 29 2022 13:58:50 GMT-0400 (Eastern Daylight Time)
|
|
105
105
|
</div>
|
|
106
106
|
<script src="../../prettify.js"></script>
|
|
107
107
|
<script>
|
|
@@ -170,17 +170,17 @@
|
|
|
170
170
|
<span class="cline-any cline-neutral"> </span>
|
|
171
171
|
<span class="cline-any cline-neutral"> </span>
|
|
172
172
|
<span class="cline-any cline-yes">3x</span>
|
|
173
|
-
<span class="cline-any cline-yes">
|
|
174
|
-
<span class="cline-any cline-yes">
|
|
175
|
-
<span class="cline-any cline-yes">
|
|
176
|
-
<span class="cline-any cline-yes">
|
|
173
|
+
<span class="cline-any cline-yes">41x</span>
|
|
174
|
+
<span class="cline-any cline-yes">41x</span>
|
|
175
|
+
<span class="cline-any cline-yes">41x</span>
|
|
176
|
+
<span class="cline-any cline-yes">41x</span>
|
|
177
177
|
<span class="cline-any cline-neutral"> </span>
|
|
178
|
-
<span class="cline-any cline-yes">
|
|
178
|
+
<span class="cline-any cline-yes">41x</span>
|
|
179
179
|
<span class="cline-any cline-neutral"> </span>
|
|
180
180
|
<span class="cline-any cline-neutral"> </span>
|
|
181
181
|
<span class="cline-any cline-neutral"> </span>
|
|
182
182
|
<span class="cline-any cline-neutral"> </span>
|
|
183
|
-
<span class="cline-any cline-yes">
|
|
183
|
+
<span class="cline-any cline-yes">38x</span>
|
|
184
184
|
<span class="cline-any cline-yes">3x</span>
|
|
185
185
|
<span class="cline-any cline-yes">3x</span>
|
|
186
186
|
<span class="cline-any cline-yes">3x</span>
|
|
@@ -196,7 +196,7 @@
|
|
|
196
196
|
<span class="cline-any cline-neutral"> </span>
|
|
197
197
|
<span class="cline-any cline-neutral"> </span>
|
|
198
198
|
<span class="cline-any cline-neutral"> </span>
|
|
199
|
-
<span class="cline-any cline-yes">
|
|
199
|
+
<span class="cline-any cline-yes">41x</span>
|
|
200
200
|
<span class="cline-any cline-neutral"> </span>
|
|
201
201
|
<span class="cline-any cline-neutral"> </span>
|
|
202
202
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -243,7 +243,7 @@
|
|
|
243
243
|
import PropTypes from 'prop-types';
|
|
244
244
|
import positionTip, { positionTriangle } from './position';
|
|
245
245
|
import { useTooltip, TooltipPopup } from '@reach/tooltip';
|
|
246
|
-
import
|
|
246
|
+
import Portal from '@reach/portal';
|
|
247
247
|
|
|
248
248
|
// TODO: investigate ways to allow more styling via css? the triangle
|
|
249
249
|
// positioning effect issue may need to be resolved to allow for this.
|
|
@@ -334,7 +334,7 @@ export default Tooltip;
|
|
|
334
334
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
335
335
|
Code coverage generated by
|
|
336
336
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
337
|
-
at
|
|
337
|
+
at Fri Apr 29 2022 13:58:50 GMT-0400 (Eastern Daylight Time)
|
|
338
338
|
</div>
|
|
339
339
|
<script src="../../prettify.js"></script>
|
|
340
340
|
<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
|
|
134
|
+
at Fri Apr 29 2022 13:58:50 GMT-0400 (Eastern Daylight Time)
|
|
135
135
|
</div>
|
|
136
136
|
<script src="../../prettify.js"></script>
|
|
137
137
|
<script>
|
|
@@ -79,7 +79,7 @@ export default Tooltip;
|
|
|
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
|
|
82
|
+
at Fri Apr 29 2022 13:58:50 GMT-0400 (Eastern Daylight Time)
|
|
83
83
|
</div>
|
|
84
84
|
<script src="../../prettify.js"></script>
|
|
85
85
|
<script>
|
|
@@ -274,7 +274,7 @@ export const positionTriangle = (triggerRect, tooltipRect) => {
|
|
|
274
274
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
275
275
|
Code coverage generated by
|
|
276
276
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
277
|
-
at
|
|
277
|
+
at Fri Apr 29 2022 13:58:50 GMT-0400 (Eastern Daylight Time)
|
|
278
278
|
</div>
|
|
279
279
|
<script src="../../prettify.js"></script>
|
|
280
280
|
<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">50% </span>
|
|
27
27
|
<span class="quiet">Statements</span>
|
|
28
|
-
<span class='fraction'>
|
|
28
|
+
<span class='fraction'>13/26</span>
|
|
29
29
|
</div>
|
|
30
30
|
|
|
31
31
|
|
|
32
32
|
<div class='fl pad1y space-right2'>
|
|
33
|
-
<span class="strong">
|
|
33
|
+
<span class="strong">30% </span>
|
|
34
34
|
<span class="quiet">Branches</span>
|
|
35
|
-
<span class='fraction'>
|
|
35
|
+
<span class='fraction'>6/20</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'>4/7</span>
|
|
43
43
|
</div>
|
|
44
44
|
|
|
45
45
|
|
|
46
46
|
<div class='fl pad1y space-right2'>
|
|
47
|
-
<span class="strong">
|
|
47
|
+
<span class="strong">50% </span>
|
|
48
48
|
<span class="quiet">Lines</span>
|
|
49
|
-
<span class='fraction'>
|
|
49
|
+
<span class='fraction'>13/26</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
|
<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 medium" data-value="useGetConfig.js"><a href="useGetConfig.js.html">useGetConfig.js</a></td>
|
|
83
|
+
<td data-value="50" class="pic medium">
|
|
84
|
+
<div class="chart"><div class="cover-fill" style="width: 50%"></div><div class="cover-empty" style="width: 50%"></div></div>
|
|
85
85
|
</td>
|
|
86
|
-
<td data-value="
|
|
87
|
-
<td data-value="
|
|
88
|
-
<td data-value="
|
|
89
|
-
<td data-value="
|
|
90
|
-
<td data-value="
|
|
91
|
-
<td data-value="
|
|
92
|
-
<td data-value="
|
|
93
|
-
<td data-value="
|
|
86
|
+
<td data-value="50" class="pct medium">50%</td>
|
|
87
|
+
<td data-value="26" class="abs medium">13/26</td>
|
|
88
|
+
<td data-value="30" class="pct low">30%</td>
|
|
89
|
+
<td data-value="20" class="abs low">6/20</td>
|
|
90
|
+
<td data-value="57.14" class="pct medium">57.14%</td>
|
|
91
|
+
<td data-value="7" class="abs medium">4/7</td>
|
|
92
|
+
<td data-value="50" class="pct medium">50%</td>
|
|
93
|
+
<td data-value="26" class="abs medium">13/26</td>
|
|
94
94
|
</tr>
|
|
95
95
|
|
|
96
96
|
</tbody>
|
|
@@ -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
|
|
104
|
+
at Fri Apr 29 2022 13:58:50 GMT-0400 (Eastern Daylight Time)
|
|
105
105
|
</div>
|
|
106
106
|
<script src="../../prettify.js"></script>
|
|
107
107
|
<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">50% </span>
|
|
27
27
|
<span class="quiet">Statements</span>
|
|
28
|
-
<span class='fraction'>
|
|
28
|
+
<span class='fraction'>13/26</span>
|
|
29
29
|
</div>
|
|
30
30
|
|
|
31
31
|
|
|
32
32
|
<div class='fl pad1y space-right2'>
|
|
33
|
-
<span class="strong">
|
|
33
|
+
<span class="strong">30% </span>
|
|
34
34
|
<span class="quiet">Branches</span>
|
|
35
|
-
<span class='fraction'>
|
|
35
|
+
<span class='fraction'>6/20</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'>4/7</span>
|
|
43
43
|
</div>
|
|
44
44
|
|
|
45
45
|
|
|
46
46
|
<div class='fl pad1y space-right2'>
|
|
47
|
-
<span class="strong">
|
|
47
|
+
<span class="strong">50% </span>
|
|
48
48
|
<span class="quiet">Lines</span>
|
|
49
|
-
<span class='fraction'>
|
|
49
|
+
<span class='fraction'>13/26</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>
|
|
@@ -137,82 +137,80 @@
|
|
|
137
137
|
<a name='L72'></a><a href='#L72'>72</a>
|
|
138
138
|
<a name='L73'></a><a href='#L73'>73</a>
|
|
139
139
|
<a name='L74'></a><a href='#L74'>74</a>
|
|
140
|
-
<a name='L75'></a><a href='#L75'>75</a>
|
|
141
|
-
<
|
|
142
|
-
<span class="cline-any cline-
|
|
143
|
-
<span class="cline-any cline-
|
|
144
|
-
<span class="cline-any cline-
|
|
145
|
-
<span class="cline-any cline-
|
|
146
|
-
<span class="cline-any cline-
|
|
147
|
-
<span class="cline-any cline-
|
|
148
|
-
<span class="cline-any cline-
|
|
149
|
-
<span class="cline-any cline-yes">
|
|
150
|
-
<span class="cline-any cline-
|
|
151
|
-
<span class="cline-any cline-
|
|
152
|
-
<span class="cline-any cline-
|
|
153
|
-
<span class="cline-any cline-
|
|
154
|
-
<span class="cline-any cline-
|
|
155
|
-
<span class="cline-any cline-
|
|
156
|
-
<span class="cline-any cline-
|
|
157
|
-
<span class="cline-any cline-
|
|
158
|
-
<span class="cline-any cline-
|
|
159
|
-
<span class="cline-any cline-no"> </span>
|
|
160
|
-
<span class="cline-any cline-
|
|
161
|
-
<span class="cline-any cline-
|
|
162
|
-
<span class="cline-any cline-
|
|
163
|
-
<span class="cline-any cline-
|
|
164
|
-
<span class="cline-any cline-
|
|
165
|
-
<span class="cline-any cline-
|
|
166
|
-
<span class="cline-any cline-
|
|
167
|
-
<span class="cline-any cline-
|
|
168
|
-
<span class="cline-any cline-no"> </span>
|
|
169
|
-
<span class="cline-any cline-
|
|
170
|
-
<span class="cline-any cline-
|
|
171
|
-
<span class="cline-any cline-
|
|
172
|
-
<span class="cline-any cline-
|
|
173
|
-
<span class="cline-any cline-
|
|
174
|
-
<span class="cline-any cline-no"> </span>
|
|
175
|
-
<span class="cline-any cline-no"> </span>
|
|
176
|
-
<span class="cline-any cline-
|
|
177
|
-
<span class="cline-any cline-
|
|
178
|
-
<span class="cline-any cline-no"> </span>
|
|
179
|
-
<span class="cline-any cline-
|
|
180
|
-
<span class="cline-any cline-
|
|
181
|
-
<span class="cline-any cline-
|
|
182
|
-
<span class="cline-any cline-no"> </span>
|
|
183
|
-
<span class="cline-any cline-no"> </span>
|
|
184
|
-
<span class="cline-any cline-
|
|
185
|
-
<span class="cline-any cline-no"> </span>
|
|
186
|
-
<span class="cline-any cline-
|
|
187
|
-
<span class="cline-any cline-
|
|
188
|
-
<span class="cline-any cline-no"> </span>
|
|
189
|
-
<span class="cline-any cline-
|
|
190
|
-
<span class="cline-any cline-no"> </span>
|
|
191
|
-
<span class="cline-any cline-
|
|
192
|
-
<span class="cline-any cline-
|
|
193
|
-
<span class="cline-any cline-no"> </span>
|
|
194
|
-
<span class="cline-any cline-no"> </span>
|
|
195
|
-
<span class="cline-any cline-
|
|
196
|
-
<span class="cline-any cline-
|
|
197
|
-
<span class="cline-any cline-no"> </span>
|
|
198
|
-
<span class="cline-any cline-
|
|
199
|
-
<span class="cline-any cline-
|
|
200
|
-
<span class="cline-any cline-
|
|
201
|
-
<span class="cline-any cline-
|
|
202
|
-
<span class="cline-any cline-
|
|
203
|
-
<span class="cline-any cline-
|
|
204
|
-
<span class="cline-any cline-
|
|
205
|
-
<span class="cline-any cline-yes">
|
|
206
|
-
<span class="cline-any cline-
|
|
207
|
-
<span class="cline-any cline-yes">1x</span>
|
|
208
|
-
<span class="cline-any cline-yes">1x</span>
|
|
209
|
-
<span class="cline-any cline-no"> </span>
|
|
210
|
-
<span class="cline-any cline-no"> </span>
|
|
211
|
-
<span class="cline-any cline-no"> </span>
|
|
212
|
-
<span class="cline-any cline-yes">1x</span>
|
|
140
|
+
<a name='L75'></a><a href='#L75'>75</a></td><td class="line-coverage quiet"><span class="cline-any cline-neutral"> </span>
|
|
141
|
+
<span class="cline-any cline-neutral"> </span>
|
|
142
|
+
<span class="cline-any cline-neutral"> </span>
|
|
143
|
+
<span class="cline-any cline-neutral"> </span>
|
|
144
|
+
<span class="cline-any cline-neutral"> </span>
|
|
145
|
+
<span class="cline-any cline-neutral"> </span>
|
|
146
|
+
<span class="cline-any cline-neutral"> </span>
|
|
147
|
+
<span class="cline-any cline-neutral"> </span>
|
|
148
|
+
<span class="cline-any cline-neutral"> </span>
|
|
149
|
+
<span class="cline-any cline-yes">2x</span>
|
|
150
|
+
<span class="cline-any cline-neutral"> </span>
|
|
151
|
+
<span class="cline-any cline-neutral"> </span>
|
|
152
|
+
<span class="cline-any cline-neutral"> </span>
|
|
153
|
+
<span class="cline-any cline-neutral"> </span>
|
|
154
|
+
<span class="cline-any cline-neutral"> </span>
|
|
155
|
+
<span class="cline-any cline-neutral"> </span>
|
|
156
|
+
<span class="cline-any cline-yes">6x</span>
|
|
157
|
+
<span class="cline-any cline-neutral"> </span>
|
|
158
|
+
<span class="cline-any cline-yes">6x</span>
|
|
159
|
+
<span class="cline-any cline-no"> </span>
|
|
160
|
+
<span class="cline-any cline-neutral"> </span>
|
|
161
|
+
<span class="cline-any cline-neutral"> </span>
|
|
162
|
+
<span class="cline-any cline-yes">6x</span>
|
|
163
|
+
<span class="cline-any cline-yes">6x</span>
|
|
164
|
+
<span class="cline-any cline-yes">6x</span>
|
|
165
|
+
<span class="cline-any cline-neutral"> </span>
|
|
166
|
+
<span class="cline-any cline-neutral"> </span>
|
|
167
|
+
<span class="cline-any cline-neutral"> </span>
|
|
168
|
+
<span class="cline-any cline-no"> </span>
|
|
169
|
+
<span class="cline-any cline-neutral"> </span>
|
|
170
|
+
<span class="cline-any cline-yes">6x</span>
|
|
171
|
+
<span class="cline-any cline-yes">6x</span>
|
|
172
|
+
<span class="cline-any cline-neutral"> </span>
|
|
173
|
+
<span class="cline-any cline-neutral"> </span>
|
|
174
|
+
<span class="cline-any cline-no"> </span>
|
|
175
|
+
<span class="cline-any cline-no"> </span>
|
|
176
|
+
<span class="cline-any cline-neutral"> </span>
|
|
177
|
+
<span class="cline-any cline-neutral"> </span>
|
|
178
|
+
<span class="cline-any cline-no"> </span>
|
|
179
|
+
<span class="cline-any cline-neutral"> </span>
|
|
180
|
+
<span class="cline-any cline-neutral"> </span>
|
|
181
|
+
<span class="cline-any cline-neutral"> </span>
|
|
182
|
+
<span class="cline-any cline-no"> </span>
|
|
183
|
+
<span class="cline-any cline-no"> </span>
|
|
184
|
+
<span class="cline-any cline-neutral"> </span>
|
|
185
|
+
<span class="cline-any cline-no"> </span>
|
|
186
|
+
<span class="cline-any cline-neutral"> </span>
|
|
187
|
+
<span class="cline-any cline-neutral"> </span>
|
|
188
|
+
<span class="cline-any cline-no"> </span>
|
|
189
|
+
<span class="cline-any cline-neutral"> </span>
|
|
190
|
+
<span class="cline-any cline-no"> </span>
|
|
191
|
+
<span class="cline-any cline-neutral"> </span>
|
|
192
|
+
<span class="cline-any cline-neutral"> </span>
|
|
193
|
+
<span class="cline-any cline-no"> </span>
|
|
194
|
+
<span class="cline-any cline-no"> </span>
|
|
195
|
+
<span class="cline-any cline-neutral"> </span>
|
|
196
|
+
<span class="cline-any cline-neutral"> </span>
|
|
197
|
+
<span class="cline-any cline-no"> </span>
|
|
198
|
+
<span class="cline-any cline-neutral"> </span>
|
|
199
|
+
<span class="cline-any cline-neutral"> </span>
|
|
200
|
+
<span class="cline-any cline-neutral"> </span>
|
|
201
|
+
<span class="cline-any cline-neutral"> </span>
|
|
202
|
+
<span class="cline-any cline-yes">6x</span>
|
|
203
|
+
<span class="cline-any cline-neutral"> </span>
|
|
204
|
+
<span class="cline-any cline-neutral"> </span>
|
|
205
|
+
<span class="cline-any cline-yes">2x</span>
|
|
206
|
+
<span class="cline-any cline-neutral"> </span>
|
|
213
207
|
<span class="cline-any cline-yes">1x</span>
|
|
214
208
|
<span class="cline-any cline-yes">1x</span>
|
|
209
|
+
<span class="cline-any cline-neutral"> </span>
|
|
215
210
|
<span class="cline-any cline-yes">1x</span>
|
|
211
|
+
<span class="cline-any cline-neutral"> </span>
|
|
212
|
+
<span class="cline-any cline-neutral"> </span>
|
|
213
|
+
<span class="cline-any cline-neutral"> </span>
|
|
216
214
|
<span class="cline-any cline-neutral"> </span></td><td class="text"><pre class="prettyprint lang-js">import React from 'react';
|
|
217
215
|
import axios from 'axios';
|
|
218
216
|
import { useState, useEffect } from 'react';
|
|
@@ -222,68 +220,67 @@ import { useState, useEffect } from 'react';
|
|
|
222
220
|
// 2. If not, make a call to get it from a QPPFE endpoint.
|
|
223
221
|
// Hydrate the localStorage item with the response if localStorage item doesn't match call content.
|
|
224
222
|
// 3. If the call fails, use the default content
|
|
225
|
-
const useGetConfig =
|
|
226
|
-
<span class="
|
|
227
|
-
<span class="
|
|
228
|
-
|
|
229
|
-
<span class="
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
<span class="
|
|
223
|
+
const useGetConfig = ({
|
|
224
|
+
url = <span class="branch-0 cbranch-no" title="branch not covered" >'',</span>
|
|
225
|
+
localStorageName = <span class="branch-0 cbranch-no" title="branch not covered" >'',</span>
|
|
226
|
+
equalityCheckExclude = [],
|
|
227
|
+
timeout = <span class="branch-0 cbranch-no" title="branch not covered" >30,</span>
|
|
228
|
+
defaultContent,
|
|
229
|
+
}) => {
|
|
230
|
+
const [result, setResult] = useState();
|
|
231
|
+
|
|
232
|
+
<span class="missing-if-branch" title="if path not taken" >I</span>if (!url || !localStorageName) {
|
|
235
233
|
<span class="cstat-no" title="statement not covered" > throw new Error('Arguments for url and localStorageName are required');</span>
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
<span class="
|
|
241
|
-
|
|
242
|
-
<span class="
|
|
243
|
-
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
useEffect(() => {
|
|
237
|
+
const storageContent = JSON.parse(localStorage.getItem(localStorageName));
|
|
238
|
+
<span class="missing-if-branch" title="if path not taken" >I</span>if (
|
|
239
|
+
storageContent?.content &&
|
|
240
|
+
<span class="branch-1 cbranch-no" title="branch not covered" > new Date().valueOf() < storageContent.expiration</span>
|
|
241
|
+
) {
|
|
244
242
|
<span class="cstat-no" title="statement not covered" > setResult(storageContent);</span>
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
<span class="
|
|
250
|
-
<span class="cstat-no" title="statement not covered" >
|
|
251
|
-
<span class="cstat-no" title="statement not covered" >
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
<span class="cstat-no" title="statement not covered" ></span>
|
|
243
|
+
} else {
|
|
244
|
+
const origin = window.location.origin;
|
|
245
|
+
axios
|
|
246
|
+
.get(`${origin}${url}`)
|
|
247
|
+
.then(<span class="fstat-no" title="function not covered" >({</span> data: { data = <span class="branch-0 cbranch-no" title="branch not covered" >{} </span>} }) => {
|
|
248
|
+
const expiration = <span class="cstat-no" title="statement not covered" >new Date().valueOf() + timeout * 60 * 1000;</span>
|
|
249
|
+
const storageItem = <span class="cstat-no" title="statement not covered" >{</span>
|
|
250
|
+
expiration,
|
|
251
|
+
};
|
|
255
252
|
<span class="cstat-no" title="statement not covered" > if (</span>
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
<span class="
|
|
253
|
+
data?.content &&
|
|
254
|
+
storageContent?.content &&
|
|
255
|
+
Object.keys(data.content).every(<span class="fstat-no" title="function not covered" >(k</span>ey) => {
|
|
259
256
|
<span class="cstat-no" title="statement not covered" > if (equalityCheckExclude.includes(key)) {</span>
|
|
260
257
|
<span class="cstat-no" title="statement not covered" > return true;</span>
|
|
261
|
-
|
|
258
|
+
}
|
|
262
259
|
<span class="cstat-no" title="statement not covered" > return data.content[key] === storageContent.content[key];</span>
|
|
263
|
-
|
|
264
|
-
|
|
260
|
+
})
|
|
261
|
+
) {
|
|
265
262
|
<span class="cstat-no" title="statement not covered" > storageItem.content = storageContent.content;</span>
|
|
266
|
-
|
|
263
|
+
} else {
|
|
267
264
|
<span class="cstat-no" title="statement not covered" > storageItem.content = data.content;</span>
|
|
268
|
-
|
|
269
|
-
|
|
265
|
+
}
|
|
266
|
+
|
|
270
267
|
<span class="cstat-no" title="statement not covered" > localStorage.setItem(localStorageName, JSON.stringify(storageItem));</span>
|
|
271
268
|
<span class="cstat-no" title="statement not covered" > setResult(storageItem);</span>
|
|
272
|
-
|
|
273
|
-
<span class="
|
|
269
|
+
})
|
|
270
|
+
.catch(<span class="fstat-no" title="function not covered" >(e</span>) => {
|
|
274
271
|
<span class="cstat-no" title="statement not covered" > setResult({ content: defaultContent, expiration: 0 });</span>
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
272
|
+
});
|
|
273
|
+
}
|
|
274
|
+
}, []);
|
|
275
|
+
|
|
276
|
+
return result;
|
|
280
277
|
};
|
|
281
278
|
|
|
282
279
|
export const withGetConfig = (Component, options) => {
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
280
|
+
function WrappedComponent(props) {
|
|
281
|
+
const result = useGetConfig(options);
|
|
282
|
+
return <Component result={result} {...props} />;
|
|
283
|
+
}
|
|
287
284
|
return WrappedComponent;
|
|
288
285
|
};
|
|
289
286
|
|
|
@@ -295,7 +292,7 @@ export default useGetConfig;
|
|
|
295
292
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
296
293
|
Code coverage generated by
|
|
297
294
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
298
|
-
at
|
|
295
|
+
at Fri Apr 29 2022 13:58:50 GMT-0400 (Eastern Daylight Time)
|
|
299
296
|
</div>
|
|
300
297
|
<script src="../../prettify.js"></script>
|
|
301
298
|
<script>
|