@uidu/analytics
Advanced tools
Comparing version 0.1.21 to 0.1.22
import PropTypes from 'prop-types'; | ||
import React from 'react'; | ||
import { AnalyticsEventPayload } from './AnalyticsEvent'; | ||
import { AnalyticsEventCreator, CreateEventMap, CreateUIAnalyticsEvent } from './types'; | ||
@@ -35,5 +36,5 @@ import UIAnalyticsEvent from './UIAnalyticsEvent'; | ||
mapCreateEventsToProps: (changedPropNames: string[], props: Props) => {}; | ||
createAnalyticsEvent: (payload: Record<string, any>) => UIAnalyticsEvent; | ||
createAnalyticsEvent: (payload: AnalyticsEventPayload) => UIAnalyticsEvent; | ||
render(): React.ReactNode; | ||
} | ||
export default AnalyticsContextConsumer; |
@@ -10,5 +10,5 @@ export declare type AnalyticsEventPayload = Record<string, any>; | ||
constructor(props: AnalyticsEventProps); | ||
clone: () => AnalyticsEvent; | ||
clone: () => AnalyticsEvent | null; | ||
update(updater: AnalyticsEventUpdater): this; | ||
} | ||
export {}; |
# @uidu/analytics | ||
## 0.1.22 | ||
### Patch Changes | ||
- 335a6f2: Bump all components | ||
## 0.1.21 | ||
@@ -4,0 +10,0 @@ |
@@ -0,3 +1,4 @@ | ||
import { AnalyticsEventPayload } from './AnalyticsEvent'; | ||
import { CreateUIAnalyticsEvent } from './types'; | ||
declare const _default: (channel?: string) => (payload: Record<string, any>) => (createAnalyticsEvent: CreateUIAnalyticsEvent) => import("./UIAnalyticsEvent").default; | ||
declare const _default: (channel?: string) => (payload: AnalyticsEventPayload) => (createAnalyticsEvent: CreateUIAnalyticsEvent) => import("./UIAnalyticsEvent").default; | ||
export default _default; |
{ | ||
"name": "@uidu/analytics", | ||
"version": "0.1.21" | ||
"version": "0.1.22" | ||
} |
{ | ||
"name": "@uidu/analytics", | ||
"version": "0.1.21", | ||
"version": "0.1.22", | ||
"description": "The uidu component analytics framework", | ||
"repository": "https://github.com/uidu-org/guidu.git", | ||
"repository": "https://github.com/uidu-org/guidu/tree/master/packages/core/analytics", | ||
"license": "ISC", | ||
@@ -15,7 +15,8 @@ "author": "uidu", | ||
"devDependencies": { | ||
"@uidu/button": "^0.1.58", | ||
"@uidu/docs": "^0.1.45", | ||
"@uidu/field-text": "^0.2.7", | ||
"@uidu/form": "^0.2.3", | ||
"@uidu/button": "^0.1.63", | ||
"@uidu/docs": "^0.1.48", | ||
"@uidu/field-text": "^0.2.8", | ||
"@uidu/form": "^0.2.7", | ||
"lodash.isequal": "^4.5.0", | ||
"react": "^16.8.3", | ||
"react-dom": "^16.4.0", | ||
@@ -22,0 +23,0 @@ "redux": "^4.0.1" |
@@ -14,3 +14,3 @@ import AnalyticsEvent, { AnalyticsEventPayload, AnalyticsEventProps } from './AnalyticsEvent'; | ||
constructor(props: UIAnalyticsEventProps); | ||
clone: () => UIAnalyticsEvent; | ||
clone: () => UIAnalyticsEvent | null; | ||
fire: (channel?: string) => void; | ||
@@ -17,0 +17,0 @@ update(updater: Record<string, any> | ((payload: AnalyticsEventPayload) => AnalyticsEventPayload)): this; |
{ | ||
"name": "@uidu/analytics", | ||
"version": "0.1.21" | ||
"version": "0.1.22" | ||
} |
import React from 'react'; | ||
import { CreateUIAnalyticsEvent } from './types'; | ||
import { CreateEventMap, CreateUIAnalyticsEvent } from './types'; | ||
export interface WithAnalyticsEventsProps { | ||
@@ -11,3 +11,3 @@ /** | ||
} | ||
declare const withAnalyticsEvents: (createEventMap?: Record<string, Record<string, any> | import("./types").AnalyticsEventCreator>) => <Props extends WithAnalyticsEventsProps, Component>(WrappedComponent: (((props: Props) => React.ReactElement<any, string | ((props: any) => React.ReactElement<any, string | any | (new (props: any) => React.Component<any, any, any>)>) | (new (props: any) => React.Component<any, any, any>)>) & Component) | ((new (props: Props) => React.Component<Props, any, any>) & Component)) => React.ForwardRefExoticComponent<React.PropsWithoutRef<JSX.LibraryManagedAttributes<Component, Pick<Props, Exclude<keyof Props, "createAnalyticsEvent" | "ref">>>> & React.RefAttributes<any>>; | ||
declare const withAnalyticsEvents: (createEventMap?: CreateEventMap) => <Props extends WithAnalyticsEventsProps, Component>(WrappedComponent: (((props: Props) => React.ReactElement<any, string | ((props: any) => React.ReactElement<any, string | any | (new (props: any) => React.Component<any, any, any>)>) | (new (props: any) => React.Component<any, any, any>)>) & Component) | ((new (props: Props) => React.Component<Props, any, any>) & Component)) => React.ForwardRefExoticComponent<React.PropsWithoutRef<JSX.LibraryManagedAttributes<Component, Pick<Props, Exclude<keyof Props, "createAnalyticsEvent" | "ref">>>> & React.RefAttributes<any>>; | ||
export default withAnalyticsEvents; |
import React from 'react'; | ||
import { CreateUIAnalyticsEvent } from './types'; | ||
import { CreateEventMap, CreateUIAnalyticsEvent } from './types'; | ||
export interface WithAnalyticsHookProps { | ||
@@ -11,3 +11,3 @@ /** | ||
} | ||
declare const withAnalyticsHook: (createEventMap?: Record<string, Record<string, any> | import("./types").AnalyticsEventCreator>) => <Props extends WithAnalyticsHookProps, Component>(WrappedComponent: (((props: Props) => React.ReactElement<any, string | ((props: any) => React.ReactElement<any, string | any | (new (props: any) => React.Component<any, any, any>)>) | (new (props: any) => React.Component<any, any, any>)>) & Component) | ((new (props: Props) => React.Component<Props, any, any>) & Component)) => React.ForwardRefExoticComponent<React.PropsWithoutRef<JSX.LibraryManagedAttributes<Component, Pick<Props, Exclude<keyof Props, "createAnalyticsEvent" | "ref">>>> & React.RefAttributes<any>>; | ||
declare const withAnalyticsHook: (createEventMap?: CreateEventMap) => <Props extends WithAnalyticsHookProps, Component>(WrappedComponent: (((props: Props) => React.ReactElement<any, string | ((props: any) => React.ReactElement<any, string | any | (new (props: any) => React.Component<any, any, any>)>) | (new (props: any) => React.Component<any, any, any>)>) & Component) | ((new (props: Props) => React.Component<Props, any, any>) & Component)) => React.ForwardRefExoticComponent<React.PropsWithoutRef<JSX.LibraryManagedAttributes<Component, Pick<Props, Exclude<keyof Props, "createAnalyticsEvent" | "ref">>>> & React.RefAttributes<any>>; | ||
export default withAnalyticsHook; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
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
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
175649
3874
8