aesirx-analytics 2.2.7 → 2.2.8
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.
| @@ -222,7 +222,7 @@ var useConsentStatus = (endpoint, layout, props) => { | |
| 222 222 | 
             
                  try {
         | 
| 223 223 | 
             
                    let l = level;
         | 
| 224 224 | 
             
                    if (isDesktop) {
         | 
| 225 | 
            -
                      if (rpc) {
         | 
| 225 | 
            +
                      if (rpc && account) {
         | 
| 226 226 | 
             
                        if (l < 3) {
         | 
| 227 227 | 
             
                          setLevel(null);
         | 
| 228 228 | 
             
                          l = 3;
         | 
| @@ -240,7 +240,7 @@ var useConsentStatus = (endpoint, layout, props) => { | |
| 240 240 | 
             
                            setLevel(1);
         | 
| 241 241 | 
             
                          }
         | 
| 242 242 | 
             
                        }
         | 
| 243 | 
            -
                      } else if (connector | 
| 243 | 
            +
                      } else if (connector) {
         | 
| 244 244 | 
             
                        if (layout !== "simple-consent-mode" && layout !== "simple-web-2") {
         | 
| 245 245 | 
             
                          if (l < 3) {
         | 
| 246 246 | 
             
                            l = 3;
         | 
| @@ -258,13 +258,13 @@ var useConsentStatus = (endpoint, layout, props) => { | |
| 258 258 | 
             
                          setLevel(1);
         | 
| 259 259 | 
             
                        }
         | 
| 260 260 | 
             
                      } else {
         | 
| 261 | 
            -
                        setLevel( | 
| 261 | 
            +
                        setLevel(layout === "advance-consent-mode" ? 2 : 1);
         | 
| 262 262 | 
             
                      }
         | 
| 263 263 | 
             
                    } else {
         | 
| 264 264 | 
             
                      setLevel(1);
         | 
| 265 265 | 
             
                    }
         | 
| 266 266 | 
             
                  } catch (error) {
         | 
| 267 | 
            -
                    setLevel( | 
| 267 | 
            +
                    setLevel(layout === "advance-consent-mode" ? 2 : 1);
         | 
| 268 268 | 
             
                    console.error(error);
         | 
| 269 269 | 
             
                  }
         | 
| 270 270 | 
             
                })();
         | 
    
        package/dist/index.js
    CHANGED
    
    | @@ -523,8 +523,8 @@ var handle_default = AnalyticsHandle; | |
| 523 523 |  | 
| 524 524 | 
             
            // src/AnalyticsNext/index.tsx
         | 
| 525 525 | 
             
            import dynamic from "next/dynamic";
         | 
| 526 | 
            -
            var ConsentComponent = dynamic(() => import("./Consent- | 
| 527 | 
            -
            var ConsentComponentCustom = dynamic(() => import("./ConsentCustom- | 
| 526 | 
            +
            var ConsentComponent = dynamic(() => import("./Consent-57MTI7TD.js"), { ssr: false });
         | 
| 527 | 
            +
            var ConsentComponentCustom = dynamic(() => import("./ConsentCustom-EZS7JI2G.js"), { ssr: false });
         | 
| 528 528 | 
             
            var AnalyticsNext = ({
         | 
| 529 529 | 
             
              router,
         | 
| 530 530 | 
             
              attributes,
         | 
| @@ -612,8 +612,8 @@ var AnalyticsHandle2 = ({ location, history, children }) => { | |
| 612 612 | 
             
            var handle_default2 = AnalyticsHandle2;
         | 
| 613 613 |  | 
| 614 614 | 
             
            // src/AnalyticsReact/index.tsx
         | 
| 615 | 
            -
            var ConsentComponent2 = React4.lazy(() => import("./Consent- | 
| 616 | 
            -
            var ConsentComponentCustom2 = React4.lazy(() => import("./ConsentCustom- | 
| 615 | 
            +
            var ConsentComponent2 = React4.lazy(() => import("./Consent-57MTI7TD.js"));
         | 
| 616 | 
            +
            var ConsentComponentCustom2 = React4.lazy(() => import("./ConsentCustom-EZS7JI2G.js"));
         | 
| 617 617 | 
             
            var AnalyticsReact = ({ location, history, oldLayout = false, children }) => {
         | 
| 618 618 | 
             
              const [layout, setLayout] = useState3(process.env.REACT_APP_CONSENT_LAYOUT);
         | 
| 619 619 | 
             
              const [gtagId, setGtagId] = useState3(process.env.REACT_APP_ANALYTICS_GTAG_ID);
         | 
    
        package/package.json
    CHANGED
    
    | @@ -1,6 +1,6 @@ | |
| 1 1 | 
             
            {
         | 
| 2 2 | 
             
              "name": "aesirx-analytics",
         | 
| 3 | 
            -
              "version": "2.2. | 
| 3 | 
            +
              "version": "2.2.8",
         | 
| 4 4 | 
             
              "license": "GPL-3.0-only",
         | 
| 5 5 | 
             
              "author": "AesirX",
         | 
| 6 6 | 
             
              "repository": "https://gitlab.redweb.dk/aesirx/analytics",
         | 
| @@ -23,7 +23,7 @@ | |
| 23 23 | 
             
                "i18next": "^23.6.0",
         | 
| 24 24 | 
             
                "i18next-browser-languagedetector": "^7.2.1",
         | 
| 25 25 | 
             
                "murmurhash-js": "^1.0.0",
         | 
| 26 | 
            -
                "next": "^14.1. | 
| 26 | 
            +
                "next": "^14.1.1",
         | 
| 27 27 | 
             
                "query-string": "^7.1.1",
         | 
| 28 28 | 
             
                "react": "^18.3.1",
         | 
| 29 29 | 
             
                "react-bootstrap": "^2.8.0",
         |