aesirx-analytics 2.0.0 → 2.0.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.
package/dist/index.js CHANGED
@@ -217,9 +217,9 @@ var handle_default = AnalyticsHandle;
217
217
 
218
218
  // src/AnalyticsNext/index.tsx
219
219
  import dynamic from "next/dynamic";
220
- var ConsentComponent = dynamic(() => import("./Consent-7KHERFGJ.js"), { ssr: false });
220
+ var ConsentComponent = dynamic(() => import("./Consent-6SCX7LT4.js"), { ssr: false });
221
221
  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, /* @__PURE__ */ React2.createElement(ConsentComponent, { endpoint: process.env.NEXT_PUBLIC_ENDPOINT_ANALYTICS_URL }))));
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(ConsentComponent, { endpoint: process.env.NEXT_PUBLIC_ENDPOINT_ANALYTICS_URL }))));
223
223
  };
224
224
  var AnalyticsNext_default = AnalyticsNext;
225
225
 
@@ -263,9 +263,9 @@ var AnalyticsHandle2 = ({ location, history, children }) => {
263
263
  var handle_default2 = AnalyticsHandle2;
264
264
 
265
265
  // src/AnalyticsReact/index.tsx
266
- var ConsentComponent2 = React4.lazy(() => import("./Consent-7KHERFGJ.js"));
266
+ var ConsentComponent2 = React4.lazy(() => import("./Consent-6SCX7LT4.js"));
267
267
  var AnalyticsReact = ({ location, history, children }) => {
268
- return /* @__PURE__ */ React4.createElement(AnalyticsContextProvider_default, null, /* @__PURE__ */ React4.createElement(handle_default2, { location, history }, children, /* @__PURE__ */ React4.createElement(Suspense, { fallback: /* @__PURE__ */ React4.createElement(React4.Fragment, null) }, /* @__PURE__ */ React4.createElement(ConsentComponent2, { endpoint: process.env.REACT_APP_ENDPOINT_ANALYTICS_URL }))));
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(ConsentComponent2, { endpoint: process.env.REACT_APP_ENDPOINT_ANALYTICS_URL }))));
269
269
  };
270
270
  var AnalyticsReact_default = AnalyticsReact;
271
271
  export {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aesirx-analytics",
3
- "version": "2.0.0",
3
+ "version": "2.0.1",
4
4
  "license": "GPL-3.0-only",
5
5
  "author": "AesirX",
6
6
  "repository": "https://gitlab.redweb.dk/aesirx/analytics",
@@ -10,9 +10,10 @@
10
10
  "type": "module",
11
11
  "dependencies": {
12
12
  "@concordium/browser-wallet-api-helpers": "^2",
13
+ "@concordium/react-components": "^0.3.0",
13
14
  "@concordium/web-sdk": "^6",
14
15
  "@fingerprintjs/fingerprintjs": "^3.4.2",
15
- "aesirx-sso": "^1.1.1",
16
+ "aesirx-sso": "^1.2.1",
16
17
  "axios": "^1.4.0",
17
18
  "bootstrap": "^5.3.0",
18
19
  "bowser": "^2.11.0",
@@ -22,6 +23,7 @@
22
23
  "react": "18",
23
24
  "react-bootstrap": "^2.8.0",
24
25
  "react-content-loader": "^6.2.1",
26
+ "react-device-detect": "^2.2.3",
25
27
  "react-dom": "18",
26
28
  "react-toastify": "^9.1.3"
27
29
  },
@@ -64,6 +66,7 @@
64
66
  "@types/react-dom": "^18.2.4",
65
67
  "@typescript-eslint/eslint-plugin": "^5.57.0",
66
68
  "@typescript-eslint/parser": "^5.57.0",
69
+ "@walletconnect/types": "^2.9.1",
67
70
  "dotenv": "^16.0.3",
68
71
  "esbuild-plugin-inline-image": "^0.0.9",
69
72
  "esbuild-sass-plugin": "^2.10.0",