@eid-easy/eideasy-widget 2.172.2 → 2.172.3-beta.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 +7 -7
- package/README.md +87 -16
- package/dist/eideasy-widget.mjs +33250 -0
- package/dist/eideasy-widget.umd.js +4587 -0
- package/dist/favicon.ico +0 -0
- package/package.json +58 -111
- package/CHANGELOG-LATEST.md +0 -9
- package/CHANGELOG.md +0 -2665
- package/dist/full/eideasy-widget.common.js +0 -68189
- package/dist/full/eideasy-widget.umd.js +0 -68200
- package/dist/full/eideasy-widget.umd.min.js +0 -14
- package/dist/full/fonts/verimi-roboto-v20-latin-500.woff +0 -0
- package/dist/full/fonts/verimi-roboto-v20-latin-500.woff2 +0 -0
- package/dist/index.html +0 -305
- package/dist/widget-only/demo.html +0 -1
- package/dist/widget-only/eideasy-widget.common.js +0 -41707
- package/dist/widget-only/eideasy-widget.umd.js +0 -41726
- package/dist/widget-only/eideasy-widget.umd.min.js +0 -14
package/LICENSE
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
Copyright 2021 - present EID Easy OÜ
|
|
2
|
-
|
|
3
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
4
|
-
|
|
5
|
-
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
|
6
|
-
|
|
7
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
1
|
+
Copyright 2021 - present EID Easy OÜ
|
|
2
|
+
|
|
3
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
4
|
+
|
|
5
|
+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
|
6
|
+
|
|
7
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,16 +1,87 @@
|
|
|
1
|
-
<p align="center"><a href="https://eideasy.com/" target="_blank" rel="noopener noreferrer"><img width="300" src="https://eideasy.com/
|
|
2
|
-
|
|
3
|
-
<p align="center">
|
|
4
|
-
<a href="https://app.netlify.com/sites/eideasy-widget/deploys"><img src="https://api.netlify.com/api/v1/badges/75cb270d-cc4f-473c-9940-9d6effe6093a/deploy-status" alt="Netlify Status" style="max-width:100%;"></a>
|
|
5
|
-
<a href="https://github.com/eideasy/eideasy-widget/blob/master/LICENSE"><img src="https://img.shields.io/npm/l/@eid-easy/eideasy-widget" alt="license badge" style="max-width:100%;"></a>
|
|
6
|
-
<a href="https://www.npmjs.com/package/@eid-easy/eideasy-widget"><img src="https://img.shields.io/npm/v/@eid-easy/eideasy-widget" alt="version badge" style="max-width:100%;"></a>
|
|
7
|
-
</p>
|
|
8
|
-
|
|
9
|
-
# eID Easy Widget
|
|
10
|
-
eideasy-widget is a [custom HTML element](https://developer.mozilla.org/en-US/docs/Web/Web_Components/Using_custom_elements) that you can embed into your website or web application
|
|
11
|
-
to identify users or create electronic signatures through [eID Easy](https://eideasy.com/) API.
|
|
12
|
-
|
|
13
|
-
You can see a demo implementation here: [https://demo.eideasy.com/login-widget](https://demo.eideasy.com/login-widget)
|
|
14
|
-
|
|
15
|
-
## Documentation
|
|
16
|
-
The docs are available at https://eideasy-widget.docs.eideasy.com
|
|
1
|
+
<p align="center"><a href="https://eideasy.com/" target="_blank" rel="noopener noreferrer"><img width="300" src="https://assets.eideasy.com/brand/images/logo/eideasy-logo-black.svg" alt="eID Easy logo"></a></p>
|
|
2
|
+
|
|
3
|
+
<p align="center">
|
|
4
|
+
<a href="https://app.netlify.com/sites/eideasy-widget/deploys"><img src="https://api.netlify.com/api/v1/badges/75cb270d-cc4f-473c-9940-9d6effe6093a/deploy-status" alt="Netlify Status" style="max-width:100%;"></a>
|
|
5
|
+
<a href="https://github.com/eideasy/eideasy-widget/blob/master/LICENSE"><img src="https://img.shields.io/npm/l/@eid-easy/eideasy-widget" alt="license badge" style="max-width:100%;"></a>
|
|
6
|
+
<a href="https://www.npmjs.com/package/@eid-easy/eideasy-widget"><img src="https://img.shields.io/npm/v/@eid-easy/eideasy-widget" alt="version badge" style="max-width:100%;"></a>
|
|
7
|
+
</p>
|
|
8
|
+
|
|
9
|
+
# eID Easy Widget
|
|
10
|
+
eideasy-widget is a [custom HTML element](https://developer.mozilla.org/en-US/docs/Web/Web_Components/Using_custom_elements) that you can embed into your website or web application
|
|
11
|
+
to identify users or create electronic signatures through [eID Easy](https://eideasy.com/) API.
|
|
12
|
+
|
|
13
|
+
You can see a demo implementation here: [https://demo.eideasy.com/login-widget](https://demo.eideasy.com/login-widget)
|
|
14
|
+
|
|
15
|
+
## Documentation
|
|
16
|
+
The client facing docs are available at https://eideasy-widget.docs.eideasy.com
|
|
17
|
+
|
|
18
|
+
## Customize configuration
|
|
19
|
+
|
|
20
|
+
See [Vite Configuration Reference](https://vite.dev/config/).
|
|
21
|
+
|
|
22
|
+
## Project Setup
|
|
23
|
+
|
|
24
|
+
```sh
|
|
25
|
+
npm install
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
### Compile and Hot-Reload for Development
|
|
29
|
+
|
|
30
|
+
```sh
|
|
31
|
+
npm run dev
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
### Compile and Minify for Production
|
|
35
|
+
|
|
36
|
+
```sh
|
|
37
|
+
npm run build
|
|
38
|
+
```
|
|
39
|
+
This will build the widget and output the resulting js to the `dist` directory.
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
### Demo of the Production Build
|
|
43
|
+
|
|
44
|
+
```sh
|
|
45
|
+
npm run dev:prod-demo
|
|
46
|
+
```
|
|
47
|
+
This will first create a production build of the widget and then start a local server
|
|
48
|
+
to serve the demo page that uses the production build of the widget.
|
|
49
|
+
The demo page mimics the way our customers would use the widget in their own applications.
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
### Run Unit Tests with [Vitest](https://vitest.dev/)
|
|
53
|
+
|
|
54
|
+
```sh
|
|
55
|
+
npm run test:unit
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
### Run End-to-End Tests with [Playwright](https://playwright.dev)
|
|
59
|
+
|
|
60
|
+
```sh
|
|
61
|
+
# Install browsers for the first run
|
|
62
|
+
npx playwright install
|
|
63
|
+
|
|
64
|
+
# When testing on CI, must build the project first
|
|
65
|
+
npm run build
|
|
66
|
+
|
|
67
|
+
# Runs the end-to-end tests
|
|
68
|
+
npm run test:e2e
|
|
69
|
+
# Runs the tests only on Chromium
|
|
70
|
+
npm run test:e2e -- --project=chromium
|
|
71
|
+
# Runs the tests of a specific file
|
|
72
|
+
npm run test:e2e -- tests/example.spec.ts
|
|
73
|
+
# Runs the tests in debug mode
|
|
74
|
+
npm run test:e2e -- --debug
|
|
75
|
+
```
|
|
76
|
+
|
|
77
|
+
### Lint with [ESLint](https://eslint.org/)
|
|
78
|
+
|
|
79
|
+
```sh
|
|
80
|
+
npm run lint
|
|
81
|
+
```
|
|
82
|
+
|
|
83
|
+
### Dev notes
|
|
84
|
+
|
|
85
|
+
index.html is used to demo the widget in development mode.
|
|
86
|
+
prod-build-demo.html is used to demo the widget in production mode.
|
|
87
|
+
|