aesirx-analytics 2.2.14 → 2.2.15
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/{Consent-VTHZ6KB6.js → Consent-7KAMDZ4V.js} +2 -2
- package/dist/{ConsentCustom-VIQCBSAX.js → ConsentCustom-BWBSRP5V.js} +3 -2
- package/dist/analytics.js +54 -54
- package/dist/{chunk-N4WREXIA.js → chunk-SBBLINO2.js} +8 -0
- package/dist/{chunk-D6DE5YZD.js → chunk-YM52A2TI.js} +1 -1
- package/dist/index.js +5 -5
- package/package.json +1 -1
@@ -1649,6 +1649,14 @@ var revokeConsents = async (endpoint, level, uuid, wallet, signature, web3id, jw
|
|
1649
1649
|
sessionStorage.setItem("consentGranted", "false");
|
1650
1650
|
try {
|
1651
1651
|
switch (level) {
|
1652
|
+
case "1":
|
1653
|
+
await axios.put(`${url}`, null, {
|
1654
|
+
headers: {
|
1655
|
+
"Content-Type": "application/json",
|
1656
|
+
Authorization: "Bearer " + jwt
|
1657
|
+
}
|
1658
|
+
});
|
1659
|
+
break;
|
1652
1660
|
case "2":
|
1653
1661
|
await axios.put(`${url}`, null, {
|
1654
1662
|
headers: {
|
package/dist/index.js
CHANGED
@@ -12,7 +12,7 @@ import {
|
|
12
12
|
getConsentTemplate,
|
13
13
|
privacy_default,
|
14
14
|
useTranslation
|
15
|
-
} from "./chunk-
|
15
|
+
} from "./chunk-SBBLINO2.js";
|
16
16
|
|
17
17
|
// src/AnalyticsNext/index.tsx
|
18
18
|
import React2, { useEffect as useEffect2, useState as useState2 } from "react";
|
@@ -75,8 +75,8 @@ var handle_default = AnalyticsHandle;
|
|
75
75
|
|
76
76
|
// src/AnalyticsNext/index.tsx
|
77
77
|
import dynamic from "next/dynamic";
|
78
|
-
var ConsentComponent = dynamic(() => import("./Consent-
|
79
|
-
var ConsentComponentCustom = dynamic(() => import("./ConsentCustom-
|
78
|
+
var ConsentComponent = dynamic(() => import("./Consent-7KAMDZ4V.js"), { ssr: false });
|
79
|
+
var ConsentComponentCustom = dynamic(() => import("./ConsentCustom-BWBSRP5V.js"), { ssr: false });
|
80
80
|
var AnalyticsNext = ({
|
81
81
|
router,
|
82
82
|
attributes,
|
@@ -167,8 +167,8 @@ var AnalyticsHandle2 = ({ location, history, children }) => {
|
|
167
167
|
var handle_default2 = AnalyticsHandle2;
|
168
168
|
|
169
169
|
// src/AnalyticsReact/index.tsx
|
170
|
-
var ConsentComponent2 = React4.lazy(() => import("./Consent-
|
171
|
-
var ConsentComponentCustom2 = React4.lazy(() => import("./ConsentCustom-
|
170
|
+
var ConsentComponent2 = React4.lazy(() => import("./Consent-7KAMDZ4V.js"));
|
171
|
+
var ConsentComponentCustom2 = React4.lazy(() => import("./ConsentCustom-BWBSRP5V.js"));
|
172
172
|
var AnalyticsReact = ({ location, history, oldLayout = false, children }) => {
|
173
173
|
const [layout, setLayout] = useState3(process.env.REACT_APP_CONSENT_LAYOUT ?? "simple-web-2");
|
174
174
|
const [gtagId, setGtagId] = useState3(process.env.REACT_APP_ANALYTICS_GTAG_ID);
|