protvista-uniprot 4.7.0 → 4.7.2

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/LICENSE-docs ADDED
@@ -0,0 +1,4 @@
1
+ Documentation and other non-code materials in this repository are licensed
2
+ under the Creative Commons Attribution 4.0 International (CC BY 4.0) licence.
3
+
4
+ See: https://creativecommons.org/licenses/by/4.0/
package/README.md CHANGED
@@ -4,6 +4,22 @@ A Web Component which uses [Nightingale](https://github.com/ebi-webcomponents/ni
4
4
 
5
5
  ![Image of protvista-uniprot](protvista.png)
6
6
 
7
+ ## 📣 Monthly Office Hours
8
+
9
+ Have questions about using or contributing to ProtVista?
10
+
11
+ We host regular virtual office hours to help with setup, integration, and contributions. Everyone is welcome — no registration required.
12
+
13
+ See dates and joining details here: [Office Hours](./CONTRIBUTING.md#office-hours)
14
+
15
+ ## Contributing & Security
16
+
17
+ We welcome contributions!
18
+
19
+ - Please see [CONTRIBUTING.md](./CONTRIBUTING.md) for development setup, pull request guidelines, and office hours.
20
+ - Community standards: [Code of Conduct](./CODE_OF_CONDUCT.md)
21
+ - Security issues: please report privately via [SECURITY.md](./SECURITY.md)
22
+
7
23
  ## Compatibility
8
24
 
9
25
  - [protvista-uniprot v3](https://github.com/ebi-webcomponents/protvista-uniprot) is compatible with [nightingale v5](https://github.com/ebi-webcomponents/nightingale)
@@ -13,13 +29,13 @@ A Web Component which uses [Nightingale](https://github.com/ebi-webcomponents/ni
13
29
 
14
30
  ### Use within an HTML file
15
31
 
16
- Create an [es-module](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Modules) import within a static HTML file:
32
+ Create an [ES module](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Modules) import within a static HTML file:
17
33
 
18
34
  ```html
19
35
  <script type="module" src="./protvista-uniprot.mjs"></script>
20
36
  ```
21
37
 
22
- and then the component can be displayed with:
38
+ Then display the component:
23
39
 
24
40
  ```html
25
41
  <protvista-uniprot accession="P05067"></protvista-uniprot>
@@ -27,48 +43,55 @@ and then the component can be displayed with:
27
43
 
28
44
  ### Importing as a module
29
45
 
30
- ```
46
+ ```js
31
47
  import ProtvistaUniprot from 'protvista-uniprot';
32
- ...
48
+
33
49
  window.customElements.define('protvista-uniprot', ProtvistaUniprot);
34
50
  ```
35
51
 
36
52
  You can then use it like this:
37
53
 
38
- ```
39
- <protvista-uniprot accession="P05067" />
54
+ ```html
55
+ <protvista-uniprot accession="P05067"></protvista-uniprot>
40
56
  ```
41
57
 
42
- ### API
58
+ ## API
43
59
 
44
- - accession: String
45
- - config?: Array [see below](#configuration)
46
- - nostructure?: Boolean(false)
60
+ - `accession`: `string`
61
+ - `config?`: `Array` (see [Configuration](#configuration))
62
+ - `nostructure?`: `boolean` (default: `false`)
47
63
 
48
64
  ## Development
49
65
 
50
- Run `yarn install` to install dependencies and `yarn start` to start the local server.
66
+ Run:
67
+
68
+ ```bash
69
+ yarn install
70
+ yarn start
71
+ ```
72
+
73
+ to install dependencies and start the local development server.
51
74
 
52
75
  ## Configuration
53
76
 
54
77
  You can pass your own configuration to the component using the `config` attribute/property.
55
78
 
56
- ```
79
+ ```json
57
80
  {
58
81
  "categories": [
59
82
  {
60
- "name": string,
61
- "label": string,
62
- "trackType": nightingale-track-canvas|nightingale-linegraph-track|nightingale-variation,
63
- "adapter": feature-adapter|structure-adapter|proteomics-adapter|variation-adapter,
64
- "url": string,
83
+ "name": "string",
84
+ "label": "string",
85
+ "trackType": "nightingale-track-canvas|nightingale-linegraph-track|nightingale-variation",
86
+ "adapter": "feature-adapter|structure-adapter|proteomics-adapter|variation-adapter",
87
+ "url": "string",
65
88
  "tracks": [
66
89
  {
67
- "name": string,
68
- "label": string,
69
- "filter": string,
90
+ "name": "string",
91
+ "label": "string",
92
+ "filter": "string",
70
93
  "trackType": "nightingale-track-canvas|nightingale-linegraph-track|nightingale-variation",
71
- "tooltip": string
94
+ "tooltip": "string"
72
95
  }
73
96
  ]
74
97
  }
@@ -78,18 +101,37 @@ You can pass your own configuration to the component using the `config` attribut
78
101
 
79
102
  ## Events
80
103
 
81
- Custom `protvista-event` are emitted:
104
+ A custom `protvista-event` is emitted:
82
105
 
83
- - when at least one of the track returns data
106
+ - When at least one of the tracks returns data
84
107
 
85
- ```
108
+ Example event detail:
109
+
110
+ ```js
86
111
  detail: {
87
- hasData: true
112
+ hasData: true;
88
113
  }
89
114
  ```
90
115
 
91
116
  ## Publishing
92
117
 
118
+ ```bash
119
+ npm login
120
+ rm -rf node_modules dist
121
+ yarn
122
+ yarn build
123
+ yarn publish
124
+ git push
93
125
  ```
94
- npm login; rm -rf node_modules dist; yarn; yarn build; yarn publish; git push
95
- ```
126
+
127
+ ## Licensing
128
+
129
+ ProtVista source code is licensed under the MIT License (see `LICENSE`).
130
+
131
+ Documentation and other written materials in this repository are licensed
132
+ under the Creative Commons Attribution 4.0 International (CC BY 4.0),
133
+ unless otherwise stated (see `LICENSE-docs`).
134
+
135
+ ## Funding
136
+
137
+ This work was supported by the Research Software Maintenance Fund, managed by the Software Sustainability Institute and funded by UKRI grant reference AH/Z000114/1.