@gemx-dev/heatmap-react 3.5.92-dev.10 → 3.5.92-dev.11

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.
Files changed (50) hide show
  1. package/dist/esm/components/Layout/HeatmapLayout.d.ts +1 -0
  2. package/dist/esm/components/Layout/HeatmapLayout.d.ts.map +1 -1
  3. package/dist/esm/hooks/common/useHeatmapWidthByDevice.d.ts.map +1 -1
  4. package/dist/esm/hooks/register/useRegisterConfig.d.ts +2 -1
  5. package/dist/esm/hooks/register/useRegisterConfig.d.ts.map +1 -1
  6. package/dist/esm/hooks/view-context/useHeatmapDataContext.d.ts +2 -0
  7. package/dist/esm/hooks/view-context/useHeatmapDataContext.d.ts.map +1 -1
  8. package/dist/esm/hooks/viz-render/useHeatmapRender.d.ts.map +1 -1
  9. package/dist/esm/index.js +97 -25
  10. package/dist/esm/index.mjs +97 -25
  11. package/dist/esm/libs/iframe-processor/index.d.ts +1 -1
  12. package/dist/esm/libs/iframe-processor/index.d.ts.map +1 -1
  13. package/dist/esm/libs/iframe-processor/processors/viewport/global-fixes/global-fixes/viewport-unit-replacer/fixes.d.ts.map +1 -1
  14. package/dist/esm/libs/index.d.ts +1 -0
  15. package/dist/esm/libs/index.d.ts.map +1 -1
  16. package/dist/esm/libs/perf.d.ts +83 -0
  17. package/dist/esm/libs/perf.d.ts.map +1 -0
  18. package/dist/esm/stores/config.d.ts +2 -0
  19. package/dist/esm/stores/config.d.ts.map +1 -1
  20. package/dist/esm/stores/data.d.ts +2 -0
  21. package/dist/esm/stores/data.d.ts.map +1 -1
  22. package/dist/esm/types/heatmap.d.ts +1 -0
  23. package/dist/esm/types/heatmap.d.ts.map +1 -1
  24. package/dist/umd/components/Layout/HeatmapLayout.d.ts +1 -0
  25. package/dist/umd/components/Layout/HeatmapLayout.d.ts.map +1 -1
  26. package/dist/umd/hooks/common/useHeatmapWidthByDevice.d.ts.map +1 -1
  27. package/dist/umd/hooks/register/useRegisterConfig.d.ts +2 -1
  28. package/dist/umd/hooks/register/useRegisterConfig.d.ts.map +1 -1
  29. package/dist/umd/hooks/view-context/useHeatmapDataContext.d.ts +2 -0
  30. package/dist/umd/hooks/view-context/useHeatmapDataContext.d.ts.map +1 -1
  31. package/dist/umd/hooks/viz-render/useHeatmapRender.d.ts.map +1 -1
  32. package/dist/umd/index.js +1 -1
  33. package/dist/umd/libs/iframe-processor/index.d.ts +1 -1
  34. package/dist/umd/libs/iframe-processor/index.d.ts.map +1 -1
  35. package/dist/umd/libs/iframe-processor/processors/viewport/global-fixes/global-fixes/viewport-unit-replacer/fixes.d.ts.map +1 -1
  36. package/dist/umd/libs/index.d.ts +1 -0
  37. package/dist/umd/libs/index.d.ts.map +1 -1
  38. package/dist/umd/libs/perf.d.ts +83 -0
  39. package/dist/umd/libs/perf.d.ts.map +1 -0
  40. package/dist/umd/stores/config.d.ts +2 -0
  41. package/dist/umd/stores/config.d.ts.map +1 -1
  42. package/dist/umd/stores/data.d.ts +2 -0
  43. package/dist/umd/stores/data.d.ts.map +1 -1
  44. package/dist/umd/types/heatmap.d.ts +1 -0
  45. package/dist/umd/types/heatmap.d.ts.map +1 -1
  46. package/package.json +1 -1
  47. package/dist/esm/libs/iframe-processor/shared/perf.d.ts +0 -58
  48. package/dist/esm/libs/iframe-processor/shared/perf.d.ts.map +0 -1
  49. package/dist/umd/libs/iframe-processor/shared/perf.d.ts +0 -58
  50. package/dist/umd/libs/iframe-processor/shared/perf.d.ts.map +0 -1
