@ninetailed/client-sdk-react
Advanced tools
Comparing version 0.4.0 to 0.5.0
@@ -15,3 +15,3 @@ import { SetProfile } from '../profile'; | ||
payload: any; | ||
}) => void; | ||
}) => Promise<void>; | ||
track: ({ payload }: { | ||
@@ -18,0 +18,0 @@ payload: any; |
import React from 'react'; | ||
export { useAnalytics } from 'use-analytics'; | ||
import { Traits } from '@ninetailed/client-sdk-core'; | ||
declare type AnalyticsProviderProps = { | ||
@@ -7,1 +7,10 @@ organizationId: string; | ||
export declare const AnalyticsProvider: React.FC<AnalyticsProviderProps>; | ||
declare type Page = () => Promise<void>; | ||
declare type Track = (event: string) => Promise<void>; | ||
declare type Identify = (uid: string, traits: Traits) => Promise<void>; | ||
export declare const useAnalytics: () => { | ||
page: Page; | ||
track: Track; | ||
identify: Identify; | ||
}; | ||
export {}; |
{ | ||
"name": "@ninetailed/client-sdk-react", | ||
"version": "0.4.0", | ||
"version": "0.5.0", | ||
"description": "Ninetailed React SDK for dynamic content, personalization and a/b testing.", | ||
@@ -5,0 +5,0 @@ "homepage": "https://docs.ninetailed.io/client-sdk-react", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
280103
8891
4