analytica.click 0.0.391 → 0.0.392
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.
- package/dist/components/AnalyticaConfig/index.d.ts +7 -0
- package/dist/components/ErrorBoundary/index.d.ts +5 -0
- package/dist/components/index.d.ts +2 -0
- package/dist/helpers/errorTrack.d.ts +5 -0
- package/dist/helpers/index.d.ts +4 -0
- package/dist/helpers/log.d.ts +1 -0
- package/dist/helpers/object.d.ts +4 -0
- package/dist/helpers/track.d.ts +6 -0
- package/dist/helpers/trackServer.d.ts +3 -0
- package/dist/index.d.ts +2 -111
- package/package.json +19 -18
@@ -0,0 +1,7 @@
|
|
1
|
+
import type { IAnalyticaConfig } from 'common-ui/dist/types/widgets';
|
2
|
+
import React from 'react';
|
3
|
+
export declare const AnalyticaConfigContext: React.Context<IAnalyticaConfig>;
|
4
|
+
export declare const AnalyticaConfigProvider: ({ children, values, }: {
|
5
|
+
children: React.ReactNode;
|
6
|
+
values: IAnalyticaConfig;
|
7
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
@@ -0,0 +1 @@
|
|
1
|
+
export declare const tokenMissing: (comp: string) => string;
|
@@ -0,0 +1,6 @@
|
|
1
|
+
import type { ITrack } from 'common-ui/dist/types/widgets';
|
2
|
+
import { page, track } from './trackServer';
|
3
|
+
export declare const useTrack: () => {
|
4
|
+
page: (d: Omit<ITrack, 'eventName' | 'analyticaToken' | 'overrideBaseUrl'>) => void;
|
5
|
+
track: (d: Omit<ITrack, 'analyticaToken' | 'overrideBaseUrl'>) => void;
|
6
|
+
};
|
package/dist/index.d.ts
CHANGED
@@ -1,115 +1,6 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
import React from 'react';
|
4
|
-
export const AnalyticaConfigContext: React.Context<IAnalyticaConfig>;
|
5
|
-
export const AnalyticaConfigProvider: ({ children, values, }: {
|
6
|
-
children: React.ReactNode;
|
7
|
-
values: IAnalyticaConfig;
|
8
|
-
}) => import("react/jsx-runtime").JSX.Element;
|
1
|
+
export * from './components';
|
2
|
+
export * from './helpers';
|
9
3
|
|
10
|
-
}
|
11
|
-
declare module 'analytica.click/analytica.click/src/components/ErrorBoundary/index' {
|
12
|
-
/// <reference types="react" />
|
13
|
-
export const ErrorBoundary: ({ children, filterBrowserError, }: {
|
14
|
-
children?: JSX.Element | JSX.Element[] | undefined;
|
15
|
-
filterBrowserError?: ((e: ErrorEvent | Error) => boolean) | undefined;
|
16
|
-
}) => JSX.Element;
|
17
|
-
|
18
|
-
}
|
19
|
-
declare module 'analytica.click/analytica.click/src/components/index' {
|
20
|
-
export * from 'analytica.click/analytica.click/src/components/AnalyticaConfig/index';
|
21
|
-
export * from 'analytica.click/analytica.click/src/components/ErrorBoundary/index';
|
22
|
-
|
23
|
-
}
|
24
|
-
declare module 'analytica.click/analytica.click/src/helpers/errorTrack' {
|
25
|
-
import type { PostError } from 'analytica.click/common-ui/src/types/api';
|
26
|
-
export const errorTrack: ({ data, overrideBaseUrl, }: {
|
27
|
-
data: PostError;
|
28
|
-
overrideBaseUrl?: string | undefined;
|
29
|
-
}) => Promise<{}>;
|
30
|
-
|
31
|
-
}
|
32
|
-
declare module 'analytica.click/analytica.click/src/helpers/index' {
|
33
|
-
export * from 'analytica.click/analytica.click/src/helpers/errorTrack';
|
34
|
-
export * from 'analytica.click/analytica.click/src/helpers/log';
|
35
|
-
export * from 'analytica.click/analytica.click/src/helpers/track';
|
36
|
-
export * from 'analytica.click/analytica.click/src/helpers/trackServer';
|
37
|
-
|
38
|
-
}
|
39
|
-
declare module 'analytica.click/analytica.click/src/helpers/log' {
|
40
|
-
export const tokenMissing: (comp: string) => string;
|
41
|
-
|
42
|
-
}
|
43
|
-
declare module 'analytica.click/analytica.click/src/helpers/object' {
|
44
|
-
export const takeObject: <T>(ob: Record<string, T>, num: number) => {
|
45
|
-
part: T[];
|
46
|
-
rest: Record<string, T>;
|
47
|
-
};
|
48
|
-
|
49
|
-
}
|
50
|
-
declare module 'analytica.click/analytica.click/src/helpers/track' {
|
51
|
-
import type { ITrack } from 'analytica.click/common-ui/src/types/widgets';
|
52
|
-
import { page, track } from 'analytica.click/analytica.click/src/helpers/trackServer';
|
53
|
-
export const useTrack: () => {
|
54
|
-
page: (d: Omit<ITrack, 'eventName' | 'analyticaToken' | 'overrideBaseUrl'>) => void;
|
55
|
-
track: (d: Omit<ITrack, 'analyticaToken' | 'overrideBaseUrl'>) => void;
|
56
|
-
};
|
57
|
-
|
58
|
-
}
|
59
|
-
declare module 'analytica.click/analytica.click/src/helpers/trackServer' {
|
60
|
-
import type { TTrack, TTrackNoEvent } from 'analytica.click/common-ui/src/types/widgets';
|
61
|
-
export const track: TTrack;
|
62
|
-
export const page: TTrackNoEvent;
|
63
|
-
|
64
|
-
}
|
65
|
-
declare module 'analytica.click/analytica.click/src/index' {
|
66
|
-
export * from 'analytica.click/analytica.click/src/components/index';
|
67
|
-
export * from 'analytica.click/analytica.click/src/helpers/index';
|
68
|
-
|
69
|
-
}
|
70
|
-
declare module 'analytica.click/common-ui/src/types/api' {
|
71
|
-
export interface PostError {
|
72
|
-
key: string;
|
73
|
-
data: PostErrorData;
|
74
|
-
}
|
75
|
-
export interface PostErrorData {
|
76
|
-
message: string;
|
77
|
-
name?: string;
|
78
|
-
stack?: string;
|
79
|
-
href: string;
|
80
|
-
filename?: string;
|
81
|
-
}
|
82
|
-
|
83
|
-
}
|
84
|
-
declare module 'analytica.click/common-ui/src/types/index' {
|
85
|
-
export * from 'analytica.click/common-ui/src/types/api';
|
86
|
-
export * from 'analytica.click/common-ui/src/types/widgets';
|
87
|
-
|
88
|
-
}
|
89
|
-
declare module 'analytica.click/common-ui/src/types/widgets' {
|
90
|
-
export type TTrackNoEvent = (p: Omit<ITrack, 'eventName'>) => Promise<{
|
91
|
-
error?: string;
|
92
|
-
}>;
|
93
|
-
export type TTrack = (p: ITrack) => Promise<{
|
94
|
-
error?: string;
|
95
|
-
}>;
|
96
|
-
export interface ITrack {
|
97
|
-
analyticaToken: string;
|
98
|
-
overrideBaseUrl?: string;
|
99
|
-
eventName: string;
|
100
|
-
}
|
101
|
-
export type TErrorMessage = (m: Error | ErrorEvent) => Promise<void>;
|
102
|
-
export interface IAnalyticaConfig {
|
103
|
-
analyticaToken?: string;
|
104
|
-
overrideBaseUrl?: string;
|
105
|
-
devMode?: boolean;
|
106
|
-
}
|
107
|
-
|
108
|
-
}
|
109
|
-
declare module 'analytica.click' {
|
110
|
-
import main = require('analytica.click/types');
|
111
|
-
export = main;
|
112
|
-
}
|
113
4
|
declare module 'analytica.click/types' {
|
114
5
|
export * from 'analytica.click/common-ui/src/types/index';
|
115
6
|
export * from 'analytica.click/analytica.click/src/components/index';
|
package/package.json
CHANGED
@@ -1,31 +1,32 @@
|
|
1
1
|
{
|
2
2
|
"name": "analytica.click",
|
3
|
-
"version": "0.0.
|
3
|
+
"version": "0.0.392",
|
4
4
|
"description": "",
|
5
5
|
"main": "dist/index.js",
|
6
6
|
"typings": "dist/index.d.ts",
|
7
7
|
"author": " <help@analytica.click> (analytica.click)",
|
8
8
|
"license": "ISC",
|
9
9
|
"dependencies": {
|
10
|
-
"@emotion/react": "
|
11
|
-
"@emotion/styled": "
|
12
|
-
"@types/jsonwebtoken": "9
|
13
|
-
"@types/react": "18
|
14
|
-
"ag-common": "0.
|
15
|
-
"axios": "1
|
16
|
-
"cross-env": "7
|
17
|
-
"esbuild": "0.
|
18
|
-
"
|
19
|
-
"
|
20
|
-
"
|
21
|
-
"react
|
22
|
-
"
|
23
|
-
"
|
24
|
-
"
|
10
|
+
"@emotion/react": "^11",
|
11
|
+
"@emotion/styled": "^11",
|
12
|
+
"@types/jsonwebtoken": "^9",
|
13
|
+
"@types/react": "^18",
|
14
|
+
"ag-common": "^0.0.561",
|
15
|
+
"axios": "^1",
|
16
|
+
"cross-env": "^7",
|
17
|
+
"esbuild": "^0.19",
|
18
|
+
"esbuild-plugin-d.ts": "^1",
|
19
|
+
"jsonwebtoken": "^9",
|
20
|
+
"nodemon": "^3",
|
21
|
+
"react": "^18",
|
22
|
+
"react-dom": "^18",
|
23
|
+
"rimraf": "^5",
|
24
|
+
"ts-node": "^10",
|
25
|
+
"typescript": "^5"
|
25
26
|
},
|
26
27
|
"devDependencies": {
|
27
|
-
"esbuild-node-externals": "1.9.0",
|
28
|
-
"npm-dts": "1.3.12",
|
28
|
+
"esbuild-node-externals": "^1.9.0",
|
29
|
+
"npm-dts": "^1.3.12",
|
29
30
|
"common": "0.0.2",
|
30
31
|
"common-ui": "0.0.2"
|
31
32
|
},
|