@gataca/qr 2.0.1 → 2.0.3

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.
Files changed (29) hide show
  1. package/dist/cjs/gataca-autoqr_6.cjs.entry.js +32 -18
  2. package/dist/cjs/gatacaqr.cjs.js +2 -2
  3. package/dist/cjs/{index-0b7a1532.js → index-4be0cdca.js} +25 -0
  4. package/dist/cjs/loader.cjs.js +2 -2
  5. package/dist/collection/assets/images/logo_gataca.svg +1 -1
  6. package/dist/collection/components/gataca-autoqr/gataca-autoqr.js +0 -2
  7. package/dist/collection/components/gataca-qr/gataca-qr.css +19 -9
  8. package/dist/collection/components/gataca-qr/gataca-qr.js +281 -10
  9. package/dist/collection/components/gataca-qrdisplay/gataca-qrdisplay.js +2 -2
  10. package/dist/collection/components/gataca-qrws/gataca-qrws.css +2 -2
  11. package/dist/collection/components/gataca-ssibutton/gataca-ssibutton.js +285 -1
  12. package/dist/components/gataca-autoqr.js +0 -2
  13. package/dist/components/gataca-qr2.js +27 -11
  14. package/dist/components/gataca-qrdisplay2.js +2 -2
  15. package/dist/components/gataca-qrws2.js +1 -1
  16. package/dist/components/gataca-ssibutton2.js +31 -1
  17. package/dist/esm/gataca-autoqr_6.entry.js +32 -18
  18. package/dist/esm/gatacaqr.js +2 -2
  19. package/dist/esm/{index-19eef502.js → index-80311733.js} +25 -0
  20. package/dist/esm/loader.js +2 -2
  21. package/dist/gatacaqr/gatacaqr.esm.js +1 -1
  22. package/dist/gatacaqr/p-a5648391.js +2 -0
  23. package/dist/gatacaqr/p-b37057bb.entry.js +1 -0
  24. package/dist/types/components/gataca-qr/gataca-qr.d.ts +75 -0
  25. package/dist/types/components/gataca-ssibutton/gataca-ssibutton.d.ts +75 -0
  26. package/dist/types/components.d.ts +240 -0
  27. package/package.json +1 -1
  28. package/dist/gatacaqr/p-4807b345.entry.js +0 -1
  29. package/dist/gatacaqr/p-a6f85341.js +0 -2
@@ -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
  */
@@ -113,6 +153,14 @@ export namespace Components {
113
153
  * ***Mandatory*** 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
  */
@@ -548,6 +708,14 @@ declare namespace LocalJSX {
548
708
  * ***Mandatory*** 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.1",
3
+ "version": "2.0.3",
4
4
  "description": "Gataca component to display presentation requests in QR",
5
5
  "author": "Gataca <it@gataca.io>",
6
6
  "licenses": [