@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:
|
|
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
|
|
7
|
+
import * as React from "react";
|
|
8
8
|
|
|
9
9
|
export interface AppStart {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
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
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
};
|
|
31
|
+
name: string;
|
|
32
|
+
userInfo?: {
|
|
33
|
+
uid?: string;
|
|
34
|
+
};
|
|
36
35
|
}
|
|
37
36
|
|
|
38
37
|
export interface Event {
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
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
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
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
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
57
|
+
link: string;
|
|
58
|
+
url?: string;
|
|
59
|
+
userInfo?: {
|
|
60
|
+
uid?: string;
|
|
61
|
+
};
|
|
63
62
|
}
|
|
64
63
|
|
|
65
64
|
export interface Download {
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
65
|
+
download: string;
|
|
66
|
+
url?: string;
|
|
67
|
+
userInfo?: {
|
|
68
|
+
uid?: string;
|
|
69
|
+
};
|
|
71
70
|
}
|
|
72
71
|
|
|
73
72
|
export function useMatomo(): {
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
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
|
-
|
|
85
|
-
|
|
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
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
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
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
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.
|
|
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": "
|
|
26
|
-
"typeScriptVersion": "4.
|
|
25
|
+
"typesPublisherContentHash": "e2ac2fd7743a6a51e6463d016ef1e8762ff0f6409dc3e5dbf1d61cd372b9f2e4",
|
|
26
|
+
"typeScriptVersion": "4.5"
|
|
27
27
|
}
|