@gemx-dev/heatmap-react 3.5.81 → 3.5.84

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 (32) hide show
  1. package/dist/esm/components/Layout/HeatmapLayout.d.ts +2 -2
  2. package/dist/esm/components/VizDom/VizLoadingCanvas.d.ts.map +1 -1
  3. package/dist/esm/helpers/viz-dom/decode.d.ts +3 -2
  4. package/dist/esm/helpers/viz-dom/decode.d.ts.map +1 -1
  5. package/dist/esm/hooks/register/useRegisterData.d.ts +2 -2
  6. package/dist/esm/hooks/view-context/useHeatmapDataContext.d.ts +3 -3
  7. package/dist/esm/hooks/viz-elm/useHoveredElement.d.ts.map +1 -1
  8. package/dist/esm/hooks/viz-render/useHeatmapRender.d.ts.map +1 -1
  9. package/dist/esm/hooks/viz-render/useReplayRender.d.ts.map +1 -1
  10. package/dist/esm/index.d.ts +1 -1
  11. package/dist/esm/index.d.ts.map +1 -1
  12. package/dist/esm/index.js +28 -9
  13. package/dist/esm/index.mjs +28 -9
  14. package/dist/esm/stores/data.d.ts +3 -3
  15. package/dist/esm/types/clarity.d.ts +1 -0
  16. package/dist/esm/types/clarity.d.ts.map +1 -1
  17. package/dist/umd/components/Layout/HeatmapLayout.d.ts +2 -2
  18. package/dist/umd/components/VizDom/VizLoadingCanvas.d.ts.map +1 -1
  19. package/dist/umd/helpers/viz-dom/decode.d.ts +3 -2
  20. package/dist/umd/helpers/viz-dom/decode.d.ts.map +1 -1
  21. package/dist/umd/hooks/register/useRegisterData.d.ts +2 -2
  22. package/dist/umd/hooks/view-context/useHeatmapDataContext.d.ts +3 -3
  23. package/dist/umd/hooks/viz-elm/useHoveredElement.d.ts.map +1 -1
  24. package/dist/umd/hooks/viz-render/useHeatmapRender.d.ts.map +1 -1
  25. package/dist/umd/hooks/viz-render/useReplayRender.d.ts.map +1 -1
  26. package/dist/umd/index.d.ts +1 -1
  27. package/dist/umd/index.d.ts.map +1 -1
  28. package/dist/umd/index.js +1 -1
  29. package/dist/umd/stores/data.d.ts +3 -3
  30. package/dist/umd/types/clarity.d.ts +1 -0
  31. package/dist/umd/types/clarity.d.ts.map +1 -1
  32. package/package.json +1 -1
@@ -1,7 +1,7 @@
1
- import type { ClickMapPoint, DecodedPayload, IHeatmapInfo, IPersistedAreaData, ScrollMapPoint } from '../../types';
1
+ import type { ClickMapPoint, EncodedPayload, IHeatmapInfo, IPersistedAreaData, ScrollMapPoint } from '../../types';
2
2
  import type { IHeatmapControl } from '../../types/control';
