@gemx-dev/heatmap-react 3.5.26 → 3.5.28
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 +19 -1184
- package/dist/esm/index.mjs +19 -1184
- package/dist/esm/stores/data.d.ts +2 -1
- package/dist/esm/stores/data.d.ts.map +1 -1
- 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/stores/data.d.ts +2 -1
- package/dist/umd/stores/data.d.ts.map +1 -1
- 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 +5 -4
|
@@ -11,7 +11,8 @@ export interface IHeatmapDataStore {
|
|
|
11
11
|
setState: (state: IHeatmapState) => void;
|
|
12
12
|
setData: (data: DecodedPayload[]) => void;
|
|
13
13
|
setClickmap: (clickmap: ClickMapPoint[]) => void;
|
|
14
|
-
setConfig: (
|
|
14
|
+
setConfig: (value: IHeatmapConfig) => void;
|
|
15
|
+
setConfigBy: (key: keyof IHeatmapConfig, value: IHeatmapConfig[keyof IHeatmapConfig]) => void;
|
|
15
16
|
setIframeHeight: (iframeHeight: number) => void;
|
|
16
17
|
}
|
|
17
18
|
export declare const useHeatmapDataStore: import("zustand").UseBoundStore<import("zustand").StoreApi<IHeatmapDataStore>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"data.d.ts","sourceRoot":"","sources":["../../src/stores/data.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAEzE,MAAM,WAAW,aAAa;IAC5B,WAAW,EAAE,OAAO,CAAC;CACtB;AAED,MAAM,WAAW,iBAAiB;IAChC,IAAI,CAAC,EAAE,cAAc,EAAE,CAAC;IACxB,QAAQ,CAAC,EAAE,aAAa,EAAE,CAAC;IAC3B,MAAM,CAAC,EAAE,cAAc,CAAC;IACxB,YAAY,EAAE,MAAM,CAAC;IACrB,KAAK,EAAE,aAAa,CAAC;IACrB,QAAQ,EAAE,CAAC,KAAK,EAAE,aAAa,KAAK,IAAI,CAAC;IACzC,OAAO,EAAE,CAAC,IAAI,EAAE,cAAc,EAAE,KAAK,IAAI,CAAC;IAC1C,WAAW,EAAE,CAAC,QAAQ,EAAE,aAAa,EAAE,KAAK,IAAI,CAAC;IACjD,SAAS,EAAE,CAAC,MAAM,EAAE,cAAc,KAAK,IAAI,CAAC;
|
|
1
|
+
{"version":3,"file":"data.d.ts","sourceRoot":"","sources":["../../src/stores/data.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAEzE,MAAM,WAAW,aAAa;IAC5B,WAAW,EAAE,OAAO,CAAC;CACtB;AAED,MAAM,WAAW,iBAAiB;IAChC,IAAI,CAAC,EAAE,cAAc,EAAE,CAAC;IACxB,QAAQ,CAAC,EAAE,aAAa,EAAE,CAAC;IAC3B,MAAM,CAAC,EAAE,cAAc,CAAC;IACxB,YAAY,EAAE,MAAM,CAAC;IACrB,KAAK,EAAE,aAAa,CAAC;IACrB,QAAQ,EAAE,CAAC,KAAK,EAAE,aAAa,KAAK,IAAI,CAAC;IACzC,OAAO,EAAE,CAAC,IAAI,EAAE,cAAc,EAAE,KAAK,IAAI,CAAC;IAC1C,WAAW,EAAE,CAAC,QAAQ,EAAE,aAAa,EAAE,KAAK,IAAI,CAAC;IACjD,SAAS,EAAE,CAAC,KAAK,EAAE,cAAc,KAAK,IAAI,CAAC;IAC3C,WAAW,EAAE,CAAC,GAAG,EAAE,MAAM,cAAc,EAAE,KAAK,EAAE,cAAc,CAAC,MAAM,cAAc,CAAC,KAAK,IAAI,CAAC;IAC9F,eAAe,EAAE,CAAC,YAAY,EAAE,MAAM,KAAK,IAAI,CAAC;CACjD;AAED,eAAO,MAAM,mBAAmB,gFAgB9B,CAAC"}
|
|
@@ -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,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,OAAO,GAAG,QAAQ,CAAC;CAClC"}
|
|
@@ -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"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gemx-dev/heatmap-react",
|
|
3
3
|
"author": "gemx-dev",
|
|
4
|
-
"version": "3.5.
|
|
4
|
+
"version": "3.5.28",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"sideEffects": [
|
|
7
7
|
"*.css"
|
|
@@ -28,8 +28,8 @@
|
|
|
28
28
|
"zustand": "^4.4.3"
|
|
29
29
|
},
|
|
30
30
|
"peerDependencies": {
|
|
31
|
-
"react": "
|
|
32
|
-
"react-dom": "
|
|
31
|
+
"react": ">=17",
|
|
32
|
+
"react-dom": ">=17"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
35
35
|
"@gemx-dev/eslint-config": "workspace:*",
|
|
@@ -47,6 +47,7 @@
|
|
|
47
47
|
"postcss-import": "^15.1.0",
|
|
48
48
|
"postcss-nested": "^6.0.0",
|
|
49
49
|
"postcss-rename": "^0.6.1",
|
|
50
|
+
"react": "^18.2.0",
|
|
50
51
|
"rollup": "3.29.5",
|
|
51
52
|
"typescript": "5.9.2"
|
|
52
53
|
},
|
|
@@ -56,7 +57,7 @@
|
|
|
56
57
|
"zustand": "zustand",
|
|
57
58
|
"zustand/shallow": "zustandShallow"
|
|
58
59
|
},
|
|
59
|
-
"name": "
|
|
60
|
+
"name": "HeatmapReact"
|
|
60
61
|
},
|
|
61
62
|
"publishConfig": {
|
|
62
63
|
"access": "public"
|