@molecule/app-analytics-mixpanel 1.0.5 → 1.0.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/README.md +6 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -3,7 +3,7 @@ AUTO-GENERATED — DO NOT EDIT THIS FILE.
|
|
|
3
3
|
Generated by `mlcl sync-docs` from the package's src/index.ts JSDoc + mlcl/registry.json.
|
|
4
4
|
Edits here are overwritten on the next commit (molecule's pre-commit hook regenerates).
|
|
5
5
|
To change this document, edit the module-level JSDoc in src/index.ts.
|
|
6
|
-
Generated: 2026-11-
|
|
6
|
+
Generated: 2026-11-08T06:03:30.209Z
|
|
7
7
|
-->
|
|
8
8
|
|
|
9
9
|
# @molecule/app-analytics-mixpanel
|
|
@@ -138,18 +138,21 @@ interface AnalyticsProvider {
|
|
|
138
138
|
* @param user - User properties including userId and optional traits.
|
|
139
139
|
*/
|
|
140
140
|
identify(user: AnalyticsUserProps): Promise<void>
|
|
141
|
+
|
|
141
142
|
/**
|
|
142
143
|
* Tracks a named event with optional properties.
|
|
143
144
|
*
|
|
144
145
|
* @param event - The event name and properties to track.
|
|
145
146
|
*/
|
|
146
147
|
track(event: AnalyticsEvent): Promise<void>
|
|
148
|
+
|
|
147
149
|
/**
|
|
148
150
|
* Records a page view.
|
|
149
151
|
*
|
|
150
152
|
* @param pageView - Page view details (name, path, properties).
|
|
151
153
|
*/
|
|
152
154
|
page(pageView: AnalyticsPageView): Promise<void>
|
|
155
|
+
|
|
153
156
|
/**
|
|
154
157
|
* Associates a user with a group (e.g. company, team).
|
|
155
158
|
*
|
|
@@ -157,10 +160,12 @@ interface AnalyticsProvider {
|
|
|
157
160
|
* @param traits - Arbitrary traits to associate with the group.
|
|
158
161
|
*/
|
|
159
162
|
group?(groupId: string, traits?: Record<string, unknown>): Promise<void>
|
|
163
|
+
|
|
160
164
|
/**
|
|
161
165
|
* Resets the current user identity and generates a new anonymous ID.
|
|
162
166
|
*/
|
|
163
167
|
reset?(): Promise<void>
|
|
168
|
+
|
|
164
169
|
/**
|
|
165
170
|
* Flushes any queued events to the analytics service immediately.
|
|
166
171
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@molecule/app-analytics-mixpanel",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.6",
|
|
4
4
|
"description": "Mixpanel analytics provider for molecule.dev frontend",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"@molecule/app-analytics": "^1.1.1"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
|
-
"@molecule/app-analytics": "1.1.
|
|
36
|
+
"@molecule/app-analytics": "1.1.3",
|
|
37
37
|
"@types/node": "26.6.5",
|
|
38
38
|
"typescript": "6.0.3",
|
|
39
39
|
"vitest": "4.1.12"
|