@plasius/analytics 1.1.11 → 1.1.12
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 +1 -0
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/package.json +2 -1
package/README.md
CHANGED
package/dist/index.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
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):
|
|
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
|
|
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):
|
|
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.
|
|
3
|
+
"version": "1.1.12",
|
|
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",
|