@gemx-dev/heatmap-react 3.5.82 → 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.
- package/dist/esm/components/Layout/HeatmapLayout.d.ts +2 -2
- package/dist/esm/helpers/viz-dom/decode.d.ts +3 -2
- package/dist/esm/helpers/viz-dom/decode.d.ts.map +1 -1
- package/dist/esm/hooks/register/useRegisterData.d.ts +2 -2
- package/dist/esm/hooks/view-context/useHeatmapDataContext.d.ts +3 -3
- package/dist/esm/hooks/viz-render/useHeatmapRender.d.ts.map +1 -1
- package/dist/esm/hooks/viz-render/useReplayRender.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 +10 -5
- package/dist/esm/index.mjs +10 -5
- package/dist/esm/stores/data.d.ts +3 -3
- package/dist/esm/types/clarity.d.ts +1 -0
- package/dist/esm/types/clarity.d.ts.map +1 -1
- package/dist/umd/components/Layout/HeatmapLayout.d.ts +2 -2
- package/dist/umd/helpers/viz-dom/decode.d.ts +3 -2
- package/dist/umd/helpers/viz-dom/decode.d.ts.map +1 -1
- package/dist/umd/hooks/register/useRegisterData.d.ts +2 -2
- package/dist/umd/hooks/view-context/useHeatmapDataContext.d.ts +3 -3
- package/dist/umd/hooks/viz-render/useHeatmapRender.d.ts.map +1 -1
- package/dist/umd/hooks/viz-render/useReplayRender.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 +1 -1
- package/dist/umd/stores/data.d.ts +3 -3
- package/dist/umd/types/clarity.d.ts +1 -0
- package/dist/umd/types/clarity.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type { ClickMapPoint,
|
|
1
|
+
import type { ClickMapPoint, EncodedPayload, IHeatmapInfo, IPersistedAreaData, ScrollMapPoint } from '../../types';
|
|
2
2
|
import type { IHeatmapControl } from '../../types/control';
|
|
3
3
|
interface HeatmapLayoutProps {
|
|
4
|
-
data?:
|
|
4
|
+
data?: EncodedPayload[];
|
|
5
5
|
clickmap?: ClickMapPoint[];
|
|
6
6
|
clickAreas?: IPersistedAreaData[];
|
|
7
7
|
scrollmap?: ScrollMapPoint[];
|
|
@@ -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
|
|
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;
|
|
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 {
|
|
2
|
-
export declare const useRegisterData: (data?:
|
|
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,
|
|
1
|
+
import type { ClickMapPoint, EncodedPayload, IHeatmapInfo, IPersistedAreaData, ScrollMapPoint } from '../../types';
|
|
2
2
|
interface IHeatmapDataState {
|
|
3
|
-
data:
|
|
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:
|
|
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":"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,
|
|
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":"
|
|
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"}
|
package/dist/esm/index.d.ts
CHANGED
|
@@ -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
|
package/dist/esm/index.d.ts.map
CHANGED
|
@@ -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;
|
|
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
|
|
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;
|
|
@@ -5253,7 +5256,7 @@ function useVizLiveIframeMsg(options = {}) {
|
|
|
5253
5256
|
switch (message.type) {
|
|
5254
5257
|
case MessageType.GX_DOM_TRACKING_PAYLOAD:
|
|
5255
5258
|
if (message.payload) {
|
|
5256
|
-
const data =
|
|
5259
|
+
const data = decodeClarity(message.payload);
|
|
5257
5260
|
if (data) {
|
|
5258
5261
|
addPayload(data);
|
|
5259
5262
|
}
|
|
@@ -6742,7 +6745,8 @@ const useHeatmapRender = () => {
|
|
|
6742
6745
|
useEffect(() => {
|
|
6743
6746
|
if (!data || data.length === 0)
|
|
6744
6747
|
return;
|
|
6745
|
-
|
|
6748
|
+
const decoded = decodeArrayClarity(data);
|
|
6749
|
+
renderHeatmap(decoded);
|
|
6746
6750
|
return () => {
|
|
6747
6751
|
setVizRef(null);
|
|
6748
6752
|
};
|
|
@@ -6882,7 +6886,8 @@ const useReplayRender = () => {
|
|
|
6882
6886
|
useEffect(() => {
|
|
6883
6887
|
if (!data || data.length === 0)
|
|
6884
6888
|
return;
|
|
6885
|
-
|
|
6889
|
+
const decoded = decodeArrayClarity(data);
|
|
6890
|
+
startReplay(decoded);
|
|
6886
6891
|
// Cleanup
|
|
6887
6892
|
return () => {
|
|
6888
6893
|
isPlayingRef.current = false;
|
|
@@ -9100,4 +9105,4 @@ const HeatmapLayout = ({ data, clickmap, clickAreas, scrollmap, attentionMap, co
|
|
|
9100
9105
|
}
|
|
9101
9106
|
};
|
|
9102
9107
|
|
|
9103
|
-
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 };
|
package/dist/esm/index.mjs
CHANGED
|
@@ -2054,7 +2054,7 @@ function findLastSizeOfDom(data) {
|
|
|
2054
2054
|
},
|
|
2055
2055
|
};
|
|
2056
2056
|
}
|
|
2057
|
-
function
|
|
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;
|
|
@@ -5253,7 +5256,7 @@ function useVizLiveIframeMsg(options = {}) {
|
|
|
5253
5256
|
switch (message.type) {
|
|
5254
5257
|
case MessageType.GX_DOM_TRACKING_PAYLOAD:
|
|
5255
5258
|
if (message.payload) {
|
|
5256
|
-
const data =
|
|
5259
|
+
const data = decodeClarity(message.payload);
|
|
5257
5260
|
if (data) {
|
|
5258
5261
|
addPayload(data);
|
|
5259
5262
|
}
|
|
@@ -6742,7 +6745,8 @@ const useHeatmapRender = () => {
|
|
|
6742
6745
|
useEffect(() => {
|
|
6743
6746
|
if (!data || data.length === 0)
|
|
6744
6747
|
return;
|
|
6745
|
-
|
|
6748
|
+
const decoded = decodeArrayClarity(data);
|
|
6749
|
+
renderHeatmap(decoded);
|
|
6746
6750
|
return () => {
|
|
6747
6751
|
setVizRef(null);
|
|
6748
6752
|
};
|
|
@@ -6882,7 +6886,8 @@ const useReplayRender = () => {
|
|
|
6882
6886
|
useEffect(() => {
|
|
6883
6887
|
if (!data || data.length === 0)
|
|
6884
6888
|
return;
|
|
6885
|
-
|
|
6889
|
+
const decoded = decodeArrayClarity(data);
|
|
6890
|
+
startReplay(decoded);
|
|
6886
6891
|
// Cleanup
|
|
6887
6892
|
return () => {
|
|
6888
6893
|
isPlayingRef.current = false;
|
|
@@ -9100,4 +9105,4 @@ const HeatmapLayout = ({ data, clickmap, clickAreas, scrollmap, attentionMap, co
|
|
|
9100
9105
|
}
|
|
9101
9106
|
};
|
|
9102
9107
|
|
|
9103
|
-
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,
|
|
1
|
+
import type { ClickMapPoint, EncodedPayload, IHeatmapInfo, IPersistedAreaData, ScrollMapPoint } from '../types';
|
|
2
2
|
export interface IHeatmapDataStore {
|
|
3
|
-
data: Map<string,
|
|
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:
|
|
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,CAA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ickMapPoint,
|
|
1
|
+
import type { ClickMapPoint, EncodedPayload, IHeatmapInfo, IPersistedAreaData, ScrollMapPoint } from '../../types';
|
|
2
2
|
import type { IHeatmapControl } from '../../types/control';
|
|
3
3
|
interface HeatmapLayoutProps {
|
|
4
|
-
data?:
|
|
4
|
+
data?: EncodedPayload[];
|
|
5
5
|
clickmap?: ClickMapPoint[];
|
|
6
6
|
clickAreas?: IPersistedAreaData[];
|
|
7
7
|
scrollmap?: ScrollMapPoint[];
|
|
@@ -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
|
|
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;
|
|
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 {
|
|
2
|
-
export declare const useRegisterData: (data?:
|
|
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,
|
|
1
|
+
import type { ClickMapPoint, EncodedPayload, IHeatmapInfo, IPersistedAreaData, ScrollMapPoint } from '../../types';
|
|
2
2
|
interface IHeatmapDataState {
|
|
3
|
-
data:
|
|
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:
|
|
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":"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,
|
|
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":"
|
|
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"}
|
package/dist/umd/index.d.ts
CHANGED
|
@@ -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
|
package/dist/umd/index.d.ts.map
CHANGED
|
@@ -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;
|
|
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"}
|