@plasius/analytics 1.4.4 → 1.4.6
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.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { S as SemanticJourneyEventDefinition, a as SemanticJourneyCatalogOptions, b as SemanticJourneyCatalog, c as SemanticJourneyEventInput, V as ValidatedSemanticJourneyEventInput, d as SemanticJourneyContext, e as SemanticJourneyTraceFlags, f as SemanticJourneyTraceContext, g as SemanticJourneyOutcome, h as SEMANTIC_JOURNEY_STRICT_POLICY_VERSION, i as SemanticJourneyCatalogue, j as SemanticJourneyEvent } from './metrics-
|
|
2
|
-
export { k as SemanticJourneyAttributeDefinition, l as SemanticJourneyAttributeValue, m as SemanticJourneyBooleanAttributeDefinition, n as SemanticJourneyCategory, o as SemanticJourneyEnumAttributeDefinition, p as SemanticJourneyEventId, q as SemanticJourneyId, r as SemanticJourneyModality, s as SemanticJourneyNumberAttributeDefinition, t as SemanticJourneyPhase, u as SemanticJourneyPrivacyMetadata, v as SemanticJourneyProducerId, w as SemanticJourneySpanId, x as SemanticJourneyTarget, y as SemanticJourneyTraceId, U as USEFUL_METRIC_EVENT_DEFINITIONS, z as projectUsefulMetric } from './metrics-
|
|
1
|
+
import { S as SemanticJourneyEventDefinition, a as SemanticJourneyCatalogOptions, b as SemanticJourneyCatalog, c as SemanticJourneyEventInput, V as ValidatedSemanticJourneyEventInput, d as SemanticJourneyContext, e as SemanticJourneyTraceFlags, f as SemanticJourneyTraceContext, g as SemanticJourneyOutcome, h as SEMANTIC_JOURNEY_STRICT_POLICY_VERSION, i as SemanticJourneyCatalogue, j as SemanticJourneyEvent } from './metrics-BP11SDoI.cjs';
|
|
2
|
+
export { k as SemanticJourneyAttributeDefinition, l as SemanticJourneyAttributeValue, m as SemanticJourneyBooleanAttributeDefinition, n as SemanticJourneyCategory, o as SemanticJourneyEnumAttributeDefinition, p as SemanticJourneyEventId, q as SemanticJourneyId, r as SemanticJourneyModality, s as SemanticJourneyNumberAttributeDefinition, t as SemanticJourneyPhase, u as SemanticJourneyPrivacyMetadata, v as SemanticJourneyProducerId, w as SemanticJourneySpanId, x as SemanticJourneyTarget, y as SemanticJourneyTraceId, U as USEFUL_METRIC_EVENT_DEFINITIONS, z as projectUsefulMetric } from './metrics-BP11SDoI.cjs';
|
|
3
3
|
import * as react from 'react';
|
|
4
4
|
import { ReactNode } from 'react';
|
|
5
5
|
|
|
@@ -642,4 +642,5 @@ interface TrackInteractionDetails extends Omit<LocalSpaceAnalyticsEvent, "compon
|
|
|
642
642
|
}
|
|
643
643
|
declare function useComponentInteractionTracker(component: string, baseContext?: AnalyticsContext): (action: string, details?: TrackInteractionDetails) => void;
|
|
644
644
|
|
|
645
|
-
export {
|
|
645
|
+
export { AnalyticsProvider, ProjectedSemanticJourneyAggregateStore, SEMANTIC_JOURNEY_AGGREGATE_MAX_BYTES, SEMANTIC_JOURNEY_AGGREGATE_SCHEMA_VERSION, SEMANTIC_JOURNEY_PROJECTED_AGGREGATE_SCHEMA_VERSION, SEMANTIC_JOURNEY_RECEIPT_HEADER, SEMANTIC_JOURNEY_RECEIPT_MAX_BYTES, SEMANTIC_JOURNEY_RECEIPT_MAX_COUNT, SEMANTIC_JOURNEY_RECEIPT_VERSION, SEMANTIC_JOURNEY_STRICT_POLICY_VERSION, SemanticJourneyAggregateStore, SemanticJourneyCatalog, SemanticJourneyCatalogOptions, SemanticJourneyCatalogue, SemanticJourneyContext, SemanticJourneyEvent, SemanticJourneyEventDefinition, SemanticJourneyEventInput, SemanticJourneyOutcome, SemanticJourneyTraceContext, SemanticJourneyTraceFlags, SemanticJourneyTransportError, SemanticJourneyValidationError, ValidatedSemanticJourneyEventInput, assertSemanticSource, assertSemanticToken, createBackendAnalyticsClient, createChildJourneyContext, createDefaultSemanticJourneyAggregateTransport, createEventId, createFrontendAnalyticsClient, createJourneyContext, createJourneyId, createLocalSpaceAnalyticsClient, createNoopLocalSpaceAnalyticsClient, createProducerId, createRequestJourneyContext, createSecureRandomHex, createSemanticJourneyAggregateValidator, createSemanticJourneyClient, createSpanId, createTraceId, defineJourneyEvent, defineSemanticJourneyAggregatePolicy, defineSemanticJourneyCatalog, formatTraceparent, getJourneyEventDefinition, isEventId, isJourneyId, isJourneyToken, isProducerId, isSecureSemanticJourneyEndpoint, isSemanticJourneyAggregatePolicy, isSemanticSource, isSemanticToken, isSpanId, isTraceId, observeSemanticJourneyInteractions, parseSemanticJourneyReceipts, parseTraceparent, projectSemanticJourneyAggregateCounters, reconstructSemanticJourney, semanticJourneyAggregateCounterKey, serializeSemanticJourneyReceipts, useAnalytics, useComponentInteractionTracker, validateSemanticJourneyEventInput };
|
|
646
|
+
export type { AnalyticsChannel, AnalyticsContext, AnalyticsContextValue, AnalyticsErrorSeverity, AnalyticsEventKind, AnalyticsProviderProps, AnalyticsRuntime, AnalyticsTransport, AnalyticsTransportRequest, CreateSemanticJourneyAggregateBatchOptions, DefaultSemanticJourneyTransportOptions, LocalSpaceAnalyticsClient, LocalSpaceAnalyticsConfig, LocalSpaceAnalyticsErrorDetails, LocalSpaceAnalyticsEvent, LocalSpaceAnalyticsRecord, LocalSpaceErrorReportInput, LocalSpaceErrorReportingConfig, LocalSpaceIssueReport, LocalSpaceIssueThresholdTrigger, ProjectedSemanticJourneyAggregateStoreOptions, RandomByteSource, ResolvedLocalSpaceAnalyticsConfig, ResolvedLocalSpaceErrorReportingConfig, SemanticJourneyAggregateBatch, SemanticJourneyAggregateBinding, SemanticJourneyAggregateCounter, SemanticJourneyAggregatePolicy, SemanticJourneyAggregatePolicyOptions, SemanticJourneyAggregateSnapshot, SemanticJourneyAggregateStoreOptions, SemanticJourneyAggregateTransport, SemanticJourneyAggregateTransportRequest, SemanticJourneyBrowserObserverConfig, SemanticJourneyClient, SemanticJourneyClientConfig, SemanticJourneyCompleteness, SemanticJourneyConsequenceReceipt, SemanticJourneyDropReason, SemanticJourneyEvidence, SemanticJourneyEvidenceCode, SemanticJourneyProjectedAggregateBatch, SemanticJourneyProjectedAggregateCounter, SemanticJourneyReplay, SemanticJourneyRequestLink, SemanticJourneyRetryDelay, SemanticJourneyStep, SemanticJourneyTrackOptions, SemanticJourneyTransportErrorCode, SemanticJourneyValidationErrorCode, SemanticJourneyWireAggregateBatch, TrackInteractionDetails };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { S as SemanticJourneyEventDefinition, a as SemanticJourneyCatalogOptions, b as SemanticJourneyCatalog, c as SemanticJourneyEventInput, V as ValidatedSemanticJourneyEventInput, d as SemanticJourneyContext, e as SemanticJourneyTraceFlags, f as SemanticJourneyTraceContext, g as SemanticJourneyOutcome, h as SEMANTIC_JOURNEY_STRICT_POLICY_VERSION, i as SemanticJourneyCatalogue, j as SemanticJourneyEvent } from './metrics-
|
|
2
|
-
export { k as SemanticJourneyAttributeDefinition, l as SemanticJourneyAttributeValue, m as SemanticJourneyBooleanAttributeDefinition, n as SemanticJourneyCategory, o as SemanticJourneyEnumAttributeDefinition, p as SemanticJourneyEventId, q as SemanticJourneyId, r as SemanticJourneyModality, s as SemanticJourneyNumberAttributeDefinition, t as SemanticJourneyPhase, u as SemanticJourneyPrivacyMetadata, v as SemanticJourneyProducerId, w as SemanticJourneySpanId, x as SemanticJourneyTarget, y as SemanticJourneyTraceId, U as USEFUL_METRIC_EVENT_DEFINITIONS, z as projectUsefulMetric } from './metrics-
|
|
1
|
+
import { S as SemanticJourneyEventDefinition, a as SemanticJourneyCatalogOptions, b as SemanticJourneyCatalog, c as SemanticJourneyEventInput, V as ValidatedSemanticJourneyEventInput, d as SemanticJourneyContext, e as SemanticJourneyTraceFlags, f as SemanticJourneyTraceContext, g as SemanticJourneyOutcome, h as SEMANTIC_JOURNEY_STRICT_POLICY_VERSION, i as SemanticJourneyCatalogue, j as SemanticJourneyEvent } from './metrics-BP11SDoI.js';
|
|
2
|
+
export { k as SemanticJourneyAttributeDefinition, l as SemanticJourneyAttributeValue, m as SemanticJourneyBooleanAttributeDefinition, n as SemanticJourneyCategory, o as SemanticJourneyEnumAttributeDefinition, p as SemanticJourneyEventId, q as SemanticJourneyId, r as SemanticJourneyModality, s as SemanticJourneyNumberAttributeDefinition, t as SemanticJourneyPhase, u as SemanticJourneyPrivacyMetadata, v as SemanticJourneyProducerId, w as SemanticJourneySpanId, x as SemanticJourneyTarget, y as SemanticJourneyTraceId, U as USEFUL_METRIC_EVENT_DEFINITIONS, z as projectUsefulMetric } from './metrics-BP11SDoI.js';
|
|
3
3
|
import * as react from 'react';
|
|
4
4
|
import { ReactNode } from 'react';
|
|
5
5
|
|
|
@@ -642,4 +642,5 @@ interface TrackInteractionDetails extends Omit<LocalSpaceAnalyticsEvent, "compon
|
|
|
642
642
|
}
|
|
643
643
|
declare function useComponentInteractionTracker(component: string, baseContext?: AnalyticsContext): (action: string, details?: TrackInteractionDetails) => void;
|
|
644
644
|
|
|
645
|
-
export {
|
|
645
|
+
export { AnalyticsProvider, ProjectedSemanticJourneyAggregateStore, SEMANTIC_JOURNEY_AGGREGATE_MAX_BYTES, SEMANTIC_JOURNEY_AGGREGATE_SCHEMA_VERSION, SEMANTIC_JOURNEY_PROJECTED_AGGREGATE_SCHEMA_VERSION, SEMANTIC_JOURNEY_RECEIPT_HEADER, SEMANTIC_JOURNEY_RECEIPT_MAX_BYTES, SEMANTIC_JOURNEY_RECEIPT_MAX_COUNT, SEMANTIC_JOURNEY_RECEIPT_VERSION, SEMANTIC_JOURNEY_STRICT_POLICY_VERSION, SemanticJourneyAggregateStore, SemanticJourneyCatalog, SemanticJourneyCatalogOptions, SemanticJourneyCatalogue, SemanticJourneyContext, SemanticJourneyEvent, SemanticJourneyEventDefinition, SemanticJourneyEventInput, SemanticJourneyOutcome, SemanticJourneyTraceContext, SemanticJourneyTraceFlags, SemanticJourneyTransportError, SemanticJourneyValidationError, ValidatedSemanticJourneyEventInput, assertSemanticSource, assertSemanticToken, createBackendAnalyticsClient, createChildJourneyContext, createDefaultSemanticJourneyAggregateTransport, createEventId, createFrontendAnalyticsClient, createJourneyContext, createJourneyId, createLocalSpaceAnalyticsClient, createNoopLocalSpaceAnalyticsClient, createProducerId, createRequestJourneyContext, createSecureRandomHex, createSemanticJourneyAggregateValidator, createSemanticJourneyClient, createSpanId, createTraceId, defineJourneyEvent, defineSemanticJourneyAggregatePolicy, defineSemanticJourneyCatalog, formatTraceparent, getJourneyEventDefinition, isEventId, isJourneyId, isJourneyToken, isProducerId, isSecureSemanticJourneyEndpoint, isSemanticJourneyAggregatePolicy, isSemanticSource, isSemanticToken, isSpanId, isTraceId, observeSemanticJourneyInteractions, parseSemanticJourneyReceipts, parseTraceparent, projectSemanticJourneyAggregateCounters, reconstructSemanticJourney, semanticJourneyAggregateCounterKey, serializeSemanticJourneyReceipts, useAnalytics, useComponentInteractionTracker, validateSemanticJourneyEventInput };
|
|
646
|
+
export type { AnalyticsChannel, AnalyticsContext, AnalyticsContextValue, AnalyticsErrorSeverity, AnalyticsEventKind, AnalyticsProviderProps, AnalyticsRuntime, AnalyticsTransport, AnalyticsTransportRequest, CreateSemanticJourneyAggregateBatchOptions, DefaultSemanticJourneyTransportOptions, LocalSpaceAnalyticsClient, LocalSpaceAnalyticsConfig, LocalSpaceAnalyticsErrorDetails, LocalSpaceAnalyticsEvent, LocalSpaceAnalyticsRecord, LocalSpaceErrorReportInput, LocalSpaceErrorReportingConfig, LocalSpaceIssueReport, LocalSpaceIssueThresholdTrigger, ProjectedSemanticJourneyAggregateStoreOptions, RandomByteSource, ResolvedLocalSpaceAnalyticsConfig, ResolvedLocalSpaceErrorReportingConfig, SemanticJourneyAggregateBatch, SemanticJourneyAggregateBinding, SemanticJourneyAggregateCounter, SemanticJourneyAggregatePolicy, SemanticJourneyAggregatePolicyOptions, SemanticJourneyAggregateSnapshot, SemanticJourneyAggregateStoreOptions, SemanticJourneyAggregateTransport, SemanticJourneyAggregateTransportRequest, SemanticJourneyBrowserObserverConfig, SemanticJourneyClient, SemanticJourneyClientConfig, SemanticJourneyCompleteness, SemanticJourneyConsequenceReceipt, SemanticJourneyDropReason, SemanticJourneyEvidence, SemanticJourneyEvidenceCode, SemanticJourneyProjectedAggregateBatch, SemanticJourneyProjectedAggregateCounter, SemanticJourneyReplay, SemanticJourneyRequestLink, SemanticJourneyRetryDelay, SemanticJourneyStep, SemanticJourneyTrackOptions, SemanticJourneyTransportErrorCode, SemanticJourneyValidationErrorCode, SemanticJourneyWireAggregateBatch, TrackInteractionDetails };
|
|
@@ -156,4 +156,5 @@ declare const USEFUL_METRIC_EVENT_DEFINITIONS: Readonly<Record<string, Readonly<
|
|
|
156
156
|
*/
|
|
157
157
|
declare function projectUsefulMetric(input: unknown): SemanticJourneyEventInput | null;
|
|
158
158
|
|
|
159
|
-
export {
|
|
159
|
+
export { USEFUL_METRIC_EVENT_DEFINITIONS as U, SEMANTIC_JOURNEY_STRICT_POLICY_VERSION as h, projectUsefulMetric as z };
|
|
160
|
+
export type { SemanticJourneyEventDefinition as S, ValidatedSemanticJourneyEventInput as V, SemanticJourneyCatalogOptions as a, SemanticJourneyCatalog as b, SemanticJourneyEventInput as c, SemanticJourneyContext as d, SemanticJourneyTraceFlags as e, SemanticJourneyTraceContext as f, SemanticJourneyOutcome as g, SemanticJourneyCatalogue as i, SemanticJourneyEvent as j, SemanticJourneyAttributeDefinition as k, SemanticJourneyAttributeValue as l, SemanticJourneyBooleanAttributeDefinition as m, SemanticJourneyCategory as n, SemanticJourneyEnumAttributeDefinition as o, SemanticJourneyEventId as p, SemanticJourneyId as q, SemanticJourneyModality as r, SemanticJourneyNumberAttributeDefinition as s, SemanticJourneyPhase as t, SemanticJourneyPrivacyMetadata as u, SemanticJourneyProducerId as v, SemanticJourneySpanId as w, SemanticJourneyTarget as x, SemanticJourneyTraceId as y };
|
|
@@ -156,4 +156,5 @@ declare const USEFUL_METRIC_EVENT_DEFINITIONS: Readonly<Record<string, Readonly<
|
|
|
156
156
|
*/
|
|
157
157
|
declare function projectUsefulMetric(input: unknown): SemanticJourneyEventInput | null;
|
|
158
158
|
|
|
159
|
-
export {
|
|
159
|
+
export { USEFUL_METRIC_EVENT_DEFINITIONS as U, SEMANTIC_JOURNEY_STRICT_POLICY_VERSION as h, projectUsefulMetric as z };
|
|
160
|
+
export type { SemanticJourneyEventDefinition as S, ValidatedSemanticJourneyEventInput as V, SemanticJourneyCatalogOptions as a, SemanticJourneyCatalog as b, SemanticJourneyEventInput as c, SemanticJourneyContext as d, SemanticJourneyTraceFlags as e, SemanticJourneyTraceContext as f, SemanticJourneyOutcome as g, SemanticJourneyCatalogue as i, SemanticJourneyEvent as j, SemanticJourneyAttributeDefinition as k, SemanticJourneyAttributeValue as l, SemanticJourneyBooleanAttributeDefinition as m, SemanticJourneyCategory as n, SemanticJourneyEnumAttributeDefinition as o, SemanticJourneyEventId as p, SemanticJourneyId as q, SemanticJourneyModality as r, SemanticJourneyNumberAttributeDefinition as s, SemanticJourneyPhase as t, SemanticJourneyPrivacyMetadata as u, SemanticJourneyProducerId as v, SemanticJourneySpanId as w, SemanticJourneyTarget as x, SemanticJourneyTraceId as y };
|
package/dist/metrics.d.cts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { U as USEFUL_METRIC_EVENT_DEFINITIONS, z as projectUsefulMetric } from './metrics-
|
|
1
|
+
export { U as USEFUL_METRIC_EVENT_DEFINITIONS, z as projectUsefulMetric } from './metrics-BP11SDoI.cjs';
|
package/dist/metrics.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { U as USEFUL_METRIC_EVENT_DEFINITIONS, z as projectUsefulMetric } from './metrics-
|
|
1
|
+
export { U as USEFUL_METRIC_EVENT_DEFINITIONS, z as projectUsefulMetric } from './metrics-BP11SDoI.js';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@plasius/analytics",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.6",
|
|
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,
|
|
@@ -56,29 +56,30 @@
|
|
|
56
56
|
"react": "^19"
|
|
57
57
|
},
|
|
58
58
|
"dependencies": {
|
|
59
|
-
"@plasius/schema": "^1.
|
|
59
|
+
"@plasius/schema": "^1.5.1"
|
|
60
60
|
},
|
|
61
61
|
"devDependencies": {
|
|
62
62
|
"@eslint/js": "^10.0.1",
|
|
63
|
-
"@testing-library/dom": "^10.4.
|
|
63
|
+
"@testing-library/dom": "^10.4.2",
|
|
64
64
|
"@testing-library/react": "^16.3.3",
|
|
65
|
-
"@types/node": "^26.
|
|
66
|
-
"@types/react": "^19.
|
|
67
|
-
"@types/react-dom": "^19.
|
|
68
|
-
"@typescript-eslint/eslint-plugin": "^8.
|
|
69
|
-
"@typescript-eslint/parser": "^8.
|
|
70
|
-
"@vitest/coverage-v8": "^
|
|
71
|
-
"esbuild": "^0.28.
|
|
72
|
-
"eslint": "^10.
|
|
73
|
-
"globals": "^17.
|
|
74
|
-
"jsdom": "^
|
|
75
|
-
"react": "^19.
|
|
76
|
-
"react-dom": "^19.
|
|
77
|
-
"rimraf": "^6.1.
|
|
78
|
-
"tsup": "^
|
|
79
|
-
"tsx": "^4.23.
|
|
65
|
+
"@types/node": "^26.6.6",
|
|
66
|
+
"@types/react": "^19.3.0",
|
|
67
|
+
"@types/react-dom": "^19.3.0",
|
|
68
|
+
"@typescript-eslint/eslint-plugin": "^8.73.0",
|
|
69
|
+
"@typescript-eslint/parser": "^8.73.0",
|
|
70
|
+
"@vitest/coverage-v8": "^5.1.1",
|
|
71
|
+
"esbuild": "^0.28.2",
|
|
72
|
+
"eslint": "^10.15.0",
|
|
73
|
+
"globals": "^17.14.0",
|
|
74
|
+
"jsdom": "^31.0.1",
|
|
75
|
+
"react": "^19.3.1",
|
|
76
|
+
"react-dom": "^19.3.1",
|
|
77
|
+
"rimraf": "^6.1.4",
|
|
78
|
+
"tsup": "^9.0.0",
|
|
79
|
+
"tsx": "^4.23.15",
|
|
80
80
|
"typescript": "^6.0.3",
|
|
81
|
-
"vitest": "^
|
|
81
|
+
"vitest": "^5.1.1",
|
|
82
|
+
"vite": "^8.3.8"
|
|
82
83
|
},
|
|
83
84
|
"publishConfig": {
|
|
84
85
|
"access": "public"
|
|
@@ -94,8 +95,8 @@
|
|
|
94
95
|
}
|
|
95
96
|
],
|
|
96
97
|
"overrides": {
|
|
97
|
-
"minimatch": "^
|
|
98
|
-
"esbuild": "
|
|
98
|
+
"minimatch": "^11.0.9",
|
|
99
|
+
"esbuild": "$esbuild"
|
|
99
100
|
},
|
|
100
101
|
"engines": {
|
|
101
102
|
"node": ">=24"
|