3
3
  interface HeatmapLayoutProps {
4
- data?: DecodedPayload[];
4
+ data?: EncodedPayload[];
5
5
  clickmap?: ClickMapPoint[];
6
6
  clickAreas?: IPersistedAreaData[];
7
7
  scrollmap?: ScrollMapPoint[];
@@ -1 +1 @@
1
- {"version":3,"file":"VizLoadingCanvas.d.ts","sourceRoot":"","sources":["../../../src/components/VizDom/VizLoadingCanvas.tsx"],"names":[],"mappings":"AAIA,eAAO,MAAM,gBAAgB,EAAE,KAAK,CAAC,EA6BpC,CAAC"}
1
+ {"version":3,"file":"VizLoadingCanvas.d.ts","sourceRoot":"","sources":["../../../src/components/VizDom/VizLoadingCanvas.tsx"],"names":[],"mappings":"AAKA,eAAO,MAAM,gBAAgB,EAAE,KAAK,CAAC,EAsCpC,CAAC"}
@@ -1,4 +1,4 @@
1
- import type { DecodedPayload } from '../../types';
1
+ import type { DecodedPayload, EncodedPayload } from '../../types';
2
2
  export declare function findLastSizeOfDom(data: DecodedPayload[]): {
3
3
  doc: {
4
4
  width: number | undefined;
@@ -13,5 +13,6 @@ export declare function findLastSizeOfDom(data: DecodedPayload[]): {
13
13
  height: number | undefined;
14
14
  };
15
15
  };
16
- export declare function decodePayloads(payload: string): DecodedPayload | null;
16
+ export declare function decodeClarity(payload: string): DecodedPayload | null;
17
+ export declare function decodeArrayClarity(items: EncodedPayload[]): DecodedPayload[];
17
18
  //# sourceMappingURL=decode.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"decode.d.ts","sourceRoot":"","sources":["../../../src/helpers/viz-dom/decode.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAgB,cAAc,EAAE,MAAM,aAAa,CAAC;AAIhE,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,cAAc,EAAE;;;;;;;;;;;;;EA0BvD;AAMD,wBAAgB,cAAc,CAAC,OAAO,EAAE,MAAM,GAAG,cAAc,GAAG,IAAI,CAMrE"}
1
+ {"version":3,"file":"decode.d.ts","sourceRoot":"","sources":["../../../src/helpers/viz-dom/decode.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAgB,cAAc,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAIhF,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,cAAc,EAAE;;;;;;;;;;;;;EA0BvD;AAMD,wBAAgB,aAAa,CAAC,OAAO,EAAE,MAAM,GAAG,cAAc,GAAG,IAAI,CAMpE;AAED,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,cAAc,EAAE,GAAG,cAAc,EAAE,CAE5E"}
@@ -1,3 +1,3 @@
1
- import type { DecodedPayload, IHeatmapInfo } from '../../types';
2
- export declare const useRegisterData: (data?: DecodedPayload[], dataInfo?: IHeatmapInfo) => void;
1
+ import type { EncodedPayload, IHeatmapInfo } from '../../types';
2
+ export declare const useRegisterData: (data?: EncodedPayload[], dataInfo?: IHeatmapInfo) => void;
3
3
  //# sourceMappingURL=useRegisterData.d.ts.map
@@ -1,6 +1,6 @@
1
- import type { ClickMapPoint, DecodedPayload, IHeatmapInfo, IPersistedAreaData, ScrollMapPoint } from '../../types';
1
+ import type { ClickMapPoint, EncodedPayload, IHeatmapInfo, IPersistedAreaData, ScrollMapPoint } from '../../types';
2
2
  interface IHeatmapDataState {
3
- data: DecodedPayload[] | undefined;
3
+ data: EncodedPayload[] | undefined;
4
4
  clickmap: ClickMapPoint[] | undefined;
5
5
  clickAreas: IPersistedAreaData[] | undefined;
6
6
  scrollmap: ScrollMapPoint[] | undefined;
@@ -8,7 +8,7 @@ interface IHeatmapDataState {
8
8
  dataInfo: IHeatmapInfo | undefined;
9
9
  }
10
10
  interface IHeatmapDataActions {
11
- setData: (newData: DecodedPayload[]) => void;
11
+ setData: (newData: EncodedPayload[]) => void;
12
12
  setClickmap: (newClickmap: ClickMapPoint[]) => void;
13
13
  setClickAreas: (newClickAreas: IPersistedAreaData[]) => void;
14
14
  setScrollmap: (newScrollmap: ScrollMapPoint[]) => void;
@@ -1 +1 @@
1
- {"version":3,"file":"useHoveredElement.d.ts","sourceRoot":"","sources":["../../../src/hooks/viz-elm/useHoveredElement.ts"],"names":[],"mappings":"AAeA,UAAU,MAAM;IACd,SAAS,EAAE,KAAK,CAAC,SAAS,CAAC,iBAAiB,CAAC,CAAC;IAC9C,OAAO,EAAE,CAAC,EAAE,CAAC,EAAE,GAAG,KAAK,GAAG,CAAC;CAC5B;AAED,eAAO,MAAM,iBAAiB,GAAI,wBAAwB,MAAM;uEAgDpD,KAAK,CAAC,UAAU,CAAC,cAAc,CAAC;;0BA2B/B,KAAK,CAAC,UAAU,CAAC,cAAc,CAAC,SAAS,MAAM;CA4B3D,CAAC;AAiBF,eAAO,MAAM,6BAA6B,GACxC,SAAS,MAAM,EACf,SAAS,MAAM,EACf,YAAY,OAAO,EACnB,OAAO,MAAM,KACZ;IAAE,CAAC,EAAE,MAAM,CAAC;IAAC,CAAC,EAAE,MAAM,CAAA;CAUxB,CAAC"}
1
+ {"version":3,"file":"useHoveredElement.d.ts","sourceRoot":"","sources":["../../../src/hooks/viz-elm/useHoveredElement.ts"],"names":[],"mappings":"AAgBA,UAAU,MAAM;IACd,SAAS,EAAE,KAAK,CAAC,SAAS,CAAC,iBAAiB,CAAC,CAAC;IAC9C,OAAO,EAAE,CAAC,EAAE,CAAC,EAAE,GAAG,KAAK,GAAG,CAAC;CAC5B;AAED,eAAO,MAAM,iBAAiB,GAAI,wBAAwB,MAAM;uEAiDpD,KAAK,CAAC,UAAU,CAAC,cAAc,CAAC;;0BA4B/B,KAAK,CAAC,UAAU,CAAC,cAAc,CAAC,SAAS,MAAM;CA6B3D,CAAC;AAiBF,eAAO,MAAM,6BAA6B,GACxC,SAAS,MAAM,EACf,SAAS,MAAM,EACf,YAAY,OAAO,EACnB,OAAO,MAAM,KACZ;IAAE,CAAC,EAAE,MAAM,CAAC;IAAC,CAAC,EAAE,MAAM,CAAA;CAUxB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"useHeatmapRender.d.ts","sourceRoot":"","sources":["../../../src/hooks/viz-render/useHeatmapRender.ts"],"names":[],"mappings":"AAUA,UAAU,uBAAuB;IAC/B,SAAS,EAAE,KAAK,CAAC,SAAS,CAAC,iBAAiB,GAAG,IAAI,CAAC,CAAC;CACtD;AAED,eAAO,MAAM,gBAAgB,QAAO,uBAyCnC,CAAC"}
1
+ {"version":3,"file":"useHeatmapRender.d.ts","sourceRoot":"","sources":["../../../src/hooks/viz-render/useHeatmapRender.ts"],"names":[],"mappings":"AAUA,UAAU,uBAAuB;IAC/B,SAAS,EAAE,KAAK,CAAC,SAAS,CAAC,iBAAiB,GAAG,IAAI,CAAC,CAAC;CACtD;AAED,eAAO,MAAM,gBAAgB,QAAO,uBA0CnC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"useReplayRender.d.ts","sourceRoot":"","sources":["../../../src/hooks/viz-render/useReplayRender.ts"],"names":[],"mappings":"AASA,UAAU,sBAAsB;IAC9B,SAAS,EAAE,KAAK,CAAC,SAAS,CAAC,iBAAiB,GAAG,IAAI,CAAC,CAAC;IACrD,SAAS,EAAE,OAAO,CAAC;IACnB,IAAI,EAAE,MAAM,IAAI,CAAC;IACjB,KAAK,EAAE,MAAM,IAAI,CAAC;CACnB;AAED,eAAO,MAAM,eAAe,QAAO,sBA+IlC,CAAC"}
1
+ {"version":3,"file":"useReplayRender.d.ts","sourceRoot":"","sources":["../../../src/hooks/viz-render/useReplayRender.ts"],"names":[],"mappings":"AAUA,UAAU,sBAAsB;IAC9B,SAAS,EAAE,KAAK,CAAC,SAAS,CAAC,iBAAiB,GAAG,IAAI,CAAC,CAAC;IACrD,SAAS,EAAE,OAAO,CAAC;IACnB,IAAI,EAAE,MAAM,IAAI,CAAC;IACjB,KAAK,EAAE,MAAM,IAAI,CAAC;CACnB;AAED,eAAO,MAAM,eAAe,QAAO,sBAgJlC,CAAC"}
@@ -3,7 +3,7 @@ export * from './configs';
3
3
  export * from './contexts';
4
4
  export * from './hooks';
5
5
  export * from './types';
6
- export { serializeAreas } from './helpers';
6
+ export { decodeArrayClarity, decodeClarity, serializeAreas } from './helpers';
7
7
  export { useHeatmapCompareStore, useHeatmapConfigStore, useHeatmapLiveStore } from './stores';
8
8
  export * from './performance';
9
9
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;AAExB,OAAO,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAC3C,OAAO,EAAE,sBAAsB,EAAE,qBAAqB,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAC;AAE9F,cAAc,eAAe,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;AAExB,OAAO,EAAE,kBAAkB,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAC9E,OAAO,EAAE,sBAAsB,EAAE,qBAAqB,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAC;AAE9F,cAAc,eAAe,CAAC"}
package/dist/esm/index.js CHANGED
@@ -2054,7 +2054,7 @@ function findLastSizeOfDom(data) {
2054
2054
  },
2055
2055
  };
2056
2056
  }
2057
- function decodePayloads(payload) {
2057
+ function decodeClarity(payload) {
2058
2058
  try {
2059
2059
  return decode(payload);
2060
2060
  }
@@ -2062,6 +2062,9 @@ function decodePayloads(payload) {
2062
2062
  return null;
2063
2063
  }
2064
2064
  }
2065
+ function decodeArrayClarity(items) {
2066
+ return items.map((item) => decodeClarity(item)).filter((item) => item !== null);
2067
+ }
2065
2068
 
2066
2069
  function findElementByHash(props) {
2067
2070
  const { hash, selector, iframeDocument, vizRef } = props;
@@ -4798,6 +4801,7 @@ function getBoundingBox(element) {
4798
4801
  // }
4799
4802
 
4800
4803
  const useHoveredElement = ({ iframeRef, getRect }) => {
4804
+ const isLoadingCanvas = useHeatmapSettingContext((s) => s.isLoadingCanvas);
4801
4805
  const setHoveredElement = useHeatmapHoverContext((s) => s.setHoveredElement);
4802
4806
  const isHoveredElement = useHeatmapHoverContext((s) => s.isHoveredElement);
4803
4807
  const setSelectedElement = useHeatmapClickContext((s) => s.setSelectedElement);
@@ -4834,6 +4838,8 @@ const useHoveredElement = ({ iframeRef, getRect }) => {
4834
4838
  return;
4835
4839
  }, [dataInfo, iframeRef, widthScale, reset]);
4836
4840
  const onHandleMouseMove = useCallback((event) => {
4841
+ if (isLoadingCanvas)
4842
+ return;
4837
4843
  const hash = getHashFromEvent(event);
4838
4844
  if (!dataInfo || !hash) {
4839
4845
  reset();
@@ -4850,9 +4856,11 @@ const useHoveredElement = ({ iframeRef, getRect }) => {
4850
4856
  }
4851
4857
  const mousePosition = getElementMousePosition(event, widthScale);
4852
4858
  setHoveredElement({ ...elementInfo, mousePosition });
4853
- }, [dataInfo, getRect, reset, widthScale, getHashFromEvent, setHoveredElement, isHoveredElement]);
4859
+ }, [isLoadingCanvas, getHashFromEvent, dataInfo, isHoveredElement, getRect, widthScale, setHoveredElement, reset]);
4854
4860
  const handleMouseMove = useMemo(() => throttleRAF(onHandleMouseMove), [onHandleMouseMove]);
4855
4861
  const handleClick = useCallback((event, hash) => {
4862
+ if (isLoadingCanvas)
4863
+ return;
4856
4864
  if (!hash)
4857
4865
  return;
4858
4866
  if (!event) {
@@ -4864,7 +4872,7 @@ const useHoveredElement = ({ iframeRef, getRect }) => {
4864
4872
  hash,
4865
4873
  mousePosition,
4866
4874
  });
4867
- }, [setSelectedElement, widthScale]);
4875
+ }, [isLoadingCanvas, setSelectedElement, widthScale]);
4868
4876
  // Cleanup throttled function on unmount
4869
4877
  useEffect(() => {
4870
4878
  return () => {
@@ -5248,7 +5256,7 @@ function useVizLiveIframeMsg(options = {}) {
5248
5256
  switch (message.type) {
5249
5257
  case MessageType.GX_DOM_TRACKING_PAYLOAD:
5250
5258
  if (message.payload) {
5251
- const data = decodePayloads(message.payload);
5259
+ const data = decodeClarity(message.payload);
5252
5260
  if (data) {
5253
5261
  addPayload(data);
5254
5262
  }
@@ -6737,7 +6745,8 @@ const useHeatmapRender = () => {
6737
6745
  useEffect(() => {
6738
6746
  if (!data || data.length === 0)
6739
6747
  return;
6740
- renderHeatmap(data);
6748
+ const decoded = decodeArrayClarity(data);
6749
+ renderHeatmap(decoded);
6741
6750
  return () => {
6742
6751
  setVizRef(null);
6743
6752
  };
@@ -6877,7 +6886,8 @@ const useReplayRender = () => {
6877
6886
  useEffect(() => {
6878
6887
  if (!data || data.length === 0)
6879
6888
  return;
6880
- startReplay(data);
6889
+ const decoded = decodeArrayClarity(data);
6890
+ startReplay(decoded);
6881
6891
  // Cleanup
6882
6892
  return () => {
6883
6893
  isPlayingRef.current = false;
@@ -8877,12 +8887,21 @@ const VizLoadingCanvas = () => {
8877
8887
  const isLoadingCanvas = useHeatmapSettingContext((state) => state.isLoadingCanvas);
8878
8888
  const CompLoading = useHeatmapControlStore((s) => s.controls.VizLoading);
8879
8889
  const wrapperHeight = useHeatmapVizRectContext((s) => s.wrapperHeight);
8890
+ const iframeHeight = useHeatmapVizRectContext((s) => s.iframeHeight);
8891
+ const widthScale = useHeatmapVizContext((s) => s.widthScale);
8880
8892
  if (!isLoadingCanvas)
8881
8893
  return null;
8882
8894
  return (jsx("div", { className: "gx-hm-loading-canvas", style: {
8883
8895
  background: '#000000B2',
8884
- }, children: jsx(BoxStack, { position: "absolute", height: wrapperHeight, flexDirection: "row", justifyContent: "center", alignItems: "center", style: {
8896
+ width: '100%',
8897
+ position: 'absolute',
8898
+ height: iframeHeight,
8899
+ borderRadius: `${HEATMAP_CONFIG.borderRadius}px`,
8900
+ top: 0,
8901
+ left: 0,
8902
+ }, children: jsx(BoxStack, { position: "absolute", height: wrapperHeight / widthScale, flexDirection: "row", justifyContent: "center", alignItems: "center", style: {
8885
8903
  width: '100%',
8904
+ maxHeight: iframeHeight,
8886
8905
  top: 0,
8887
8906
  left: 0,
8888
8907
  }, children: jsx("div", { style: { height: 'fit-content' }, children: CompLoading && jsx(CompLoading, { type: "transparent" }) }) }) }));
@@ -8901,6 +8920,7 @@ const WrapperVisual = ({ children, visualRef, wrapperRef, scaledHeight, iframeHe
8901
8920
  flex: 1,
8902
8921
  // paddingBottom: HEATMAP_STYLE['viz']['paddingBottom'],
8903
8922
  background: HEATMAP_STYLE['viz']['background'],
8923
+ ...(isLoadingCanvas ? { maxHeight: '100%', overflowY: 'hidden' } : {}),
8904
8924
  }, children: jsx("div", { className: "gx-hm-visual-unscaled", style: {
8905
8925
  width: '100%',
8906
8926
  display: 'flex',
@@ -8917,7 +8937,6 @@ const WrapperVisual = ({ children, visualRef, wrapperRef, scaledHeight, iframeHe
8917
8937
  transform: `scale(${widthScale})`,
8918
8938
  transformOrigin: 'top center',
8919
8939
  paddingBlockEnd: '0',
8920
- ...(isLoadingCanvas ? { maxHeight: '100%', overflow: 'hidden' } : {}),
8921
8940
  }, children: children }) }) }));
8922
8941
  function calcContentHeight() {
8923
8942
  return scaledHeight > 0
@@ -9086,4 +9105,4 @@ const HeatmapLayout = ({ data, clickmap, clickAreas, scrollmap, attentionMap, co
9086
9105
  }
9087
9106
  };
9088
9107
 
9089
- export { BACKDROP_CONFIG, DEFAULT_SIDEBAR_WIDTH, DEFAULT_VIEW_ID, DEFAULT_ZOOM_RATIO, EClickMode, EClickRankType, EClickType, EDeviceType, EHeatmapType, ELM_CALLOUT_CONFIG, EScrollType, GraphView, HEATMAP_CONFIG, HEATMAP_IFRAME, HEATMAP_STYLE, HeatmapLayout, ViewIdContext, Z_INDEX$1 as Z_INDEX, compareViewPerformance, convertViewportToIframeCoords, createStorePerformanceTracker, createViewContextHook, downloadPerformanceReport, getCompareViewId, getMetricsByViewId, getPerformanceReportJSON, getScrollGradientColor, performanceLogger, printPerformanceSummary, scrollToElementIfNeeded, sendPerformanceReport, serializeAreas, trackStoreAction, useAreaCreation, useAreaEditMode, useAreaFilterVisible, useAreaHydration, useAreaInteraction, useAreaPositionsUpdater, useAreaRectSync, useAreaRendererContainer, useAreaTopAutoDetect, useClickedElement, useDebounceCallback, useElementCalloutVisible, useHeatmapAreaClickContext, useHeatmapCanvas, useHeatmapClickContext, useHeatmapCompareStore, useHeatmapConfigStore, useHeatmapCopyView, useHeatmapDataContext, useHeatmapEffects, useHeatmapElementPosition, useHeatmapHoverContext, useHeatmapLiveStore, useHeatmapRenderByMode, useHeatmapScale, useHeatmapScroll, useHeatmapScrollContext, useHeatmapSettingContext, useHeatmapVizContext, useHeatmapVizRectContext, useHeatmapWidthByDevice, useHoveredElement, useIframeHeight, useIframeHeightProcessor, useMeasureFunction, useRegisterConfig, useRegisterControl, useRegisterData, useRegisterHeatmap, useRenderCount, useScrollmapZones, useTrackHookCall, useViewIdContext, useVizLiveRender, useWhyDidYouUpdate, useWrapperRefHeight, useZonePositions, withPerformanceTracking };
9108
+ export { BACKDROP_CONFIG, DEFAULT_SIDEBAR_WIDTH, DEFAULT_VIEW_ID, DEFAULT_ZOOM_RATIO, EClickMode, EClickRankType, EClickType, EDeviceType, EHeatmapType, ELM_CALLOUT_CONFIG, EScrollType, GraphView, HEATMAP_CONFIG, HEATMAP_IFRAME, HEATMAP_STYLE, HeatmapLayout, ViewIdContext, Z_INDEX$1 as Z_INDEX, compareViewPerformance, convertViewportToIframeCoords, createStorePerformanceTracker, createViewContextHook, decodeArrayClarity, decodeClarity, downloadPerformanceReport, getCompareViewId, getMetricsByViewId, getPerformanceReportJSON, getScrollGradientColor, performanceLogger, printPerformanceSummary, scrollToElementIfNeeded, sendPerformanceReport, serializeAreas, trackStoreAction, useAreaCreation, useAreaEditMode, useAreaFilterVisible, useAreaHydration, useAreaInteraction, useAreaPositionsUpdater, useAreaRectSync, useAreaRendererContainer, useAreaTopAutoDetect, useClickedElement, useDebounceCallback, useElementCalloutVisible, useHeatmapAreaClickContext, useHeatmapCanvas, useHeatmapClickContext, useHeatmapCompareStore, useHeatmapConfigStore, useHeatmapCopyView, useHeatmapDataContext, useHeatmapEffects, useHeatmapElementPosition, useHeatmapHoverContext, useHeatmapLiveStore, useHeatmapRenderByMode, useHeatmapScale, useHeatmapScroll, useHeatmapScrollContext, useHeatmapSettingContext, useHeatmapVizContext, useHeatmapVizRectContext, useHeatmapWidthByDevice, useHoveredElement, useIframeHeight, useIframeHeightProcessor, useMeasureFunction, useRegisterConfig, useRegisterControl, useRegisterData, useRegisterHeatmap, useRenderCount, useScrollmapZones, useTrackHookCall, useViewIdContext, useVizLiveRender, useWhyDidYouUpdate, useWrapperRefHeight, useZonePositions, withPerformanceTracking };
@@ -2054,7 +2054,7 @@ function findLastSizeOfDom(data) {
2054
2054
  },
2055
2055
  };
2056
2056
  }
2057
- function decodePayloads(payload) {
2057
+ function decodeClarity(payload) {
2058
2058
  try {
2059
2059
  return decode(payload);
2060
2060
  }
@@ -2062,6 +2062,9 @@ function decodePayloads(payload) {
2062
2062
  return null;
2063
2063
  }
2064
2064
  }
2065
+ function decodeArrayClarity(items) {
2066
+ return items.map((item) => decodeClarity(item)).filter((item) => item !== null);
2067
+ }
2065
2068
 
2066
2069
  function findElementByHash(props) {
2067
2070
  const { hash, selector, iframeDocument, vizRef } = props;
@@ -4798,6 +4801,7 @@ function getBoundingBox(element) {
4798
4801
  // }
4799
4802
 
4800
4803
  const useHoveredElement = ({ iframeRef, getRect }) => {
4804
+ const isLoadingCanvas = useHeatmapSettingContext((s) => s.isLoadingCanvas);
4801
4805
  const setHoveredElement = useHeatmapHoverContext((s) => s.setHoveredElement);
4802
4806
  const isHoveredElement = useHeatmapHoverContext((s) => s.isHoveredElement);
4803
4807
  const setSelectedElement = useHeatmapClickContext((s) => s.setSelectedElement);
@@ -4834,6 +4838,8 @@ const useHoveredElement = ({ iframeRef, getRect }) => {
4834
4838
  return;
4835
4839
  }, [dataInfo, iframeRef, widthScale, reset]);
4836
4840
  const onHandleMouseMove = useCallback((event) => {
4841
+ if (isLoadingCanvas)
4842
+ return;
4837
4843
  const hash = getHashFromEvent(event);
4838
4844
  if (!dataInfo || !hash) {
4839
4845
  reset();
@@ -4850,9 +4856,11 @@ const useHoveredElement = ({ iframeRef, getRect }) => {
4850
4856
  }
4851
4857
  const mousePosition = getElementMousePosition(event, widthScale);
4852
4858
  setHoveredElement({ ...elementInfo, mousePosition });
4853
- }, [dataInfo, getRect, reset, widthScale, getHashFromEvent, setHoveredElement, isHoveredElement]);
4859
+ }, [isLoadingCanvas, getHashFromEvent, dataInfo, isHoveredElement, getRect, widthScale, setHoveredElement, reset]);
4854
4860
  const handleMouseMove = useMemo(() => throttleRAF(onHandleMouseMove), [onHandleMouseMove]);
4855
4861
  const handleClick = useCallback((event, hash) => {
4862
+ if (isLoadingCanvas)
4863
+ return;
4856
4864
  if (!hash)
4857
4865
  return;
4858
4866
  if (!event) {
@@ -4864,7 +4872,7 @@ const useHoveredElement = ({ iframeRef, getRect }) => {
4864
4872
  hash,
4865
4873
  mousePosition,
4866
4874
  });
4867
- }, [setSelectedElement, widthScale]);
4875
+ }, [isLoadingCanvas, setSelectedElement, widthScale]);
4868
4876
  // Cleanup throttled function on unmount
4869
4877
  useEffect(() => {
4870
4878
  return () => {
@@ -5248,7 +5256,7 @@ function useVizLiveIframeMsg(options = {}) {
5248
5256
  switch (message.type) {
5249
5257
  case MessageType.GX_DOM_TRACKING_PAYLOAD:
5250
5258
  if (message.payload) {
5251
- const data = decodePayloads(message.payload);
5259
+ const data = decodeClarity(message.payload);
5252
5260
  if (data) {
5253
5261
  addPayload(data);
5254
5262
  }
@@ -6737,7 +6745,8 @@ const useHeatmapRender = () => {
6737
6745
  useEffect(() => {
6738
6746
  if (!data || data.length === 0)
6739
6747
  return;
6740
- renderHeatmap(data);
6748
+ const decoded = decodeArrayClarity(data);
6749
+ renderHeatmap(decoded);
6741
6750
  return () => {
6742
6751
  setVizRef(null);
6743
6752
  };
@@ -6877,7 +6886,8 @@ const useReplayRender = () => {
6877
6886
  useEffect(() => {
6878
6887
  if (!data || data.length === 0)
6879
6888
  return;
6880
- startReplay(data);
6889
+ const decoded = decodeArrayClarity(data);
6890
+ startReplay(decoded);
6881
6891
  // Cleanup
6882
6892
  return () => {
6883
6893
  isPlayingRef.current = false;
@@ -8877,12 +8887,21 @@ const VizLoadingCanvas = () => {
8877
8887
  const isLoadingCanvas = useHeatmapSettingContext((state) => state.isLoadingCanvas);
8878
8888
  const CompLoading = useHeatmapControlStore((s) => s.controls.VizLoading);
8879
8889
  const wrapperHeight = useHeatmapVizRectContext((s) => s.wrapperHeight);
8890
+ const iframeHeight = useHeatmapVizRectContext((s) => s.iframeHeight);
8891
+ const widthScale = useHeatmapVizContext((s) => s.widthScale);
8880
8892
  if (!isLoadingCanvas)
8881
8893
  return null;
8882
8894
  return (jsx("div", { className: "gx-hm-loading-canvas", style: {
8883
8895
  background: '#000000B2',
8884
- }, children: jsx(BoxStack, { position: "absolute", height: wrapperHeight, flexDirection: "row", justifyContent: "center", alignItems: "center", style: {
8896
+ width: '100%',
8897
+ position: 'absolute',
8898
+ height: iframeHeight,
8899
+ borderRadius: `${HEATMAP_CONFIG.borderRadius}px`,
8900
+ top: 0,
8901
+ left: 0,
8902
+ }, children: jsx(BoxStack, { position: "absolute", height: wrapperHeight / widthScale, flexDirection: "row", justifyContent: "center", alignItems: "center", style: {
8885
8903
  width: '100%',
8904
+ maxHeight: iframeHeight,
8886
8905
  top: 0,
8887
8906
  left: 0,
8888
8907
  }, children: jsx("div", { style: { height: 'fit-content' }, children: CompLoading && jsx(CompLoading, { type: "transparent" }) }) }) }));
@@ -8901,6 +8920,7 @@ const WrapperVisual = ({ children, visualRef, wrapperRef, scaledHeight, iframeHe
8901
8920
  flex: 1,
8902
8921
  // paddingBottom: HEATMAP_STYLE['viz']['paddingBottom'],
8903
8922
  background: HEATMAP_STYLE['viz']['background'],
8923
+ ...(isLoadingCanvas ? { maxHeight: '100%', overflowY: 'hidden' } : {}),
8904
8924
  }, children: jsx("div", { className: "gx-hm-visual-unscaled", style: {
8905
8925
  width: '100%',
8906
8926
  display: 'flex',
@@ -8917,7 +8937,6 @@ const WrapperVisual = ({ children, visualRef, wrapperRef, scaledHeight, iframeHe
8917
8937
  transform: `scale(${widthScale})`,
8918
8938
  transformOrigin: 'top center',
8919
8939
  paddingBlockEnd: '0',
8920
- ...(isLoadingCanvas ? { maxHeight: '100%', overflow: 'hidden' } : {}),
8921
8940
  }, children: children }) }) }));
8922
8941
  function calcContentHeight() {
8923
8942
  return scaledHeight > 0
@@ -9086,4 +9105,4 @@ const HeatmapLayout = ({ data, clickmap, clickAreas, scrollmap, attentionMap, co
9086
9105
  }
9087
9106
  };
9088
9107
 
9089
- export { BACKDROP_CONFIG, DEFAULT_SIDEBAR_WIDTH, DEFAULT_VIEW_ID, DEFAULT_ZOOM_RATIO, EClickMode, EClickRankType, EClickType, EDeviceType, EHeatmapType, ELM_CALLOUT_CONFIG, EScrollType, GraphView, HEATMAP_CONFIG, HEATMAP_IFRAME, HEATMAP_STYLE, HeatmapLayout, ViewIdContext, Z_INDEX$1 as Z_INDEX, compareViewPerformance, convertViewportToIframeCoords, createStorePerformanceTracker, createViewContextHook, downloadPerformanceReport, getCompareViewId, getMetricsByViewId, getPerformanceReportJSON, getScrollGradientColor, performanceLogger, printPerformanceSummary, scrollToElementIfNeeded, sendPerformanceReport, serializeAreas, trackStoreAction, useAreaCreation, useAreaEditMode, useAreaFilterVisible, useAreaHydration, useAreaInteraction, useAreaPositionsUpdater, useAreaRectSync, useAreaRendererContainer, useAreaTopAutoDetect, useClickedElement, useDebounceCallback, useElementCalloutVisible, useHeatmapAreaClickContext, useHeatmapCanvas, useHeatmapClickContext, useHeatmapCompareStore, useHeatmapConfigStore, useHeatmapCopyView, useHeatmapDataContext, useHeatmapEffects, useHeatmapElementPosition, useHeatmapHoverContext, useHeatmapLiveStore, useHeatmapRenderByMode, useHeatmapScale, useHeatmapScroll, useHeatmapScrollContext, useHeatmapSettingContext, useHeatmapVizContext, useHeatmapVizRectContext, useHeatmapWidthByDevice, useHoveredElement, useIframeHeight, useIframeHeightProcessor, useMeasureFunction, useRegisterConfig, useRegisterControl, useRegisterData, useRegisterHeatmap, useRenderCount, useScrollmapZones, useTrackHookCall, useViewIdContext, useVizLiveRender, useWhyDidYouUpdate, useWrapperRefHeight, useZonePositions, withPerformanceTracking };
9108
+ export { BACKDROP_CONFIG, DEFAULT_SIDEBAR_WIDTH, DEFAULT_VIEW_ID, DEFAULT_ZOOM_RATIO, EClickMode, EClickRankType, EClickType, EDeviceType, EHeatmapType, ELM_CALLOUT_CONFIG, EScrollType, GraphView, HEATMAP_CONFIG, HEATMAP_IFRAME, HEATMAP_STYLE, HeatmapLayout, ViewIdContext, Z_INDEX$1 as Z_INDEX, compareViewPerformance, convertViewportToIframeCoords, createStorePerformanceTracker, createViewContextHook, decodeArrayClarity, decodeClarity, downloadPerformanceReport, getCompareViewId, getMetricsByViewId, getPerformanceReportJSON, getScrollGradientColor, performanceLogger, printPerformanceSummary, scrollToElementIfNeeded, sendPerformanceReport, serializeAreas, trackStoreAction, useAreaCreation, useAreaEditMode, useAreaFilterVisible, useAreaHydration, useAreaInteraction, useAreaPositionsUpdater, useAreaRectSync, useAreaRendererContainer, useAreaTopAutoDetect, useClickedElement, useDebounceCallback, useElementCalloutVisible, useHeatmapAreaClickContext, useHeatmapCanvas, useHeatmapClickContext, useHeatmapCompareStore, useHeatmapConfigStore, useHeatmapCopyView, useHeatmapDataContext, useHeatmapEffects, useHeatmapElementPosition, useHeatmapHoverContext, useHeatmapLiveStore, useHeatmapRenderByMode, useHeatmapScale, useHeatmapScroll, useHeatmapScrollContext, useHeatmapSettingContext, useHeatmapVizContext, useHeatmapVizRectContext, useHeatmapWidthByDevice, useHoveredElement, useIframeHeight, useIframeHeightProcessor, useMeasureFunction, useRegisterConfig, useRegisterControl, useRegisterData, useRegisterHeatmap, useRenderCount, useScrollmapZones, useTrackHookCall, useViewIdContext, useVizLiveRender, useWhyDidYouUpdate, useWrapperRefHeight, useZonePositions, withPerformanceTracking };
@@ -1,13 +1,13 @@
1
- import type { ClickMapPoint, DecodedPayload, IHeatmapInfo, IPersistedAreaData, ScrollMapPoint } from '../types';
1
+ import type { ClickMapPoint, EncodedPayload, IHeatmapInfo, IPersistedAreaData, ScrollMapPoint } from '../types';
2
2
  export interface IHeatmapDataStore {
3
- data: Map<string, DecodedPayload[] | undefined>;
3
+ data: Map<string, EncodedPayload[] | undefined>;
4
4
  clickmap: Map<string, ClickMapPoint[] | undefined>;
5
5
  clickAreas: Map<string, IPersistedAreaData[] | undefined>;
6
6
  dataInfo: Map<string, IHeatmapInfo | undefined>;
7
7
  scrollmap: Map<string, ScrollMapPoint[] | undefined>;
8
8
  attentionMap: Map<string, ScrollMapPoint[] | undefined>;
9
9
  setDataInfo: (dataInfo: IHeatmapInfo, viewId?: string) => void;
10
- setData: (data: DecodedPayload[], viewId?: string) => void;
10
+ setData: (data: EncodedPayload[], viewId?: string) => void;
11
11
  setClickmap: (clickmap: ClickMapPoint[], viewId?: string) => void;
12
12
  setClickAreas: (clickAreas: IPersistedAreaData[], viewId?: string) => void;
13
13
  removeClickArea: (areaId: string, viewId?: string) => void;
@@ -38,4 +38,5 @@ export interface ScrollMapPoint {
38
38
  export type DecodedPayload = Data.DecodedPayload;
39
39
  export type DecodedEvents = MergedPayload['events'];
40
40
  export type DecodedEvent = DecodedEvents[number];
41
+ export type EncodedPayload = string;
41
42
  //# sourceMappingURL=clarity.d.ts.map
@@ -1 +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;AAED,MAAM,WAAW,cAAc;IAC7B,YAAY,EAAE,MAAM,CAAC;IACrB,aAAa,EAAE,MAAM,CAAC;IACtB,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,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"}
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;AAED,MAAM,WAAW,cAAc;IAC7B,YAAY,EAAE,MAAM,CAAC;IACrB,aAAa,EAAE,MAAM,CAAC;IACtB,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,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;AAEjD,MAAM,MAAM,cAAc,GAAG,MAAM,CAAC"}
@@ -1,7 +1,7 @@
1
- import type { ClickMapPoint, DecodedPayload, IHeatmapInfo, IPersistedAreaData, ScrollMapPoint } from '../../types';
1
+ import type { ClickMapPoint, EncodedPayload, IHeatmapInfo, IPersistedAreaData, ScrollMapPoint } from '../../types';
2
2
  import type { IHeatmapControl } from '../../types/control';
3
3
  interface HeatmapLayoutProps {
4
- data?: DecodedPayload[];
4
+ data?: EncodedPayload[];
5
5
  clickmap?: ClickMapPoint[];
6
6
  clickAreas?: IPersistedAreaData[];
7
7
  scrollmap?: ScrollMapPoint[];
@@ -1 +1 @@
1
- {"version":3,"file":"VizLoadingCanvas.d.ts","sourceRoot":"","sources":["../../../src/components/VizDom/VizLoadingCanvas.tsx"],"names":[],"mappings":"AAIA,eAAO,MAAM,gBAAgB,EAAE,KAAK,CAAC,EA6BpC,CAAC"}
1
+ {"version":3,"file":"VizLoadingCanvas.d.ts","sourceRoot":"","sources":["../../../src/components/VizDom/VizLoadingCanvas.tsx"],"names":[],"mappings":"AAKA,eAAO,MAAM,gBAAgB,EAAE,KAAK,CAAC,EAsCpC,CAAC"}
@@ -1,4 +1,4 @@
1
- import type { DecodedPayload } from '../../types';
1
+ import type { DecodedPayload, EncodedPayload } from '../../types';
2
2
  export declare function findLastSizeOfDom(data: DecodedPayload[]): {
3
3
  doc: {
4
4
  width: number | undefined;
@@ -13,5 +13,6 @@ export declare function findLastSizeOfDom(data: DecodedPayload[]): {
13
13
  height: number | undefined;
14
14
  };
15
15
  };
16
- export declare function decodePayloads(payload: string): DecodedPayload | null;
16
+ export declare function decodeClarity(payload: string): DecodedPayload | null;
17
+ export declare function decodeArrayClarity(items: EncodedPayload[]): DecodedPayload[];
17
18
  //# sourceMappingURL=decode.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"decode.d.ts","sourceRoot":"","sources":["../../../src/helpers/viz-dom/decode.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAgB,cAAc,EAAE,MAAM,aAAa,CAAC;AAIhE,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,cAAc,EAAE;;;;;;;;;;;;;EA0BvD;AAMD,wBAAgB,cAAc,CAAC,OAAO,EAAE,MAAM,GAAG,cAAc,GAAG,IAAI,CAMrE"}
1
+ {"version":3,"file":"decode.d.ts","sourceRoot":"","sources":["../../../src/helpers/viz-dom/decode.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAgB,cAAc,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAIhF,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,cAAc,EAAE;;;;;;;;;;;;;EA0BvD;AAMD,wBAAgB,aAAa,CAAC,OAAO,EAAE,MAAM,GAAG,cAAc,GAAG,IAAI,CAMpE;AAED,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,cAAc,EAAE,GAAG,cAAc,EAAE,CAE5E"}
@@ -1,3 +1,3 @@
1
- import type { DecodedPayload, IHeatmapInfo } from '../../types';
2
- export declare const useRegisterData: (data?: DecodedPayload[], dataInfo?: IHeatmapInfo) => void;
1
+ import type { EncodedPayload, IHeatmapInfo } from '../../types';
2
+ export declare const useRegisterData: (data?: EncodedPayload[], dataInfo?: IHeatmapInfo) => void;
3
3
  //# sourceMappingURL=useRegisterData.d.ts.map
@@ -1,6 +1,6 @@
1
- import type { ClickMapPoint, DecodedPayload, IHeatmapInfo, IPersistedAreaData, ScrollMapPoint } from '../../types';
1
+ import type { ClickMapPoint, EncodedPayload, IHeatmapInfo, IPersistedAreaData, ScrollMapPoint } from '../../types';
2
2
  interface IHeatmapDataState {
3
- data: DecodedPayload[] | undefined;
3
+ data: EncodedPayload[] | undefined;
4
4
  clickmap: ClickMapPoint[] | undefined;
5
5
  clickAreas: IPersistedAreaData[] | undefined;
6
6
  scrollmap: ScrollMapPoint[] | undefined;
@@ -8,7 +8,7 @@ interface IHeatmapDataState {
8
8
  dataInfo: IHeatmapInfo | undefined;
9
9
  }
10
10
  interface IHeatmapDataActions {
11
- setData: (newData: DecodedPayload[]) => void;
11
+ setData: (newData: EncodedPayload[]) => void;
12
12
  setClickmap: (newClickmap: ClickMapPoint[]) => void;
13
13
  setClickAreas: (newClickAreas: IPersistedAreaData[]) => void;
14
14
  setScrollmap: (newScrollmap: ScrollMapPoint[]) => void;
@@ -1 +1 @@
1
- {"version":3,"file":"useHoveredElement.d.ts","sourceRoot":"","sources":["../../../src/hooks/viz-elm/useHoveredElement.ts"],"names":[],"mappings":"AAeA,UAAU,MAAM;IACd,SAAS,EAAE,KAAK,CAAC,SAAS,CAAC,iBAAiB,CAAC,CAAC;IAC9C,OAAO,EAAE,CAAC,EAAE,CAAC,EAAE,GAAG,KAAK,GAAG,CAAC;CAC5B;AAED,eAAO,MAAM,iBAAiB,GAAI,wBAAwB,MAAM;uEAgDpD,KAAK,CAAC,UAAU,CAAC,cAAc,CAAC;;0BA2B/B,KAAK,CAAC,UAAU,CAAC,cAAc,CAAC,SAAS,MAAM;CA4B3D,CAAC;AAiBF,eAAO,MAAM,6BAA6B,GACxC,SAAS,MAAM,EACf,SAAS,MAAM,EACf,YAAY,OAAO,EACnB,OAAO,MAAM,KACZ;IAAE,CAAC,EAAE,MAAM,CAAC;IAAC,CAAC,EAAE,MAAM,CAAA;CAUxB,CAAC"}
1
+ {"version":3,"file":"useHoveredElement.d.ts","sourceRoot":"","sources":["../../../src/hooks/viz-elm/useHoveredElement.ts"],"names":[],"mappings":"AAgBA,UAAU,MAAM;IACd,SAAS,EAAE,KAAK,CAAC,SAAS,CAAC,iBAAiB,CAAC,CAAC;IAC9C,OAAO,EAAE,CAAC,EAAE,CAAC,EAAE,GAAG,KAAK,GAAG,CAAC;CAC5B;AAED,eAAO,MAAM,iBAAiB,GAAI,wBAAwB,MAAM;uEAiDpD,KAAK,CAAC,UAAU,CAAC,cAAc,CAAC;;0BA4B/B,KAAK,CAAC,UAAU,CAAC,cAAc,CAAC,SAAS,MAAM;CA6B3D,CAAC;AAiBF,eAAO,MAAM,6BAA6B,GACxC,SAAS,MAAM,EACf,SAAS,MAAM,EACf,YAAY,OAAO,EACnB,OAAO,MAAM,KACZ;IAAE,CAAC,EAAE,MAAM,CAAC;IAAC,CAAC,EAAE,MAAM,CAAA;CAUxB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"useHeatmapRender.d.ts","sourceRoot":"","sources":["../../../src/hooks/viz-render/useHeatmapRender.ts"],"names":[],"mappings":"AAUA,UAAU,uBAAuB;IAC/B,SAAS,EAAE,KAAK,CAAC,SAAS,CAAC,iBAAiB,GAAG,IAAI,CAAC,CAAC;CACtD;AAED,eAAO,MAAM,gBAAgB,QAAO,uBAyCnC,CAAC"}
1
+ {"version":3,"file":"useHeatmapRender.d.ts","sourceRoot":"","sources":["../../../src/hooks/viz-render/useHeatmapRender.ts"],"names":[],"mappings":"AAUA,UAAU,uBAAuB;IAC/B,SAAS,EAAE,KAAK,CAAC,SAAS,CAAC,iBAAiB,GAAG,IAAI,CAAC,CAAC;CACtD;AAED,eAAO,MAAM,gBAAgB,QAAO,uBA0CnC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"useReplayRender.d.ts","sourceRoot":"","sources":["../../../src/hooks/viz-render/useReplayRender.ts"],"names":[],"mappings":"AASA,UAAU,sBAAsB;IAC9B,SAAS,EAAE,KAAK,CAAC,SAAS,CAAC,iBAAiB,GAAG,IAAI,CAAC,CAAC;IACrD,SAAS,EAAE,OAAO,CAAC;IACnB,IAAI,EAAE,MAAM,IAAI,CAAC;IACjB,KAAK,EAAE,MAAM,IAAI,CAAC;CACnB;AAED,eAAO,MAAM,eAAe,QAAO,sBA+IlC,CAAC"}
1
+ {"version":3,"file":"useReplayRender.d.ts","sourceRoot":"","sources":["../../../src/hooks/viz-render/useReplayRender.ts"],"names":[],"mappings":"AAUA,UAAU,sBAAsB;IAC9B,SAAS,EAAE,KAAK,CAAC,SAAS,CAAC,iBAAiB,GAAG,IAAI,CAAC,CAAC;IACrD,SAAS,EAAE,OAAO,CAAC;IACnB,IAAI,EAAE,MAAM,IAAI,CAAC;IACjB,KAAK,EAAE,MAAM,IAAI,CAAC;CACnB;AAED,eAAO,MAAM,eAAe,QAAO,sBAgJlC,CAAC"}
@@ -3,7 +3,7 @@ export * from './configs';
3
3
  export * from './contexts';
4
4
  export * from './hooks';
5
5
  export * from './types';
6
- export { serializeAreas } from './helpers';
6
+ export { decodeArrayClarity, decodeClarity, serializeAreas } from './helpers';
7
7
  export { useHeatmapCompareStore, useHeatmapConfigStore, useHeatmapLiveStore } from './stores';
8
8
  export * from './performance';
9
9
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;AAExB,OAAO,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAC3C,OAAO,EAAE,sBAAsB,EAAE,qBAAqB,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAC;AAE9F,cAAc,eAAe,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;AAExB,OAAO,EAAE,kBAAkB,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAC9E,OAAO,EAAE,sBAAsB,EAAE,qBAAqB,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAC;AAE9F,cAAc,eAAe,CAAC"}