aesirx-analytics 2.1.0 → 2.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -4
- package/dist/{Consent-OBULXA4M.js → Consent-HSP2HBSL.js} +1996 -384
- package/dist/analytics.js +3614 -483
- package/dist/{chunk-RN267RCX.js → chunk-ZYCOHH2R.js} +34 -17
- package/dist/index.js +40 -23
- package/package.json +25 -18
@@ -144,6 +144,7 @@ function warn() {
|
|
144
144
|
}
|
145
145
|
if (typeof args[0] === "string")
|
146
146
|
args[0] = `react-i18next:: ${args[0]}`;
|
147
|
+
console.warn(...args);
|
147
148
|
}
|
148
149
|
}
|
149
150
|
var alreadyWarned = {};
|
@@ -415,7 +416,7 @@ var common_default = {
|
|
415
416
|
txt_hide_details: "Skjul detaljer",
|
416
417
|
txt_no_collect: "Vi indsamler ingen personlige data, kun brugerindsigt.",
|
417
418
|
txt_shield_of_privacy: "Shield of Privacy",
|
418
|
-
txt_you_can_revoke: "
|
419
|
+
txt_you_can_revoke: "Tilbagekald dit samtykke til databrug, n\xE5r du \xF8nsker det.",
|
419
420
|
txt_go_to: "G\xE5 til",
|
420
421
|
txt_link: "link",
|
421
422
|
txt_for_more_information: "for mere information.",
|
@@ -427,7 +428,9 @@ var common_default = {
|
|
427
428
|
txt_please_sign: "Skriv venligst beskeden p\xE5 din tegnebog to gange og vent p\xE5, at den bliver gemt.",
|
428
429
|
txt_saving: "Gemmer...",
|
429
430
|
txt_please_connect_your_wallet: "Forbind venligst til din tegnebog",
|
430
|
-
txt_connecting: "Opretter forbindelse"
|
431
|
+
txt_connecting: "Opretter forbindelse",
|
432
|
+
txt_here: "HER",
|
433
|
+
txt_visit: "Bes\xF8g"
|
431
434
|
};
|
432
435
|
|
433
436
|
// src/translations/en/common.json
|
@@ -463,7 +466,7 @@ var common_default2 = {
|
|
463
466
|
txt_hide_details: "Hide details",
|
464
467
|
txt_no_collect: "We do not collect any personal data, only user insights.",
|
465
468
|
txt_shield_of_privacy: "Shield of Privacy",
|
466
|
-
txt_you_can_revoke: "
|
469
|
+
txt_you_can_revoke: "Revoke your consent for data use whenever you wish.",
|
467
470
|
txt_go_to: "Go to",
|
468
471
|
txt_link: "link",
|
469
472
|
txt_for_more_information: "for more information.",
|
@@ -471,11 +474,13 @@ var common_default2 = {
|
|
471
474
|
txt_revoke_consent: "Revoke Consent",
|
472
475
|
txt_yes_i_consent: "Yes, I consent",
|
473
476
|
txt_reject_consent: "Reject Consent",
|
474
|
-
txt_please_connect: "Please connect your
|
477
|
+
txt_please_connect: "Please connect your Web3 wallet",
|
475
478
|
txt_please_sign: "Please sign the message on your wallet twice and wait for it to be saved.",
|
476
479
|
txt_saving: "Saving...",
|
477
480
|
txt_please_connect_your_wallet: "Please connect to your wallet",
|
478
|
-
txt_connecting: "Connecting"
|
481
|
+
txt_connecting: "Connecting",
|
482
|
+
txt_here: "HERE",
|
483
|
+
txt_visit: "Visit"
|
479
484
|
};
|
480
485
|
|
481
486
|
// src/translations/es/common.json
|
@@ -511,7 +516,7 @@ var common_default3 = {
|
|
511
516
|
txt_hide_details: "Ocultar detalles",
|
512
517
|
txt_no_collect: "No recopilamos ning\xFAn dato personal, solo informaci\xF3n del usuario",
|
513
518
|
txt_shield_of_privacy: "Shield of Privacy",
|
514
|
-
txt_you_can_revoke: "
|
519
|
+
txt_you_can_revoke: "Revocar tu consentimiento al uso de datos en cualquier momento.",
|
515
520
|
txt_go_to: "Ir a",
|
516
521
|
txt_link: "enlace",
|
517
522
|
txt_for_more_information: "para m\xE1s informaci\xF3n.",
|
@@ -523,7 +528,9 @@ var common_default3 = {
|
|
523
528
|
txt_please_sign: "Por favor, firme el mensaje en su billetera dos veces y espere a que se guarde.",
|
524
529
|
txt_saving: "Guardando...",
|
525
530
|
txt_please_connect_your_wallet: "Con\xE9ctese a su billetera",
|
526
|
-
txt_connecting: "Conectando"
|
531
|
+
txt_connecting: "Conectando",
|
532
|
+
txt_here: "AQU\xCD",
|
533
|
+
txt_visit: "Visita"
|
527
534
|
};
|
528
535
|
|
529
536
|
// src/translations/hr/common.json
|
@@ -559,7 +566,7 @@ var common_default4 = {
|
|
559
566
|
txt_hide_details: "Sakrij detalje",
|
560
567
|
txt_no_collect: "Ne prikupljamo nikakve osobne podatke, samo korisni\u010Dke uvide.",
|
561
568
|
txt_shield_of_privacy: "Shield of Privacy",
|
562
|
-
txt_you_can_revoke: "
|
569
|
+
txt_you_can_revoke: "Opozovite svoj pristanak za kori\u0161tenje podataka kad god to \u017Eelite.",
|
563
570
|
txt_go_to: "Idi na",
|
564
571
|
txt_link: "link",
|
565
572
|
txt_for_more_information: "za vi\u0161e informacija.",
|
@@ -571,7 +578,9 @@ var common_default4 = {
|
|
571
578
|
txt_please_sign: "Molimo vas da dvaput potpi\u0161ete poruku na svom nov\u010Daniku i pri\u010Dekate da se spremi.",
|
572
579
|
txt_saving: "Spremanje...",
|
573
580
|
txt_please_connect_your_wallet: "Pove\u017Eite se sa svojim nov\u010Danikom",
|
574
|
-
txt_connecting: "Povezivanje"
|
581
|
+
txt_connecting: "Povezivanje",
|
582
|
+
txt_here: "OVDJE",
|
583
|
+
txt_visit: "Posjetiti"
|
575
584
|
};
|
576
585
|
|
577
586
|
// src/translations/th/common.json
|
@@ -607,7 +616,7 @@ var common_default5 = {
|
|
607
616
|
txt_hide_details: "\u0E0B\u0E48\u0E2D\u0E19\u0E23\u0E32\u0E22\u0E25\u0E30\u0E40\u0E2D\u0E35\u0E22\u0E14",
|
608
617
|
txt_no_collect: "\u0E40\u0E23\u0E32\u0E44\u0E21\u0E48\u0E23\u0E27\u0E1A\u0E23\u0E27\u0E21\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E2A\u0E48\u0E27\u0E19\u0E1A\u0E38\u0E04\u0E04\u0E25\u0E43\u0E14\u0E46 \u0E40\u0E01\u0E47\u0E1A\u0E40\u0E09\u0E1E\u0E32\u0E30\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E40\u0E0A\u0E34\u0E07\u0E25\u0E36\u0E01\u0E02\u0E2D\u0E07\u0E1C\u0E39\u0E49\u0E43\u0E0A\u0E49",
|
609
618
|
txt_shield_of_privacy: "Shield of Privacy",
|
610
|
-
txt_you_can_revoke: "\
|
619
|
+
txt_you_can_revoke: "\u0E40\u0E1E\u0E34\u0E01\u0E16\u0E2D\u0E19\u0E04\u0E27\u0E32\u0E21\u0E22\u0E34\u0E19\u0E22\u0E2D\u0E21\u0E43\u0E19\u0E01\u0E32\u0E23\u0E43\u0E0A\u0E49\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E17\u0E38\u0E01\u0E04\u0E23\u0E31\u0E49\u0E07\u0E17\u0E35\u0E48\u0E04\u0E38\u0E13\u0E15\u0E49\u0E2D\u0E07\u0E01\u0E32\u0E23",
|
611
620
|
txt_go_to: "\u0E44\u0E1B\u0E17\u0E35\u0E48",
|
612
621
|
txt_link: "\u0E25\u0E34\u0E07\u0E01\u0E4C",
|
613
622
|
txt_for_more_information: "\u0E2A\u0E33\u0E2B\u0E23\u0E31\u0E1A\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E40\u0E1E\u0E34\u0E48\u0E21\u0E40\u0E15\u0E34\u0E21",
|
@@ -619,7 +628,9 @@ var common_default5 = {
|
|
619
628
|
txt_please_sign: "\u0E01\u0E23\u0E38\u0E13\u0E32\u0E40\u0E0B\u0E47\u0E19\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E1A\u0E19\u0E01\u0E23\u0E30\u0E40\u0E1B\u0E4B\u0E32\u0E40\u0E07\u0E34\u0E19\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13\u0E2A\u0E2D\u0E07\u0E04\u0E23\u0E31\u0E49\u0E07\u0E41\u0E25\u0E30\u0E23\u0E2D\u0E43\u0E2B\u0E49\u0E1A\u0E31\u0E19\u0E17\u0E36\u0E01",
|
620
629
|
txt_saving: "\u0E01\u0E33\u0E25\u0E31\u0E07\u0E1A\u0E31\u0E19\u0E17\u0E36\u0E01...",
|
621
630
|
txt_Please_connect_your_wallet: "\u0E42\u0E1B\u0E23\u0E14\u0E40\u0E0A\u0E37\u0E48\u0E2D\u0E21\u0E15\u0E48\u0E2D\u0E01\u0E31\u0E1A\u0E01\u0E23\u0E30\u0E40\u0E1B\u0E4B\u0E32\u0E40\u0E07\u0E34\u0E19\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13",
|
622
|
-
txt_connecting: "\u0E01\u0E33\u0E25\u0E31\u0E07\u0E40\u0E0A\u0E37\u0E48\u0E2D\u0E21\u0E15\u0E48\u0E2D"
|
631
|
+
txt_connecting: "\u0E01\u0E33\u0E25\u0E31\u0E07\u0E40\u0E0A\u0E37\u0E48\u0E2D\u0E21\u0E15\u0E48\u0E2D",
|
632
|
+
txt_here: "\u0E17\u0E35\u0E48\u0E19\u0E35\u0E48",
|
633
|
+
txt_visit: "\u0E40\u0E22\u0E35\u0E48\u0E22\u0E21"
|
623
634
|
};
|
624
635
|
|
625
636
|
// src/translations/ua/common.json
|
@@ -655,7 +666,7 @@ var common_default6 = {
|
|
655
666
|
txt_hide_details: "\u041F\u0440\u0438\u0445\u043E\u0432\u0430\u0442\u0438 \u0434\u0435\u0442\u0430\u043B\u0456",
|
656
667
|
txt_no_collect: "\u041C\u0438 \u043D\u0435 \u0437\u0431\u0438\u0440\u0430\u0454\u043C\u043E \u043E\u0441\u043E\u0431\u0438\u0441\u0442\u0456 \u0434\u0430\u043D\u0456, \u043B\u0438\u0448\u0435 \u0441\u0442\u0430\u0442\u0438\u0441\u0442\u0438\u043A\u0443 \u043A\u043E\u0440\u0438\u0441\u0442\u0443\u0432\u0430\u0447\u0456\u0432.",
|
657
668
|
txt_shield_of_privacy: "Shield of Privacy",
|
658
|
-
txt_you_can_revoke: "\u0412\
|
669
|
+
txt_you_can_revoke: "\u0412\u0456\u0434\u043A\u043B\u0438\u043A\u0430\u0439\u0442\u0435 \u0441\u0432\u043E\u044E \u0437\u0433\u043E\u0434\u0443 \u043D\u0430 \u0432\u0438\u043A\u043E\u0440\u0438\u0441\u0442\u0430\u043D\u043D\u044F \u0434\u0430\u043D\u0438\u0445, \u043A\u043E\u043B\u0438 \u0437\u0430\u0431\u0430\u0436\u0430\u0454\u0442\u0435.",
|
659
670
|
txt_go_to: "\u041F\u0435\u0440\u0435\u0439\u0442\u0438",
|
660
671
|
txt_link: "\u043F\u043E\u0441\u0438\u043B\u0430\u043D\u043D\u044F",
|
661
672
|
txt_for_more_information: "\u0434\u043B\u044F \u043E\u0442\u0440\u0438\u043C\u0430\u043D\u043D\u044F \u0434\u043E\u0434\u0430\u0442\u043A\u043E\u0432\u043E\u0457 \u0456\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0456\u0457.",
|
@@ -667,7 +678,9 @@ var common_default6 = {
|
|
667
678
|
txt_please_sign: "\u0411\u0443\u0434\u044C \u043B\u0430\u0441\u043A\u0430, \u0434\u0432\u0456\u0447\u0456 \u043F\u0456\u0434\u043F\u0438\u0448\u0456\u0442\u044C \u043F\u043E\u0432\u0456\u0434\u043E\u043C\u043B\u0435\u043D\u043D\u044F \u0443 \u0441\u0432\u043E\u0454\u043C\u0443 \u0433\u0430\u043C\u0430\u043D\u0446\u0456 \u0442\u0430 \u0437\u0430\u0447\u0435\u043A\u0430\u0439\u0442\u0435, \u043F\u043E\u043A\u0438 \u0432\u043E\u043D\u043E \u0431\u0443\u0434\u0435 \u0437\u0431\u0435\u0440\u0435\u0436\u0435\u043D\u043E.",
|
668
679
|
txt_saving: "\u0417\u0431\u0435\u0440\u0435\u0436\u0435\u043D\u043D\u044F...",
|
669
680
|
txt_please_connect_your_wallet: "\u041F\u0456\u0434\u043A\u043B\u044E\u0447\u0456\u0442\u044C\u0441\u044F \u0434\u043E \u0441\u0432\u043E\u0433\u043E \u0433\u0430\u043C\u0430\u043D\u0446\u044F",
|
670
|
-
txt_connecting: "\u041F\u0456\u0434\u043A\u043B\u044E\u0447\u0435\u043D\u043D\u044F"
|
681
|
+
txt_connecting: "\u041F\u0456\u0434\u043A\u043B\u044E\u0447\u0435\u043D\u043D\u044F",
|
682
|
+
txt_here: "\u0422\u0423\u0422",
|
683
|
+
txt_visit: "\u0412\u0456\u0434\u0432\u0456\u0434\u0430\u0439\u0442\u0435"
|
671
684
|
};
|
672
685
|
|
673
686
|
// src/translations/vi/common.json
|
@@ -703,7 +716,7 @@ var common_default7 = {
|
|
703
716
|
txt_hide_details: "\u1EA8n chi ti\u1EBFt",
|
704
717
|
txt_no_collect: "Ch\xFAng t\xF4i kh\xF4ng thu th\u1EADp b\u1EA5t k\u1EF3 d\u1EEF li\u1EC7u c\xE1 nh\xE2n n\xE0o, ch\u1EC9 thu th\u1EADp th\xF4ng tin chi ti\u1EBFt c\u1EE7a ng\u01B0\u1EDDi d\xF9ng.",
|
705
718
|
txt_shield_of_privacy: "Shield of Privacy",
|
706
|
-
txt_you_can_revoke: "
|
719
|
+
txt_you_can_revoke: "Thu h\u1ED3i s\u1EF1 \u0111\u1ED3ng \xFD c\u1EE7a b\u1EA1n v\u1EC1 vi\u1EC7c s\u1EED d\u1EE5ng d\u1EEF li\u1EC7u b\u1EA5t c\u1EE9 khi n\xE0o b\u1EA1n mu\u1ED1n.",
|
707
720
|
txt_go_to: "\u0110i t\u1EDBi",
|
708
721
|
txt_link: "li\xEAn k\u1EBFt",
|
709
722
|
txt_for_more_information: "\u0111\u1EC3 bi\u1EBFt th\xEAm th\xF4ng tin.",
|
@@ -715,7 +728,9 @@ var common_default7 = {
|
|
715
728
|
txt_please_sign: "Vui l\xF2ng k\xFD v\xE0o tin nh\u1EAFn tr\xEAn v\xED c\u1EE7a b\u1EA1n hai l\u1EA7n v\xE0 \u0111\u1EE3i n\xF3 \u0111\u01B0\u1EE3c l\u01B0u.",
|
716
729
|
txt_save: "\u0110ang l\u01B0u...",
|
717
730
|
txt_please_connect_your_wallet: "Vui l\xF2ng k\u1EBFt n\u1ED1i v\u1EDBi v\xED c\u1EE7a b\u1EA1n",
|
718
|
-
txt_connecting: "\u0110ang k\u1EBFt n\u1ED1i"
|
731
|
+
txt_connecting: "\u0110ang k\u1EBFt n\u1ED1i",
|
732
|
+
txt_here: "\u0110\xC2Y",
|
733
|
+
txt_visit: "\u0110\u1EBFn"
|
719
734
|
};
|
720
735
|
|
721
736
|
// src/translations/fr/common.json
|
@@ -751,7 +766,7 @@ var common_default8 = {
|
|
751
766
|
txt_hide_details: "Masquer les d\xE9tails",
|
752
767
|
txt_no_collect: "Nous ne collectons aucune donn\xE9e personnelle, uniquement des informations sur les utilisateurs.",
|
753
768
|
txt_shield_of_privacy: "Shield of Privacy",
|
754
|
-
txt_you_can_revoke: "
|
769
|
+
txt_you_can_revoke: "R\xE9voquer votre consentement \xE0 l'utilisation des donn\xE9es quand vous le souhaitez.",
|
755
770
|
txt_go_to: "Aller \xE0",
|
756
771
|
txt_link: "lien",
|
757
772
|
txt_for_more_information: "pour plus d'informations.",
|
@@ -763,7 +778,9 @@ var common_default8 = {
|
|
763
778
|
txt_Please_sign: "Veuillez signer deux fois le message sur votre portefeuille et attendre qu'il soit enregistr\xE9.",
|
764
779
|
txt_saving: "Enregistrement en cours...",
|
765
780
|
txt_Please_connect_your_wallet: "Veuillez vous connecter \xE0 votre portefeuille",
|
766
|
-
txt_connecting: "Connexion"
|
781
|
+
txt_connecting: "Connexion",
|
782
|
+
txt_here: "ICI",
|
783
|
+
txt_visit: "Visite"
|
767
784
|
};
|
768
785
|
|
769
786
|
// src/translations/index.js
|
package/dist/index.js
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
import {
|
2
2
|
AnalyticsContext,
|
3
3
|
AnalyticsContextProvider_default
|
4
|
-
} from "./chunk-
|
4
|
+
} from "./chunk-ZYCOHH2R.js";
|
5
5
|
|
6
6
|
// src/AnalyticsNext/index.tsx
|
7
7
|
import React2 from "react";
|
@@ -90,6 +90,7 @@ var startTracker = async (endpoint, url, referer, user_agent) => {
|
|
90
90
|
});
|
91
91
|
return responseStart;
|
92
92
|
} catch (error) {
|
93
|
+
console.error("Analytics Error: ", error);
|
93
94
|
}
|
94
95
|
};
|
95
96
|
var trackEvent = async (endpoint, referer, data) => {
|
@@ -108,26 +109,30 @@ var trackEvent = async (endpoint, referer, data) => {
|
|
108
109
|
const device = browser?.platform?.model ?? browser?.platform?.type;
|
109
110
|
const ip = "";
|
110
111
|
const fpPromise = FingerprintJS.load({ monitoring: false });
|
111
|
-
const
|
112
|
+
const responseStart = fpPromise.then((fp) => fp.get()).then(async (result) => {
|
112
113
|
const fingerprint = result.visitorId;
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
114
|
+
const headers = { type: "application/json" };
|
115
|
+
const blobData = new Blob(
|
116
|
+
[
|
117
|
+
JSON.stringify({
|
118
|
+
fingerprint,
|
119
|
+
url,
|
120
|
+
...referer !== "/" && referer && {
|
121
|
+
referer
|
122
|
+
},
|
123
|
+
user_agent,
|
124
|
+
ip,
|
125
|
+
browser_name,
|
126
|
+
browser_version,
|
127
|
+
lang,
|
128
|
+
device,
|
129
|
+
...data
|
130
|
+
})
|
131
|
+
],
|
132
|
+
headers
|
133
|
+
);
|
134
|
+
return navigator.sendBeacon(createRequestV2(endpoint, "start"), blobData);
|
127
135
|
});
|
128
|
-
const headers = { type: "application/json" };
|
129
|
-
const blob = new Blob([JSON.stringify(body)], headers);
|
130
|
-
const responseStart = navigator.sendBeacon(createRequestV2(endpoint, "start"), blob);
|
131
136
|
return responseStart;
|
132
137
|
};
|
133
138
|
var endTracker = (endPoint, event_uuid, visitor_uuid) => {
|
@@ -217,9 +222,15 @@ var handle_default = AnalyticsHandle;
|
|
217
222
|
|
218
223
|
// src/AnalyticsNext/index.tsx
|
219
224
|
import dynamic from "next/dynamic";
|
220
|
-
var ConsentComponent = dynamic(() => import("./Consent-
|
225
|
+
var ConsentComponent = dynamic(() => import("./Consent-HSP2HBSL.js"), { ssr: false });
|
221
226
|
var AnalyticsNext = ({ router, children }) => {
|
222
|
-
return /* @__PURE__ */ React2.createElement(React2.Fragment, null, /* @__PURE__ */ React2.createElement(AnalyticsContextProvider_default, null, /* @__PURE__ */ React2.createElement(handle_default, { router }, children, process.env.NEXT_PUBLIC_DISABLE_ANALYTICS_CONSENT !== "true" && /* @__PURE__ */ React2.createElement(
|
227
|
+
return /* @__PURE__ */ React2.createElement(React2.Fragment, null, /* @__PURE__ */ React2.createElement(AnalyticsContextProvider_default, null, /* @__PURE__ */ React2.createElement(handle_default, { router }, children, process.env.NEXT_PUBLIC_DISABLE_ANALYTICS_CONSENT !== "true" && /* @__PURE__ */ React2.createElement(
|
228
|
+
ConsentComponent,
|
229
|
+
{
|
230
|
+
endpoint: process.env.NEXT_PUBLIC_ENDPOINT_ANALYTICS_URL,
|
231
|
+
aesirXEndpoint: process.env.NEXT_PUBLIC_ENDPOINT_URL ?? "https://api.aesirx.io"
|
232
|
+
}
|
233
|
+
))));
|
223
234
|
};
|
224
235
|
var AnalyticsNext_default = AnalyticsNext;
|
225
236
|
|
@@ -263,9 +274,15 @@ var AnalyticsHandle2 = ({ location, history, children }) => {
|
|
263
274
|
var handle_default2 = AnalyticsHandle2;
|
264
275
|
|
265
276
|
// src/AnalyticsReact/index.tsx
|
266
|
-
var ConsentComponent2 = React4.lazy(() => import("./Consent-
|
277
|
+
var ConsentComponent2 = React4.lazy(() => import("./Consent-HSP2HBSL.js"));
|
267
278
|
var AnalyticsReact = ({ location, history, children }) => {
|
268
|
-
return /* @__PURE__ */ React4.createElement(AnalyticsContextProvider_default, null, /* @__PURE__ */ React4.createElement(handle_default2, { location, history }, children, process.env.REACT_APP_DISABLE_ANALYTICS_CONSENT !== "true" && /* @__PURE__ */ React4.createElement(Suspense, { fallback: /* @__PURE__ */ React4.createElement(React4.Fragment, null) }, /* @__PURE__ */ React4.createElement(
|
279
|
+
return /* @__PURE__ */ React4.createElement(AnalyticsContextProvider_default, null, /* @__PURE__ */ React4.createElement(handle_default2, { location, history }, children, process.env.REACT_APP_DISABLE_ANALYTICS_CONSENT !== "true" && /* @__PURE__ */ React4.createElement(Suspense, { fallback: /* @__PURE__ */ React4.createElement(React4.Fragment, null) }, /* @__PURE__ */ React4.createElement(
|
280
|
+
ConsentComponent2,
|
281
|
+
{
|
282
|
+
endpoint: process.env.REACT_APP_ENDPOINT_ANALYTICS_URL,
|
283
|
+
aesirXEndpoint: process.env.REACT_APP_ENDPOINT_URL ?? "https://api.aesirx.io"
|
284
|
+
}
|
285
|
+
))));
|
269
286
|
};
|
270
287
|
var AnalyticsReact_default = AnalyticsReact;
|
271
288
|
export {
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "aesirx-analytics",
|
3
|
-
"version": "2.
|
3
|
+
"version": "2.2.0",
|
4
4
|
"license": "GPL-3.0-only",
|
5
5
|
"author": "AesirX",
|
6
6
|
"repository": "https://gitlab.redweb.dk/aesirx/analytics",
|
@@ -12,32 +12,36 @@
|
|
12
12
|
"@concordium/browser-wallet-api-helpers": "^2",
|
13
13
|
"@concordium/react-components": "^0.3.0",
|
14
14
|
"@concordium/web-sdk": "^6",
|
15
|
-
"@fingerprintjs/fingerprintjs": "
|
16
|
-
"
|
15
|
+
"@fingerprintjs/fingerprintjs": "3.4.2",
|
16
|
+
"@web3modal/ethereum": "^2.7.0",
|
17
|
+
"@web3modal/react": "^2.7.0",
|
18
|
+
"aesirx-sso": "^1.4.1",
|
17
19
|
"axios": "^1.4.0",
|
18
|
-
"bootstrap": "^5.3.
|
20
|
+
"bootstrap": "^5.3.2",
|
19
21
|
"bowser": "^2.11.0",
|
20
22
|
"buffer": "^6.0.3",
|
23
|
+
"ethers": "^6.6.5",
|
21
24
|
"i18next": "^23.4.4",
|
22
25
|
"i18next-browser-languagedetector": "^7.1.0",
|
23
|
-
"next": "^13.4
|
26
|
+
"next": "^13.5.4",
|
24
27
|
"query-string": "^7.1.1",
|
25
28
|
"react": "^18.2.0",
|
26
29
|
"react-bootstrap": "^2.8.0",
|
27
30
|
"react-content-loader": "^6.2.1",
|
28
31
|
"react-device-detect": "^2.2.3",
|
29
32
|
"react-dom": "18",
|
30
|
-
"react-toastify": "^9.1.3"
|
33
|
+
"react-toastify": "^9.1.3",
|
34
|
+
"wagmi": "^1.3.2"
|
31
35
|
},
|
32
36
|
"scripts": {
|
33
|
-
"dev": "tsup --watch
|
37
|
+
"dev": "NODE_ENV=development tsup --watch",
|
34
38
|
"build": "tsup",
|
35
39
|
"lint": "eslint --fix \"src/**/\"",
|
36
40
|
"lint:check": "eslint \"src/**/\"",
|
37
41
|
"lint:nowarns": "eslint --quiet \"src/**/\"",
|
38
42
|
"prepublishOnly": "yarn run build",
|
39
|
-
"format:check": "prettier --check
|
40
|
-
"format:write": "prettier --write
|
43
|
+
"format:check": "prettier --check \"./src/**/*.{js,jsx,ts,tsx}\"",
|
44
|
+
"format:write": "prettier --write \"./src/**/*.{js,jsx,ts,tsx}\"",
|
41
45
|
"test": "jest"
|
42
46
|
},
|
43
47
|
"eslintConfig": {
|
@@ -60,25 +64,25 @@
|
|
60
64
|
},
|
61
65
|
"devDependencies": {
|
62
66
|
"@babel/preset-env": "^7.21.5",
|
63
|
-
"@babel/preset-typescript": "^7.
|
64
|
-
"@jest/globals": "^29.
|
67
|
+
"@babel/preset-typescript": "^7.23.0",
|
68
|
+
"@jest/globals": "^29.7.0",
|
65
69
|
"@types/jest": "^29.5.0",
|
66
|
-
"@types/node": "^20.
|
67
|
-
"@types/react": "^18.
|
70
|
+
"@types/node": "^20.8.0",
|
71
|
+
"@types/react": "^18.2.21",
|
68
72
|
"@types/react-dom": "^18.2.4",
|
69
73
|
"@typescript-eslint/eslint-plugin": "^5.57.0",
|
70
74
|
"@typescript-eslint/parser": "^5.57.0",
|
71
|
-
"@walletconnect/types": "^2.
|
75
|
+
"@walletconnect/types": "^2.10.0",
|
72
76
|
"dotenv": "^16.0.3",
|
73
77
|
"esbuild-plugin-inline-image": "^0.0.9",
|
74
|
-
"esbuild-sass-plugin": "^2.
|
78
|
+
"esbuild-sass-plugin": "^2.15.0",
|
75
79
|
"esbuild-scss-modules-plugin": "^1.1.1",
|
76
|
-
"eslint": "^8.
|
80
|
+
"eslint": "^8.48.0",
|
77
81
|
"eslint-plugin-react": "^7.31.10",
|
78
82
|
"jest": "^29.4.3",
|
79
83
|
"jest-environment-jsdom": "^29.4.3",
|
80
84
|
"node-fetch": "^3.3.1",
|
81
|
-
"prettier": "^
|
85
|
+
"prettier": "^3.0.3",
|
82
86
|
"react-i18next": "^13.1.2",
|
83
87
|
"ts-jest": "^29.0.5",
|
84
88
|
"tsup": "^7.2.0",
|
@@ -86,5 +90,8 @@
|
|
86
90
|
},
|
87
91
|
"files": [
|
88
92
|
"dist"
|
89
|
-
]
|
93
|
+
],
|
94
|
+
"resolutions": {
|
95
|
+
"postcss": "^8"
|
96
|
+
}
|
90
97
|
}
|