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
|
@@ -509,205 +509,205 @@
|
|
|
509
509
|
<span class="cline-any cline-neutral"> </span>
|
|
510
510
|
<span class="cline-any cline-neutral"> </span>
|
|
511
511
|
<span class="cline-any cline-neutral"> </span>
|
|
512
|
-
<span class="cline-any cline-neutral"> </span></td><td class="text"><pre class="prettyprint lang-js">import React from
|
|
513
|
-
import xss from
|
|
514
|
-
import PropTypes from
|
|
512
|
+
<span class="cline-any cline-neutral"> </span></td><td class="text"><pre class="prettyprint lang-js">import React from "react";
|
|
513
|
+
import xss from "xss";
|
|
514
|
+
import PropTypes from "prop-types";
|
|
515
515
|
|
|
516
516
|
// Override the default allowed HTML tags
|
|
517
517
|
const defaultAllowedTags = [
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
518
|
+
"a",
|
|
519
|
+
"abbr",
|
|
520
|
+
"address",
|
|
521
|
+
"article",
|
|
522
|
+
"aside",
|
|
523
|
+
"b",
|
|
524
|
+
"blockquote",
|
|
525
|
+
"br",
|
|
526
|
+
"button",
|
|
527
|
+
"caption",
|
|
528
|
+
"cite",
|
|
529
|
+
"code",
|
|
530
|
+
"col",
|
|
531
|
+
"colgroup",
|
|
532
|
+
"datalist",
|
|
533
|
+
"dd",
|
|
534
|
+
"del",
|
|
535
|
+
"details",
|
|
536
|
+
"dfn",
|
|
537
|
+
"dialog",
|
|
538
|
+
"div",
|
|
539
|
+
"dl",
|
|
540
|
+
"dt",
|
|
541
|
+
"em",
|
|
542
|
+
"fieldset",
|
|
543
|
+
"figcaption",
|
|
544
|
+
"figure",
|
|
545
|
+
"footer",
|
|
546
|
+
"form",
|
|
547
|
+
"h1",
|
|
548
|
+
"h2",
|
|
549
|
+
"h3",
|
|
550
|
+
"h4",
|
|
551
|
+
"h5",
|
|
552
|
+
"h6",
|
|
553
|
+
"header",
|
|
554
|
+
"hr",
|
|
555
|
+
"i",
|
|
556
|
+
"img",
|
|
557
|
+
"input",
|
|
558
|
+
"ins",
|
|
559
|
+
"kbd",
|
|
560
|
+
"label",
|
|
561
|
+
"legend",
|
|
562
|
+
"li",
|
|
563
|
+
"mark",
|
|
564
|
+
"meter",
|
|
565
|
+
"nav",
|
|
566
|
+
"ol",
|
|
567
|
+
"optgroup",
|
|
568
|
+
"option",
|
|
569
|
+
"output",
|
|
570
|
+
"p",
|
|
571
|
+
"picture",
|
|
572
|
+
"pre",
|
|
573
|
+
"progress",
|
|
574
|
+
"q",
|
|
575
|
+
"section",
|
|
576
|
+
"select",
|
|
577
|
+
"small",
|
|
578
|
+
"source",
|
|
579
|
+
"span",
|
|
580
|
+
"strong",
|
|
581
|
+
"sub",
|
|
582
|
+
"summary",
|
|
583
|
+
"sup",
|
|
584
|
+
"table",
|
|
585
|
+
"tbody",
|
|
586
|
+
"td",
|
|
587
|
+
"textarea",
|
|
588
|
+
"tfoot",
|
|
589
|
+
"th",
|
|
590
|
+
"thead",
|
|
591
|
+
"time",
|
|
592
|
+
"tr",
|
|
593
|
+
"ul",
|
|
594
|
+
"svg",
|
|
595
|
+
"use",
|
|
596
|
+
"polygon",
|
|
597
|
+
"circle",
|
|
598
|
+
"g",
|
|
599
|
+
"path",
|
|
600
|
+
"rect",
|
|
601
|
+
"polygon",
|
|
602
|
+
"line",
|
|
603
603
|
];
|
|
604
604
|
|
|
605
605
|
// Override the default allowed HTML attributes for all tags
|
|
606
606
|
const defaultAllowedAttributes = {
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
607
|
+
"*": [
|
|
608
|
+
"action",
|
|
609
|
+
"alt",
|
|
610
|
+
"aria-*",
|
|
611
|
+
"autocomplete",
|
|
612
|
+
"cite",
|
|
613
|
+
"class",
|
|
614
|
+
"cols",
|
|
615
|
+
"colspan",
|
|
616
|
+
"data-*",
|
|
617
|
+
"datetime",
|
|
618
|
+
"disabled",
|
|
619
|
+
"download",
|
|
620
|
+
"for",
|
|
621
|
+
"headers",
|
|
622
|
+
"height",
|
|
623
|
+
"hidden",
|
|
624
|
+
"href",
|
|
625
|
+
"hreflang",
|
|
626
|
+
"id",
|
|
627
|
+
"lang",
|
|
628
|
+
"list",
|
|
629
|
+
"max",
|
|
630
|
+
"maxlength",
|
|
631
|
+
"minlength",
|
|
632
|
+
"media",
|
|
633
|
+
"method",
|
|
634
|
+
"min",
|
|
635
|
+
"multiple",
|
|
636
|
+
"name",
|
|
637
|
+
"novalidate",
|
|
638
|
+
"open",
|
|
639
|
+
"pattern",
|
|
640
|
+
"placeholder",
|
|
641
|
+
"readonly",
|
|
642
|
+
"rel",
|
|
643
|
+
"required",
|
|
644
|
+
"reversed",
|
|
645
|
+
"rows",
|
|
646
|
+
"rowspan",
|
|
647
|
+
"sandbox",
|
|
648
|
+
"scope",
|
|
649
|
+
"scoped",
|
|
650
|
+
"selected",
|
|
651
|
+
"size",
|
|
652
|
+
"sizes",
|
|
653
|
+
"span",
|
|
654
|
+
"spellcheck",
|
|
655
|
+
"src",
|
|
656
|
+
"srcset",
|
|
657
|
+
"start",
|
|
658
|
+
"step",
|
|
659
|
+
"style",
|
|
660
|
+
"summary",
|
|
661
|
+
"tabindex",
|
|
662
|
+
"target",
|
|
663
|
+
"title",
|
|
664
|
+
"type",
|
|
665
|
+
"value",
|
|
666
|
+
"width",
|
|
667
|
+
"wrap",
|
|
668
|
+
"fill",
|
|
669
|
+
"fill-rule",
|
|
670
|
+
"transform",
|
|
671
|
+
"stroke",
|
|
672
|
+
"stroke-width",
|
|
673
|
+
"d",
|
|
674
|
+
"points",
|
|
675
|
+
"viewbox",
|
|
676
|
+
"x",
|
|
677
|
+
"y",
|
|
678
|
+
"cx",
|
|
679
|
+
"cy",
|
|
680
|
+
"r",
|
|
681
|
+
"xmlns",
|
|
682
|
+
"xmlns:xlink",
|
|
683
|
+
"xlink:href",
|
|
684
|
+
"version",
|
|
685
|
+
"preserveaspectratio",
|
|
686
|
+
"enable-background",
|
|
687
|
+
"points",
|
|
688
|
+
"stroke-linecap",
|
|
689
|
+
"x1",
|
|
690
|
+
"x2",
|
|
691
|
+
"y1",
|
|
692
|
+
"y2",
|
|
693
693
|
],
|
|
694
694
|
};
|
|
695
695
|
|
|
696
696
|
const SanitizedContent = ({
|
|
697
|
-
html = <span class="branch-0 cbranch-no" title="branch not covered" >
|
|
697
|
+
html = <span class="branch-0 cbranch-no" title="branch not covered" >"<div/>",</span>
|
|
698
698
|
customClassName = null,
|
|
699
699
|
allowedTags = defaultAllowedTags,
|
|
700
700
|
allowedAttributes = defaultAllowedAttributes,
|
|
701
701
|
}) => {
|
|
702
702
|
const whiteList = allowedTags.reduce((map, tag) => {
|
|
703
|
-
map[tag] = allowedAttributes[
|
|
703
|
+
map[tag] = allowedAttributes["*"];
|
|
704
704
|
return map;
|
|
705
705
|
}, {});
|
|
706
706
|
|
|
707
707
|
const xssOptions = {
|
|
708
708
|
whiteList,
|
|
709
709
|
onIgnoreTagAttr: <span class="fstat-no" title="function not covered" >(t</span>ag, name, value, isWhiteAttr) => {
|
|
710
|
-
const isDataOrAriaAttr = <span class="cstat-no" title="statement not covered" >name.includes(
|
|
710
|
+
const isDataOrAriaAttr = <span class="cstat-no" title="statement not covered" >name.includes("data-") || name.includes("aria-");</span>
|
|
711
711
|
<span class="cstat-no" title="statement not covered" > if (isDataOrAriaAttr) {</span>
|
|
712
712
|
<span class="cstat-no" title="statement not covered" > return `${name}="${xss.escapeAttrValue(value)}"`;</span>
|
|
713
713
|
}
|
|
@@ -739,7 +739,7 @@ export default SanitizedContent;
|
|
|
739
739
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
740
740
|
Code coverage generated by
|
|
741
741
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
742
|
-
at 2023-
|
|
742
|
+
at 2023-10-09T20:35:15.116Z
|
|
743
743
|
</div>
|
|
744
744
|
<script src="../../../prettify.js"></script>
|
|
745
745
|
<script>
|
|
@@ -261,12 +261,12 @@
|
|
|
261
261
|
<span class="cline-any cline-neutral"> </span>
|
|
262
262
|
<span class="cline-any cline-neutral"> </span>
|
|
263
263
|
<span class="cline-any cline-neutral"> </span>
|
|
264
|
-
<span class="cline-any cline-neutral"> </span></td><td class="text"><pre class="prettyprint lang-js">import React, { useEffect, useState } from
|
|
265
|
-
import cookie from
|
|
266
|
-
import Modal from
|
|
267
|
-
import { fetchTtl } from
|
|
268
|
-
import refreshSession from
|
|
269
|
-
import logoutSession from
|
|
264
|
+
<span class="cline-any cline-neutral"> </span></td><td class="text"><pre class="prettyprint lang-js">import React, { useEffect, useState } from "react";
|
|
265
|
+
import cookie from "cookie";
|
|
266
|
+
import Modal from "../Modal";
|
|
267
|
+
import { fetchTtl } from "../../session";
|
|
268
|
+
import refreshSession from "../../session/refresh";
|
|
269
|
+
import logoutSession from "../../session/logout";
|
|
270
270
|
|
|
271
271
|
// calculate TWO_MINUTES for interval
|
|
272
272
|
const SECOND = 1000;
|
|
@@ -291,14 +291,14 @@ const InactiveDialog = <span class="fstat-no" title="function not covered" >()</
|
|
|
291
291
|
title="You will be signed out within two minutes"
|
|
292
292
|
isOpen={isOpen}
|
|
293
293
|
primary={{
|
|
294
|
-
title:
|
|
294
|
+
title: "Keep me signed in",
|
|
295
295
|
onClick: <span class="fstat-no" title="function not covered" >()</span> => {
|
|
296
296
|
<span class="cstat-no" title="statement not covered" > refreshSession();</span>
|
|
297
297
|
<span class="cstat-no" title="statement not covered" > setIsOpen(false);</span>
|
|
298
298
|
},
|
|
299
299
|
}}
|
|
300
300
|
secondary={{
|
|
301
|
-
title:
|
|
301
|
+
title: "Sign me out now",
|
|
302
302
|
onClick: <span class="fstat-no" title="function not covered" >()</span> => <span class="cstat-no" title="statement not covered" >logoutSession(window),</span>
|
|
303
303
|
}}
|
|
304
304
|
onRequestClose={<span class="fstat-no" title="function not covered" >()</span> => <span class="cstat-no" title="statement not covered" >setIsOpen(false)}</span>
|
|
@@ -367,7 +367,7 @@ export default Session;
|
|
|
367
367
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
368
368
|
Code coverage generated by
|
|
369
369
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
370
|
-
at 2023-
|
|
370
|
+
at 2023-10-09T20:35:15.116Z
|
|
371
371
|
</div>
|
|
372
372
|
<script src="../../../prettify.js"></script>
|
|
373
373
|
<script>
|
|
@@ -87,9 +87,9 @@
|
|
|
87
87
|
<span class="cline-any cline-no"> </span>
|
|
88
88
|
<span class="cline-any cline-neutral"> </span>
|
|
89
89
|
<span class="cline-any cline-neutral"> </span>
|
|
90
|
-
<span class="cline-any cline-neutral"> </span></td><td class="text"><pre class="prettyprint lang-js">import React from
|
|
91
|
-
import { render } from
|
|
92
|
-
import SessionDialogUI from
|
|
90
|
+
<span class="cline-any cline-neutral"> </span></td><td class="text"><pre class="prettyprint lang-js">import React from "react";
|
|
91
|
+
import { render } from "react-dom";
|
|
92
|
+
import SessionDialogUI from "../Session";
|
|
93
93
|
|
|
94
94
|
/**
|
|
95
95
|
* Renders the Session Dialog UI content.
|
|
@@ -106,7 +106,7 @@ export default class SessionDialog {
|
|
|
106
106
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
107
107
|
Code coverage generated by
|
|
108
108
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
109
|
-
at 2023-
|
|
109
|
+
at 2023-10-09T20:35:15.116Z
|
|
110
110
|
</div>
|
|
111
111
|
<script src="../../../prettify.js"></script>
|
|
112
112
|
<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>
|
|
@@ -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 Session from
|
|
72
|
+
<span class="cline-any cline-neutral"> </span></td><td class="text"><pre class="prettyprint lang-js">import Session from "./Session";
|
|
73
73
|
|
|
74
74
|
export default Session;
|
|
75
75
|
</pre></td></tr></table></pre>
|
|
@@ -79,7 +79,7 @@ export default Session;
|
|
|
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>
|
package/coverage/lcov-report/react/components/SideNav/AnimationGroup/AnimationGroup.jsx.html
CHANGED
|
@@ -117,18 +117,18 @@
|
|
|
117
117
|
<span class="cline-any cline-neutral"> </span>
|
|
118
118
|
<span class="cline-any cline-neutral"> </span>
|
|
119
119
|
<span class="cline-any cline-neutral"> </span>
|
|
120
|
-
<span class="cline-any cline-neutral"> </span></td><td class="text"><pre class="prettyprint lang-js">import React from
|
|
121
|
-
import PropTypes from
|
|
120
|
+
<span class="cline-any cline-neutral"> </span></td><td class="text"><pre class="prettyprint lang-js">import React from "react";
|
|
121
|
+
import PropTypes from "prop-types";
|
|
122
122
|
|
|
123
123
|
const hasDarkerBackground = (darkerBackground) => {
|
|
124
|
-
return darkerBackground ? <span class="branch-0 cbranch-no" title="branch not covered" >
|
|
124
|
+
return darkerBackground ? <span class="branch-0 cbranch-no" title="branch not covered" >"background-highlight" </span>: "";
|
|
125
125
|
};
|
|
126
126
|
|
|
127
127
|
const AnimationGroup = ({ display, className, children, darkerBackground }) => {
|
|
128
128
|
return (
|
|
129
129
|
<div
|
|
130
|
-
className={`animation-group animation-group-${className ||
|
|
131
|
-
display ?
|
|
130
|
+
className={`animation-group animation-group-${className || "default"}${
|
|
131
|
+
display ? " animation-group-enter" : <span class="branch-1 cbranch-no" title="branch not covered" >" animation-group-exit"</span>
|
|
132
132
|
} ${hasDarkerBackground(darkerBackground)}`}
|
|
133
133
|
>
|
|
134
134
|
{children}
|
|
@@ -151,7 +151,7 @@ export default AnimationGroup;
|
|
|
151
151
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
152
152
|
Code coverage generated by
|
|
153
153
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
154
|
-
at 2023-
|
|
154
|
+
at 2023-10-09T20:35:15.116Z
|
|
155
155
|
</div>
|
|
156
156
|
<script src="../../../../prettify.js"></script>
|
|
157
157
|
<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>
|
|
@@ -161,21 +161,21 @@
|
|
|
161
161
|
<span class="cline-any cline-neutral"> </span>
|
|
162
162
|
<span class="cline-any cline-neutral"> </span>
|
|
163
163
|
<span class="cline-any cline-neutral"> </span>
|
|
164
|
-
<span class="cline-any cline-neutral"> </span></td><td class="text"><pre class="prettyprint lang-js">import React, { useState } from
|
|
165
|
-
import PropTypes from
|
|
166
|
-
import cookie from
|
|
167
|
-
import jwtDecode from
|
|
168
|
-
import SanitizedContent from
|
|
169
|
-
import AnimationGroup from
|
|
170
|
-
import { isMultiRoleUser } from
|
|
171
|
-
import SelectRole from
|
|
164
|
+
<span class="cline-any cline-neutral"> </span></td><td class="text"><pre class="prettyprint lang-js">import React, { useState } from "react";
|
|
165
|
+
import PropTypes from "prop-types";
|
|
166
|
+
import cookie from "cookie";
|
|
167
|
+
import jwtDecode from "jwt-decode";
|
|
168
|
+
import SanitizedContent from "../../SanitizedContent";
|
|
169
|
+
import AnimationGroup from "../AnimationGroup/AnimationGroup";
|
|
170
|
+
import { isMultiRoleUser } from "../helpers";
|
|
171
|
+
import SelectRole from "./SelectRole";
|
|
172
172
|
|
|
173
173
|
const LevelOneContent = ({ isExpanded, levelOneContent }) => {
|
|
174
174
|
let { qpp_auth_token } = cookie.parse(document.cookie);
|
|
175
175
|
|
|
176
|
-
const [selectedRole, setSelectedRole] = useState(
|
|
176
|
+
const [selectedRole, setSelectedRole] = useState("");
|
|
177
177
|
|
|
178
|
-
let name =
|
|
178
|
+
let name = "";
|
|
179
179
|
<span class="missing-if-branch" title="else path not taken" >E</span>if (qpp_auth_token) {
|
|
180
180
|
const { firstName, lastName } = jwtDecode(qpp_auth_token);
|
|
181
181
|
name = `${firstName} ${lastName}`;
|
|
@@ -217,7 +217,7 @@ export default LevelOneContent;
|
|
|
217
217
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
218
218
|
Code coverage generated by
|
|
219
219
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
220
|
-
at 2023-
|
|
220
|
+
at 2023-10-09T20:35:15.116Z
|
|
221
221
|
</div>
|
|
222
222
|
<script src="../../../../prettify.js"></script>
|
|
223
223
|
<script>
|
|
@@ -116,7 +116,7 @@
|
|
|
116
116
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
117
117
|
Code coverage generated by
|
|
118
118
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
119
|
-
at 2023-
|
|
119
|
+
at 2023-10-09T20:35:15.116Z
|
|
120
120
|
</div>
|
|
121
121
|
<script src="../../../../../prettify.js"></script>
|
|
122
122
|
<script>
|
|
@@ -219,17 +219,17 @@
|
|
|
219
219
|
<span class="cline-any cline-neutral"> </span>
|
|
220
220
|
<span class="cline-any cline-neutral"> </span>
|
|
221
221
|
<span class="cline-any cline-neutral"> </span>
|
|
222
|
-
<span class="cline-any cline-neutral"> </span></td><td class="text"><pre class="prettyprint lang-js">import React, { useEffect } from
|
|
223
|
-
import PropTypes from
|
|
224
|
-
import cookie from
|
|
225
|
-
import Dropdown from
|
|
222
|
+
<span class="cline-any cline-neutral"> </span></td><td class="text"><pre class="prettyprint lang-js">import React, { useEffect } from "react";
|
|
223
|
+
import PropTypes from "prop-types";
|
|
224
|
+
import cookie from "cookie";
|
|
225
|
+
import Dropdown from "../../../Dropdown";
|
|
226
226
|
import {
|
|
227
227
|
loadRoleOptions,
|
|
228
228
|
redirectPage,
|
|
229
229
|
getLocalStorageRoleState,
|
|
230
230
|
initializeLocalStorageRoleState,
|
|
231
231
|
updateLocalStorageRoleState,
|
|
232
|
-
} from
|
|
232
|
+
} from "./utils";
|
|
233
233
|
|
|
234
234
|
const SelectRole = <span class="fstat-no" title="function not covered" >({</span> selectedRole, setSelectedRole }) => {
|
|
235
235
|
const {
|
|
@@ -304,7 +304,7 @@ export default SelectRole;
|
|
|
304
304
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
305
305
|
Code coverage generated by
|
|
306
306
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
307
|
-
at 2023-
|
|
307
|
+
at 2023-10-09T20:35:15.116Z
|
|
308
308
|
</div>
|
|
309
309
|
<script src="../../../../../prettify.js"></script>
|
|
310
310
|
<script>
|