@blockcerts/blockcerts-verifier 1.43.0 → 1.43.1

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/dist/main.js CHANGED
@@ -505,7 +505,7 @@ var r=FU.Buffer;function n(e,t){for(var r in e)t[r]=e[r]}function i(e,t,n){retur
505
505
  <buv-verify-other-certificate></buv-verify-other-certificate>
506
506
  </section>`:""}
507
507
  ${Lee()}
508
- </footer>`}),{mapStateToProps:e=>({theme:q7(e)}),ownProps:{forceInPlace:Boolean,interactive:Boolean}});window.customElements.define("buv-footer",jee);var Dee=fe`<style>.buv-o-overlay{z-index:100;box-shadow:0 0 30px rgba(0,0,0,0.25);background-color:#fff}.buv-c-modal{position:fixed;width:100%;height:100%;background-color:rgba(3,21,50,0.7);top:0;left:0;z-index:1000}.buv-c-modal.is-hidden{display:none}.buv-c-modal__content{position:fixed;top:50%;left:50%;transform:translate(-50%, -50%);width:100vw;min-width:300px;max-width:600px;min-height:calc(600px - 50px);padding:38px 38px 98px;box-sizing:border-box}@media only screen and (max-width: 600px){.buv-c-modal__content{height:100vh;min-height:100vh}}.buv-c-modal__close-button{top:20px;right:20px}
508
+ </footer>`}),{mapStateToProps:e=>({theme:q7(e)}),ownProps:{forceInPlace:Boolean,interactive:Boolean}});window.customElements.define("buv-footer",jee);var Dee=fe`<style>.buv-o-overlay{z-index:100;box-shadow:0 0 30px rgba(0,0,0,0.25);background-color:#fff}.buv-c-modal{position:fixed;width:100%;height:100%;background-color:rgba(3,21,50,0.7);top:0;left:0;z-index:1000}.buv-c-modal.is-hidden{display:none}.buv-c-modal__content{position:fixed;top:50%;left:50%;transform:translate(-50%, -50%);width:100vw;min-width:300px;max-width:600px;min-height:calc(600px - 50px);padding:49px 38px 98px;box-sizing:border-box}@media only screen and (max-width: 600px){.buv-c-modal__content{height:100vh;min-height:100vh;top:0;left:0;transform:none}}.buv-c-modal__close-button{top:25px;right:25px}
509
509
  </style>`;window.customElements.define("buv-modal",class extends be{constructor(){super(),this.isOpen=!1,this.handleClick=this.handleClick.bind(this)}static get properties(){return{isOpen:Boolean,onClose:Function}}close(){this.isOpen=!1}handleClick(){this.close(),this._props.onClose()}_propertiesChanged(e,t,r){this._props=e,super._propertiesChanged(e,t,r)}_render(){const e=["buv-c-modal","buv-qa-modal",this.isOpen?"":"is-hidden"].join(" ");return fe`
510
510
  ${Dee}
511
511
  <div class$='${e}' onclick='${this.handleClick}'>
@@ -674,7 +674,7 @@ const tte=e=>(e=>(e.__litDirective=!0,e))((t=>{const r=document.createElement("t
674
674
  <buv-verify-button type='link'>${Q9("text.verifyAgain")}</buv-verify-button>
675
675
  </buv-final-verification-step>
676
676
  </div>
677
- `:null}),{mapStateToProps:e=>({hasCertificateDefinition:!!e7(e),displayHTML:s7(e),clickableUrls:K7(e)})});window.customElements.define("buv-full-certificate",are);var sre=fe`<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-c-certificate--fixed-width{max-width:460px;min-width:0;margin:0 auto}.buv-c-fullscreen-certificate{z-index:200;position:fixed;top:0;left:0;background-color:#fff;width:100vw;height:100vh;overflow:auto;box-sizing:border-box}@media only screen and (max-width: 750px){.buv-c-fullscreen-certificate{padding-top:170px}}.buv-c-fullscreen-certificate-header{box-shadow:0 1px 5px rgba(0,0,0,0.15);width:100%;background-color:#fff}@media only screen and (max-width: 750px){.buv-c-fullscreen-certificate-header{position:fixed;top:0;z-index:10}}.buv-c-fullscreen-certificate-header__content{max-width:1440px;margin:0 auto;padding:20px;display:flex;align-items:center;position:relative;box-sizing:border-box}@media only screen and (max-width: 750px){.buv-c-fullscreen-certificate-header__content{flex-direction:column;justify-content:left;align-items:unset}}.buv-c-fullscreen-certificate__title{margin:0 30px 0 0}@media only screen and (max-width: 750px){.buv-c-fullscreen-certificate__title{margin-bottom:10px}}.buv-c-fullscreen-certificate__close{right:20px}.buv-c-fullscreen-certificate__content{padding:20px;display:flex;max-width:1440px;margin:20px auto 0}@media only screen and (max-width: 750px){.buv-c-fullscreen-certificate__content{flex-direction:column-reverse;margin-top:0}}.buv-c-fullscreen-certificate__details{display:flex;flex-grow:1;flex-direction:column;max-width:280px;min-width:220px;margin-right:20px}@media only screen and (max-width: 750px){.buv-c-fullscreen-certificate__details{max-width:100vw;margin:20px 0 0}}.buv-c-fullscreen-certificate__verification-status{margin-bottom:15px}@media only screen and (max-width: 750px){.buv-c-fullscreen-certificate__verification-status{position:absolute;top:90px;width:calc(100% - 40px);margin:0}}.buv-c-fullscreen-certificate__details-item{margin-top:5px}.buv-c-fullscreen-certificate__separator{margin-top:30px;padding-top:30px;border-top:1px solid #f1f2f3}.buv-c-fullscreen-certificate__certificate{box-shadow:0 1px 5px rgba(0,0,0,0.15);padding:20px;background-color:#fff;font-family:serif;text-align:center;color:#49555f;font-size:12px;word-wrap:break-word;min-height:calc(100vh - 145px);box-sizing:border-box;margin:0 auto;min-width:600px;line-height:initial}@media only screen and (max-width: 750px){.buv-c-fullscreen-certificate__certificate{min-width:unset;width:100%;overflow:auto}}.buv-c-fullscreen-certificate__verify-other{margin-top:20px}
677
+ `:null}),{mapStateToProps:e=>({hasCertificateDefinition:!!e7(e),displayHTML:s7(e),clickableUrls:K7(e)})});window.customElements.define("buv-full-certificate",are);var sre=fe`<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-c-certificate--fixed-width{max-width:460px;min-width:0;margin:0 auto}.buv-c-fullscreen-certificate{z-index:200;position:fixed;top:0;left:0;background-color:#fff;width:100vw;height:100vh;overflow:auto;box-sizing:border-box}@media only screen and (max-width: 750px){.buv-c-fullscreen-certificate{padding-top:170px}}.buv-c-fullscreen-certificate-header{box-shadow:0 1px 5px rgba(0,0,0,0.15);width:100%;background-color:#fff}@media only screen and (max-width: 750px){.buv-c-fullscreen-certificate-header{position:fixed;top:0;z-index:10}}.buv-c-fullscreen-certificate-header__content{max-width:1440px;margin:0 auto;padding:20px;display:flex;align-items:center;position:relative;box-sizing:border-box}@media only screen and (max-width: 750px){.buv-c-fullscreen-certificate-header__content{flex-direction:column;justify-content:left;align-items:unset}}.buv-c-fullscreen-certificate__title{margin:0 30px 0 0}@media only screen and (max-width: 750px){.buv-c-fullscreen-certificate__title{margin-bottom:10px}}.buv-c-fullscreen-certificate__close{top:27px;right:20px}.buv-c-fullscreen-certificate__content{padding:20px;display:flex;max-width:1440px;margin:20px auto 0}@media only screen and (max-width: 750px){.buv-c-fullscreen-certificate__content{flex-direction:column-reverse;margin-top:0}}.buv-c-fullscreen-certificate__details{display:flex;flex-grow:1;flex-direction:column;max-width:280px;min-width:220px;margin-right:20px}@media only screen and (max-width: 750px){.buv-c-fullscreen-certificate__details{max-width:100vw;margin:20px 0 0}}.buv-c-fullscreen-certificate__verification-status{margin-bottom:15px}@media only screen and (max-width: 750px){.buv-c-fullscreen-certificate__verification-status{position:absolute;top:90px;width:calc(100% - 40px);margin:0}}.buv-c-fullscreen-certificate__details-item{margin-top:5px}.buv-c-fullscreen-certificate__separator{margin-top:30px;padding-top:30px;border-top:1px solid #f1f2f3}.buv-c-fullscreen-certificate__certificate{box-shadow:0 1px 5px rgba(0,0,0,0.15);padding:20px;background-color:#fff;font-family:serif;text-align:center;color:#49555f;font-size:12px;word-wrap:break-word;min-height:calc(100vh - 145px);box-sizing:border-box;margin:0 auto;min-width:600px;line-height:initial}@media only screen and (max-width: 750px){.buv-c-fullscreen-certificate__certificate{min-width:unset;width:100%;overflow:auto}}.buv-c-fullscreen-certificate__verify-other{margin-top:20px}
678
678
  </style>`;const cre=O7((function({clickableUrls:e,hasCertificateDefinition:t,recipientName:r,displayHTML:n,onClose:i}){if(!t)return null;const o=["buv-c-fullscreen-certificate__certificate","qa-fullscreen-certificate"];return n&&L8.certificates.displayHtmlHasNoWidthConstraint(n)&&o.push("buv-c-certificate--fixed-width"),fe`
679
679
  ${sre}
680
680
  <section class='buv-c-fullscreen-certificate'>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blockcerts/blockcerts-verifier",
3
- "version": "1.43.0",
3
+ "version": "1.43.1",
4
4
  "description": "A standalone universal viewer and verifier for blockcerts credentials",
5
5
  "repository": {
6
6
  "type": "git",
@@ -0,0 +1,51 @@
1
+ #!/usr/bin/env bash
2
+
3
+ # automate PR process to Blockcerts.org: update blockcerts-verifier dependency
4
+ GITHUB_COM=github.com
5
+ BLOCKCERTS_GITHUB_REPO=blockchain-certificates/blockchain-certificates.github.io
6
+ GIT_REPO=$GITHUB_COM/$BLOCKCERTS_GITHUB_REPO.git
7
+ WORK_BRANCH=chore/update-bv
8
+ GITHUB_USER=botcerts
9
+
10
+ # clone CTS repo
11
+ git clone https://$GIT_REPO
12
+ cd blockchain-certificates.github.io
13
+
14
+ # rename remote to add authentication
15
+ git remote rm origin
16
+ git remote add origin https://$GITHUB_USER:$BOTCERTS_PR_GITHUB_TOKEN@$GIT_REPO
17
+
18
+ # checkout new branch
19
+ git checkout -b $WORK_BRANCH
20
+
21
+ # update blockcerts-verifier
22
+ npm install
23
+ npm i @blockcerts/blockcerts-verifier
24
+
25
+ # clean unwanted files. Note: we could also handle that with .gitignore
26
+ echo 'Clean unwanted files'
27
+ pwd
28
+ git clean -df
29
+
30
+ # commit
31
+ git status
32
+ git add .
33
+ git commit -m "chore(BUV): update to latest version"
34
+
35
+ # push
36
+ git push origin $WORK_BRANCH
37
+
38
+ # open PR
39
+ #{
40
+ # "title": "Amazing new feature",
41
+ # "body": "Please pull this in!",
42
+ # "head": "octocat:new-feature",
43
+ # "base": "master"
44
+ #}
45
+
46
+ curl --data '{"head":"'${WORK_BRANCH}'", "base":"master", "title": "bump Blockcerts Verifier version", "body": "Please review and merge @lemoustachiste @raiseandfall"}' -H "Authorization: token ${BOTCERTS_PR_GITHUB_TOKEN}" https://api.github.com/repos/$BLOCKCERTS_GITHUB_REPO/pulls -v
47
+
48
+ # clean after use
49
+ cd ..
50
+ echo 'Delete working directory'
51
+ rm -rf blockchain-certificates.github.io