@blockcerts/blockcerts-verifier 1.57.2 → 1.57.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundle-stats.html +1 -1
- package/dist/main.js +2 -2
- package/package.json +19 -18
package/dist/main.js
CHANGED
|
@@ -335,7 +335,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
335
335
|
</dd>
|
|
336
336
|
<slot></slot>
|
|
337
337
|
</div>
|
|
338
|
-
`}),{mapStateToProps:e=>({finalStep:Qu(e),chain:Ju(e),transactionLink:qu(e),isTestChain:Gu(e),status:Nd(e)}),ownProps:{isVisible:Boolean,hideLink:Boolean,standalone:Boolean}});window.customElements.define("buv-final-verification-step",$d);var Ud=de`<style>.buv-o-text-11{font-size:11px}.buv-o-text-12{font-size:12px}.buv-o-text-13{font-size:13px}.buv-o-text-15{font-size:15px;line-height:20px}.buv-o-text-bold{font-weight:bold}.buv-o-link{cursor:pointer;text-decoration:none;color:currentColor}.buv-o-link__text--underline{border-bottom:1px solid}.buv-c-substeps-list__link::after{content:"";width:0;height:0;border-left:4px solid rgba(0,0,0,0);border-right:4px solid rgba(0,0,0,0);border-bottom:4px solid #768087;display:inline-block;vertical-align:2px;margin:0 6px;-webkit-transition:-webkit-transform .3s ease-in;-o-transition:transform .3s ease-in;transition:transform .3s ease-in}.buv-c-substeps-list__link.is-open::after{transform:rotate(180deg)}.buv-c-substeps-list__list{max-height:0;overflow:auto;-webkit-transition:max-height .3s ease-in;-o-transition:max-height .3s ease-in;transition:max-height .3s ease-in;padding-left:50px;margin-left:-50px;padding-top:0;height:0}.buv-c-substeps-list__list.is-open{height:auto;padding-top:5px}.buv-c-substeps-list__list.is-nested{padding-left:60px}</style>`;window.customElements.define("buv-substeps-list",class extends be{constructor(){super(),this.isOpen=!1,this.wasForcedOpen=!1,this.resetOpen=!1,this.toggleOpen=this.toggleOpen.bind(this),this.totalHeight=0,this.heightWasReset=!1,this.hasNestedList=!1,this.renderEvent=null}static get properties(){return{subSteps:[],suites:[],isOpen:Boolean,hasError:Boolean,isNested:Boolean}}toggleOpen(){this.wasForcedOpen&&!this.resetOpen&&(this.isOpen=!0,this.resetOpen=!0),this.isOpen=!this.isOpen}_didRender(){if(0===this.totalHeight){const e=this.shadowRoot.querySelectorAll(".buv-js-substeps-list__list")[0],t=e?Array.from(e.childNodes):[];this.totalHeight=t.reduce(((e,t)=>t.getBoundingClientRect?e+t.getBoundingClientRect().height:e),0),this.wasForcedOpen&&!this.heightWasReset&&(e.style.maxHeight=this.totalHeight+"px",this.heightWasReset=!0)}this.isNested&&!this.renderEvent&&(this.renderEvent=new CustomEvent("child-list-rendered",{detail:{childHeight:this.totalHeight},bubbles:!0,composed:!0}),this.dispatchEvent(this.renderEvent))}getRenderableSuites(e){if(!e
|
|
338
|
+
`}),{mapStateToProps:e=>({finalStep:Qu(e),chain:Ju(e),transactionLink:qu(e),isTestChain:Gu(e),status:Nd(e)}),ownProps:{isVisible:Boolean,hideLink:Boolean,standalone:Boolean}});window.customElements.define("buv-final-verification-step",$d);var Ud=de`<style>.buv-o-text-11{font-size:11px}.buv-o-text-12{font-size:12px}.buv-o-text-13{font-size:13px}.buv-o-text-15{font-size:15px;line-height:20px}.buv-o-text-bold{font-weight:bold}.buv-o-link{cursor:pointer;text-decoration:none;color:currentColor}.buv-o-link__text--underline{border-bottom:1px solid}.buv-c-substeps-list__link::after{content:"";width:0;height:0;border-left:4px solid rgba(0,0,0,0);border-right:4px solid rgba(0,0,0,0);border-bottom:4px solid #768087;display:inline-block;vertical-align:2px;margin:0 6px;-webkit-transition:-webkit-transform .3s ease-in;-o-transition:transform .3s ease-in;transition:transform .3s ease-in}.buv-c-substeps-list__link.is-open::after{transform:rotate(180deg)}.buv-c-substeps-list__list{max-height:0;overflow:auto;-webkit-transition:max-height .3s ease-in;-o-transition:max-height .3s ease-in;transition:max-height .3s ease-in;padding-left:50px;margin-left:-50px;padding-top:0;height:0}.buv-c-substeps-list__list.is-open{height:auto;padding-top:5px}.buv-c-substeps-list__list.is-nested{padding-left:60px}</style>`;window.customElements.define("buv-substeps-list",class extends be{constructor(){super(),this.isOpen=!1,this.wasForcedOpen=!1,this.resetOpen=!1,this.toggleOpen=this.toggleOpen.bind(this),this.totalHeight=0,this.heightWasReset=!1,this.hasNestedList=!1,this.renderEvent=null}static get properties(){return{subSteps:[],suites:[],isOpen:Boolean,hasError:Boolean,isNested:Boolean}}toggleOpen(){this.wasForcedOpen&&!this.resetOpen&&(this.isOpen=!0,this.resetOpen=!0),this.isOpen=!this.isOpen}_didRender(){if(0===this.totalHeight){const e=this.shadowRoot.querySelectorAll(".buv-js-substeps-list__list")[0],t=e?Array.from(e.childNodes):[];this.totalHeight=t.reduce(((e,t)=>t.getBoundingClientRect?e+t.getBoundingClientRect().height:e),0),this.wasForcedOpen&&!this.heightWasReset&&(e.style.maxHeight=this.totalHeight+"px",this.heightWasReset=!0)}this.isNested&&!this.renderEvent&&(this.renderEvent=new CustomEvent("child-list-rendered",{detail:{childHeight:this.totalHeight},bubbles:!0,composed:!0}),this.dispatchEvent(this.renderEvent))}getRenderableSuites(e){if(!(null==e?void 0:e.length))return[];const t=e.filter((e=>e.subSteps.length>0)).filter((e=>e.subSteps.some((e=>e.status))));return 0===t.length?[]:(this.hasNestedList=t.length>1,this.shadowRoot.addEventListener("child-list-rendered",(e=>{this.totalHeight+=e.detail.childHeight})),t)}renderSuiteTitle(e,t){return 1===t.length?null:de`<dt class='buv-o-text-12 buv-o-text-bold'>Proof type: ${e.proofType}</dt>`}renderSuites(e,t){if(e)return e.map((i=>de`
|
|
339
339
|
${this.renderSuiteTitle(i,e)}
|
|
340
340
|
<buv-substeps-list subSteps='${i.subSteps}' hasError?='${t}' isNested?='${!0}'></buv-substeps-list>`))}_render({subSteps:e=[],suites:t=[],hasError:i=!1,isNested:r=!1}={}){let n=JSON.parse(JSON.stringify(e)),o=this.getRenderableSuites(t);if(1===o.length){n=JSON.parse(JSON.stringify(n)).concat(o[0].subSteps),o=null}this.isNested=r,!this.wasForcedOpen&&i&&(this.isOpen=!0,this.wasForcedOpen=!0);const a=n.filter((e=>e.status)),s=a.length||o.length;if(0===s)return null;const c=`${s} ${Lu("text","item",!0,s)}`,u=this.isOpen?this.totalHeight:1,l=["buv-o-text-12","buv-o-link","buv-c-substeps-list__link",this.isOpen?"is-open":""].join(" "),d=["buv-c-substeps-list__list","buv-js-substeps-list__list",this.isOpen?"is-open":"",this.hasNestedList?"is-nested":""].join(" ");return de`
|
|
341
341
|
${Ud}
|
|
@@ -434,7 +434,7 @@ const Xd=e=>{return(t=t=>{const i=document.createElement("template");i.innerHTML
|
|
|
434
434
|
<span class='buv-u-visually-hidden'>${r}</span>
|
|
435
435
|
<slot></slot>
|
|
436
436
|
</a>
|
|
437
|
-
`}),{mapStateToProps:(e,t)=>({isTestChain:Yu(e,parseInt(t.index,10)),status:zd(e,t.suiteType)}),ownProps:{suiteType:String,index:String}});function op(e){return"grid"===e}function ap(e){return"column"===e}function sp(e){return e?` (${e})`:""}window.customElements.define("buv-suite-verification-status",np);const cp=bl((function({recipientName:e,issuedOn:t,issueDate:i,issuerName:r,issuerProfileDomain:n=[],issuerProfileUrl:o=[],issuerPublicKey:a=[],transactionId:s=[],display:c,hideRecipientName:u,signatureSuiteType:l=[],chain:d=[]}){const p=[];u||p.push({title:Lu("text.recipient"),value:e}),p.push({title:Lu("text.issueDate"),value:de`<time datetime$='${t}'>${i}</time>`},{title:Lu("text.issuerName"),value:r
|
|
437
|
+
`}),{mapStateToProps:(e,t)=>({isTestChain:Yu(e,parseInt(t.index,10)),status:zd(e,t.suiteType)}),ownProps:{suiteType:String,index:String}});function op(e){return"grid"===e}function ap(e){return"column"===e}function sp(e){return e?` (${e})`:""}window.customElements.define("buv-suite-verification-status",np);const cp=bl((function({recipientName:e,issuedOn:t,issueDate:i,issuerName:r,issuerProfileDomain:n=[],issuerProfileUrl:o=[],issuerPublicKey:a=[],transactionId:s=[],display:c,hideRecipientName:u,signatureSuiteType:l=[],chain:d=[]}){const p=[];u||p.push({title:Lu("text.recipient"),value:e}),p.push({title:Lu("text.issueDate"),value:de`<time datetime$='${t}'>${i}</time>`},{title:Lu("text.issuerName"),value:null!=r?r:Lu("errors.noIssuerName")});for(let e=0;e<a.length;e++){let t="";a.length>1&&(t=`${ip(e+1)} `),l[e]&&p.push({title:`${t}${Lu("text.signatureSuiteType")}`,value:de`<buv-suite-verification-status suiteType$='${l[e]}' index$='${e}'>
|
|
438
438
|
${l[e]}${sp(d[e])}
|
|
439
439
|
</buv-suite-verification-status>`}),n[e]&&p.push({title:`${t}${Lu("text.issuerProfileDomain")}`,value:de`<a href$='${o[e]}' target="_blank">${n[e]}</a>`}),a[e]&&p.push({title:`${t}${Lu("text.issuerPublicKey")}`,value:a[e]}),s[e]&&p.push({title:`${t}${Lu("text.transactionId")}`,value:s[e]})}const h=p.map((e=>function({title:e,value:t,display:i,renderInline:r=!1}){const n=["buv-c-certificate-details__group",ap(i)?"":"buv-c-certificate-details__group--row",op(i)?"buv-c-certificate-details__group--row-grid":""].join(" "),o=["buv-c-certificate-details__title",ap(i)?"":"buv-o-text-11"].join(" "),a=["buv-c-certificate-details__value",r?"buv-c-certificate-details--inline":""].join(" ");return de`<div class$='${n}'>
|
|
440
440
|
<dt class$='${o}'>${e}</dt>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@blockcerts/blockcerts-verifier",
|
|
3
|
-
"version": "1.57.
|
|
3
|
+
"version": "1.57.3",
|
|
4
4
|
"description": "A standalone universal viewer and verifier for blockcerts credentials",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -38,27 +38,28 @@
|
|
|
38
38
|
"@rollup/plugin-replace": "^5.0.2",
|
|
39
39
|
"@rollup/plugin-terser": "^0.4.3",
|
|
40
40
|
"@rollup/plugin-typescript": "^11.1.1",
|
|
41
|
-
"@types/jest": "^29.5.
|
|
41
|
+
"@types/jest": "^29.5.8",
|
|
42
42
|
"@types/qrcode-svg": "^1.1.1",
|
|
43
|
-
"@types/sinon": "^
|
|
44
|
-
"@typescript-eslint/eslint-plugin": "^
|
|
45
|
-
"@typescript-eslint/parser": "^
|
|
46
|
-
"codecov": "^3.
|
|
43
|
+
"@types/sinon": "^17.0.1",
|
|
44
|
+
"@typescript-eslint/eslint-plugin": "^6.10.0",
|
|
45
|
+
"@typescript-eslint/parser": "^6.10.0",
|
|
46
|
+
"codecov": "^3.8.3",
|
|
47
47
|
"concurrently": "^8.2.0",
|
|
48
48
|
"deepmerge": "^4.2.2",
|
|
49
|
-
"eslint": "^
|
|
49
|
+
"eslint": "^8.53.0",
|
|
50
50
|
"eslint-config-standard": "^17.1.0",
|
|
51
|
-
"eslint-config-standard-with-typescript": "^
|
|
52
|
-
"eslint-plugin-import": "^2.
|
|
51
|
+
"eslint-config-standard-with-typescript": "^39.1.1",
|
|
52
|
+
"eslint-plugin-import": "^2.29.0",
|
|
53
|
+
"eslint-plugin-n": "^16.3.1",
|
|
53
54
|
"eslint-plugin-node": "^11.1.0",
|
|
54
|
-
"eslint-plugin-promise": "^6.
|
|
55
|
+
"eslint-plugin-promise": "^6.1.1",
|
|
55
56
|
"eslint-plugin-standard": "^5.0.0",
|
|
56
57
|
"express": "^4.16.3",
|
|
57
|
-
"husky": "^
|
|
58
|
-
"jest": "^29.
|
|
59
|
-
"jest-canvas-mock": "^2.
|
|
58
|
+
"husky": "^8.0.3",
|
|
59
|
+
"jest": "^29.7.0",
|
|
60
|
+
"jest-canvas-mock": "^2.5.2",
|
|
60
61
|
"jest-environment-jsdom": "^29.7.0",
|
|
61
|
-
"jest-fetch-mock": "^3.0.
|
|
62
|
+
"jest-fetch-mock": "^3.0.3",
|
|
62
63
|
"karma-firefox-launcher": "^2.0.0",
|
|
63
64
|
"pwa-helpers": "^0.8.2",
|
|
64
65
|
"rimraf": "^5.0.5",
|
|
@@ -66,10 +67,10 @@
|
|
|
66
67
|
"rollup-plugin-livereload": "^2.0.0",
|
|
67
68
|
"rollup-plugin-serve": "^2.0.2",
|
|
68
69
|
"rollup-plugin-visualizer": "^5.9.2",
|
|
69
|
-
"sass-lint": "^1.
|
|
70
|
-
"semantic-release": "^
|
|
71
|
-
"sinon": "^
|
|
72
|
-
"ts-jest": "^29.1.
|
|
70
|
+
"sass-lint": "^1.13.1",
|
|
71
|
+
"semantic-release": "^22.0.7",
|
|
72
|
+
"sinon": "^17.0.1",
|
|
73
|
+
"ts-jest": "^29.1.1",
|
|
73
74
|
"typescript": "^5.1.3",
|
|
74
75
|
"wc-sass-render": "blockchain-certificates/wc-sass-render"
|
|
75
76
|
},
|