@gemx-dev/heatmap-react 3.5.26 → 3.5.27
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/esm/components/Layout/HeatmapLayout.d.ts.map +1 -1
- package/dist/esm/index.d.ts +1 -1
- package/dist/esm/index.d.ts.map +1 -1
- package/dist/esm/index.js +2 -1170
- package/dist/esm/index.mjs +2 -1170
- package/dist/esm/types/clarity.d.ts +36 -0
- package/dist/esm/types/clarity.d.ts.map +1 -0
- package/dist/esm/types/heatmap.d.ts +5 -0
- package/dist/esm/types/heatmap.d.ts.map +1 -0
- package/dist/esm/types/index.d.ts +4 -0
- package/dist/esm/types/index.d.ts.map +1 -0
- package/dist/esm/types/viz-element.d.ts +34 -0
- package/dist/esm/types/viz-element.d.ts.map +1 -0
- package/dist/umd/components/Layout/HeatmapLayout.d.ts.map +1 -1
- package/dist/umd/index.d.ts +1 -1
- package/dist/umd/index.d.ts.map +1 -1
- package/dist/umd/index.js +2 -2
- package/dist/umd/types/clarity.d.ts +36 -0
- package/dist/umd/types/clarity.d.ts.map +1 -0
- package/dist/umd/types/heatmap.d.ts +5 -0
- package/dist/umd/types/heatmap.d.ts.map +1 -0
- package/dist/umd/types/index.d.ts +4 -0
- package/dist/umd/types/index.d.ts.map +1 -0
- package/dist/umd/types/viz-element.d.ts +34 -0
- package/dist/umd/types/viz-element.d.ts.map +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import type { Data, MergedPayload } from '@gemx-dev/clarity-visualize';
|
|
2
|
+
export interface HeatmapProject {
|
|
3
|
+
id: string;
|
|
4
|
+
name: string;
|
|
5
|
+
domain: string;
|
|
6
|
+
apiKey: string;
|
|
7
|
+
_count?: {
|
|
8
|
+
sessions: number;
|
|
9
|
+
};
|
|
10
|
+
}
|
|
11
|
+
export interface SessionData {
|
|
12
|
+
id: string;
|
|
13
|
+
projectId: string;
|
|
14
|
+
userId?: string;
|
|
15
|
+
startTime: Date;
|
|
16
|
+
endTime?: Date;
|
|
17
|
+
pageUrl: string;
|
|
18
|
+
userAgent?: string;
|
|
19
|
+
screenWidth?: number;
|
|
20
|
+
screenHeight?: number;
|
|
21
|
+
deviceType?: string;
|
|
22
|
+
browser?: string;
|
|
23
|
+
}
|
|
24
|
+
export interface ClickMapPoint {
|
|
25
|
+
hash: string;
|
|
26
|
+
selector: string;
|
|
27
|
+
totalclicks: number;
|
|
28
|
+
x: number[];
|
|
29
|
+
y: number[];
|
|
30
|
+
clicks: number[];
|
|
31
|
+
points: number;
|
|
32
|
+
}
|
|
33
|
+
export type DecodedPayload = Data.DecodedPayload;
|
|
34
|
+
export type DecodedEvents = MergedPayload['events'];
|
|
35
|
+
export type DecodedEvent = DecodedEvents[number];
|
|
36
|
+
//# sourceMappingURL=clarity.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"clarity.d.ts","sourceRoot":"","sources":["../../src/types/clarity.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAEvE,MAAM,WAAW,cAAc;IAC7B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE;QACP,QAAQ,EAAE,MAAM,CAAC;KAClB,CAAC;CACH;AAED,MAAM,WAAW,WAAW;IAC1B,EAAE,EAAE,MAAM,CAAC;IACX,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,IAAI,CAAC;IAChB,OAAO,CAAC,EAAE,IAAI,CAAC;IACf,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,aAAa;IAC5B,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;IACjB,WAAW,EAAE,MAAM,CAAC;IACpB,CAAC,EAAE,MAAM,EAAE,CAAC;IACZ,CAAC,EAAE,MAAM,EAAE,CAAC;IACZ,MAAM,EAAE,MAAM,EAAE,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC;CAChB;AACD,MAAM,MAAM,cAAc,GAAG,IAAI,CAAC,cAAc,CAAC;AACjD,MAAM,MAAM,aAAa,GAAG,aAAa,CAAC,QAAQ,CAAC,CAAC;AACpD,MAAM,MAAM,YAAY,GAAG,aAAa,CAAC,MAAM,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"heatmap.d.ts","sourceRoot":"","sources":["../../src/types/heatmap.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,cAAc;IAC7B,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,SAAS,GAAG,UAAU,CAAC;CACrC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,WAAW,CAAC;AAC1B,cAAc,eAAe,CAAC"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
export interface ElementRect {
|
|
2
|
+
top: number;
|
|
3
|
+
left: number;
|
|
4
|
+
width: number;
|
|
5
|
+
height: number;
|
|
6
|
+
}
|
|
7
|
+
export interface ElementInfo extends ElementRect {
|
|
8
|
+
hash: string;
|
|
9
|
+
clicks: number;
|
|
10
|
+
rank: number;
|
|
11
|
+
selector: string;
|
|
12
|
+
}
|
|
13
|
+
export interface HeatmapElement {
|
|
14
|
+
hash: string;
|
|
15
|
+
selector?: string;
|
|
16
|
+
totalclicks?: number;
|
|
17
|
+
}
|
|
18
|
+
export interface ElementMapInfo {
|
|
19
|
+
[key: string]: {
|
|
20
|
+
totalclicks: number;
|
|
21
|
+
selector?: string;
|
|
22
|
+
hash: string;
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
export interface HeatmapInfo {
|
|
26
|
+
sortedElements?: HeatmapElement[];
|
|
27
|
+
elementMapInfo?: ElementMapInfo;
|
|
28
|
+
totalClicks?: number;
|
|
29
|
+
width?: number;
|
|
30
|
+
}
|
|
31
|
+
export interface WebVisualizer {
|
|
32
|
+
get: (hash: string) => HTMLElement | null;
|
|
33
|
+
}
|
|
34
|
+
//# sourceMappingURL=viz-element.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"viz-element.d.ts","sourceRoot":"","sources":["../../src/types/viz-element.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,WAAW;IAC1B,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,WAAY,SAAQ,WAAW;IAC9C,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,cAAc;IAC7B,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,WAAW,cAAc;IAC7B,CAAC,GAAG,EAAE,MAAM,GAAG;QACb,WAAW,EAAE,MAAM,CAAC;QACpB,QAAQ,CAAC,EAAE,MAAM,CAAC;QAClB,IAAI,EAAE,MAAM,CAAC;KACd,CAAC;CACH;AAED,MAAM,WAAW,WAAW;IAC1B,cAAc,CAAC,EAAE,cAAc,EAAE,CAAC;IAClC,cAAc,CAAC,EAAE,cAAc,CAAC;IAChC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAGD,MAAM,WAAW,aAAa;IAC5B,GAAG,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,WAAW,GAAG,IAAI,CAAC;CAC3C"}
|