@@ -1,3 +1,3 @@
1
- export { createIframeHelper } from './lifecycle';
2
1
  export type { IframeHelper } from './lifecycle';
2
+ export { createIframeHelper } from './lifecycle';
3
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/libs/iframe-processor/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AACjD,YAAY,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/libs/iframe-processor/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAEhD,OAAO,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"fixes.d.ts","sourceRoot":"","sources":["../../../../../../../../src/libs/iframe-processor/processors/viewport/global-fixes/global-fixes/viewport-unit-replacer/fixes.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AAgOtD,wBAAsB,OAAO,CAAC,GAAG,EAAE,kBAAkB,GAAG,OAAO,CAAC,IAAI,CAAC,CAkBpE"}
1
+ {"version":3,"file":"fixes.d.ts","sourceRoot":"","sources":["../../../../../../../../src/libs/iframe-processor/processors/viewport/global-fixes/global-fixes/viewport-unit-replacer/fixes.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AA4PtD,wBAAsB,OAAO,CAAC,GAAG,EAAE,kBAAkB,GAAG,OAAO,CAAC,IAAI,CAAC,CAkBpE"}
@@ -1,2 +1,3 @@
1
+ export * from './perf';
1
2
  export * from './visualizer';
2
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/libs/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/libs/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAC;AACvB,cAAc,cAAc,CAAC"}
@@ -0,0 +1,83 @@
1
+ /**
2
+ * Unified performance timing utility.
3
+ *
4
+ * Two complementary tools:
5
+ *
6
+ * 1. `perf` — global DevTools session recorder.
7
+ * Stores structured timing in `window.__gemxPerf` for inspection.
8
+ * Used by the iframe-processor rendering pipeline.
9
+ *
10
+ * perf.startSession('render-1');
11
+ * const t = perf.mark('viewport.run');
12
+ * perf.measure('viewport.run', t);
13
+ * perf.endSession();
14
+ *
15
+ * 2. `createPerfTimer` — per-module console logger factory.
16
+ * Logs prefixed timings to the console AND records entries into the
17
+ * active global session so they appear in `window.__gemxPerf` too.
18
+ *
19
+ * const timer = createPerfTimer('Render');
20
+ * const t0 = timer.mark('start');
21
+ * await timer.wrap('visualizer.html', () => visualizer.html(...));
22
+ * timer.measure('total', t0);
23
+ */
24
+ export interface PerfEntry {
25
+ label: string;
26
+ /** Milliseconds from session start. */
27
+ t: number;
28
+ /** Duration in ms — only present for measure() calls. */
29
+ duration?: number;
30
+ }
31
+ export interface PerfSession {
32
+ id: string;
33
+ startedAt: number;
34
+ entries: PerfEntry[];
35
+ /** Total session duration in ms — set when endSession() is called. */
36
+ total?: number;
37
+ }
38
+ export interface PerfReport {
39
+ sessions: PerfSession[];
40
+ latest: PerfSession | null;
41
+ }
42
+ export interface PerfTimerConfig {
43
+ prefix: string;
44
+ enabled?: boolean;
45
+ }
46
+ export interface PerfTimer {
47
+ /** Log a start point and return the current timestamp. */
48
+ mark(label: string): number;
49
+ /** Log elapsed time since `from` (a value returned by mark). */
50
+ measure(label: string, from: number): void;
51
+ /** Wrap an async or sync callback — auto-logs start + elapsed. */
52
+ wrap<T>(label: string, fn: () => T | Promise<T>): Promise<T>;
53
+ /** Toggle options at runtime (e.g. from a debug flag). */
54
+ configure(config: Partial<PerfTimerConfig>): void;
55
+ }
56
+ declare global {
57
+ interface Window {
58
+ __gemxPerf?: PerfReport;
59
+ }
60
+ }
61
+ declare function startSession(id: string): void;
62
+ declare function endSession(): PerfSession | null;
63
+ /** Record a point-in-time mark. Returns `performance.now()` for use with measure(). */
64
+ declare function globalMark(label: string): number;
65
+ /** Record a duration from a previous mark() timestamp. */
66
+ declare function globalMeasure(label: string, t0: number): number;
67
+ declare function getReport(): PerfReport;
68
+ declare function clearSessions(): void;
69
+ declare function enableGlobal(): void;
70
+ declare function disableGlobal(): void;
71
+ export declare const perf: {
72
+ startSession: typeof startSession;
73
+ endSession: typeof endSession;
74
+ mark: typeof globalMark;
75
+ measure: typeof globalMeasure;
76
+ getReport: typeof getReport;
77
+ clear: typeof clearSessions;
78
+ enable: typeof enableGlobal;
79
+ disable: typeof disableGlobal;
80
+ };
81
+ export declare function createPerfTimer(config: PerfTimerConfig | string): PerfTimer;
82
+ export {};
83
+ //# sourceMappingURL=perf.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"perf.d.ts","sourceRoot":"","sources":["../../src/libs/perf.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AAIH,MAAM,WAAW,SAAS;IACxB,KAAK,EAAE,MAAM,CAAC;IACd,uCAAuC;IACvC,CAAC,EAAE,MAAM,CAAC;IACV,yDAAyD;IACzD,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,WAAW;IAC1B,EAAE,EAAE,MAAM,CAAC;IACX,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,SAAS,EAAE,CAAC;IACrB,sEAAsE;IACtE,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,UAAU;IACzB,QAAQ,EAAE,WAAW,EAAE,CAAC;IACxB,MAAM,EAAE,WAAW,GAAG,IAAI,CAAC;CAC5B;AAED,MAAM,WAAW,eAAe;IAC9B,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED,MAAM,WAAW,SAAS;IACxB,0DAA0D;IAC1D,IAAI,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAAC;IAC5B,gEAAgE;IAChE,OAAO,CAAC,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3C,kEAAkE;IAClE,IAAI,CAAC,CAAC,EAAE,KAAK,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC,CAAC;IAC7D,0DAA0D;IAC1D,SAAS,CAAC,MAAM,EAAE,OAAO,CAAC,eAAe,CAAC,GAAG,IAAI,CAAC;CACnD;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,MAAM;QACd,UAAU,CAAC,EAAE,UAAU,CAAC;KACzB;CACF;AAoBD,iBAAS,YAAY,CAAC,EAAE,EAAE,MAAM,GAAG,IAAI,CAGtC;AAED,iBAAS,UAAU,IAAI,WAAW,GAAG,IAAI,CAQxC;AAED,uFAAuF;AACvF,iBAAS,UAAU,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAMzC;AAED,0DAA0D;AAC1D,iBAAS,aAAa,CAAC,KAAK,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,GAAG,MAAM,CAMxD;AAED,iBAAS,SAAS,IAAI,UAAU,CAK/B;AAED,iBAAS,aAAa,IAAI,IAAI,CAI7B;AAED,iBAAS,YAAY,IAAI,IAAI,CAE5B;AAED,iBAAS,aAAa,IAAI,IAAI,CAE7B;AASD,eAAO,MAAM,IAAI;;;;;;;;;CAShB,CAAC;AAIF,wBAAgB,eAAe,CAAC,MAAM,EAAE,eAAe,GAAG,MAAM,GAAG,SAAS,CAoC3E"}
@@ -2,9 +2,11 @@ import { EHeatmapMode } from '../types';
2
2
  export interface IHeatmapConfigStore {
3
3
  mode: EHeatmapMode;
4
4
  sidebarWidth: number;
5
+ shopId: string | undefined;
5
6
  setMode: (mode: EHeatmapMode) => void;
6
7
  resetMode: () => void;
7
8
  setSidebarWidth: (sidebarWidth: number) => void;
9
+ setShopId: (shopId: string | undefined) => void;
8
10
  }
9
11
  export declare const useHeatmapConfigStore: import("zustand").UseBoundStore<import("zustand").StoreApi<IHeatmapConfigStore>>;
10
12
  //# sourceMappingURL=config.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../src/stores/config.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAExC,MAAM,WAAW,mBAAmB;IAClC,IAAI,EAAE,YAAY,CAAC;IACnB,YAAY,EAAE,MAAM,CAAC;IAErB,OAAO,EAAE,CAAC,IAAI,EAAE,YAAY,KAAK,IAAI,CAAC;IACtC,SAAS,EAAE,MAAM,IAAI,CAAC;IACtB,eAAe,EAAE,CAAC,YAAY,EAAE,MAAM,KAAK,IAAI,CAAC;CACjD;AAED,eAAO,MAAM,qBAAqB,kFAShC,CAAC"}
1
+ {"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../src/stores/config.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAExC,MAAM,WAAW,mBAAmB;IAClC,IAAI,EAAE,YAAY,CAAC;IACnB,YAAY,EAAE,MAAM,CAAC;IACrB,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC;IAE3B,OAAO,EAAE,CAAC,IAAI,EAAE,YAAY,KAAK,IAAI,CAAC;IACtC,SAAS,EAAE,MAAM,IAAI,CAAC;IACtB,eAAe,EAAE,CAAC,YAAY,EAAE,MAAM,KAAK,IAAI,CAAC;IAChD,SAAS,EAAE,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,KAAK,IAAI,CAAC;CACjD;AAED,eAAO,MAAM,qBAAqB,kFAWhC,CAAC"}
@@ -1,6 +1,7 @@
1
1
  import type { ClickMapPoint, EncodedPayload, IHeatmapInfo, IPersistedAreaData, ScrollMapPoint } from '../types';
2
2
  export interface IHeatmapDataStore {
3
3
  data: Map<string, EncodedPayload[] | undefined>;
4
+ dataHash: Map<string, string | undefined>;
4
5
  dataSnapshot: Map<string, EncodedPayload[] | undefined>;
5
6
  clickmap: Map<string, ClickMapPoint[] | undefined>;
6
7
  clickAreas: Map<string, IPersistedAreaData[] | undefined>;
@@ -9,6 +10,7 @@ export interface IHeatmapDataStore {
9
10
  attentionMap: Map<string, ScrollMapPoint[] | undefined>;
10
11
  setDataInfo: (dataInfo: IHeatmapInfo, viewId?: string) => void;
11
12
  setData: (data: EncodedPayload[], viewId?: string) => void;
13
+ setDataHash: (dataHash: string | undefined, viewId?: string) => void;
12
14
  setDataSnapshot: (data: EncodedPayload[], viewId?: string) => void;
13
15
  setClickmap: (clickmap: ClickMapPoint[], viewId?: string) => void;
14
16
  setClickAreas: (clickAreas: IPersistedAreaData[], viewId?: string) => void;
@@ -1 +1 @@
1
- {"version":3,"file":"data.d.ts","sourceRoot":"","sources":["../../src/stores/data.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,cAAc,EAAE,YAAY,EAAE,kBAAkB,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAMhH,MAAM,WAAW,iBAAiB;IAEhC,IAAI,EAAE,GAAG,CAAC,MAAM,EAAE,cAAc,EAAE,GAAG,SAAS,CAAC,CAAC;IAChD,YAAY,EAAE,GAAG,CAAC,MAAM,EAAE,cAAc,EAAE,GAAG,SAAS,CAAC,CAAC;IACxD,QAAQ,EAAE,GAAG,CAAC,MAAM,EAAE,aAAa,EAAE,GAAG,SAAS,CAAC,CAAC;IACnD,UAAU,EAAE,GAAG,CAAC,MAAM,EAAE,kBAAkB,EAAE,GAAG,SAAS,CAAC,CAAC;IAC1D,QAAQ,EAAE,GAAG,CAAC,MAAM,EAAE,YAAY,GAAG,SAAS,CAAC,CAAC;IAChD,SAAS,EAAE,GAAG,CAAC,MAAM,EAAE,cAAc,EAAE,GAAG,SAAS,CAAC,CAAC;IACrD,YAAY,EAAE,GAAG,CAAC,MAAM,EAAE,cAAc,EAAE,GAAG,SAAS,CAAC,CAAC;IAGxD,WAAW,EAAE,CAAC,QAAQ,EAAE,YAAY,EAAE,MAAM,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;IAC/D,OAAO,EAAE,CAAC,IAAI,EA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C;IAC3E,eAAe,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;IAC3D,YAAY,EAAE,CAAC,SAAS,EAAE,cAAc,EAAE,EAAE,MAAM,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;IACrE,eAAe,EAAE,CAAC,YAAY,EAAE,cAAc,EAAE,EAAE,MAAM,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;IAC3E,gBAAgB,EAAE,CAAC,CAAC,SAAS,MAAM,YAAY,EAAE,GAAG,EAAE,CAAC,EAAE,KAAK,EAAE,YAAY,CAAC,CAAC,CAAC,EAAE,MAAM,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;IAG1G,QAAQ,EAAE,CAAC,UAAU,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC;IAGzD,SAAS,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;IAGpC,QAAQ,EAAE,MAAM,IAAI,CAAC;CACtB;AAED,eAAO,MAAM,mBAAmB;;;;;;;;EAwK/B,CAAC"}
@@ -1,4 +1,5 @@
1
1
  export declare enum EDeviceType {
2
+ DesktopLarge = "DESKTOP_LARGE",
2
3
  Desktop = "DESKTOP",
3
4
  Mobile = "MOBILE",
4
5
  Tablet = "TABLET"
@@ -1 +1 @@
1
- {"version":3,"file":"heatmap.d.ts","sourceRoot":"","sources":["../../src/types/heatmap.ts"],"names":[],"mappings":"AAAA,oBAAY,WAAW;IACrB,OAAO,YAAY;IACnB,MAAM,WAAW;IACjB,MAAM,WAAW;CAClB;AAED,oBAAY,YAAY;IACtB,KAAK,UAAU;IACf,MAAM,WAAW;CAClB;AAED,oBAAY,UAAU;IACpB,kCAAkC;IAClC,GAAG,QAAQ;IACX,gEAAgE;IAChE,IAAI,SAAS;IACb,6DAA6D;IAC7D,IAAI,SAAS;IACb,2CAA2C;IAC3C,KAAK,UAAU;IACf,qCAAqC;IACrC,KAAK,UAAU;IACf,oCAAoC;IACpC,IAAI,SAAS;IACb,4DAA4D;IAC5D,QAAQ,aAAa;CACtB;AAED,oBAAY,cAAc;IACxB,UAAU,gBAAgB;IAC1B,OAAO,YAAY;IACnB,cAAc,oBAAoB;IAClC,eAAe,sBAAsB;IACrC,iBAAiB,wBAAwB;CAC1C;AAED,oBAAY,UAAU;IACpB,OAAO,YAAY;IACnB,IAAI,eAAe;CACpB;AAED,oBAAY,WAAW;IACrB,KAAK,iBAAiB;IACtB,SAAS,cAAc;IACvB,OAAO,YAAY;CACpB;AAED,oBAAY,YAAY;IACtB,MAAM,WAAW,CAAE,mBAAmB;IACtC,IAAI,SAAS,CAAE,YAAY;IAC3B,OAAO,YAAY;CACpB;AAED,oBAAY,kBAAkB;IAC5B,QAAQ,aAAa;IACrB,IAAI,SAAS;CACd;AAED,MAAM,WAAW,cAAc;IAC7B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,WAAW,CAAC,EAAE,YAAY,CAAC;CAC5B"}
1
+ {"version":3,"file":"heatmap.d.ts","sourceRoot":"","sources":["../../src/types/heatmap.ts"],"names":[],"mappings":"AAAA,oBAAY,WAAW;IACrB,YAAY,kBAAkB;IAC9B,OAAO,YAAY;IACnB,MAAM,WAAW;IACjB,MAAM,WAAW;CAClB;AAED,oBAAY,YAAY;IACtB,KAAK,UAAU;IACf,MAAM,WAAW;CAClB;AAED,oBAAY,UAAU;IACpB,kCAAkC;IAClC,GAAG,QAAQ;IACX,gEAAgE;IAChE,IAAI,SAAS;IACb,6DAA6D;IAC7D,IAAI,SAAS;IACb,2CAA2C;IAC3C,KAAK,UAAU;IACf,qCAAqC;IACrC,KAAK,UAAU;IACf,oCAAoC;IACpC,IAAI,SAAS;IACb,4DAA4D;IAC5D,QAAQ,aAAa;CACtB;AAED,oBAAY,cAAc;IACxB,UAAU,gBAAgB;IAC1B,OAAO,YAAY;IACnB,cAAc,oBAAoB;IAClC,eAAe,sBAAsB;IACrC,iBAAiB,wBAAwB;CAC1C;AAED,oBAAY,UAAU;IACpB,OAAO,YAAY;IACnB,IAAI,eAAe;CACpB;AAED,oBAAY,WAAW;IACrB,KAAK,iBAAiB;IACtB,SAAS,cAAc;IACvB,OAAO,YAAY;CACpB;AAED,oBAAY,YAAY;IACtB,MAAM,WAAW,CAAE,mBAAmB;IACtC,IAAI,SAAS,CAAE,YAAY;IAC3B,OAAO,YAAY;CACpB;AAED,oBAAY,kBAAkB;IAC5B,QAAQ,aAAa;IACrB,IAAI,SAAS;CACd;AAED,MAAM,WAAW,cAAc;IAC7B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,WAAW,CAAC,EAAE,YAAY,CAAC;CAC5B"}
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.92-dev.10",
4
+ "version": "3.5.92-dev.11",
5
5
  "license": "MIT",
6
6
  "sideEffects": [
7
7
  "*.css"
@@ -1,58 +0,0 @@
1
- /**
2
- * Performance tracker — measures render pipeline timings and stores results
3
- * in `window.__gemxPerf` for inspection in DevTools.
4
- *
5
- * Usage:
6
- * perf.startSession('render-1');
7
- * const t = perf.mark('viewport.run');
8
- * perf.measure('viewport.run', t);
9
- * perf.endSession();
10
- *
11
- * // In DevTools:
12
- * window.__gemxPerf.latest
13
- * window.__gemxPerf.sessions
14
- */
15
- export interface PerfEntry {
16
- label: string;
17
- /** Milliseconds from session start. */
18
- t: number;
19
- /** Duration in ms — only present for measure() calls. */
20
- duration?: number;
21
- }
22
- export interface PerfSession {
23
- id: string;
24
- startedAt: number;
25
- entries: PerfEntry[];
26
- /** Total session duration in ms — set when endSession() is called. */
27
- total?: number;
28
- }
29
- export interface PerfReport {
30
- sessions: PerfSession[];
31
- latest: PerfSession | null;
32
- }
33
- declare global {
34
- interface Window {
35
- __gemxPerf?: PerfReport;
36
- }
37
- }
38
- export declare function startSession(id: string): void;
39
- export declare function endSession(): PerfSession | null;
40
- /** Record a point-in-time mark. Returns `performance.now()` for use with measure(). */
41
- export declare function mark(label: string): number;
42
- /** Record a duration from a previous mark() timestamp. */
43
- export declare function measure(label: string, t0: number): number;
44
- export declare function getReport(): PerfReport;
45
- export declare function clear(): void;
46
- export declare function enable(): void;
47
- export declare function disable(): void;
48
- export declare const perf: {
49
- startSession: typeof startSession;
50
- endSession: typeof endSession;
51
- mark: typeof mark;
52
- measure: typeof measure;
53
- getReport: typeof getReport;
54
- clear: typeof clear;
55
- enable: typeof enable;
56
- disable: typeof disable;
57
- };
58
- //# sourceMappingURL=perf.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"perf.d.ts","sourceRoot":"","sources":["../../../../src/libs/iframe-processor/shared/perf.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAIH,MAAM,WAAW,SAAS;IACxB,KAAK,EAAE,MAAM,CAAC;IACd,uCAAuC;IACvC,CAAC,EAAE,MAAM,CAAC;IACV,yDAAyD;IACzD,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,WAAW;IAC1B,EAAE,EAAE,MAAM,CAAC;IACX,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,SAAS,EAAE,CAAC;IACrB,sEAAsE;IACtE,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,UAAU;IACzB,QAAQ,EAAE,WAAW,EAAE,CAAC;IACxB,MAAM,EAAE,WAAW,GAAG,IAAI,CAAC;CAC5B;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,MAAM;QACd,UAAU,CAAC,EAAE,UAAU,CAAC;KACzB;CACF;AAoBD,wBAAgB,YAAY,CAAC,EAAE,EAAE,MAAM,GAAG,IAAI,CAG7C;AAED,wBAAgB,UAAU,IAAI,WAAW,GAAG,IAAI,CAQ/C;AAED,uFAAuF;AACvF,wBAAgB,IAAI,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAM1C;AAED,0DAA0D;AAC1D,wBAAgB,OAAO,CAAC,KAAK,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,GAAG,MAAM,CAMzD;AAED,wBAAgB,SAAS,IAAI,UAAU,CAKtC;AAED,wBAAgB,KAAK,IAAI,IAAI,CAI5B;AAED,wBAAgB,MAAM,IAAI,IAAI,CAE7B;AAED,wBAAgB,OAAO,IAAI,IAAI,CAE9B;AAWD,eAAO,MAAM,IAAI;;;;;;;;;CAAiF,CAAC"}
@@ -1,58 +0,0 @@
1
- /**
2
- * Performance tracker — measures render pipeline timings and stores results
3
- * in `window.__gemxPerf` for inspection in DevTools.
4
- *
5
- * Usage:
6
- * perf.startSession('render-1');
7
- * const t = perf.mark('viewport.run');
8
- * perf.measure('viewport.run', t);
9
- * perf.endSession();
10
- *
11
- * // In DevTools:
12
- * window.__gemxPerf.latest
13
- * window.__gemxPerf.sessions
14
- */
15
- export interface PerfEntry {
16
- label: string;
17
- /** Milliseconds from session start. */
18
- t: number;
19
- /** Duration in ms — only present for measure() calls. */
20
- duration?: number;
21
- }
22
- export interface PerfSession {
23
- id: string;
24
- startedAt: number;
25
- entries: PerfEntry[];
26
- /** Total session duration in ms — set when endSession() is called. */
27
- total?: number;
28
- }
29
- export interface PerfReport {
30
- sessions: PerfSession[];
31
- latest: PerfSession | null;
32
- }
33
- declare global {
34
- interface Window {
35
- __gemxPerf?: PerfReport;
36
- }
37
- }
38
- export declare function startSession(id: string): void;
39
- export declare function endSession(): PerfSession | null;
40
- /** Record a point-in-time mark. Returns `performance.now()` for use with measure(). */
41
- export declare function mark(label: string): number;
42
- /** Record a duration from a previous mark() timestamp. */
43
- export declare function measure(label: string, t0: number): number;
44
- export declare function getReport(): PerfReport;
45
- export declare function clear(): void;
46
- export declare function enable(): void;
47
- export declare function disable(): void;
48
- export declare const perf: {
49
- startSession: typeof startSession;
50
- endSession: typeof endSession;
51
- mark: typeof mark;
52
- measure: typeof measure;
53
- getReport: typeof getReport;
54
- clear: typeof clear;
55
- enable: typeof enable;
56
- disable: typeof disable;
57
- };
58
- //# sourceMappingURL=perf.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"perf.d.ts","sourceRoot":"","sources":["../../../../src/libs/iframe-processor/shared/perf.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAIH,MAAM,WAAW,SAAS;IACxB,KAAK,EAAE,MAAM,CAAC;IACd,uCAAuC;IACvC,CAAC,EAAE,MAAM,CAAC;IACV,yDAAyD;IACzD,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,WAAW;IAC1B,EAAE,EAAE,MAAM,CAAC;IACX,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,SAAS,EAAE,CAAC;IACrB,sEAAsE;IACtE,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,UAAU;IACzB,QAAQ,EAAE,WAAW,EAAE,CAAC;IACxB,MAAM,EAAE,WAAW,GAAG,IAAI,CAAC;CAC5B;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,MAAM;QACd,UAAU,CAAC,EAAE,UAAU,CAAC;KACzB;CACF;AAoBD,wBAAgB,YAAY,CAAC,EAAE,EAAE,MAAM,GAAG,IAAI,CAG7C;AAED,wBAAgB,UAAU,IAAI,WAAW,GAAG,IAAI,CAQ/C;AAED,uFAAuF;AACvF,wBAAgB,IAAI,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAM1C;AAED,0DAA0D;AAC1D,wBAAgB,OAAO,CAAC,KAAK,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,GAAG,MAAM,CAMzD;AAED,wBAAgB,SAAS,IAAI,UAAU,CAKtC;AAED,wBAAgB,KAAK,IAAI,IAAI,CAI5B;AAED,wBAAgB,MAAM,IAAI,IAAI,CAE7B;AAED,wBAAgB,OAAO,IAAI,IAAI,CAE9B;AAWD,eAAO,MAAM,IAAI;;;;;;;;;CAAiF,CAAC"}