guideai-app 0.3.1 → 0.3.3

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.
@@ -13,5 +13,5 @@ interface TranscriptBoxProps {
13
13
  onTextKeyPress?: (event: React.KeyboardEvent) => void;
14
14
  textPlaceholder?: string;
15
15
  }
16
- declare const TranscriptBox: React.FC<TranscriptBoxProps>;
16
+ declare const TranscriptBox: React.NamedExoticComponent<TranscriptBoxProps>;
17
17
  export default TranscriptBox;
@@ -7,10 +7,13 @@ declare class UserMetadataTracker {
7
7
  private isInitialized;
8
8
  private onError?;
9
9
  constructor(organizationKey: string, config?: MetadataConfig, onError?: (error: Error, context: string) => void);
10
- private init;
10
+ init(): void;
11
11
  updateUserInfo(userInfo: Partial<UserMetadata>): void;
12
12
  trackLogin(additionalInfo?: Partial<UserMetadata>): void;
13
+ private trackVisitOncePerSession;
13
14
  trackVisit(): void;
15
+ resetSessionVisitTracking(): void;
16
+ trackVisitManually(): void;
14
17
  trackCustomEvent(eventType: string, customData: Record<string, any>): void;
15
18
  getMetadata(): UserMetadata;
16
19
  getPendingUpdates(): MetadataUpdate[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "guideai-app",
3
- "version": "0.3.1",
3
+ "version": "0.3.3",
4
4
  "description": "AI-powered guide component for React applications",
5
5
  "main": "dist/GuideAI.js",
6
6
  "types": "dist/GuideAI.d.ts",
@@ -1,3 +0,0 @@
1
- import React from 'react';
2
- declare const Styles: React.FC;
3
- export default Styles;
package/types/index.d.ts DELETED
@@ -1,24 +0,0 @@
1
- export interface ConversationItem {
2
- event_id?: string;
3
- type: string;
4
- previous_item_id: string | null;
5
- item: Record<string, any>;
6
- timestamp: number;
7
- }
8
- export type RecordingStatus = 'idle' | 'recording' | 'processing' | 'playing' | 'initializing';
9
- export interface GuideAIProps {
10
- apiKey?: string;
11
- organizationKey: string;
12
- position?: {
13
- top?: string;
14
- right?: string;
15
- bottom?: string;
16
- left?: string;
17
- marginTop?: string;
18
- marginRight?: string;
19
- marginBottom?: string;
20
- marginLeft?: string;
21
- transform?: string;
22
- };
23
- onError?: (error: string | Error, context?: string) => void;
24
- }