mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-14 21:27:20 +00:00
Close [AI-335](https://linear.app/affine-design/issue/AI-335) <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Added support for an "independent mode" and document-specific context in AI chat components, allowing enhanced context handling and tracking. * Introduced new tracking options to distinguish between current document and general document actions in chat interactions. * **Improvements** * More flexible property handling for independent mode and document context across chat-related components for consistent behavior and tracking. * Enhanced tracking system to support additional event categories and methods for more granular analytics. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
11 lines
372 B
TypeScript
11 lines
372 B
TypeScript
import { enableAutoTrack, makeTracker } from './auto';
|
|
import { type EventArgs, type Events } from './events';
|
|
import { mixpanel } from './mixpanel';
|
|
import { sentry } from './sentry';
|
|
export const track = makeTracker((event, props) => {
|
|
mixpanel.track(event, props);
|
|
});
|
|
|
|
export { enableAutoTrack, type EventArgs, type Events, mixpanel, sentry };
|
|
export default track;
|