@sfgrp/distinguish 0.0.9 → 0.1.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/README.md +4 -4
- package/package.json +1 -7
package/README.md
CHANGED
|
@@ -77,10 +77,10 @@ const app = createInteractiveKey('#interactive-key', options)
|
|
|
77
77
|
### Options object
|
|
78
78
|
```javascript
|
|
79
79
|
{
|
|
80
|
-
observationMatrixId: ''
|
|
80
|
+
observationMatrixId: '', // Observation matrix ID
|
|
81
81
|
apiConfig: {
|
|
82
|
-
baseURL: ''
|
|
83
|
-
csrfToken: ''
|
|
82
|
+
baseURL: '', // URL API, e.g https://sfg.taxonworks.org/api/v1
|
|
83
|
+
csrfToken: '', // CSRF Token. Don't use it with authentification API params.
|
|
84
84
|
projectId: '', // Project ID. Don't use it with projectToken.
|
|
85
85
|
userToken: '', // User Token. Don't use it with projectToken and csrfToken.
|
|
86
86
|
projectToken: '' // Project token. Don't use it with projectId and userToken.
|
|
@@ -88,7 +88,7 @@ const app = createInteractiveKey('#interactive-key', options)
|
|
|
88
88
|
}
|
|
89
89
|
```
|
|
90
90
|
### Example page
|
|
91
|
-
This uses the [CDN](#cdn) and [
|
|
91
|
+
This uses the [CDN](#cdn) and [Declarative](#declarative) approach.
|
|
92
92
|
* Copy the text below into a file called `index.html`.
|
|
93
93
|
* Configure the `data-` options to point to your key.
|
|
94
94
|
* Open that file in your browser.
|
package/package.json
CHANGED
|
@@ -1,16 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sfgrp/distinguish",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "0.0
|
|
4
|
+
"version": "0.1.0",
|
|
5
5
|
"files": ["dist"],
|
|
6
6
|
"main": "./dist/distinguish.umd.js",
|
|
7
7
|
"module": "./dist/distinguish.es.js",
|
|
8
|
-
"exports": {
|
|
9
|
-
".": {
|
|
10
|
-
"import": "./dist/distinguish.es.js",
|
|
11
|
-
"require": "./dist/distinguish.umd.js"
|
|
12
|
-
}
|
|
13
|
-
},
|
|
14
8
|
"publishConfig": {
|
|
15
9
|
"access": "public"
|
|
16
10
|
},
|