@hifilabs/pixel 0.1.0 → 0.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.esm.js +6 -6
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -7,7 +7,7 @@ var __publicField = (obj, key, value) => {
|
|
|
7
7
|
};
|
|
8
8
|
|
|
9
9
|
// src/react/BalanceAnalytics.tsx
|
|
10
|
-
import
|
|
10
|
+
import React, { useEffect, useRef, Suspense } from "react";
|
|
11
11
|
import { usePathname, useSearchParams } from "next/navigation";
|
|
12
12
|
function BalanceAnalyticsInner() {
|
|
13
13
|
const pathname = usePathname();
|
|
@@ -37,7 +37,7 @@ function BalanceAnalyticsInner() {
|
|
|
37
37
|
return null;
|
|
38
38
|
}
|
|
39
39
|
function BalanceAnalytics() {
|
|
40
|
-
return /* @__PURE__ */
|
|
40
|
+
return /* @__PURE__ */ React.createElement(Suspense, { fallback: null }, /* @__PURE__ */ React.createElement(BalanceAnalyticsInner, null));
|
|
41
41
|
}
|
|
42
42
|
|
|
43
43
|
// src/react/useBalanceIdentify.ts
|
|
@@ -371,7 +371,7 @@ function useBalanceIdentify() {
|
|
|
371
371
|
}
|
|
372
372
|
|
|
373
373
|
// src/react/GTMProvider.tsx
|
|
374
|
-
import { useEffect as useEffect4 } from "react";
|
|
374
|
+
import React3, { useEffect as useEffect4 } from "react";
|
|
375
375
|
import Script from "next/script";
|
|
376
376
|
|
|
377
377
|
// src/react/useGTMConsent.ts
|
|
@@ -489,9 +489,9 @@ function GTMProvider({ gtmId, children, debug = false }) {
|
|
|
489
489
|
if (debug) {
|
|
490
490
|
console.log("[GTMProvider] No GTM ID configured, skipping GTM initialization");
|
|
491
491
|
}
|
|
492
|
-
return /* @__PURE__ */
|
|
492
|
+
return /* @__PURE__ */ React3.createElement(React3.Fragment, null, children);
|
|
493
493
|
}
|
|
494
|
-
return /* @__PURE__ */
|
|
494
|
+
return /* @__PURE__ */ React3.createElement(React3.Fragment, null, /* @__PURE__ */ React3.createElement(
|
|
495
495
|
Script,
|
|
496
496
|
{
|
|
497
497
|
id: "gtm-script",
|
|
@@ -506,7 +506,7 @@ function GTMProvider({ gtmId, children, debug = false }) {
|
|
|
506
506
|
`
|
|
507
507
|
}
|
|
508
508
|
}
|
|
509
|
-
), /* @__PURE__ */
|
|
509
|
+
), /* @__PURE__ */ React3.createElement("noscript", null, /* @__PURE__ */ React3.createElement(
|
|
510
510
|
"iframe",
|
|
511
511
|
{
|
|
512
512
|
src: `https://www.googletagmanager.com/ns.html?id=${resolvedGtmId}`,
|