@blockcerts/blockcerts-verifier 1.46.0 → 1.49.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/.eslintrc.js CHANGED
@@ -18,6 +18,7 @@ module.exports = {
18
18
  '@typescript-eslint/semi': ['error', 'always'],
19
19
  '@typescript-eslint/no-empty-function': ['error', { 'allow': ['arrowFunctions'] }],
20
20
  '@typescript-eslint/member-delimiter-style': ['error', { 'multiline': { 'delimiter': 'semi', 'requireLast': true }}],
21
+ '@typescript-eslint/explicit-function-return-type': [1],
21
22
  '@typescript-eslint/interface-name-prefix': [0],
22
23
  '@typescript-eslint/strict-boolean-expressions': [0],
23
24
  '@typescript-eslint/no-explicit-any': [0], // remove one day, maybe. This is early days so we have some anys.
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # \<blockcerts-verifier\>
2
2
 
3
- [![Build Status](https://travis-ci.com/blockchain-certificates/blockcerts-verifier.svg?branch=master)](https://travis-ci.com/blockchain-certificates/blockcerts-verifier)
3
+ [![Build Status](https://app.travis-ci.com/blockchain-certificates/blockcerts-verifier.svg?branch=master)](https://app.travis-ci.com/github/blockchain-certificates/blockcerts-verifier)
4
4
  [![codecov](https://codecov.io/gh/blockchain-certificates/blockcerts-verifier/branch/master/graph/badge.svg)](https://codecov.io/gh/blockchain-certificates/blockcerts-verifier)
5
5
  [![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg)](https://github.com/semantic-release/semantic-release)
6
6
 
@@ -69,6 +69,13 @@ The component will understand the following options:
69
69
  ```html
70
70
  <blockcerts-verifier disable-auto-verify></blockcerts-verifier>
71
71
  ```
72
+ - `disable-download-pdf`: (Boolean. default: `false`). Disables the Download PDF functionality.
73
+
74
+ Example:
75
+
76
+ ```html
77
+ <blockcerts-verifier disable-download-pdf></blockcerts-verifier>
78
+ ```
72
79
  - `disable-verify`: (Boolean. default: `false`). Disables verification of the record altogether.
73
80
 
74
81
  Example:
@@ -0,0 +1,35 @@
1
+ <!doctype html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="utf-8">
5
+ <meta name="viewport" content="width=device-width, minimum-scale=1, initial-scale=1, user-scalable=yes">
6
+
7
+ <title>blockcerts-verifier demo</title>
8
+
9
+ <script src="./@webcomponents/webcomponentsjs/webcomponents-loader.js"></script>
10
+ <script type="module" src="./index.js"></script>
11
+
12
+ <script>
13
+ // HACK(keanulee): The Redux package assumes `process` exists - mock it here before
14
+ // the module is loaded.
15
+ window.process = {
16
+ env: {
17
+ NODE_ENV: 'development'
18
+ }
19
+ };
20
+ </script>
21
+ <style>
22
+ .main {
23
+ max-width: 700px;
24
+ margin: 0 auto;
25
+ width: 100%;
26
+ }
27
+ </style>
28
+ </head>
29
+ <body>
30
+ <div class="main">
31
+ <h3>Basic blockcerts-verifier demo - Disable Download PDF link flag</h3>
32
+ <blockcerts-verifier display-mode="fullscreen" disable-download-pdf></blockcerts-verifier>
33
+ </div>
34
+ </body>
35
+ </html>