@plasius/analytics 1.1.11 → 1.1.13

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/README.md CHANGED
@@ -186,6 +186,7 @@ function SaveButton() {
186
186
 
187
187
  ```bash
188
188
  npm install
189
+ npm run typecheck
189
190
  npm run build
190
191
  npm test
191
192
  npm run test:coverage
package/dist/index.d.cts CHANGED
@@ -1,4 +1,4 @@
1
- import * as react_jsx_runtime from 'react/jsx-runtime';
1
+ import * as react from 'react';
2
2
  import { ReactNode } from 'react';
3
3
 
4
4
  type AnalyticsContext = Record<string, unknown>;
@@ -185,7 +185,7 @@ interface AnalyticsContextValue {
185
185
  trackInteraction: (event: LocalSpaceAnalyticsEvent) => void;
186
186
  flush: () => Promise<void>;
187
187
  }
188
- declare function AnalyticsProvider({ children, source, endpoint, channel, runtime, sessionId, injectChannelContext, enabled, defaultContext, headers, flushIntervalMs, batchSize, maxQueueSize, storageKey, transport, onError, client, }: AnalyticsProviderProps): react_jsx_runtime.JSX.Element;
188
+ declare function AnalyticsProvider({ children, source, endpoint, channel, runtime, sessionId, injectChannelContext, enabled, defaultContext, headers, flushIntervalMs, batchSize, maxQueueSize, storageKey, transport, onError, client, }: AnalyticsProviderProps): react.JSX.Element;
189
189
  declare function useAnalytics(): AnalyticsContextValue;
190
190
 
191
191
  interface TrackInteractionDetails extends Omit<LocalSpaceAnalyticsEvent, "component" | "action" | "context"> {
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import * as react_jsx_runtime from 'react/jsx-runtime';
1
+ import * as react from 'react';
2
2
  import { ReactNode } from 'react';
3
3
 
4
4
  type AnalyticsContext = Record<string, unknown>;
@@ -185,7 +185,7 @@ interface AnalyticsContextValue {
185
185
  trackInteraction: (event: LocalSpaceAnalyticsEvent) => void;
186
186
  flush: () => Promise<void>;
187
187
  }
188
- declare function AnalyticsProvider({ children, source, endpoint, channel, runtime, sessionId, injectChannelContext, enabled, defaultContext, headers, flushIntervalMs, batchSize, maxQueueSize, storageKey, transport, onError, client, }: AnalyticsProviderProps): react_jsx_runtime.JSX.Element;
188
+ declare function AnalyticsProvider({ children, source, endpoint, channel, runtime, sessionId, injectChannelContext, enabled, defaultContext, headers, flushIntervalMs, batchSize, maxQueueSize, storageKey, transport, onError, client, }: AnalyticsProviderProps): react.JSX.Element;
189
189
  declare function useAnalytics(): AnalyticsContextValue;
190
190
 
191
191
  interface TrackInteractionDetails extends Omit<LocalSpaceAnalyticsEvent, "component" | "action" | "context"> {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@plasius/analytics",
3
- "version": "1.1.11",
3
+ "version": "1.1.13",
4
4
  "description": "Local-space analytics client and React helpers for interaction/event tracking with configurable ingestion endpoints.",
5
5
  "type": "module",
6
6
  "sideEffects": false,
@@ -23,6 +23,7 @@
23
23
  "test": "vitest run",
24
24
  "test:watch": "vitest",
25
25
  "lint": "eslint .",
26
+ "typecheck": "tsc --noEmit --pretty",
26
27
  "prepare": "npm run build",
27
28
  "clean": "rimraf dist",
28
29
  "test:coverage": "vitest run --coverage",