@activescott/analytics 0.3.3 → 0.3.4
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/post-hog-init.d.ts
CHANGED
|
@@ -13,6 +13,10 @@ interface PostHogInitProps {
|
|
|
13
13
|
* user identification, and capture registration. Lives in its own module so
|
|
14
14
|
* React.lazy splits it (and posthog-js with it) into a separate chunk —
|
|
15
15
|
* mount LazyPostHogProvider, not this, which guarantees the split point.
|
|
16
|
+
*
|
|
17
|
+
* Capture is deliberately narrow: click/submit/change autocapture stays off
|
|
18
|
+
* (its element snapshots can carry user content) — consumers opt back in
|
|
19
|
+
* explicitly. Pageviews, identification, and custom events are unaffected.
|
|
16
20
|
*/
|
|
17
21
|
export declare function PostHogInit({ apiKey, options, user, children, }: PostHogInitProps): import("react").JSX.Element;
|
|
18
22
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"post-hog-init.d.ts","sourceRoot":"","sources":["../src/post-hog-init.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,YAAY,CAAA;AAM/C,UAAU,gBAAgB;IACxB,MAAM,EAAE,MAAM,CAAA;IACd,OAAO,CAAC,EAAE,OAAO,CAAC,aAAa,CAAC,CAAA;IAChC,IAAI,CAAC,EAAE;QAAE,UAAU,EAAE,MAAM,CAAC;QAAC,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;KAAE,CAAA;IACnE,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;CAC3B;AAED
|
|
1
|
+
{"version":3,"file":"post-hog-init.d.ts","sourceRoot":"","sources":["../src/post-hog-init.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,YAAY,CAAA;AAM/C,UAAU,gBAAgB;IACxB,MAAM,EAAE,MAAM,CAAA;IACd,OAAO,CAAC,EAAE,OAAO,CAAC,aAAa,CAAC,CAAA;IAChC,IAAI,CAAC,EAAE;QAAE,UAAU,EAAE,MAAM,CAAC;QAAC,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;KAAE,CAAA;IACnE,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;CAC3B;AAED;;;;;;;;;GASG;AACH,wBAAgB,WAAW,CAAC,EAC1B,MAAM,EACN,OAAO,EACP,IAAI,EACJ,QAAQ,GACT,EAAE,gBAAgB,+BAmBlB"}
|
package/dist/post-hog-init.js
CHANGED
|
@@ -8,9 +8,14 @@ import { CaptureRegistrar } from "./capture-registrar.js";
|
|
|
8
8
|
* user identification, and capture registration. Lives in its own module so
|
|
9
9
|
* React.lazy splits it (and posthog-js with it) into a separate chunk —
|
|
10
10
|
* mount LazyPostHogProvider, not this, which guarantees the split point.
|
|
11
|
+
*
|
|
12
|
+
* Capture is deliberately narrow: click/submit/change autocapture stays off
|
|
13
|
+
* (its element snapshots can carry user content) — consumers opt back in
|
|
14
|
+
* explicitly. Pageviews, identification, and custom events are unaffected.
|
|
11
15
|
*/
|
|
12
16
|
export function PostHogInit({ apiKey, options, user, children, }) {
|
|
13
17
|
return (_jsxs(PHProvider, { apiKey: apiKey, options: {
|
|
18
|
+
autocapture: false,
|
|
14
19
|
...options,
|
|
15
20
|
capture_pageview: false,
|
|
16
21
|
}, children: [_jsx(PostHogPageviewTracker, {}), _jsx(PostHogIdentifier, { distinctId: user?.distinctId, properties: user?.properties }), _jsx(CaptureRegistrar, {}), children] }));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"post-hog-init.js","sourceRoot":"","sources":["../src/post-hog-init.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,eAAe,IAAI,UAAU,EAAE,MAAM,kBAAkB,CAAA;AAChE,OAAO,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAA;AAC5D,OAAO,EAAE,sBAAsB,EAAE,MAAM,gCAAgC,CAAA;AACvE,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAA;AASzD
|
|
1
|
+
{"version":3,"file":"post-hog-init.js","sourceRoot":"","sources":["../src/post-hog-init.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,eAAe,IAAI,UAAU,EAAE,MAAM,kBAAkB,CAAA;AAChE,OAAO,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAA;AAC5D,OAAO,EAAE,sBAAsB,EAAE,MAAM,gCAAgC,CAAA;AACvE,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAA;AASzD;;;;;;;;;GASG;AACH,MAAM,UAAU,WAAW,CAAC,EAC1B,MAAM,EACN,OAAO,EACP,IAAI,EACJ,QAAQ,GACS;IACjB,OAAO,CACL,MAAC,UAAU,IACT,MAAM,EAAE,MAAM,EACd,OAAO,EAAE;YACP,WAAW,EAAE,KAAK;YAClB,GAAG,OAAO;YACV,gBAAgB,EAAE,KAAK;SACxB,aAED,KAAC,sBAAsB,KAAG,EAC1B,KAAC,iBAAiB,IAChB,UAAU,EAAE,IAAI,EAAE,UAAU,EAC5B,UAAU,EAAE,IAAI,EAAE,UAAU,GAC5B,EACF,KAAC,gBAAgB,KAAG,EACnB,QAAQ,IACE,CACd,CAAA;AACH,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@activescott/analytics",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.4",
|
|
4
4
|
"description": "PostHog analytics integration for React Router apps — provider, SPA pageview tracking, user identification, and reverse proxy helper",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|