@activescott/analytics 0.3.0 → 0.3.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/lazy.d.ts ADDED
@@ -0,0 +1,12 @@
1
+ /**
2
+ * Code-split-safe entry point. Nothing in this module graph statically
3
+ * imports posthog-js — the initialized tree (and posthog-js with it) loads
4
+ * behind React.lazy inside LazyPostHogProvider — so consumers bundling from
5
+ * here never pay for the library until it is enabled. Import the static
6
+ * PostHogProvider from the package root instead when tree-shaking the barrel
7
+ * is acceptable.
8
+ */
9
+ export { LazyPostHogProvider, type LazyPostHogProviderProps, } from "./post-hog-lazy-provider.js";
10
+ export { captureAnalyticsEvent, type AnalyticsCapture, } from "./capture-client.js";
11
+ export { useAnalyticsCapture } from "./use-analytics-capture.js";
12
+ //# sourceMappingURL=lazy.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"lazy.d.ts","sourceRoot":"","sources":["../src/lazy.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,OAAO,EACL,mBAAmB,EACnB,KAAK,wBAAwB,GAC9B,MAAM,6BAA6B,CAAA;AACpC,OAAO,EACL,qBAAqB,EACrB,KAAK,gBAAgB,GACtB,MAAM,qBAAqB,CAAA;AAC5B,OAAO,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAA"}
package/dist/lazy.js ADDED
@@ -0,0 +1,12 @@
1
+ /**
2
+ * Code-split-safe entry point. Nothing in this module graph statically
3
+ * imports posthog-js — the initialized tree (and posthog-js with it) loads
4
+ * behind React.lazy inside LazyPostHogProvider — so consumers bundling from
5
+ * here never pay for the library until it is enabled. Import the static
6
+ * PostHogProvider from the package root instead when tree-shaking the barrel
7
+ * is acceptable.
8
+ */
9
+ export { LazyPostHogProvider, } from "./post-hog-lazy-provider.js";
10
+ export { captureAnalyticsEvent, } from "./capture-client.js";
11
+ export { useAnalyticsCapture } from "./use-analytics-capture.js";
12
+ //# sourceMappingURL=lazy.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"lazy.js","sourceRoot":"","sources":["../src/lazy.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,OAAO,EACL,mBAAmB,GAEpB,MAAM,6BAA6B,CAAA;AACpC,OAAO,EACL,qBAAqB,GAEtB,MAAM,qBAAqB,CAAA;AAC5B,OAAO,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@activescott/analytics",
3
- "version": "0.3.0",
3
+ "version": "0.3.1",
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",
@@ -14,6 +14,10 @@
14
14
  "types": "./dist/proxy.d.ts",
15
15
  "import": "./dist/proxy.js"
16
16
  },
17
+ "./lazy": {
18
+ "types": "./dist/lazy.d.ts",
19
+ "import": "./dist/lazy.js"
20
+ },
17
21
  "./hosts": {
18
22
  "types": "./dist/hosts.d.ts",
19
23
  "import": "./dist/hosts.js"
@@ -22,6 +26,7 @@
22
26
  "files": [
23
27
  "dist"
24
28
  ],
29
+ "sideEffects": false,
25
30
  "scripts": {
26
31
  "build": "tsc -p tsconfig.build.json",
27
32
  "typecheck": "tsc --noEmit",