analytica.click 0.0.434 → 0.0.435

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/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- declare module 'analytica.click/components/AnalyticaClickProvider/index' {
2
- import type { IAnalyticaConfig } from 'common-ui/src/types/widgets';
1
+ declare module 'analytica.click/dist/components/AnalyticaClickProvider/index' {
2
+ import type { IAnalyticaConfig } from 'analytica.click/dist/common-ui/src/types/widgets';
3
3
  import React from 'react';
4
4
  export const AnalyticaConfigContext: React.Context<IAnalyticaConfig>;
5
5
  export const AnalyticaClickProvider: ({ children, values, }: {
@@ -8,8 +8,8 @@ declare module 'analytica.click/components/AnalyticaClickProvider/index' {
8
8
  }) => import("react/jsx-runtime").JSX.Element;
9
9
 
10
10
  }
11
- declare module 'analytica.click/components/ErrorBoundary/Comp' {
12
- import type { TErrorMessage } from 'common-ui/src/types/widgets';
11
+ declare module 'analytica.click/dist/components/ErrorBoundary/Comp' {
12
+ import type { TErrorMessage } from 'analytica.click/dist/common-ui/src/types/widgets';
13
13
  import React, { Component } from 'react';
14
14
  export interface IErrorBoundaryProps {
15
15
  notify?: TErrorMessage;
@@ -27,19 +27,19 @@ declare module 'analytica.click/components/ErrorBoundary/Comp' {
27
27
  }
28
28
 
29
29
  }
30
- declare module 'analytica.click/components/ErrorBoundary/index' {
30
+ declare module 'analytica.click/dist/components/ErrorBoundary/index' {
31
31
  import React from 'react';
32
32
  export const ErrorBoundary: ({ children, }: {
33
33
  children?: React.ReactNode;
34
34
  }) => JSX.Element;
35
35
 
36
36
  }
37
- declare module 'analytica.click/components/index' {
38
- export * from 'analytica.click/components/AnalyticaClickProvider/index';
37
+ declare module 'analytica.click/dist/components/index' {
38
+ export * from 'analytica.click/dist/components/AnalyticaClickProvider/index';
39
39
 
40
40
  }
41
- declare module 'analytica.click/helpers/browser' {
42
- import type { IAnalyticaConfig } from 'common-ui/src/types';
41
+ declare module 'analytica.click/dist/helpers/browser' {
42
+ import type { IAnalyticaConfig } from 'analytica.click/dist/common-ui/src/types/index';
43
43
  export function onBrowserError({ ev: { error: { message, stack }, filename, }, values, }: {
44
44
  ev: ErrorEvent;
45
45
  values: IAnalyticaConfig;
@@ -47,13 +47,13 @@ declare module 'analytica.click/helpers/browser' {
47
47
  export function OverloadBrowser(values: IAnalyticaConfig): void;
48
48
 
49
49
  }
50
- declare module 'analytica.click/helpers/console' {
51
- import type { IAnalyticaConfig } from 'common-ui/src/types';
50
+ declare module 'analytica.click/dist/helpers/console' {
51
+ import type { IAnalyticaConfig } from 'analytica.click/dist/common-ui/src/types/index';
52
52
  export function OverloadConsole(values: IAnalyticaConfig): void;
53
53
 
54
54
  }
55
- declare module 'analytica.click/helpers/errorTrack' {
56
- import type { PostError } from 'common-ui/src/types/api';
55
+ declare module 'analytica.click/dist/helpers/errorTrack' {
56
+ import type { PostError } from 'analytica.click/dist/common-ui/src/types/api';
57
57
  export const errorTrack: ({ data, overrideBaseUrl, ignoreBrowserErrors, }: {
58
58
  data: PostError;
59
59
  overrideBaseUrl?: string | undefined;
@@ -62,45 +62,47 @@ declare module 'analytica.click/helpers/errorTrack' {
62
62
  }) => Promise<{} | undefined>;
63
63
 
64
64
  }
65
- declare module 'analytica.click/helpers/index' {
66
- export * from 'analytica.click/helpers/errorTrack';
67
- export * from 'analytica.click/helpers/log';
68
- export * from 'analytica.click/helpers/track';
69
- export * from 'analytica.click/helpers/trackServer';
65
+ declare module 'analytica.click/dist/helpers/index' {
66
+ export * from 'analytica.click/dist/helpers/errorTrack';
67
+ export * from 'analytica.click/dist/helpers/log';
68
+ export * from 'analytica.click/dist/helpers/track';
69
+ export * from 'analytica.click/dist/helpers/trackServer';
70
70
 
71
71
  }
72
- declare module 'analytica.click/helpers/log' {
72
+ declare module 'analytica.click/dist/helpers/log' {
73
73
  export const tokenMissing: (comp: string) => string;
74
74
 
75
75
  }
76
- declare module 'analytica.click/helpers/object' {
76
+ declare module 'analytica.click/dist/helpers/object' {
77
77
  export const takeObject: <T>(ob: Record<string, T>, num: number) => {
78
78
  part: T[];
79
79
  rest: Record<string, T>;
80
80
  };
81
81
 
82
82
  }
83
- declare module 'analytica.click/helpers/track' {
84
- import type { ITrack } from 'common-ui/src/types/widgets';
85
- import { page, track } from 'analytica.click/helpers/trackServer';
83
+ declare module 'analytica.click/dist/helpers/track' {
84
+ import type { ITrack } from 'analytica.click/dist/common-ui/src/types/widgets';
85
+ import { page, track } from 'analytica.click/dist/helpers/trackServer';
86
86
  export const useTrack: () => {
87
87
  page: (d: Omit<ITrack, 'eventName' | 'analyticaToken' | 'overrideBaseUrl'>) => void;
88
88
  track: (d: Omit<ITrack, 'analyticaToken' | 'overrideBaseUrl'>) => void;
89
89
  };
90
90
 
91
91
  }
92
- declare module 'analytica.click/helpers/trackServer' {
93
- import type { TTrack, TTrackNoEvent } from 'common-ui/src/types/widgets';
92
+ declare module 'analytica.click/dist/helpers/trackServer' {
93
+ import type { TTrack, TTrackNoEvent } from 'analytica.click/dist/common-ui/src/types/widgets';
94
94
  export const track: TTrack;
95
95
  export const page: TTrackNoEvent;
96
96
 
97
97
  }
98
- declare module 'analytica.click/index' {
99
- export * from 'analytica.click/components/index';
100
- export * from 'analytica.click/helpers/index';
98
+ declare module 'analytica.click/dist/index' {
99
+ export * from 'analytica.click/dist/common-ui/src/types/index';
100
+
101
+ export * from 'analytica.click/dist/components/index';
102
+ export * from 'analytica.click/dist/helpers/index';
101
103
 
102
104
  }
103
- declare module 'analytica.click/common-ui/src/types/api' {
105
+ declare module 'analytica.click/dist/common-ui/src/types/api' {
104
106
  export interface PostError {
105
107
  key: string;
106
108
  data: PostErrorData;
@@ -114,12 +116,12 @@ declare module 'analytica.click/common-ui/src/types/api' {
114
116
  }
115
117
 
116
118
  }
117
- declare module 'analytica.click/common-ui/src/types/index' {
118
- export * from 'analytica.click/common-ui/src/types/api';
119
- export * from 'analytica.click/common-ui/src/types/widgets';
119
+ declare module 'analytica.click/dist/common-ui/src/types/index' {
120
+ export * from 'analytica.click/dist/common-ui/src/types/api';
121
+ export * from 'analytica.click/dist/common-ui/src/types/widgets';
120
122
 
121
123
  }
122
- declare module 'analytica.click/common-ui/src/types/widgets' {
124
+ declare module 'analytica.click/dist/common-ui/src/types/widgets' {
123
125
  export type TTrackNoEvent = (p: Omit<ITrack, 'eventName'>) => Promise<{
124
126
  error?: string;
125
127
  }>;
@@ -142,12 +144,6 @@ declare module 'analytica.click/common-ui/src/types/widgets' {
142
144
 
143
145
  }
144
146
  declare module 'analytica.click' {
145
- import main = require('analytica.click/types');
147
+ import main = require('analytica.click/dist/index');
146
148
  export = main;
147
- }
148
- declare module 'analytica.click/types' {
149
- export * from 'analytica.click/common-ui/src/types/index';
150
- export * from 'analytica.click/common/src/types/index';
151
- export * from 'analytica.click/components/index';
152
- export * from 'analytica.click/helpers/index';
153
- }
149
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "analytica.click",
3
- "version": "0.0.434",
3
+ "version": "0.0.435",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "typings": "dist/index.d.ts",
@@ -1,7 +0,0 @@
1
- import type { IAnalyticaConfig } from 'common-ui/src/types/widgets';
2
- import React from 'react';
3
- export declare const AnalyticaConfigContext: React.Context<IAnalyticaConfig>;
4
- export declare const AnalyticaClickProvider: ({ children, values, }: {
5
- children: React.ReactNode;
6
- values: IAnalyticaConfig;
7
- }) => import("react/jsx-runtime").JSX.Element;
@@ -1,16 +0,0 @@
1
- import type { TErrorMessage } from 'common-ui/src/types/widgets';
2
- import React, { Component } from 'react';
3
- export interface IErrorBoundaryProps {
4
- notify?: TErrorMessage;
5
- children?: React.ReactNode;
6
- }
7
- export declare class ErrorBoundary extends Component<IErrorBoundaryProps, {
8
- hasError: ErrorEvent | undefined;
9
- }> {
10
- seenError: boolean;
11
- constructor(props: any);
12
- static getDerivedStateFromError(errorV: any): {
13
- hasError: any;
14
- };
15
- render(): string | number | boolean | Iterable<React.ReactNode> | import("react/jsx-runtime").JSX.Element | null | undefined;
16
- }
@@ -1,4 +0,0 @@
1
- import React from 'react';
2
- export declare const ErrorBoundary: ({ children, }: {
3
- children?: React.ReactNode;
4
- }) => JSX.Element;
@@ -1 +0,0 @@
1
- export * from './AnalyticaClickProvider';
@@ -1,6 +0,0 @@
1
- import type { IAnalyticaConfig } from 'common-ui/src/types';
2
- export declare function onBrowserError({ ev: { error: { message, stack }, filename, }, values, }: {
3
- ev: ErrorEvent;
4
- values: IAnalyticaConfig;
5
- }): Promise<void>;
6
- export declare function OverloadBrowser(values: IAnalyticaConfig): void;
@@ -1,2 +0,0 @@
1
- import type { IAnalyticaConfig } from 'common-ui/src/types';
2
- export declare function OverloadConsole(values: IAnalyticaConfig): void;
@@ -1,4 +0,0 @@
1
- export * from './errorTrack';
2
- export * from './log';
3
- export * from './track';
4
- export * from './trackServer';
@@ -1 +0,0 @@
1
- export declare const tokenMissing: (comp: string) => string;
@@ -1,4 +0,0 @@
1
- export declare const takeObject: <T>(ob: Record<string, T>, num: number) => {
2
- part: T[];
3
- rest: Record<string, T>;
4
- };
@@ -1,6 +0,0 @@
1
- import type { ITrack } from 'common-ui/src/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
- };