@gataca/qr 3.0.10 → 4.0.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/dist/{esm/qr-code-styling-0eeb38d5.js → cjs/gat-icon-check-c88a30ed.js} +15 -1
- package/dist/cjs/gataca-autoqr.cjs.entry.js +9 -9
- package/dist/cjs/gataca-qr_3.cjs.entry.js +620 -0
- package/dist/cjs/gataca-qrws.cjs.entry.js +39 -47
- package/dist/cjs/gataca-ssibuttonws.cjs.entry.js +61 -0
- package/dist/cjs/gatacaqr.cjs.js +1 -1
- package/dist/cjs/index.cjs.js +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{utils-ef28b844.js → utils-b4e62bc0.js} +1 -1
- package/dist/collection/components/gataca-autoqr/gataca-autoqr.js +13 -13
- package/dist/collection/components/gataca-qr/components/qr/QR.js +3 -3
- package/dist/collection/components/gataca-qr/components/readQR/ReadQR.js +7 -5
- package/dist/collection/components/gataca-qr/components/readQR/components/AnimatedLoader.js +1 -1
- package/dist/collection/components/gataca-qr/components/retryButton/RetryButton.js +8 -8
- package/dist/collection/components/gataca-qr/components/success/Success.js +4 -4
- package/dist/collection/components/gataca-qr/gataca-qr.js +64 -55
- package/dist/collection/components/gataca-qrdisplay/gataca-qrdisplay.js +33 -11
- package/dist/collection/components/gataca-qrws/components/qr/QR.js +2 -2
- package/dist/collection/components/gataca-qrws/components/readQR/ReadQR.js +4 -4
- package/dist/collection/components/gataca-qrws/components/readQR/components/AnimatedLoader.js +1 -1
- package/dist/collection/components/gataca-qrws/components/retryButton/RetryButton.js +8 -8
- package/dist/collection/components/gataca-qrws/components/success/Success.js +4 -4
- package/dist/collection/components/gataca-qrws/gataca-qrws.js +49 -56
- package/dist/collection/components/gataca-ssibutton/gataca-ssibutton.js +224 -54
- package/dist/collection/components/gataca-ssibuttonws/gataca-ssibuttonws.js +12 -12
- package/dist/collection/index.js +2 -2
- package/dist/collection/utils/index.js +1 -1
- package/dist/collection/utils/utils.js +1 -1
- package/dist/components/{gat-icon-alert.js → gat-icon-check.js} +4 -4
- package/dist/components/gataca-autoqr.js +9 -9
- package/dist/components/gataca-qr2.js +56 -63
- package/dist/components/gataca-qrdisplay2.js +11 -6
- package/dist/components/gataca-qrws2.js +35 -42
- package/dist/components/gataca-ssibutton2.js +114 -34
- package/dist/components/gataca-ssibuttonws2.js +6 -6
- package/dist/components/index.js +1 -1
- package/dist/{cjs/qr-code-styling-412bbc7a.js → esm/gat-icon-check-c188cd29.js} +8 -2
- package/dist/esm/gataca-autoqr.entry.js +9 -9
- package/dist/esm/gataca-qr_3.entry.js +614 -0
- package/dist/esm/gataca-qrws.entry.js +36 -44
- package/dist/esm/gataca-ssibuttonws.entry.js +57 -0
- package/dist/esm/gatacaqr.js +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{utils-63e7a33b.js → utils-21ffcc1e.js} +1 -1
- package/dist/gatacaqr/gatacaqr.esm.js +1 -1
- package/dist/gatacaqr/index.esm.js +1 -1
- package/dist/gatacaqr/p-5be73956.js +1 -0
- package/dist/gatacaqr/p-948e7d94.entry.js +1 -0
- package/dist/gatacaqr/p-e94e9be8.entry.js +1 -0
- package/dist/gatacaqr/p-fb41fad9.entry.js +1 -0
- package/dist/types/components/gataca-autoqr/gataca-autoqr.d.ts +7 -7
- package/dist/types/components/gataca-qr/components/qr/QR.d.ts +4 -2
- package/dist/types/components/gataca-qr/components/readQR/ReadQR.d.ts +3 -1
- package/dist/types/components/gataca-qr/components/readQR/components/AnimatedLoader.d.ts +1 -1
- package/dist/types/components/gataca-qr/components/retryButton/RetryButton.d.ts +1 -1
- package/dist/types/components/gataca-qr/components/success/Success.d.ts +1 -1
- package/dist/types/components/gataca-qr/gataca-qr.d.ts +13 -4
- package/dist/types/components/gataca-qrdisplay/gataca-qrdisplay.d.ts +6 -1
- package/dist/types/components/gataca-qrws/components/qr/QR.d.ts +2 -2
- package/dist/types/components/gataca-qrws/components/readQR/ReadQR.d.ts +1 -1
- package/dist/types/components/gataca-qrws/components/readQR/components/AnimatedLoader.d.ts +1 -1
- package/dist/types/components/gataca-qrws/components/retryButton/RetryButton.d.ts +1 -1
- package/dist/types/components/gataca-qrws/components/success/Success.d.ts +1 -1
- package/dist/types/components/gataca-qrws/gataca-qrws.d.ts +4 -4
- package/dist/types/components/gataca-ssibutton/gataca-ssibutton.d.ts +38 -5
- package/dist/types/components/gataca-ssibuttonws/gataca-ssibuttonws.d.ts +3 -3
- package/dist/types/components.d.ts +78 -36
- package/dist/types/index.d.ts +2 -2
- package/dist/types/utils/index.d.ts +1 -1
- package/package.json +30 -7
- package/dist/cjs/gat-icon-alert-0ad19b26.js +0 -14
- package/dist/cjs/gataca-qr_2.cjs.entry.js +0 -295
- package/dist/cjs/gataca-ssibutton_2.cjs.entry.js +0 -317
- package/dist/esm/gat-icon-alert-7b06ef3a.js +0 -9
- package/dist/esm/gataca-qr_2.entry.js +0 -290
- package/dist/esm/gataca-ssibutton_2.entry.js +0 -312
- package/dist/gatacaqr/p-0be4566d.js +0 -1
- package/dist/gatacaqr/p-3500ae66.entry.js +0 -1
- package/dist/gatacaqr/p-68272823.entry.js +0 -1
- package/dist/gatacaqr/p-92a2e6f0.entry.js +0 -1
- package/dist/gatacaqr/p-ea783014.js +0 -1
- /package/dist/gatacaqr/{p-2cd7b062.js → p-bce7e590.js} +0 -0
|
@@ -8,14 +8,14 @@ import { HTMLStencilElement, JSXBase } from "./stencil-public-runtime";
|
|
|
8
8
|
import { DrawType } from "qr-code-styling";
|
|
9
9
|
import { RESULT_STATUS } from "./utils";
|
|
10
10
|
import { RESULT_STATUS as RESULT_STATUS1, WSResponse } from "./utils/utils";
|
|
11
|
+
import { qrStyle } from "./components/gataca-qr/gataca-qr";
|
|
12
|
+
import { qrStyle as qrStyle1 } from "./components/gataca-qr/gataca-qr";
|
|
11
13
|
export namespace Components {
|
|
12
14
|
interface GatacaAutoqr {
|
|
13
15
|
/**
|
|
14
16
|
* ___Just for polling flavour___ ***Mandatory*** Check status function to query the current status of the session The function must query a client endpoint to check the status. That endpoint must return an error if the session has expired.
|
|
15
17
|
*/
|
|
16
|
-
"checkStatus"?: (
|
|
17
|
-
id?: string
|
|
18
|
-
) => Promise<{ result: RESULT_STATUS; data?: any }>;
|
|
18
|
+
"checkStatus"?: (id?: string) => Promise<{result: RESULT_STATUS; data?: any}>;
|
|
19
19
|
/**
|
|
20
20
|
* ***Mandatory*** ID of the QR configuration to display
|
|
21
21
|
*/
|
|
@@ -28,9 +28,9 @@ export namespace Components {
|
|
|
28
28
|
* ***Mandatory*** Create session function to generate a new Session Using v="3", it can provide just a session Id Using another version, it must provide also the authentication request. The session Id is the id of the presentation definition
|
|
29
29
|
*/
|
|
30
30
|
"createSession"?: () => Promise<{
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
31
|
+
sessionId: string;
|
|
32
|
+
authenticationRequest?: string;
|
|
33
|
+
}>;
|
|
34
34
|
/**
|
|
35
35
|
* ___Just for polling flavour___ ***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
|
|
36
36
|
*/
|
|
@@ -76,9 +76,7 @@ export namespace Components {
|
|
|
76
76
|
/**
|
|
77
77
|
* ***Mandatory*** Check status function to query the current status of the session The function must query a client endpoint to check the status. That endpoint must return an error if the session has expired.
|
|
78
78
|
*/
|
|
79
|
-
"checkStatus"?: (
|
|
80
|
-
id?: string
|
|
81
|
-
) => Promise<{ result: RESULT_STATUS1; data?: any }>;
|
|
79
|
+
"checkStatus"?: (id?: string) => Promise<{result: RESULT_STATUS1; data?: any}>;
|
|
82
80
|
/**
|
|
83
81
|
* _[Optional]_ String to show "click inside" label
|
|
84
82
|
*/
|
|
@@ -87,9 +85,9 @@ export namespace Components {
|
|
|
87
85
|
* ***Mandatory*** Create session function to generate a new Session Using v="3", it can provide just a session Id Using another version, it must provide also the authentication request. The session Id is the id of the presentation definition
|
|
88
86
|
*/
|
|
89
87
|
"createSession"?: () => Promise<{
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
88
|
+
sessionId: string;
|
|
89
|
+
authenticationRequest?: string;
|
|
90
|
+
}>;
|
|
93
91
|
/**
|
|
94
92
|
* _[Optional]_ String to show when credentials not validatedd
|
|
95
93
|
*/
|
|
@@ -178,6 +176,10 @@ export namespace Components {
|
|
|
178
176
|
* _[Optional]_ Size of QR Displayed
|
|
179
177
|
*/
|
|
180
178
|
"qrSize"?: number;
|
|
179
|
+
/**
|
|
180
|
+
* _[Optional]_ Adjust the color styles of the QR
|
|
181
|
+
*/
|
|
182
|
+
"qrStyle"?: qrStyle;
|
|
181
183
|
/**
|
|
182
184
|
* _[Optional]_ Sets the qr type. It can be "svg" or "canvas". "svg" by default.
|
|
183
185
|
*/
|
|
@@ -228,6 +230,10 @@ export namespace Components {
|
|
|
228
230
|
"waitingStartSessionLabel"?: string;
|
|
229
231
|
}
|
|
230
232
|
interface GatacaQrdisplay {
|
|
233
|
+
/**
|
|
234
|
+
* _[Optional]_ QR Color.
|
|
235
|
+
*/
|
|
236
|
+
"bgColor"?: string;
|
|
231
237
|
/**
|
|
232
238
|
* _[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
|
|
233
239
|
*/
|
|
@@ -432,6 +438,10 @@ export namespace Components {
|
|
|
432
438
|
* _[Optional]_ Set to start polling when button or QR is displayed. By default it is true
|
|
433
439
|
*/
|
|
434
440
|
"autostart": boolean;
|
|
441
|
+
/**
|
|
442
|
+
* _[Optional]_ In the case of enabling DCAPI button, allows to configure the text displayed
|
|
443
|
+
*/
|
|
444
|
+
"buttonDCAPIText"?: string;
|
|
435
445
|
/**
|
|
436
446
|
* _[Optional]_ In the case of being a button, modifies its text
|
|
437
447
|
*/
|
|
@@ -451,9 +461,7 @@ export namespace Components {
|
|
|
451
461
|
/**
|
|
452
462
|
* ***Mandatory*** Check status function to query the current status of the session The function must query a client endpoint to check the status. That endpoint must return an error if the session has expired.
|
|
453
463
|
*/
|
|
454
|
-
"checkStatus"?: (
|
|
455
|
-
id?: string
|
|
456
|
-
) => Promise<{ result: RESULT_STATUS1; data?: any }>;
|
|
464
|
+
"checkStatus"?: (id?: string) => Promise<{result: RESULT_STATUS1; data?: any}>;
|
|
457
465
|
/**
|
|
458
466
|
* _[Optional]_ String to show "click inside" label
|
|
459
467
|
*/
|
|
@@ -462,9 +470,9 @@ export namespace Components {
|
|
|
462
470
|
* ***Mandatory*** Create session function to generate a new Session Using v="3", it can provide just a session Id Using another version, it must provide also the authentication request. The session Id is the id of the presentation definition
|
|
463
471
|
*/
|
|
464
472
|
"createSession"?: () => Promise<{
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
473
|
+
sessionId: string;
|
|
474
|
+
authenticationRequest?: string;
|
|
475
|
+
}>;
|
|
468
476
|
/**
|
|
469
477
|
* _[Optional]_ String to show when credentials not validatedd
|
|
470
478
|
*/
|
|
@@ -477,6 +485,10 @@ export namespace Components {
|
|
|
477
485
|
* _[Optional]_ Display a link containing a dynamic link to invoke the wallet if closed
|
|
478
486
|
*/
|
|
479
487
|
"dynamicLink"?: boolean;
|
|
488
|
+
/**
|
|
489
|
+
* _[Optional]_ String to show "waiting start session" label
|
|
490
|
+
*/
|
|
491
|
+
"enableDcApi"?: boolean;
|
|
480
492
|
/**
|
|
481
493
|
* ***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
|
|
482
494
|
*/
|
|
@@ -485,6 +497,10 @@ export namespace Components {
|
|
|
485
497
|
* _[Optional]_ String to show "failed login" error
|
|
486
498
|
*/
|
|
487
499
|
"failedLoginErrorLabel"?: string;
|
|
500
|
+
/**
|
|
501
|
+
* ***Mandatory if DC API*** Sends the API response
|
|
502
|
+
*/
|
|
503
|
+
"fillSession"?: (request: any, sessionData?: any) => Promise<{result: RESULT_STATUS1; data?: any}>;
|
|
488
504
|
/**
|
|
489
505
|
* Retrieve manually the session data on a successful login
|
|
490
506
|
*/
|
|
@@ -533,6 +549,10 @@ export namespace Components {
|
|
|
533
549
|
* ***Mandatory*** Decide if scanning the credential as a verifier to request credentials or as an issuer too issue credentials. Options: connect | certify
|
|
534
550
|
*/
|
|
535
551
|
"qrRole": string;
|
|
552
|
+
/**
|
|
553
|
+
* _[Optional]_ Adjust the color styles of the QR
|
|
554
|
+
*/
|
|
555
|
+
"qrStyle"?: qrStyle1;
|
|
536
556
|
/**
|
|
537
557
|
* _[Optional]_ Sets the qr type. It can be "svg" or "canvas". "svg" by default.
|
|
538
558
|
*/
|
|
@@ -724,9 +744,7 @@ declare namespace LocalJSX {
|
|
|
724
744
|
/**
|
|
725
745
|
* ___Just for polling flavour___ ***Mandatory*** Check status function to query the current status of the session The function must query a client endpoint to check the status. That endpoint must return an error if the session has expired.
|
|
726
746
|
*/
|
|
727
|
-
"checkStatus"?: (
|
|
728
|
-
id?: string
|
|
729
|
-
) => Promise<{ result: RESULT_STATUS; data?: any }>;
|
|
747
|
+
"checkStatus"?: (id?: string) => Promise<{result: RESULT_STATUS; data?: any}>;
|
|
730
748
|
/**
|
|
731
749
|
* ***Mandatory*** ID of the QR configuration to display
|
|
732
750
|
*/
|
|
@@ -739,9 +757,9 @@ declare namespace LocalJSX {
|
|
|
739
757
|
* ***Mandatory*** Create session function to generate a new Session Using v="3", it can provide just a session Id Using another version, it must provide also the authentication request. The session Id is the id of the presentation definition
|
|
740
758
|
*/
|
|
741
759
|
"createSession"?: () => Promise<{
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
760
|
+
sessionId: string;
|
|
761
|
+
authenticationRequest?: string;
|
|
762
|
+
}>;
|
|
745
763
|
/**
|
|
746
764
|
* ___Just for polling flavour___ ***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
|
|
747
765
|
*/
|
|
@@ -791,9 +809,7 @@ declare namespace LocalJSX {
|
|
|
791
809
|
/**
|
|
792
810
|
* ***Mandatory*** Check status function to query the current status of the session The function must query a client endpoint to check the status. That endpoint must return an error if the session has expired.
|
|
793
811
|
*/
|
|
794
|
-
"checkStatus"?: (
|
|
795
|
-
id?: string
|
|
796
|
-
) => Promise<{ result: RESULT_STATUS1; data?: any }>;
|
|
812
|
+
"checkStatus"?: (id?: string) => Promise<{result: RESULT_STATUS1; data?: any}>;
|
|
797
813
|
/**
|
|
798
814
|
* _[Optional]_ String to show "click inside" label
|
|
799
815
|
*/
|
|
@@ -802,9 +818,9 @@ declare namespace LocalJSX {
|
|
|
802
818
|
* ***Mandatory*** Create session function to generate a new Session Using v="3", it can provide just a session Id Using another version, it must provide also the authentication request. The session Id is the id of the presentation definition
|
|
803
819
|
*/
|
|
804
820
|
"createSession"?: () => Promise<{
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
821
|
+
sessionId: string;
|
|
822
|
+
authenticationRequest?: string;
|
|
823
|
+
}>;
|
|
808
824
|
/**
|
|
809
825
|
* _[Optional]_ String to show when credentials not validatedd
|
|
810
826
|
*/
|
|
@@ -893,6 +909,10 @@ declare namespace LocalJSX {
|
|
|
893
909
|
* _[Optional]_ Size of QR Displayed
|
|
894
910
|
*/
|
|
895
911
|
"qrSize"?: number;
|
|
912
|
+
/**
|
|
913
|
+
* _[Optional]_ Adjust the color styles of the QR
|
|
914
|
+
*/
|
|
915
|
+
"qrStyle"?: qrStyle;
|
|
896
916
|
/**
|
|
897
917
|
* _[Optional]_ Sets the qr type. It can be "svg" or "canvas". "svg" by default.
|
|
898
918
|
*/
|
|
@@ -939,6 +959,10 @@ declare namespace LocalJSX {
|
|
|
939
959
|
"waitingStartSessionLabel"?: string;
|
|
940
960
|
}
|
|
941
961
|
interface GatacaQrdisplay {
|
|
962
|
+
/**
|
|
963
|
+
* _[Optional]_ QR Color.
|
|
964
|
+
*/
|
|
965
|
+
"bgColor"?: string;
|
|
942
966
|
/**
|
|
943
967
|
* _[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
|
|
944
968
|
*/
|
|
@@ -1139,6 +1163,10 @@ declare namespace LocalJSX {
|
|
|
1139
1163
|
* _[Optional]_ Set to start polling when button or QR is displayed. By default it is true
|
|
1140
1164
|
*/
|
|
1141
1165
|
"autostart"?: boolean;
|
|
1166
|
+
/**
|
|
1167
|
+
* _[Optional]_ In the case of enabling DCAPI button, allows to configure the text displayed
|
|
1168
|
+
*/
|
|
1169
|
+
"buttonDCAPIText"?: string;
|
|
1142
1170
|
/**
|
|
1143
1171
|
* _[Optional]_ In the case of being a button, modifies its text
|
|
1144
1172
|
*/
|
|
@@ -1158,9 +1186,7 @@ declare namespace LocalJSX {
|
|
|
1158
1186
|
/**
|
|
1159
1187
|
* ***Mandatory*** Check status function to query the current status of the session The function must query a client endpoint to check the status. That endpoint must return an error if the session has expired.
|
|
1160
1188
|
*/
|
|
1161
|
-
"checkStatus"?: (
|
|
1162
|
-
id?: string
|
|
1163
|
-
) => Promise<{ result: RESULT_STATUS1; data?: any }>;
|
|
1189
|
+
"checkStatus"?: (id?: string) => Promise<{result: RESULT_STATUS1; data?: any}>;
|
|
1164
1190
|
/**
|
|
1165
1191
|
* _[Optional]_ String to show "click inside" label
|
|
1166
1192
|
*/
|
|
@@ -1169,9 +1195,9 @@ declare namespace LocalJSX {
|
|
|
1169
1195
|
* ***Mandatory*** Create session function to generate a new Session Using v="3", it can provide just a session Id Using another version, it must provide also the authentication request. The session Id is the id of the presentation definition
|
|
1170
1196
|
*/
|
|
1171
1197
|
"createSession"?: () => Promise<{
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
|
|
1198
|
+
sessionId: string;
|
|
1199
|
+
authenticationRequest?: string;
|
|
1200
|
+
}>;
|
|
1175
1201
|
/**
|
|
1176
1202
|
* _[Optional]_ String to show when credentials not validatedd
|
|
1177
1203
|
*/
|
|
@@ -1184,6 +1210,10 @@ declare namespace LocalJSX {
|
|
|
1184
1210
|
* _[Optional]_ Display a link containing a dynamic link to invoke the wallet if closed
|
|
1185
1211
|
*/
|
|
1186
1212
|
"dynamicLink"?: boolean;
|
|
1213
|
+
/**
|
|
1214
|
+
* _[Optional]_ String to show "waiting start session" label
|
|
1215
|
+
*/
|
|
1216
|
+
"enableDcApi"?: boolean;
|
|
1187
1217
|
/**
|
|
1188
1218
|
* ***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
|
|
1189
1219
|
*/
|
|
@@ -1192,6 +1222,10 @@ declare namespace LocalJSX {
|
|
|
1192
1222
|
* _[Optional]_ String to show "failed login" error
|
|
1193
1223
|
*/
|
|
1194
1224
|
"failedLoginErrorLabel"?: string;
|
|
1225
|
+
/**
|
|
1226
|
+
* ***Mandatory if DC API*** Sends the API response
|
|
1227
|
+
*/
|
|
1228
|
+
"fillSession"?: (request: any, sessionData?: any) => Promise<{result: RESULT_STATUS1; data?: any}>;
|
|
1195
1229
|
/**
|
|
1196
1230
|
* _[Optional]_ Function that runs every time the loading state changes while checking if the App is installed. Only on mobile with v3.
|
|
1197
1231
|
*/
|
|
@@ -1216,6 +1250,10 @@ declare namespace LocalJSX {
|
|
|
1216
1250
|
* _[Optional]_ String to set Modal title color
|
|
1217
1251
|
*/
|
|
1218
1252
|
"modalTitleColor"?: string;
|
|
1253
|
+
/**
|
|
1254
|
+
* GatacaLoginCompleted event, triggered with session data upon login success
|
|
1255
|
+
*/
|
|
1256
|
+
"onGatacaButtonPushed"?: (event: GatacaSsibuttonCustomEvent<any>) => void;
|
|
1219
1257
|
/**
|
|
1220
1258
|
* GatacaLoginCompleted event, triggered with session data upon login success
|
|
1221
1259
|
*/
|
|
@@ -1244,6 +1282,10 @@ declare namespace LocalJSX {
|
|
|
1244
1282
|
* ***Mandatory*** Decide if scanning the credential as a verifier to request credentials or as an issuer too issue credentials. Options: connect | certify
|
|
1245
1283
|
*/
|
|
1246
1284
|
"qrRole"?: string;
|
|
1285
|
+
/**
|
|
1286
|
+
* _[Optional]_ Adjust the color styles of the QR
|
|
1287
|
+
*/
|
|
1288
|
+
"qrStyle"?: qrStyle1;
|
|
1247
1289
|
/**
|
|
1248
1290
|
* _[Optional]_ Sets the qr type. It can be "svg" or "canvas". "svg" by default.
|
|
1249
1291
|
*/
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from
|
|
2
|
-
export * from
|
|
1
|
+
export * from './components';
|
|
2
|
+
export * from './utils';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from
|
|
1
|
+
export * from './utils';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gataca/qr",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "4.0.0",
|
|
4
4
|
"description": "Gataca component to display presentation requests in QR",
|
|
5
5
|
"author": "Gataca <it@gataca.io>",
|
|
6
6
|
"licenses": [
|
|
@@ -21,25 +21,48 @@
|
|
|
21
21
|
"loader/"
|
|
22
22
|
],
|
|
23
23
|
"scripts": {
|
|
24
|
+
"audit": "./audit.sh",
|
|
24
25
|
"build": "stencil build --docs",
|
|
26
|
+
"format": "prettier --write 'src/**/*.{ts,tsx,js,jsx}'",
|
|
27
|
+
"generate": "stencil generate",
|
|
28
|
+
"licenses": "npx license-checker --direct --relativeLicensePath > licenses.txt && npx license-checker --direct --summary > licenses-summary.txt",
|
|
25
29
|
"start": "stencil build --dev --watch --serve",
|
|
26
30
|
"test": "stencil test --spec --e2e",
|
|
27
31
|
"test.watch": "stencil test --spec --e2e --watchAll",
|
|
28
|
-
"
|
|
32
|
+
"typescript": "tsc --noEmit --composite false"
|
|
29
33
|
},
|
|
30
34
|
"devDependencies": {
|
|
31
35
|
"@stencil/core": "^2.9.0",
|
|
32
36
|
"@stencil/sass": "^1.4.0",
|
|
33
37
|
"@types/jest": "^27.0.3",
|
|
34
38
|
"@types/react": "^18.2.67",
|
|
35
|
-
"jest": "^
|
|
36
|
-
"jest-cli": "^
|
|
37
|
-
"
|
|
38
|
-
"
|
|
39
|
+
"jest": "^29.7.0",
|
|
40
|
+
"jest-cli": "^29.7.0",
|
|
41
|
+
"prettier": "^3.5.3",
|
|
42
|
+
"puppeteer": "^24.4.0",
|
|
43
|
+
"rollup-plugin-node-polyfills": "^0.2.1",
|
|
44
|
+
"typescript": "^5.8.3"
|
|
39
45
|
},
|
|
40
46
|
"license": "MIT",
|
|
41
47
|
"dependencies": {
|
|
42
|
-
"@stencil/react-output-target": "^0.
|
|
48
|
+
"@stencil/react-output-target": "^0.5.3",
|
|
49
|
+
"pre-commit": "^1.2.2",
|
|
43
50
|
"qr-code-styling": "1.6.0-rc.1"
|
|
51
|
+
},
|
|
52
|
+
"pre-commit": [
|
|
53
|
+
"format",
|
|
54
|
+
"typescript",
|
|
55
|
+
"audit",
|
|
56
|
+
"licenses"
|
|
57
|
+
],
|
|
58
|
+
"resolutions": {
|
|
59
|
+
"micromatch": "^4.0.8",
|
|
60
|
+
"cross-spawn": "^7.0.5",
|
|
61
|
+
"@babel/helpers": "^7.26.10"
|
|
62
|
+
},
|
|
63
|
+
"overrides": {
|
|
64
|
+
"micromatch": "^4.0.8",
|
|
65
|
+
"cross-spawn": "^7.0.5",
|
|
66
|
+
"@babel/helpers": "^7.26.10"
|
|
44
67
|
}
|
|
45
68
|
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
const logoGatacaSvg = 'data:image/svg+xml;base64,PHN2ZyB2ZXJzaW9uPSIxLjIiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgdmlld0JveD0iMCAwIDc2IDcxIiB3aWR0aD0iNzEiIGhlaWdodD0iNjYiPgoJPHRpdGxlPlZlY3RvciAoMyktc3ZnPC90aXRsZT4KCTxzdHlsZT4KCQkuczAgeyBmaWxsOiAjNDc0NWI3IH0gCgk8L3N0eWxlPgoJPHBhdGggaWQ9IkxheWVyIiBmaWxs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