@gataca/qr 2.0.2 → 2.0.4
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/cjs/gataca-autoqr.cjs.entry.js +105 -0
- package/dist/cjs/gataca-qr_2.cjs.entry.js +219 -0
- package/dist/cjs/gataca-qrws.cjs.entry.js +176 -0
- package/dist/cjs/gataca-ssibutton_2.cjs.entry.js +129 -0
- package/dist/cjs/gatacaqr.cjs.js +19 -0
- package/dist/cjs/index-4be0cdca.js +1435 -0
- package/dist/cjs/index.cjs.js +16 -0
- package/dist/cjs/loader.cjs.js +21 -0
- package/dist/cjs/logo_gataca-f3dc6840.js +14 -0
- package/dist/cjs/qr-code-styling-412bbc7a.js +28 -0
- package/dist/cjs/utils-383ee834.js +26 -0
- package/dist/collection/assets/icons/gat-icon-alert.svg +5 -0
- package/dist/collection/assets/icons/gat-icon-check.svg +5 -0
- package/dist/collection/assets/icons/gat-icon-refresh.svg +4 -0
- package/dist/collection/assets/images/logo_gataca.svg +26 -0
- package/dist/collection/collection-manifest.json +17 -0
- package/dist/collection/components/gataca-autoqr/gataca-autoqr.css +116 -0
- package/dist/collection/components/gataca-autoqr/gataca-autoqr.js +323 -0
- package/dist/collection/components/gataca-qr/gataca-qr.css +261 -0
- package/dist/collection/components/gataca-qr/gataca-qr.js +828 -0
- package/dist/collection/components/gataca-qrdisplay/gataca-qrdisplay.js +154 -0
- package/dist/collection/components/gataca-qrws/gataca-qrws.css +251 -0
- package/dist/collection/components/gataca-qrws/gataca-qrws.js +566 -0
- package/dist/collection/components/gataca-ssibutton/gataca-ssibutton.css +116 -0
- package/dist/collection/components/gataca-ssibutton/gataca-ssibutton.js +679 -0
- package/dist/collection/components/gataca-ssibuttonws/gataca-ssibuttonws.css +116 -0
- package/dist/collection/components/gataca-ssibuttonws/gataca-ssibuttonws.js +410 -0
- package/dist/collection/index.js +2 -0
- package/dist/collection/utils/index.js +1 -0
- package/dist/collection/utils/utils.js +21 -0
- package/dist/{gatacaqr/gat-icon-refresh-8d3dc25f.js → components/gat-icon-refresh.js} +23 -1
- package/dist/components/gataca-autoqr.js +161 -0
- package/dist/components/gataca-qr.js +6 -0
- package/dist/components/gataca-qr2.js +227 -0
- package/dist/components/gataca-qrdisplay.js +6 -0
- package/dist/components/gataca-qrdisplay2.js +93 -0
- package/dist/components/gataca-qrws.js +6 -0
- package/dist/components/gataca-qrws2.js +212 -0
- package/dist/components/gataca-ssibutton.js +6 -0
- package/dist/{gatacaqr/gataca-ssibutton.entry.js → components/gataca-ssibutton2.js} +83 -9
- package/dist/components/gataca-ssibuttonws.js +6 -0
- package/dist/{gatacaqr/gataca-ssibuttonws.entry.js → components/gataca-ssibuttonws2.js} +53 -7
- package/dist/components/index.js +8 -0
- package/dist/{gatacaqr → esm}/gataca-autoqr.entry.js +1 -1
- package/dist/esm/gataca-qr_2.entry.js +214 -0
- package/dist/{gatacaqr → esm}/gataca-qrws.entry.js +4 -4
- package/dist/esm/gataca-ssibutton_2.entry.js +124 -0
- package/dist/esm/gatacaqr.js +17 -0
- package/dist/esm/index-80311733.js +1409 -0
- package/dist/esm/index.js +1 -0
- package/dist/esm/loader.js +17 -0
- package/dist/esm/logo_gataca-57ad0363.js +9 -0
- package/dist/esm/polyfills/core-js.js +11 -0
- package/dist/esm/polyfills/css-shim.js +1 -0
- package/dist/esm/polyfills/dom.js +79 -0
- package/dist/esm/polyfills/es5-html-element.js +1 -0
- package/dist/esm/polyfills/index.js +34 -0
- package/dist/esm/polyfills/system.js +6 -0
- package/dist/esm/qr-code-styling-0eeb38d5.js +26 -0
- package/dist/gatacaqr/gatacaqr.esm.js +1 -129
- package/dist/gatacaqr/index.esm.js +1 -1
- package/dist/gatacaqr/p-0be4566d.js +1 -0
- package/dist/gatacaqr/p-5b17ef39.entry.js +1 -0
- package/dist/gatacaqr/p-5eb106c0.entry.js +1 -0
- package/dist/gatacaqr/p-66ad21ac.entry.js +1 -0
- package/dist/gatacaqr/p-6adc6933.js +1 -0
- package/dist/gatacaqr/p-a5648391.js +2 -0
- package/dist/gatacaqr/p-b834ef88.entry.js +1 -0
- package/dist/gatacaqr/p-b8ba109f.js +1 -0
- package/dist/index.cjs.js +1 -0
- package/dist/index.js +1 -0
- package/dist/types/components/gataca-qr/gataca-qr.d.ts +76 -1
- package/dist/types/components/gataca-ssibutton/gataca-ssibutton.d.ts +75 -0
- package/dist/types/components.d.ts +242 -2
- package/package.json +2 -2
- package/dist/gatacaqr/app-globals-0f993ce5.js +0 -3
- package/dist/gatacaqr/css-shim-8eec97b3.js +0 -4
- package/dist/gatacaqr/dom-1b0cf05d.js +0 -73
- package/dist/gatacaqr/gataca-qr.entry.js +0 -171
- package/dist/gatacaqr/gataca-qrdisplay-0320bb25.js +0 -97
- package/dist/gatacaqr/gataca-qrdisplay.entry.js +0 -2
- package/dist/gatacaqr/index-d0db23e4.js +0 -3262
- package/dist/gatacaqr/shadow-css-146f2f6f.js +0 -387
- /package/dist/{gatacaqr → esm}/utils-05ba6c9f.js +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
function i(){var i,a=!1;return i=navigator.userAgent||navigator.vendor,(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i.test(i)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(i.substr(0,4)))&&(a=!0),a}function a(i){return btoa(i).replace(/\+/g,"-").replace(/\//g,"_").replace(/\=+$/,"")}var o;!function(i){i[i.NOT_STARTED=-1]="NOT_STARTED",i[i.ONGOING=0]="ONGOING",i[i.SUCCESS=1]="SUCCESS",i[i.FAILED=2]="FAILED",i[i.EXPIRED=3]="EXPIRED"}(o||(o={}));export{o as R,a as b,i as c}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
module.exports = require('./cjs/index.cjs.js');
|
package/dist/index.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './esm/index.js';
|
|
@@ -38,7 +38,7 @@ export declare class GatacaQR {
|
|
|
38
38
|
*/
|
|
39
39
|
errorCallback: (error?: Error) => void;
|
|
40
40
|
/**
|
|
41
|
-
* ***Mandatory***
|
|
41
|
+
* ***Mandatory just for V1***
|
|
42
42
|
* Decide if scanning the credential as a verifier to request credentials
|
|
43
43
|
* or as an issuer too issue credentials.
|
|
44
44
|
* Options: connect | certify
|
|
@@ -69,6 +69,11 @@ export declare class GatacaQR {
|
|
|
69
69
|
* Modifies the qr headline title
|
|
70
70
|
*/
|
|
71
71
|
qrModalTitle?: string;
|
|
72
|
+
/**
|
|
73
|
+
* _[Optional]_
|
|
74
|
+
* String to set Modal title color
|
|
75
|
+
*/
|
|
76
|
+
modalTitleColor?: string;
|
|
72
77
|
/**
|
|
73
78
|
* _[Optional]_
|
|
74
79
|
* Modifies the Modal description
|
|
@@ -79,6 +84,76 @@ export declare class GatacaQR {
|
|
|
79
84
|
* Boolean to show or not show the gataca brand title
|
|
80
85
|
*/
|
|
81
86
|
hideBrandTitle?: boolean;
|
|
87
|
+
/**
|
|
88
|
+
* _[Optional]_
|
|
89
|
+
* Size of the logo to display in percentage to the total size [0-1]. 0 means no logo will be displayed. Default is the GATACA logo. Recommended size is around 0.33
|
|
90
|
+
*/
|
|
91
|
+
logoSize?: number;
|
|
92
|
+
/**
|
|
93
|
+
* _[Optional]_
|
|
94
|
+
* Logo to display, just if the logo size is greater than 0. No logo is the GATACA logo.
|
|
95
|
+
*/
|
|
96
|
+
logoSrc?: string;
|
|
97
|
+
/**
|
|
98
|
+
* _[Optional]_
|
|
99
|
+
* String to show when qr code expired
|
|
100
|
+
*/
|
|
101
|
+
qrCodeExpiredLabel?: string;
|
|
102
|
+
/**
|
|
103
|
+
* _[Optional]_
|
|
104
|
+
* String to show when credentials not validatedd
|
|
105
|
+
*/
|
|
106
|
+
credentialsNotValidatedLabel?: string;
|
|
107
|
+
/**
|
|
108
|
+
* _[Optional]_
|
|
109
|
+
* String to show "click inside" label
|
|
110
|
+
*/
|
|
111
|
+
clickInsideBoxLabel?: string;
|
|
112
|
+
/**
|
|
113
|
+
* _[Optional]_
|
|
114
|
+
* String to show "refresh QR" label
|
|
115
|
+
*/
|
|
116
|
+
refreshQrLabel?: string;
|
|
117
|
+
/**
|
|
118
|
+
* _[Optional]_
|
|
119
|
+
* String to show "scan QR" label
|
|
120
|
+
*/
|
|
121
|
+
scanQrLabel?: string;
|
|
122
|
+
/**
|
|
123
|
+
* _[Optional]_
|
|
124
|
+
* String to show "user not scan in time" error
|
|
125
|
+
*/
|
|
126
|
+
userNotScanInTimeErrorLabel?: string;
|
|
127
|
+
/**
|
|
128
|
+
* _[Optional]_
|
|
129
|
+
* String to show "provided credentials not validates" error
|
|
130
|
+
*/
|
|
131
|
+
credsNotValidatedErrorLabel?: string;
|
|
132
|
+
/**
|
|
133
|
+
* _[Optional]_
|
|
134
|
+
* String to show "failed login" error
|
|
135
|
+
*/
|
|
136
|
+
failedLoginErrorLabel?: string;
|
|
137
|
+
/**
|
|
138
|
+
* _[Optional]_
|
|
139
|
+
* String to show "successful login" label
|
|
140
|
+
*/
|
|
141
|
+
successLoginLabel?: string;
|
|
142
|
+
/**
|
|
143
|
+
* _[Optional]_
|
|
144
|
+
* String to show "by brand" label
|
|
145
|
+
*/
|
|
146
|
+
byBrandLabel?: string;
|
|
147
|
+
/**
|
|
148
|
+
* _[Optional]_
|
|
149
|
+
* String to show "waiting start session" label
|
|
150
|
+
*/
|
|
151
|
+
waitingStartSessionLabel?: string;
|
|
152
|
+
/**
|
|
153
|
+
* _[Optional]_
|
|
154
|
+
* Boolean to show or not show the QR Modal description
|
|
155
|
+
*/
|
|
156
|
+
hideQrModalDescription?: boolean;
|
|
82
157
|
/**
|
|
83
158
|
* _[Optional]_
|
|
84
159
|
* Maximum time window to display the session
|
|
@@ -80,6 +80,11 @@ export declare class GatacaSSIButton {
|
|
|
80
80
|
* Modifies the qr headline title
|
|
81
81
|
*/
|
|
82
82
|
qrModalTitle?: string;
|
|
83
|
+
/**
|
|
84
|
+
* _[Optional]_
|
|
85
|
+
* String to set Modal title color
|
|
86
|
+
*/
|
|
87
|
+
modalTitleColor?: string;
|
|
83
88
|
/**
|
|
84
89
|
* _[Optional]_
|
|
85
90
|
* Modifies the Modal description
|
|
@@ -95,6 +100,76 @@ export declare class GatacaSSIButton {
|
|
|
95
100
|
* Display a link containing a dynamic link to invoke the wallet if closed
|
|
96
101
|
*/
|
|
97
102
|
dynamicLink?: boolean;
|
|
103
|
+
/**
|
|
104
|
+
* _[Optional]_
|
|
105
|
+
* Size of the logo to display in percentage to the total size [0-1]. 0 means no logo will be displayed. Default is the GATACA logo. Recommended size is around 0.33
|
|
106
|
+
*/
|
|
107
|
+
logoSize?: number;
|
|
108
|
+
/**
|
|
109
|
+
* _[Optional]_
|
|
110
|
+
* Logo to display, just if the logo size is greater than 0. No logo is the GATACA logo.
|
|
111
|
+
*/
|
|
112
|
+
logoSrc?: string;
|
|
113
|
+
/**
|
|
114
|
+
* _[Optional]_
|
|
115
|
+
* String to show when qr code expired
|
|
116
|
+
*/
|
|
117
|
+
qrCodeExpiredLabel?: string;
|
|
118
|
+
/**
|
|
119
|
+
* _[Optional]_
|
|
120
|
+
* String to show when credentials not validatedd
|
|
121
|
+
*/
|
|
122
|
+
credentialsNotValidatedLabel?: string;
|
|
123
|
+
/**
|
|
124
|
+
* _[Optional]_
|
|
125
|
+
* String to show "click inside" label
|
|
126
|
+
*/
|
|
127
|
+
clickInsideBoxLabel?: string;
|
|
128
|
+
/**
|
|
129
|
+
* _[Optional]_
|
|
130
|
+
* String to show "refresh QR" label
|
|
131
|
+
*/
|
|
132
|
+
refreshQrLabel?: string;
|
|
133
|
+
/**
|
|
134
|
+
* _[Optional]_
|
|
135
|
+
* String to show "scan QR" label
|
|
136
|
+
*/
|
|
137
|
+
scanQrLabel?: string;
|
|
138
|
+
/**
|
|
139
|
+
* _[Optional]_
|
|
140
|
+
* String to show "user not scan in time" error
|
|
141
|
+
*/
|
|
142
|
+
userNotScanInTimeErrorLabel?: string;
|
|
143
|
+
/**
|
|
144
|
+
* _[Optional]_
|
|
145
|
+
* String to show "provided credentials not validates" error
|
|
146
|
+
*/
|
|
147
|
+
credsNotValidatedErrorLabel?: string;
|
|
148
|
+
/**
|
|
149
|
+
* _[Optional]_
|
|
150
|
+
* String to show "failed login" error
|
|
151
|
+
*/
|
|
152
|
+
failedLoginErrorLabel?: string;
|
|
153
|
+
/**
|
|
154
|
+
* _[Optional]_
|
|
155
|
+
* String to show "successful login" label
|
|
156
|
+
*/
|
|
157
|
+
successLoginLabel?: string;
|
|
158
|
+
/**
|
|
159
|
+
* _[Optional]_
|
|
160
|
+
* String to show "by brand" label
|
|
161
|
+
*/
|
|
162
|
+
byBrandLabel?: string;
|
|
163
|
+
/**
|
|
164
|
+
* _[Optional]_
|
|
165
|
+
* String to show "waiting start session" label
|
|
166
|
+
*/
|
|
167
|
+
waitingStartSessionLabel?: string;
|
|
168
|
+
/**
|
|
169
|
+
* _[Optional]_
|
|
170
|
+
* Boolean to show or not show the QR Modal description
|
|
171
|
+
*/
|
|
172
|
+
hideQrModalDescription?: boolean;
|
|
98
173
|
open: boolean;
|
|
99
174
|
/**
|
|
100
175
|
* GatacaLoginCompleted event, triggered with session data upon login success
|
|
@@ -60,6 +60,10 @@ export namespace Components {
|
|
|
60
60
|
* _[Optional]_ Set to enable autoload when the QR is displayed. By default it is true
|
|
61
61
|
*/
|
|
62
62
|
"autostart": boolean;
|
|
63
|
+
/**
|
|
64
|
+
* _[Optional]_ String to show "by brand" label
|
|
65
|
+
*/
|
|
66
|
+
"byBrandLabel"?: string;
|
|
63
67
|
/**
|
|
64
68
|
* ***Mandatory just for V1*** Connect/Certify Server where the wallet will send the data
|
|
65
69
|
*/
|
|
@@ -70,6 +74,10 @@ export namespace Components {
|
|
|
70
74
|
"checkStatus"?: (
|
|
71
75
|
id?: string
|
|
72
76
|
) => Promise<{ result: RESULT_STATUS1; data?: any }>;
|
|
77
|
+
/**
|
|
78
|
+
* _[Optional]_ String to show "click inside" label
|
|
79
|
+
*/
|
|
80
|
+
"clickInsideBoxLabel"?: string;
|
|
73
81
|
/**
|
|
74
82
|
* ***Mandatory*** Create session function to generate a new Session Using V1, it can provide just a session Id Using V2, it must provide also the authentication request. The session Id is the id of the presentation definition
|
|
75
83
|
*/
|
|
@@ -77,6 +85,14 @@ export namespace Components {
|
|
|
77
85
|
sessionId: string;
|
|
78
86
|
authenticationRequest?: string;
|
|
79
87
|
}>;
|
|
88
|
+
/**
|
|
89
|
+
* _[Optional]_ String to show when credentials not validatedd
|
|
90
|
+
*/
|
|
91
|
+
"credentialsNotValidatedLabel"?: string;
|
|
92
|
+
/**
|
|
93
|
+
* _[Optional]_ String to show "provided credentials not validates" error
|
|
94
|
+
*/
|
|
95
|
+
"credsNotValidatedErrorLabel"?: string;
|
|
80
96
|
/**
|
|
81
97
|
* Force manually the display of a QR
|
|
82
98
|
*/
|
|
@@ -89,6 +105,10 @@ export namespace Components {
|
|
|
89
105
|
* ***Mandatory*** Callback fired upon session expired or invalid If not set, session error would not be handled An error containing information will be passed as parameter
|
|
90
106
|
*/
|
|
91
107
|
"errorCallback": (error?: Error) => void;
|
|
108
|
+
/**
|
|
109
|
+
* _[Optional]_ String to show "failed login" error
|
|
110
|
+
*/
|
|
111
|
+
"failedLoginErrorLabel"?: string;
|
|
92
112
|
/**
|
|
93
113
|
* Retrieve manually the session data on a successful login
|
|
94
114
|
*/
|
|
@@ -97,10 +117,30 @@ export namespace Components {
|
|
|
97
117
|
* _[Optional]_ Boolean to show or not show the gataca brand title
|
|
98
118
|
*/
|
|
99
119
|
"hideBrandTitle"?: boolean;
|
|
120
|
+
/**
|
|
121
|
+
* _[Optional]_ Boolean to show or not show the QR Modal description
|
|
122
|
+
*/
|
|
123
|
+
"hideQrModalDescription"?: boolean;
|
|
124
|
+
/**
|
|
125
|
+
* _[Optional]_ Size of the logo to display in percentage to the total size [0-1]. 0 means no logo will be displayed. Default is the GATACA logo. Recommended size is around 0.33
|
|
126
|
+
*/
|
|
127
|
+
"logoSize"?: number;
|
|
128
|
+
/**
|
|
129
|
+
* _[Optional]_ Logo to display, just if the logo size is greater than 0. No logo is the GATACA logo.
|
|
130
|
+
*/
|
|
131
|
+
"logoSrc"?: string;
|
|
132
|
+
/**
|
|
133
|
+
* _[Optional]_ String to set Modal title color
|
|
134
|
+
*/
|
|
135
|
+
"modalTitleColor"?: string;
|
|
100
136
|
/**
|
|
101
137
|
* _[Optional]_ Frequency in seconds to check if the session has been validated
|
|
102
138
|
*/
|
|
103
139
|
"pollingFrequency"?: number;
|
|
140
|
+
/**
|
|
141
|
+
* _[Optional]_ String to show when qr code expired
|
|
142
|
+
*/
|
|
143
|
+
"qrCodeExpiredLabel"?: string;
|
|
104
144
|
/**
|
|
105
145
|
* _[Optional]_ Modifies the Modal description
|
|
106
146
|
*/
|
|
@@ -110,9 +150,17 @@ export namespace Components {
|
|
|
110
150
|
*/
|
|
111
151
|
"qrModalTitle"?: string;
|
|
112
152
|
/**
|
|
113
|
-
* ***Mandatory*** Decide if scanning the credential as a verifier to request credentials or as an issuer too issue credentials. Options: connect | certify
|
|
153
|
+
* ***Mandatory just for V1*** Decide if scanning the credential as a verifier to request credentials or as an issuer too issue credentials. Options: connect | certify
|
|
114
154
|
*/
|
|
115
155
|
"qrRole": string;
|
|
156
|
+
/**
|
|
157
|
+
* _[Optional]_ String to show "refresh QR" label
|
|
158
|
+
*/
|
|
159
|
+
"refreshQrLabel"?: string;
|
|
160
|
+
/**
|
|
161
|
+
* _[Optional]_ String to show "scan QR" label
|
|
162
|
+
*/
|
|
163
|
+
"scanQrLabel"?: string;
|
|
116
164
|
/**
|
|
117
165
|
* _[Optional]_ Maximum time window to display the session
|
|
118
166
|
*/
|
|
@@ -125,10 +173,22 @@ export namespace Components {
|
|
|
125
173
|
* ***Mandatory*** Callback fired upon session correctly verified If not set, session validation wouldn't trigger any action The session data and a possible token will be sent as parameters to the callback
|
|
126
174
|
*/
|
|
127
175
|
"successCallback": (data?: any) => void;
|
|
176
|
+
/**
|
|
177
|
+
* _[Optional]_ String to show "successful login" label
|
|
178
|
+
*/
|
|
179
|
+
"successLoginLabel"?: string;
|
|
180
|
+
/**
|
|
181
|
+
* _[Optional]_ String to show "user not scan in time" error
|
|
182
|
+
*/
|
|
183
|
+
"userNotScanInTimeErrorLabel"?: string;
|
|
128
184
|
/**
|
|
129
185
|
* _[Optional]_ Set to use v2 links. The create session must be providing both an authentication request and a session Id
|
|
130
186
|
*/
|
|
131
187
|
"v2"?: boolean;
|
|
188
|
+
/**
|
|
189
|
+
* _[Optional]_ String to show "waiting start session" label
|
|
190
|
+
*/
|
|
191
|
+
"waitingStartSessionLabel"?: string;
|
|
132
192
|
}
|
|
133
193
|
interface GatacaQrdisplay {
|
|
134
194
|
/**
|
|
@@ -239,6 +299,10 @@ export namespace Components {
|
|
|
239
299
|
* _[Optional]_ In the case of being a button, modifies its text
|
|
240
300
|
*/
|
|
241
301
|
"buttonText"?: string;
|
|
302
|
+
/**
|
|
303
|
+
* _[Optional]_ String to show "by brand" label
|
|
304
|
+
*/
|
|
305
|
+
"byBrandLabel"?: string;
|
|
242
306
|
/**
|
|
243
307
|
* ***Mandatory just for V1*** Connect/Certify Server where the wallet will send the data
|
|
244
308
|
*/
|
|
@@ -249,6 +313,10 @@ export namespace Components {
|
|
|
249
313
|
"checkStatus"?: (
|
|
250
314
|
id?: string
|
|
251
315
|
) => Promise<{ result: RESULT_STATUS1; data?: any }>;
|
|
316
|
+
/**
|
|
317
|
+
* _[Optional]_ String to show "click inside" label
|
|
318
|
+
*/
|
|
319
|
+
"clickInsideBoxLabel"?: string;
|
|
252
320
|
/**
|
|
253
321
|
* ***Mandatory*** Create session function to generate a new Session Using V1, it can provide just a session Id Using V2, it must provide also the authentication request. The session Id is the id of the presentation definition
|
|
254
322
|
*/
|
|
@@ -256,6 +324,14 @@ export namespace Components {
|
|
|
256
324
|
sessionId: string;
|
|
257
325
|
authenticationRequest?: string;
|
|
258
326
|
}>;
|
|
327
|
+
/**
|
|
328
|
+
* _[Optional]_ String to show when credentials not validatedd
|
|
329
|
+
*/
|
|
330
|
+
"credentialsNotValidatedLabel"?: string;
|
|
331
|
+
/**
|
|
332
|
+
* _[Optional]_ String to show "provided credentials not validates" error
|
|
333
|
+
*/
|
|
334
|
+
"credsNotValidatedErrorLabel"?: string;
|
|
259
335
|
/**
|
|
260
336
|
* _[Optional]_ Display a link containing a dynamic link to invoke the wallet if closed
|
|
261
337
|
*/
|
|
@@ -264,6 +340,10 @@ export namespace Components {
|
|
|
264
340
|
* ***Mandatory*** Callback fired upon session expired or invalid If not set, session error would not be handled An error containing information will be passed as parameter
|
|
265
341
|
*/
|
|
266
342
|
"errorCallback": (error?: Error) => void;
|
|
343
|
+
/**
|
|
344
|
+
* _[Optional]_ String to show "failed login" error
|
|
345
|
+
*/
|
|
346
|
+
"failedLoginErrorLabel"?: string;
|
|
267
347
|
/**
|
|
268
348
|
* Retrieve manually the session data on a successful login
|
|
269
349
|
*/
|
|
@@ -272,10 +352,30 @@ export namespace Components {
|
|
|
272
352
|
* _[Optional]_ Boolean to show or not show the gataca brand title
|
|
273
353
|
*/
|
|
274
354
|
"hideBrandTitle"?: boolean;
|
|
355
|
+
/**
|
|
356
|
+
* _[Optional]_ Boolean to show or not show the QR Modal description
|
|
357
|
+
*/
|
|
358
|
+
"hideQrModalDescription"?: boolean;
|
|
359
|
+
/**
|
|
360
|
+
* _[Optional]_ Size of the logo to display in percentage to the total size [0-1]. 0 means no logo will be displayed. Default is the GATACA logo. Recommended size is around 0.33
|
|
361
|
+
*/
|
|
362
|
+
"logoSize"?: number;
|
|
363
|
+
/**
|
|
364
|
+
* _[Optional]_ Logo to display, just if the logo size is greater than 0. No logo is the GATACA logo.
|
|
365
|
+
*/
|
|
366
|
+
"logoSrc"?: string;
|
|
367
|
+
/**
|
|
368
|
+
* _[Optional]_ String to set Modal title color
|
|
369
|
+
*/
|
|
370
|
+
"modalTitleColor"?: string;
|
|
275
371
|
/**
|
|
276
372
|
* _[Optional]_ Frequency in seconds to check if the session has been validated
|
|
277
373
|
*/
|
|
278
374
|
"pollingFrequency"?: number;
|
|
375
|
+
/**
|
|
376
|
+
* _[Optional]_ String to show when qr code expired
|
|
377
|
+
*/
|
|
378
|
+
"qrCodeExpiredLabel"?: string;
|
|
279
379
|
/**
|
|
280
380
|
* _[Optional]_ Modifies the Modal description
|
|
281
381
|
*/
|
|
@@ -288,6 +388,14 @@ export namespace Components {
|
|
|
288
388
|
* ***Mandatory*** Decide if scanning the credential as a verifier to request credentials or as an issuer too issue credentials. Options: connect | certify
|
|
289
389
|
*/
|
|
290
390
|
"qrRole": string;
|
|
391
|
+
/**
|
|
392
|
+
* _[Optional]_ String to show "refresh QR" label
|
|
393
|
+
*/
|
|
394
|
+
"refreshQrLabel"?: string;
|
|
395
|
+
/**
|
|
396
|
+
* _[Optional]_ String to show "scan QR" label
|
|
397
|
+
*/
|
|
398
|
+
"scanQrLabel"?: string;
|
|
291
399
|
/**
|
|
292
400
|
* _[Optional]_ Maximum time window to display the session
|
|
293
401
|
*/
|
|
@@ -296,10 +404,22 @@ export namespace Components {
|
|
|
296
404
|
* ***Mandatory*** Callback fired upon session correctly verified If not set, session validation wouldn't trigger any action The session data and a possible token will be sent as parameters to the callback
|
|
297
405
|
*/
|
|
298
406
|
"successCallback": (data?: any) => void;
|
|
407
|
+
/**
|
|
408
|
+
* _[Optional]_ String to show "successful login" label
|
|
409
|
+
*/
|
|
410
|
+
"successLoginLabel"?: string;
|
|
411
|
+
/**
|
|
412
|
+
* _[Optional]_ String to show "user not scan in time" error
|
|
413
|
+
*/
|
|
414
|
+
"userNotScanInTimeErrorLabel"?: string;
|
|
299
415
|
/**
|
|
300
416
|
* _[Optional]_ Set to use v2 links. The create session must be providing both an authentication request and a session Id
|
|
301
417
|
*/
|
|
302
418
|
"v2"?: boolean;
|
|
419
|
+
/**
|
|
420
|
+
* _[Optional]_ String to show "waiting start session" label
|
|
421
|
+
*/
|
|
422
|
+
"waitingStartSessionLabel"?: string;
|
|
303
423
|
}
|
|
304
424
|
interface GatacaSsibuttonws {
|
|
305
425
|
/**
|
|
@@ -495,6 +615,10 @@ declare namespace LocalJSX {
|
|
|
495
615
|
* _[Optional]_ Set to enable autoload when the QR is displayed. By default it is true
|
|
496
616
|
*/
|
|
497
617
|
"autostart"?: boolean;
|
|
618
|
+
/**
|
|
619
|
+
* _[Optional]_ String to show "by brand" label
|
|
620
|
+
*/
|
|
621
|
+
"byBrandLabel"?: string;
|
|
498
622
|
/**
|
|
499
623
|
* ***Mandatory just for V1*** Connect/Certify Server where the wallet will send the data
|
|
500
624
|
*/
|
|
@@ -505,6 +629,10 @@ declare namespace LocalJSX {
|
|
|
505
629
|
"checkStatus"?: (
|
|
506
630
|
id?: string
|
|
507
631
|
) => Promise<{ result: RESULT_STATUS1; data?: any }>;
|
|
632
|
+
/**
|
|
633
|
+
* _[Optional]_ String to show "click inside" label
|
|
634
|
+
*/
|
|
635
|
+
"clickInsideBoxLabel"?: string;
|
|
508
636
|
/**
|
|
509
637
|
* ***Mandatory*** Create session function to generate a new Session Using V1, it can provide just a session Id Using V2, it must provide also the authentication request. The session Id is the id of the presentation definition
|
|
510
638
|
*/
|
|
@@ -512,6 +640,14 @@ declare namespace LocalJSX {
|
|
|
512
640
|
sessionId: string;
|
|
513
641
|
authenticationRequest?: string;
|
|
514
642
|
}>;
|
|
643
|
+
/**
|
|
644
|
+
* _[Optional]_ String to show when credentials not validatedd
|
|
645
|
+
*/
|
|
646
|
+
"credentialsNotValidatedLabel"?: string;
|
|
647
|
+
/**
|
|
648
|
+
* _[Optional]_ String to show "provided credentials not validates" error
|
|
649
|
+
*/
|
|
650
|
+
"credsNotValidatedErrorLabel"?: string;
|
|
515
651
|
/**
|
|
516
652
|
* _[Optional]_ Display a link containing a dynamic link to invoke the wallet if closed
|
|
517
653
|
*/
|
|
@@ -520,10 +656,30 @@ declare namespace LocalJSX {
|
|
|
520
656
|
* ***Mandatory*** Callback fired upon session expired or invalid If not set, session error would not be handled An error containing information will be passed as parameter
|
|
521
657
|
*/
|
|
522
658
|
"errorCallback"?: (error?: Error) => void;
|
|
659
|
+
/**
|
|
660
|
+
* _[Optional]_ String to show "failed login" error
|
|
661
|
+
*/
|
|
662
|
+
"failedLoginErrorLabel"?: string;
|
|
523
663
|
/**
|
|
524
664
|
* _[Optional]_ Boolean to show or not show the gataca brand title
|
|
525
665
|
*/
|
|
526
666
|
"hideBrandTitle"?: boolean;
|
|
667
|
+
/**
|
|
668
|
+
* _[Optional]_ Boolean to show or not show the QR Modal description
|
|
669
|
+
*/
|
|
670
|
+
"hideQrModalDescription"?: boolean;
|
|
671
|
+
/**
|
|
672
|
+
* _[Optional]_ Size of the logo to display in percentage to the total size [0-1]. 0 means no logo will be displayed. Default is the GATACA logo. Recommended size is around 0.33
|
|
673
|
+
*/
|
|
674
|
+
"logoSize"?: number;
|
|
675
|
+
/**
|
|
676
|
+
* _[Optional]_ Logo to display, just if the logo size is greater than 0. No logo is the GATACA logo.
|
|
677
|
+
*/
|
|
678
|
+
"logoSrc"?: string;
|
|
679
|
+
/**
|
|
680
|
+
* _[Optional]_ String to set Modal title color
|
|
681
|
+
*/
|
|
682
|
+
"modalTitleColor"?: string;
|
|
527
683
|
/**
|
|
528
684
|
* GatacaLoginCompleted event, triggered with session data upon login success
|
|
529
685
|
*/
|
|
@@ -536,6 +692,10 @@ declare namespace LocalJSX {
|
|
|
536
692
|
* _[Optional]_ Frequency in seconds to check if the session has been validated
|
|
537
693
|
*/
|
|
538
694
|
"pollingFrequency"?: number;
|
|
695
|
+
/**
|
|
696
|
+
* _[Optional]_ String to show when qr code expired
|
|
697
|
+
*/
|
|
698
|
+
"qrCodeExpiredLabel"?: string;
|
|
539
699
|
/**
|
|
540
700
|
* _[Optional]_ Modifies the Modal description
|
|
541
701
|
*/
|
|
@@ -545,9 +705,17 @@ declare namespace LocalJSX {
|
|
|
545
705
|
*/
|
|
546
706
|
"qrModalTitle"?: string;
|
|
547
707
|
/**
|
|
548
|
-
* ***Mandatory*** Decide if scanning the credential as a verifier to request credentials or as an issuer too issue credentials. Options: connect | certify
|
|
708
|
+
* ***Mandatory just for V1*** Decide if scanning the credential as a verifier to request credentials or as an issuer too issue credentials. Options: connect | certify
|
|
549
709
|
*/
|
|
550
710
|
"qrRole"?: string;
|
|
711
|
+
/**
|
|
712
|
+
* _[Optional]_ String to show "refresh QR" label
|
|
713
|
+
*/
|
|
714
|
+
"refreshQrLabel"?: string;
|
|
715
|
+
/**
|
|
716
|
+
* _[Optional]_ String to show "scan QR" label
|
|
717
|
+
*/
|
|
718
|
+
"scanQrLabel"?: string;
|
|
551
719
|
/**
|
|
552
720
|
* _[Optional]_ Maximum time window to display the session
|
|
553
721
|
*/
|
|
@@ -556,10 +724,22 @@ declare namespace LocalJSX {
|
|
|
556
724
|
* ***Mandatory*** Callback fired upon session correctly verified If not set, session validation wouldn't trigger any action The session data and a possible token will be sent as parameters to the callback
|
|
557
725
|
*/
|
|
558
726
|
"successCallback"?: (data?: any) => void;
|
|
727
|
+
/**
|
|
728
|
+
* _[Optional]_ String to show "successful login" label
|
|
729
|
+
*/
|
|
730
|
+
"successLoginLabel"?: string;
|
|
731
|
+
/**
|
|
732
|
+
* _[Optional]_ String to show "user not scan in time" error
|
|
733
|
+
*/
|
|
734
|
+
"userNotScanInTimeErrorLabel"?: string;
|
|
559
735
|
/**
|
|
560
736
|
* _[Optional]_ Set to use v2 links. The create session must be providing both an authentication request and a session Id
|
|
561
737
|
*/
|
|
562
738
|
"v2"?: boolean;
|
|
739
|
+
/**
|
|
740
|
+
* _[Optional]_ String to show "waiting start session" label
|
|
741
|
+
*/
|
|
742
|
+
"waitingStartSessionLabel"?: string;
|
|
563
743
|
}
|
|
564
744
|
interface GatacaQrdisplay {
|
|
565
745
|
/**
|
|
@@ -666,6 +846,10 @@ declare namespace LocalJSX {
|
|
|
666
846
|
* _[Optional]_ In the case of being a button, modifies its text
|
|
667
847
|
*/
|
|
668
848
|
"buttonText"?: string;
|
|
849
|
+
/**
|
|
850
|
+
* _[Optional]_ String to show "by brand" label
|
|
851
|
+
*/
|
|
852
|
+
"byBrandLabel"?: string;
|
|
669
853
|
/**
|
|
670
854
|
* ***Mandatory just for V1*** Connect/Certify Server where the wallet will send the data
|
|
671
855
|
*/
|
|
@@ -676,6 +860,10 @@ declare namespace LocalJSX {
|
|
|
676
860
|
"checkStatus"?: (
|
|
677
861
|
id?: string
|
|
678
862
|
) => Promise<{ result: RESULT_STATUS1; data?: any }>;
|
|
863
|
+
/**
|
|
864
|
+
* _[Optional]_ String to show "click inside" label
|
|
865
|
+
*/
|
|
866
|
+
"clickInsideBoxLabel"?: string;
|
|
679
867
|
/**
|
|
680
868
|
* ***Mandatory*** Create session function to generate a new Session Using V1, it can provide just a session Id Using V2, it must provide also the authentication request. The session Id is the id of the presentation definition
|
|
681
869
|
*/
|
|
@@ -683,6 +871,14 @@ declare namespace LocalJSX {
|
|
|
683
871
|
sessionId: string;
|
|
684
872
|
authenticationRequest?: string;
|
|
685
873
|
}>;
|
|
874
|
+
/**
|
|
875
|
+
* _[Optional]_ String to show when credentials not validatedd
|
|
876
|
+
*/
|
|
877
|
+
"credentialsNotValidatedLabel"?: string;
|
|
878
|
+
/**
|
|
879
|
+
* _[Optional]_ String to show "provided credentials not validates" error
|
|
880
|
+
*/
|
|
881
|
+
"credsNotValidatedErrorLabel"?: string;
|
|
686
882
|
/**
|
|
687
883
|
* _[Optional]_ Display a link containing a dynamic link to invoke the wallet if closed
|
|
688
884
|
*/
|
|
@@ -691,10 +887,30 @@ declare namespace LocalJSX {
|
|
|
691
887
|
* ***Mandatory*** Callback fired upon session expired or invalid If not set, session error would not be handled An error containing information will be passed as parameter
|
|
692
888
|
*/
|
|
693
889
|
"errorCallback"?: (error?: Error) => void;
|
|
890
|
+
/**
|
|
891
|
+
* _[Optional]_ String to show "failed login" error
|
|
892
|
+
*/
|
|
893
|
+
"failedLoginErrorLabel"?: string;
|
|
694
894
|
/**
|
|
695
895
|
* _[Optional]_ Boolean to show or not show the gataca brand title
|
|
696
896
|
*/
|
|
697
897
|
"hideBrandTitle"?: boolean;
|
|
898
|
+
/**
|
|
899
|
+
* _[Optional]_ Boolean to show or not show the QR Modal description
|
|
900
|
+
*/
|
|
901
|
+
"hideQrModalDescription"?: boolean;
|
|
902
|
+
/**
|
|
903
|
+
* _[Optional]_ Size of the logo to display in percentage to the total size [0-1]. 0 means no logo will be displayed. Default is the GATACA logo. Recommended size is around 0.33
|
|
904
|
+
*/
|
|
905
|
+
"logoSize"?: number;
|
|
906
|
+
/**
|
|
907
|
+
* _[Optional]_ Logo to display, just if the logo size is greater than 0. No logo is the GATACA logo.
|
|
908
|
+
*/
|
|
909
|
+
"logoSrc"?: string;
|
|
910
|
+
/**
|
|
911
|
+
* _[Optional]_ String to set Modal title color
|
|
912
|
+
*/
|
|
913
|
+
"modalTitleColor"?: string;
|
|
698
914
|
/**
|
|
699
915
|
* GatacaLoginCompleted event, triggered with session data upon login success
|
|
700
916
|
*/
|
|
@@ -707,6 +923,10 @@ declare namespace LocalJSX {
|
|
|
707
923
|
* _[Optional]_ Frequency in seconds to check if the session has been validated
|
|
708
924
|
*/
|
|
709
925
|
"pollingFrequency"?: number;
|
|
926
|
+
/**
|
|
927
|
+
* _[Optional]_ String to show when qr code expired
|
|
928
|
+
*/
|
|
929
|
+
"qrCodeExpiredLabel"?: string;
|
|
710
930
|
/**
|
|
711
931
|
* _[Optional]_ Modifies the Modal description
|
|
712
932
|
*/
|
|
@@ -719,6 +939,14 @@ declare namespace LocalJSX {
|
|
|
719
939
|
* ***Mandatory*** Decide if scanning the credential as a verifier to request credentials or as an issuer too issue credentials. Options: connect | certify
|
|
720
940
|
*/
|
|
721
941
|
"qrRole"?: string;
|
|
942
|
+
/**
|
|
943
|
+
* _[Optional]_ String to show "refresh QR" label
|
|
944
|
+
*/
|
|
945
|
+
"refreshQrLabel"?: string;
|
|
946
|
+
/**
|
|
947
|
+
* _[Optional]_ String to show "scan QR" label
|
|
948
|
+
*/
|
|
949
|
+
"scanQrLabel"?: string;
|
|
722
950
|
/**
|
|
723
951
|
* _[Optional]_ Maximum time window to display the session
|
|
724
952
|
*/
|
|
@@ -727,10 +955,22 @@ declare namespace LocalJSX {
|
|
|
727
955
|
* ***Mandatory*** Callback fired upon session correctly verified If not set, session validation wouldn't trigger any action The session data and a possible token will be sent as parameters to the callback
|
|
728
956
|
*/
|
|
729
957
|
"successCallback"?: (data?: any) => void;
|
|
958
|
+
/**
|
|
959
|
+
* _[Optional]_ String to show "successful login" label
|
|
960
|
+
*/
|
|
961
|
+
"successLoginLabel"?: string;
|
|
962
|
+
/**
|
|
963
|
+
* _[Optional]_ String to show "user not scan in time" error
|
|
964
|
+
*/
|
|
965
|
+
"userNotScanInTimeErrorLabel"?: string;
|
|
730
966
|
/**
|
|
731
967
|
* _[Optional]_ Set to use v2 links. The create session must be providing both an authentication request and a session Id
|
|
732
968
|
*/
|
|
733
969
|
"v2"?: boolean;
|
|
970
|
+
/**
|
|
971
|
+
* _[Optional]_ String to show "waiting start session" label
|
|
972
|
+
*/
|
|
973
|
+
"waitingStartSessionLabel"?: string;
|
|
734
974
|
}
|
|
735
975
|
interface GatacaSsibuttonws {
|
|
736
976
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gataca/qr",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.4",
|
|
4
4
|
"description": "Gataca component to display presentation requests in QR",
|
|
5
5
|
"author": "Gataca <it@gataca.io>",
|
|
6
6
|
"licenses": [
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
},
|
|
35
35
|
"license": "MIT",
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@stencil/react-output-target": "^0.
|
|
37
|
+
"@stencil/react-output-target": "^0.4.0",
|
|
38
38
|
"qr-code-styling": "^1.6.0-rc.1"
|
|
39
39
|
}
|
|
40
40
|
}
|