@smart-factor/gem-ui-components 0.0.126 → 0.0.127

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.
@@ -1,9 +1,9 @@
1
1
  import { default as React, ReactNode } from 'react';
2
2
  export interface PostHogProviderProps {
3
3
  children: ReactNode;
4
- POSTHOG_API_KEY: string;
5
- POSTHOG_API_HOST?: string;
6
- module: string;
7
- isDevelopment: boolean;
4
+ posthogApiKey?: string;
5
+ posthogApiHost?: string;
6
+ module?: string;
7
+ isDevelopment?: boolean;
8
8
  }
9
9
  export declare const PostHogProvider: React.FC<PostHogProviderProps>;
@@ -0,0 +1,8 @@
1
+ import { Meta, StoryObj } from '@storybook/react';
2
+ declare const meta: Meta;
3
+ export default meta;
4
+ type Story = StoryObj;
5
+ export declare const InitializedDevTrue: Story;
6
+ export declare const InitializedDevFalse: Story;
7
+ export declare const NotInitializedDevTrue: Story;
8
+ export declare const NotInitializedDevFalse: Story;
@@ -9,9 +9,13 @@ export interface PostHogUserTraits {
9
9
  export declare class PostHogTracker {
10
10
  private static module;
11
11
  private static isDevelopmentMode;
12
+ private static isInitialized;
13
+ private static logTrackingDisabled;
12
14
  static setModule(module: string): void;
13
15
  static getModule(): string | undefined;
14
16
  static setDevelopment(isDevelopment: boolean): void;
17
+ static setInitialized(isInitialized: boolean): void;
18
+ static getInitialized(): boolean;
15
19
  static identify(userId: string, userTraits?: PostHogUserTraits): void;
16
20
  static track(eventName: string, properties?: Record<string, unknown>): void;
17
21
  static reset(): void;