aesirx-analytics 2.3.0 → 2.3.1

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.
@@ -165,6 +165,15 @@ var useConsentStatus = (endpoint, layout, props) => {
165
165
  if (level2 && level2 !== "0") {
166
166
  window.funcAfterConsent && window.funcAfterConsent();
167
167
  window.configBlockJS && unBlockScripts();
168
+ if (window["aesirx_analytics_degistered_scripts"]) {
169
+ const blockJSList = window["aesirx_analytics_degistered_scripts"];
170
+ Object.keys(blockJSList).forEach((key) => {
171
+ const scriptNode = document.createElement("script");
172
+ scriptNode.src = blockJSList[key].src + (blockJSList[key].ver ? `?ver=${blockJSList[key].ver}` : "");
173
+ scriptNode.type = "text/javascript";
174
+ document.body.appendChild(scriptNode);
175
+ });
176
+ }
168
177
  }
169
178
  };
170
179
  return [
package/dist/index.js CHANGED
@@ -74,8 +74,8 @@ var handle_default = AnalyticsHandle;
74
74
 
75
75
  // src/AnalyticsNext/index.tsx
76
76
  import dynamic from "next/dynamic";
77
- var ConsentComponent = dynamic(() => import("./Consent-VKKGBHOL.js"), { ssr: false });
78
- var ConsentComponentCustom = dynamic(() => import("./ConsentCustom-ADJKXZV7.js"), { ssr: false });
77
+ var ConsentComponent = dynamic(() => import("./Consent-5U2D4TQI.js"), { ssr: false });
78
+ var ConsentComponentCustom = dynamic(() => import("./ConsentCustom-JINUMJZ5.js"), { ssr: false });
79
79
  var AnalyticsNext = ({
80
80
  router,
81
81
  attributes,
@@ -178,8 +178,8 @@ var AnalyticsHandle2 = ({ location, history, children }) => {
178
178
  var handle_default2 = AnalyticsHandle2;
179
179
 
180
180
  // src/AnalyticsReact/index.tsx
181
- var ConsentComponent2 = React4.lazy(() => import("./Consent-VKKGBHOL.js"));
182
- var ConsentComponentCustom2 = React4.lazy(() => import("./ConsentCustom-ADJKXZV7.js"));
181
+ var ConsentComponent2 = React4.lazy(() => import("./Consent-5U2D4TQI.js"));
182
+ var ConsentComponentCustom2 = React4.lazy(() => import("./ConsentCustom-JINUMJZ5.js"));
183
183
  var AnalyticsReact = ({
184
184
  location,
185
185
  history,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aesirx-analytics",
3
- "version": "2.3.0",
3
+ "version": "2.3.1",
4
4
  "license": "GPL-3.0-only",
5
5
  "author": "AesirX",
6
6
  "repository": "https://gitlab.redweb.dk/aesirx/analytics",