@types/matomo-tracker-react-native 0.3.1 → 0.3.2

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.
File without changes
@@ -8,7 +8,7 @@ This package contains type definitions for matomo-tracker-react-native (https://
8
8
  Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/matomo-tracker-react-native.
9
9
 
10
10
  ### Additional Details
11
- * Last updated: Thu, 13 Oct 2022 10:02:58 GMT
11
+ * Last updated: Wed, 27 Sep 2023 09:42:15 GMT
12
12
  * Dependencies: [@types/react](https://npmjs.com/package/@types/react)
13
13
  * Global values: none
14
14
 
@@ -4,106 +4,105 @@
4
4
  // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
5
5
  // TypeScript Version: 4.4
6
6
 
7
- import * as React from 'react';
7
+ import * as React from "react";
8
8
 
9
9
  export interface AppStart {
10
- userInfo?: {
11
- uid?: string,
12
- cid?: string,
13
- urlref?: string,
14
- lang?: string,
15
- ua?: string,
16
- _idvc?: string,
17
- new_visit?: number,
18
- _viewts?: number,
19
- _idts?: number
20
- res?: number,
21
- h?: number,
22
- m?: number,
23
- s?: number,
24
- cookie?: number,
25
- uadata?: object,
26
- dimension?: number
27
- };
10
+ userInfo?: {
11
+ uid?: string;
12
+ cid?: string;
13
+ urlref?: string;
14
+ lang?: string;
15
+ ua?: string;
16
+ _idvc?: string;
17
+ new_visit?: number;
18
+ _viewts?: number;
19
+ _idts?: number;
20
+ res?: number;
21
+ h?: number;
22
+ m?: number;
23
+ s?: number;
24
+ cookie?: number;
25
+ uadata?: object;
26
+ dimension?: number;
27
+ };
28
28
  }
29
29
 
30
30
  export interface Action {
31
- name: string;
32
- userInfo?:
33
- {
34
- uid?: string
35
- };
31
+ name: string;
32
+ userInfo?: {
33
+ uid?: string;
34
+ };
36
35
  }
37
36
 
38
37
  export interface Event {
39
- category: string;
40
- action: string;
41
- name?: string;
42
- value?: number;
43
- userInfo?: {
44
- uid?: string
45
- };
38
+ category: string;
39
+ action: string;
40
+ name?: string;
41
+ value?: number;
42
+ userInfo?: {
43
+ uid?: string;
44
+ };
46
45
  }
47
46
 
48
47
  export interface SiteSearch {
49
- keyword: string;
50
- category?: string;
51
- count?: number;
52
- userInfo?: {
53
- uid?: string
54
- };
48
+ keyword: string;
49
+ category?: string;
50
+ count?: number;
51
+ userInfo?: {
52
+ uid?: string;
53
+ };
55
54
  }
56
55
 
57
56
  export interface Link {
58
- link: string;
59
- url?: string;
60
- userInfo?: {
61
- uid?: string
62
- };
57
+ link: string;
58
+ url?: string;
59
+ userInfo?: {
60
+ uid?: string;
61
+ };
63
62
  }
64
63
 
65
64
  export interface Download {
66
- download: string;
67
- url?: string;
68
- userInfo?: {
69
- uid?: string
70
- };
65
+ download: string;
66
+ url?: string;
67
+ userInfo?: {
68
+ uid?: string;
69
+ };
71
70
  }
72
71
 
73
72
  export function useMatomo(): {
74
- trackAppStart: (params: AppStart) => undefined | Promise<Response>,
75
- trackScreenView: (params: Action) => undefined | Promise<Response>,
76
- trackAction: (params: Action) => undefined | Promise<Response>,
77
- trackEvent: (params: Event) => undefined | Promise<Response>,
78
- trackSiteSearch: (params: SiteSearch) => undefined | Promise<Response>,
79
- trackLink: (params: Link) => undefined | Promise<Response>,
80
- trackDownload: (params: Download) => undefined | Promise<Response>
73
+ trackAppStart: (params: AppStart) => undefined | Promise<Response>;
74
+ trackScreenView: (params: Action) => undefined | Promise<Response>;
75
+ trackAction: (params: Action) => undefined | Promise<Response>;
76
+ trackEvent: (params: Event) => undefined | Promise<Response>;
77
+ trackSiteSearch: (params: SiteSearch) => undefined | Promise<Response>;
78
+ trackLink: (params: Link) => undefined | Promise<Response>;
79
+ trackDownload: (params: Download) => undefined | Promise<Response>;
81
80
  };
82
81
 
83
82
  export interface MatomoProviderProps {
84
- instance: MatomoTracker;
85
- children: React.ReactElement;
83
+ instance: MatomoTracker;
84
+ children: React.ReactElement;
86
85
  }
87
86
 
88
87
  export function MatomoProvider(props: MatomoProviderProps): JSX.Element;
89
88
 
90
89
  export const MatomoContext: React.Context<{}>;
91
90
  export interface InstanceProps {
92
- urlBase: string;
93
- siteId: number;
94
- trackerUrl?: string;
95
- userId?: string;
96
- disabled?: boolean;
97
- log?: boolean;
91
+ urlBase: string;
92
+ siteId: number;
93
+ trackerUrl?: string;
94
+ userId?: string;
95
+ disabled?: boolean;
96
+ log?: boolean;
98
97
  }
99
98
 
100
99
  export default class MatomoTracker {
101
- constructor(props: InstanceProps);
102
- trackAppStart(params: AppStart): Promise<Response>;
103
- trackScreenView(params: Action): Promise<Response>;
104
- trackAction(params: Action): Promise<Response>;
105
- trackEvent(params: Event): Promise<Response>;
106
- trackSiteSearch(params: SiteSearch): Promise<Response>;
107
- trackLink(params: Link): Promise<Response>;
108
- trackDownload(params: Download): Promise<Response>;
100
+ constructor(props: InstanceProps);
101
+ trackAppStart(params: AppStart): Promise<Response>;
102
+ trackScreenView(params: Action): Promise<Response>;
103
+ trackAction(params: Action): Promise<Response>;
104
+ trackEvent(params: Event): Promise<Response>;
105
+ trackSiteSearch(params: SiteSearch): Promise<Response>;
106
+ trackLink(params: Link): Promise<Response>;
107
+ trackDownload(params: Download): Promise<Response>;
109
108
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/matomo-tracker-react-native",
3
- "version": "0.3.1",
3
+ "version": "0.3.2",
4
4
  "description": "TypeScript definitions for matomo-tracker-react-native",
5
5
  "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/matomo-tracker-react-native",
6
6
  "license": "MIT",
@@ -22,6 +22,6 @@
22
22
  "dependencies": {
23
23
  "@types/react": "*"
24
24
  },
25
- "typesPublisherContentHash": "afc09f709d7a9114f305f4e78e3b83ab037fec136622c63699f97a14b4bd0d2a",
26
- "typeScriptVersion": "4.4"
25
+ "typesPublisherContentHash": "e2ac2fd7743a6a51e6463d016ef1e8762ff0f6409dc3e5dbf1d61cd372b9f2e4",
26
+ "typeScriptVersion": "4.5"
27
27
  }