aesirx-analytics 2.0.1 → 2.1.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
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  AnalyticsContext,
3
3
  AnalyticsContextProvider_default
4
- } from "./chunk-JQ6CXYV4.js";
4
+ } from "./chunk-OGDZQCIU.js";
5
5
 
6
6
  // src/AnalyticsNext/index.tsx
7
7
  import React2 from "react";
@@ -217,7 +217,7 @@ 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-6SCX7LT4.js"), { ssr: false });
220
+ var ConsentComponent = dynamic(() => import("./Consent-MKSHHJAP.js"), { ssr: false });
221
221
  var AnalyticsNext = ({ router, children }) => {
222
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
  };
@@ -263,7 +263,7 @@ 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-6SCX7LT4.js"));
266
+ var ConsentComponent2 = React4.lazy(() => import("./Consent-MKSHHJAP.js"));
267
267
  var AnalyticsReact = ({ location, history, children }) => {
268
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
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aesirx-analytics",
3
- "version": "2.0.1",
3
+ "version": "2.1.1",
4
4
  "license": "GPL-3.0-only",
5
5
  "author": "AesirX",
6
6
  "repository": "https://gitlab.redweb.dk/aesirx/analytics",
@@ -12,15 +12,17 @@
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": "^3.4.2",
15
+ "@fingerprintjs/fingerprintjs": "^4.0.1",
16
16
  "aesirx-sso": "^1.2.1",
17
17
  "axios": "^1.4.0",
18
18
  "bootstrap": "^5.3.0",
19
19
  "bowser": "^2.11.0",
20
20
  "buffer": "^6.0.3",
21
- "next": "12",
21
+ "i18next": "^23.4.4",
22
+ "i18next-browser-languagedetector": "^7.1.0",
23
+ "next": "^13.4.19",
22
24
  "query-string": "^7.1.1",
23
- "react": "18",
25
+ "react": "^18.2.0",
24
26
  "react-bootstrap": "^2.8.0",
25
27
  "react-content-loader": "^6.2.1",
26
28
  "react-device-detect": "^2.2.3",
@@ -59,26 +61,27 @@
59
61
  "devDependencies": {
60
62
  "@babel/preset-env": "^7.21.5",
61
63
  "@babel/preset-typescript": "^7.21.5",
62
- "@jest/globals": "^29.5.0",
64
+ "@jest/globals": "^29.6.4",
63
65
  "@types/jest": "^29.5.0",
64
66
  "@types/node": "^20.1.4",
65
- "@types/react": "^18.0.30",
67
+ "@types/react": "^18.2.21",
66
68
  "@types/react-dom": "^18.2.4",
67
69
  "@typescript-eslint/eslint-plugin": "^5.57.0",
68
70
  "@typescript-eslint/parser": "^5.57.0",
69
- "@walletconnect/types": "^2.9.1",
71
+ "@walletconnect/types": "^2.10.0",
70
72
  "dotenv": "^16.0.3",
71
73
  "esbuild-plugin-inline-image": "^0.0.9",
72
74
  "esbuild-sass-plugin": "^2.10.0",
73
75
  "esbuild-scss-modules-plugin": "^1.1.1",
74
- "eslint": "^8.36",
76
+ "eslint": "^8.48.0",
75
77
  "eslint-plugin-react": "^7.31.10",
76
78
  "jest": "^29.4.3",
77
79
  "jest-environment-jsdom": "^29.4.3",
78
80
  "node-fetch": "^3.3.1",
79
- "prettier": "^2.8.4",
81
+ "prettier": "^3.0.3",
82
+ "react-i18next": "^13.1.2",
80
83
  "ts-jest": "^29.0.5",
81
- "tsup": "^6.7.0",
84
+ "tsup": "^7.2.0",
82
85
  "typescript": "^5.0.3"
83
86
  },
84
87
  "files": [
@@ -1,34 +0,0 @@
1
- // src/utils/AnalyticsContextProvider.tsx
2
- import React, { useState } from "react";
3
- var AnalyticsContext = React.createContext({
4
- event_uuid: void 0,
5
- visitor_uuid: void 0,
6
- setEventID: void 0,
7
- setUUID: void 0
8
- });
9
- var AnalyticsContextProvider = ({ children }) => {
10
- const [eventID, setEventID] = useState();
11
- const [UUID, setUUID] = useState();
12
- return /* @__PURE__ */ React.createElement(
13
- AnalyticsContext.Provider,
14
- {
15
- value: {
16
- event_uuid: eventID,
17
- visitor_uuid: UUID,
18
- setEventID,
19
- setUUID
20
- }
21
- },
22
- children
23
- );
24
- };
25
- var AnalyticsContextProvider_default = AnalyticsContextProvider;
26
-
27
- export {
28
- AnalyticsContext,
29
- AnalyticsContextProvider_default
30
- };
31
- /*
32
- * @copyright Copyright (C) 2022 AesirX. All rights reserved.
33
- * @license GNU General Public License version 3, see LICENSE.
34
- */