@gemx-dev/heatmap-react 3.5.87 → 3.5.88
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/configs/viewId.d.ts +3 -2
- package/dist/esm/configs/viewId.d.ts.map +1 -1
- package/dist/esm/contexts/ViewIdContext.d.ts +3 -2
- package/dist/esm/contexts/ViewIdContext.d.ts.map +1 -1
- package/dist/esm/hooks/view-context/useHeatmapCopyView.d.ts +6 -4
- package/dist/esm/hooks/view-context/useHeatmapCopyView.d.ts.map +1 -1
- package/dist/esm/index.js +9 -3
- package/dist/esm/index.mjs +9 -3
- package/dist/esm/stores/config.d.ts +3 -2
- package/dist/esm/stores/config.d.ts.map +1 -1
- package/dist/esm/stores/mode-compare.d.ts +2 -1
- package/dist/esm/stores/mode-compare.d.ts.map +1 -1
- package/dist/esm/types/heatmap.d.ts +5 -0
- package/dist/esm/types/heatmap.d.ts.map +1 -1
- package/dist/umd/configs/viewId.d.ts +3 -2
- package/dist/umd/configs/viewId.d.ts.map +1 -1
- package/dist/umd/contexts/ViewIdContext.d.ts +3 -2
- package/dist/umd/contexts/ViewIdContext.d.ts.map +1 -1
- package/dist/umd/hooks/view-context/useHeatmapCopyView.d.ts +6 -4
- package/dist/umd/hooks/view-context/useHeatmapCopyView.d.ts.map +1 -1
- package/dist/umd/index.js +1 -1
- package/dist/umd/stores/config.d.ts +3 -2
- package/dist/umd/stores/config.d.ts.map +1 -1
- package/dist/umd/stores/mode-compare.d.ts +2 -1
- package/dist/umd/stores/mode-compare.d.ts.map +1 -1
- package/dist/umd/types/heatmap.d.ts +5 -0
- package/dist/umd/types/heatmap.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -1,3 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const
|
|
1
|
+
import type { IHeatmapCompareViewId, IHeatmapViewId } from '../hooks';
|
|
2
|
+
export declare const DEFAULT_VIEW_ID: IHeatmapViewId;
|
|
3
|
+
export declare const getCompareViewId: (viewId: number) => IHeatmapCompareViewId;
|
|
3
4
|
//# sourceMappingURL=viewId.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"viewId.d.ts","sourceRoot":"","sources":["../../src/configs/viewId.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,eAAe,
|
|
1
|
+
{"version":3,"file":"viewId.d.ts","sourceRoot":"","sources":["../../src/configs/viewId.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAEtE,eAAO,MAAM,eAAe,EAAE,cAA0B,CAAC;AAEzD,eAAO,MAAM,gBAAgB,GAAI,QAAQ,MAAM,KAAG,qBAEjD,CAAC"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const
|
|
1
|
+
import type { IHeatmapViewId } from '../hooks';
|
|
2
|
+
export declare const ViewIdContext: import("react").Context<IHeatmapViewId | undefined>;
|
|
3
|
+
export declare const useViewIdContext: () => IHeatmapViewId;
|
|
3
4
|
//# sourceMappingURL=ViewIdContext.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ViewIdContext.d.ts","sourceRoot":"","sources":["../../src/contexts/ViewIdContext.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ViewIdContext.d.ts","sourceRoot":"","sources":["../../src/contexts/ViewIdContext.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAK/C,eAAO,MAAM,aAAa,qDAAuD,CAAC;AAElF,eAAO,MAAM,gBAAgB,QAAO,cAGnC,CAAC"}
|
|
@@ -1,26 +1,28 @@
|
|
|
1
|
+
export type IHeatmapCompareViewId = `compare-${number}`;
|
|
2
|
+
export type IHeatmapViewId = 'default' | 'single' | 'live' | IHeatmapCompareViewId;
|
|
1
3
|
export interface IUseHeatmapCopyViewResult {
|
|
2
4
|
/**
|
|
3
5
|
* Copy all store data from one view to another
|
|
4
6
|
* @param fromViewId - Source view ID
|
|
5
7
|
* @param toViewId - Target view ID
|
|
6
8
|
*/
|
|
7
|
-
copyView: (fromViewId:
|
|
9
|
+
copyView: (fromViewId: IHeatmapViewId, toViewId: IHeatmapViewId) => void;
|
|
8
10
|
/**
|
|
9
11
|
* Copy all store data to multiple target views
|
|
10
12
|
* @param fromViewId - Source view ID
|
|
11
13
|
* @param toViewIds - Array of target view IDs
|
|
12
14
|
*/
|
|
13
|
-
copyViewToMultiple: (fromViewId:
|
|
15
|
+
copyViewToMultiple: (fromViewId: IHeatmapViewId, toViewIds: IHeatmapViewId[]) => void;
|
|
14
16
|
/**
|
|
15
17
|
* Clear all store data for a specific view
|
|
16
18
|
* @param viewId - View ID to clear
|
|
17
19
|
*/
|
|
18
|
-
clearView: (viewId:
|
|
20
|
+
clearView: (viewId: IHeatmapViewId) => void;
|
|
19
21
|
/**
|
|
20
22
|
* Clear all store data for multiple views
|
|
21
23
|
* @param viewIds - Array of view IDs to clear
|
|
22
24
|
*/
|
|
23
|
-
clearMultipleViews: (viewIds:
|
|
25
|
+
clearMultipleViews: (viewIds: IHeatmapViewId[]) => void;
|
|
24
26
|
/**
|
|
25
27
|
* Reset all stores to default state
|
|
26
28
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useHeatmapCopyView.d.ts","sourceRoot":"","sources":["../../../src/hooks/view-context/useHeatmapCopyView.ts"],"names":[],"mappings":"AAWA,MAAM,WAAW,yBAAyB;IACxC;;;;OAIG;IACH,QAAQ,EAAE,CAAC,UAAU,EAAE,
|
|
1
|
+
{"version":3,"file":"useHeatmapCopyView.d.ts","sourceRoot":"","sources":["../../../src/hooks/view-context/useHeatmapCopyView.ts"],"names":[],"mappings":"AAWA,MAAM,MAAM,qBAAqB,GAAG,WAAW,MAAM,EAAE,CAAC;AACxD,MAAM,MAAM,cAAc,GAAG,SAAS,GAAG,QAAQ,GAAG,MAAM,GAAG,qBAAqB,CAAC;AAEnF,MAAM,WAAW,yBAAyB;IACxC;;;;OAIG;IACH,QAAQ,EAAE,CAAC,UAAU,EAAE,cAAc,EAAE,QAAQ,EAAE,cAAc,KAAK,IAAI,CAAC;IAEzE;;;;OAIG;IACH,kBAAkB,EAAE,CAAC,UAAU,EAAE,cAAc,EAAE,SAAS,EAAE,cAAc,EAAE,KAAK,IAAI,CAAC;IAEtF;;;OAGG;IACH,SAAS,EAAE,CAAC,MAAM,EAAE,cAAc,KAAK,IAAI,CAAC;IAE5C;;;OAGG;IACH,kBAAkB,EAAE,CAAC,OAAO,EAAE,cAAc,EAAE,KAAK,IAAI,CAAC;IAExD;;OAEG;IACH,QAAQ,EAAE,MAAM,IAAI,CAAC;CACtB;AAED;;GAEG;AACH,eAAO,MAAM,kBAAkB,QAAO,yBAmFrC,CAAC"}
|
package/dist/esm/index.js
CHANGED
|
@@ -197,6 +197,12 @@ var EScrollType;
|
|
|
197
197
|
EScrollType["Attention"] = "ATTENTION";
|
|
198
198
|
EScrollType["Revenue"] = "REVENUE";
|
|
199
199
|
})(EScrollType || (EScrollType = {}));
|
|
200
|
+
var EHeatmapMode;
|
|
201
|
+
(function (EHeatmapMode) {
|
|
202
|
+
EHeatmapMode["Single"] = "single";
|
|
203
|
+
EHeatmapMode["Live"] = "live";
|
|
204
|
+
EHeatmapMode["Compare"] = "compare";
|
|
205
|
+
})(EHeatmapMode || (EHeatmapMode = {}));
|
|
200
206
|
|
|
201
207
|
const ViewIdContext = createContext(undefined);
|
|
202
208
|
const useViewIdContext = () => {
|
|
@@ -306,12 +312,12 @@ const useHeatmapControlStore = create()((set, get) => {
|
|
|
306
312
|
|
|
307
313
|
const useHeatmapConfigStore = create()((set) => {
|
|
308
314
|
return {
|
|
309
|
-
mode:
|
|
315
|
+
mode: EHeatmapMode.Single,
|
|
310
316
|
sidebarWidth: DEFAULT_SIDEBAR_WIDTH,
|
|
311
317
|
clickMode: EClickMode.Default,
|
|
312
318
|
isRendering: true,
|
|
313
319
|
setMode: (mode) => set({ mode }),
|
|
314
|
-
resetMode: () => set({ mode:
|
|
320
|
+
resetMode: () => set({ mode: EHeatmapMode.Single }),
|
|
315
321
|
setSidebarWidth: (sidebarWidth) => set({ sidebarWidth }),
|
|
316
322
|
setIsRendering: (isRendering) => set({ isRendering }),
|
|
317
323
|
};
|
|
@@ -9102,4 +9108,4 @@ const HeatmapLayout = ({ data, clickmap, clickAreas, scrollmap, attentionMap, co
|
|
|
9102
9108
|
}
|
|
9103
9109
|
};
|
|
9104
9110
|
|
|
9105
|
-
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 };
|
|
9111
|
+
export { BACKDROP_CONFIG, DEFAULT_SIDEBAR_WIDTH, DEFAULT_VIEW_ID, DEFAULT_ZOOM_RATIO, EClickMode, EClickRankType, EClickType, EDeviceType, EHeatmapMode, 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
|
@@ -197,6 +197,12 @@ var EScrollType;
|
|
|
197
197
|
EScrollType["Attention"] = "ATTENTION";
|
|
198
198
|
EScrollType["Revenue"] = "REVENUE";
|
|
199
199
|
})(EScrollType || (EScrollType = {}));
|
|
200
|
+
var EHeatmapMode;
|
|
201
|
+
(function (EHeatmapMode) {
|
|
202
|
+
EHeatmapMode["Single"] = "single";
|
|
203
|
+
EHeatmapMode["Live"] = "live";
|
|
204
|
+
EHeatmapMode["Compare"] = "compare";
|
|
205
|
+
})(EHeatmapMode || (EHeatmapMode = {}));
|
|
200
206
|
|
|
201
207
|
const ViewIdContext = createContext(undefined);
|
|
202
208
|
const useViewIdContext = () => {
|
|
@@ -306,12 +312,12 @@ const useHeatmapControlStore = create()((set, get) => {
|
|
|
306
312
|
|
|
307
313
|
const useHeatmapConfigStore = create()((set) => {
|
|
308
314
|
return {
|
|
309
|
-
mode:
|
|
315
|
+
mode: EHeatmapMode.Single,
|
|
310
316
|
sidebarWidth: DEFAULT_SIDEBAR_WIDTH,
|
|
311
317
|
clickMode: EClickMode.Default,
|
|
312
318
|
isRendering: true,
|
|
313
319
|
setMode: (mode) => set({ mode }),
|
|
314
|
-
resetMode: () => set({ mode:
|
|
320
|
+
resetMode: () => set({ mode: EHeatmapMode.Single }),
|
|
315
321
|
setSidebarWidth: (sidebarWidth) => set({ sidebarWidth }),
|
|
316
322
|
setIsRendering: (isRendering) => set({ isRendering }),
|
|
317
323
|
};
|
|
@@ -9102,4 +9108,4 @@ const HeatmapLayout = ({ data, clickmap, clickAreas, scrollmap, attentionMap, co
|
|
|
9102
9108
|
}
|
|
9103
9109
|
};
|
|
9104
9110
|
|
|
9105
|
-
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 };
|
|
9111
|
+
export { BACKDROP_CONFIG, DEFAULT_SIDEBAR_WIDTH, DEFAULT_VIEW_ID, DEFAULT_ZOOM_RATIO, EClickMode, EClickRankType, EClickType, EDeviceType, EHeatmapMode, 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,8 +1,9 @@
|
|
|
1
|
+
import { EHeatmapMode } from '../types';
|
|
1
2
|
export interface IHeatmapConfigStore {
|
|
2
|
-
mode:
|
|
3
|
+
mode: EHeatmapMode;
|
|
3
4
|
sidebarWidth: number;
|
|
4
5
|
isRendering: boolean;
|
|
5
|
-
setMode: (mode:
|
|
6
|
+
setMode: (mode: EHeatmapMode) => void;
|
|
6
7
|
resetMode: () => void;
|
|
7
8
|
setSidebarWidth: (sidebarWidth: number) => void;
|
|
8
9
|
setIsRendering: (isRendering: boolean) => void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../src/stores/config.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../src/stores/config.ts"],"names":[],"mappings":"AAEA,OAAO,EAAc,YAAY,EAAE,MAAM,UAAU,CAAC;AAEpD,MAAM,WAAW,mBAAmB;IAClC,IAAI,EAAE,YAAY,CAAC;IACnB,YAAY,EAAE,MAAM,CAAC;IACrB,WAAW,EAAE,OAAO,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;IAChD,cAAc,EAAE,CAAC,WAAW,EAAE,OAAO,KAAK,IAAI,CAAC;CAChD;AAED,eAAO,MAAM,qBAAqB,kFAYhC,CAAC"}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
+
import type { IHeatmapCompareViewId } from '../hooks';
|
|
1
2
|
import type { ICompareLayout, ICompareSyncSettings, ICompareView, ICreateCompareViewOptions } from '../types';
|
|
2
3
|
export interface IHeatmapCompareStore {
|
|
3
4
|
views: Map<string, ICompareView>;
|
|
4
|
-
viewOrder:
|
|
5
|
+
viewOrder: IHeatmapCompareViewId[];
|
|
5
6
|
layout: ICompareLayout;
|
|
6
7
|
syncSettings: ICompareSyncSettings;
|
|
7
8
|
viewIdCounter: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mode-compare.d.ts","sourceRoot":"","sources":["../../src/stores/mode-compare.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,oBAAoB,EAAE,YAAY,EAAE,yBAAyB,EAAE,MAAM,UAAU,CAAC;AAK9G,MAAM,WAAW,oBAAoB;IACnC,KAAK,EAAE,GAAG,CAAC,MAAM,EAAE,YAAY,CAAC,CAAC;IAEjC,SAAS,EAAE,
|
|
1
|
+
{"version":3,"file":"mode-compare.d.ts","sourceRoot":"","sources":["../../src/stores/mode-compare.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,UAAU,CAAC;AACtD,OAAO,KAAK,EAAE,cAAc,EAAE,oBAAoB,EAAE,YAAY,EAAE,yBAAyB,EAAE,MAAM,UAAU,CAAC;AAK9G,MAAM,WAAW,oBAAoB;IACnC,KAAK,EAAE,GAAG,CAAC,MAAM,EAAE,YAAY,CAAC,CAAC;IAEjC,SAAS,EAAE,qBAAqB,EAAE,CAAC;IAEnC,MAAM,EAAE,cAAc,CAAC;IAEvB,YAAY,EAAE,oBAAoB,CAAC;IAEnC,aAAa,EAAE,MAAM,CAAC;IAGtB,OAAO,EAAE,CAAC,OAAO,CAAC,EAAE,yBAAyB,KAAK,MAAM,CAAC;IAEzD,UAAU,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;IAErC,UAAU,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,CAAC,YAAY,CAAC,KAAK,IAAI,CAAC;IAErE,OAAO,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,YAAY,GAAG,SAAS,CAAC;IAEtD,SAAS,EAAE,CAAC,MAAM,EAAE,cAAc,KAAK,IAAI,CAAC;IAE5C,eAAe,EAAE,CAAC,QAAQ,EAAE,OAAO,CAAC,oBAAoB,CAAC,KAAK,IAAI,CAAC;IAEnE,iBAAiB,EAAE,CAAC,KAAK,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,EAAE,OAAO,CAAC,EAAE,yBAAyB,KAAK,IAAI,CAAC;IAEnF,YAAY,EAAE,MAAM,IAAI,CAAC;IAEzB,YAAY,EAAE,CAAC,CAAC,SAAS,MAAM,YAAY,EAAE,QAAQ,EAAE,CAAC,EAAE,KAAK,EAAE,YAAY,CAAC,CAAC,CAAC,KAAK,IAAI,CAAC;CAC3F;AAOD,eAAO,MAAM,sBAAsB,mFA0HjC,CAAC"}
|
|
@@ -39,6 +39,11 @@ export declare enum EScrollType {
|
|
|
39
39
|
Attention = "ATTENTION",
|
|
40
40
|
Revenue = "REVENUE"
|
|
41
41
|
}
|
|
42
|
+
export declare enum EHeatmapMode {
|
|
43
|
+
Single = "single",// Single view mode
|
|
44
|
+
Live = "live",// Live mode
|
|
45
|
+
Compare = "compare"
|
|
46
|
+
}
|
|
42
47
|
export interface IHeatmapConfig {
|
|
43
48
|
width?: number;
|
|
44
49
|
sidebarWidth?: number;
|
|
@@ -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,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,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,MAAM,WAAW,cAAc;IAC7B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,WAAW,CAAC,EAAE,YAAY,CAAC;CAC5B"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const
|
|
1
|
+
import type { IHeatmapCompareViewId, IHeatmapViewId } from '../hooks';
|
|
2
|
+
export declare const DEFAULT_VIEW_ID: IHeatmapViewId;
|
|
3
|
+
export declare const getCompareViewId: (viewId: number) => IHeatmapCompareViewId;
|
|
3
4
|
//# sourceMappingURL=viewId.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"viewId.d.ts","sourceRoot":"","sources":["../../src/configs/viewId.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,eAAe,
|
|
1
|
+
{"version":3,"file":"viewId.d.ts","sourceRoot":"","sources":["../../src/configs/viewId.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAEtE,eAAO,MAAM,eAAe,EAAE,cAA0B,CAAC;AAEzD,eAAO,MAAM,gBAAgB,GAAI,QAAQ,MAAM,KAAG,qBAEjD,CAAC"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const
|
|
1
|
+
import type { IHeatmapViewId } from '../hooks';
|
|
2
|
+
export declare const ViewIdContext: import("react").Context<IHeatmapViewId | undefined>;
|
|
3
|
+
export declare const useViewIdContext: () => IHeatmapViewId;
|
|
3
4
|
//# sourceMappingURL=ViewIdContext.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ViewIdContext.d.ts","sourceRoot":"","sources":["../../src/contexts/ViewIdContext.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ViewIdContext.d.ts","sourceRoot":"","sources":["../../src/contexts/ViewIdContext.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAK/C,eAAO,MAAM,aAAa,qDAAuD,CAAC;AAElF,eAAO,MAAM,gBAAgB,QAAO,cAGnC,CAAC"}
|
|
@@ -1,26 +1,28 @@
|
|
|
1
|
+
export type IHeatmapCompareViewId = `compare-${number}`;
|
|
2
|
+
export type IHeatmapViewId = 'default' | 'single' | 'live' | IHeatmapCompareViewId;
|
|
1
3
|
export interface IUseHeatmapCopyViewResult {
|
|
2
4
|
/**
|
|
3
5
|
* Copy all store data from one view to another
|
|
4
6
|
* @param fromViewId - Source view ID
|
|
5
7
|
* @param toViewId - Target view ID
|
|
6
8
|
*/
|
|
7
|
-
copyView: (fromViewId:
|
|
9
|
+
copyView: (fromViewId: IHeatmapViewId, toViewId: IHeatmapViewId) => void;
|
|
8
10
|
/**
|
|
9
11
|
* Copy all store data to multiple target views
|
|
10
12
|
* @param fromViewId - Source view ID
|
|
11
13
|
* @param toViewIds - Array of target view IDs
|
|
12
14
|
*/
|
|
13
|
-
copyViewToMultiple: (fromViewId:
|
|
15
|
+
copyViewToMultiple: (fromViewId: IHeatmapViewId, toViewIds: IHeatmapViewId[]) => void;
|
|
14
16
|
/**
|
|
15
17
|
* Clear all store data for a specific view
|
|
16
18
|
* @param viewId - View ID to clear
|
|
17
19
|
*/
|
|
18
|
-
clearView: (viewId:
|
|
20
|
+
clearView: (viewId: IHeatmapViewId) => void;
|
|
19
21
|
/**
|
|
20
22
|
* Clear all store data for multiple views
|
|
21
23
|
* @param viewIds - Array of view IDs to clear
|
|
22
24
|
*/
|
|
23
|
-
clearMultipleViews: (viewIds:
|
|
25
|
+
clearMultipleViews: (viewIds: IHeatmapViewId[]) => void;
|
|
24
26
|
/**
|
|
25
27
|
* Reset all stores to default state
|
|
26
28
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useHeatmapCopyView.d.ts","sourceRoot":"","sources":["../../../src/hooks/view-context/useHeatmapCopyView.ts"],"names":[],"mappings":"AAWA,MAAM,WAAW,yBAAyB;IACxC;;;;OAIG;IACH,QAAQ,EAAE,CAAC,UAAU,EAAE,
|
|
1
|
+
{"version":3,"file":"useHeatmapCopyView.d.ts","sourceRoot":"","sources":["../../../src/hooks/view-context/useHeatmapCopyView.ts"],"names":[],"mappings":"AAWA,MAAM,MAAM,qBAAqB,GAAG,WAAW,MAAM,EAAE,CAAC;AACxD,MAAM,MAAM,cAAc,GAAG,SAAS,GAAG,QAAQ,GAAG,MAAM,GAAG,qBAAqB,CAAC;AAEnF,MAAM,WAAW,yBAAyB;IACxC;;;;OAIG;IACH,QAAQ,EAAE,CAAC,UAAU,EAAE,cAAc,EAAE,QAAQ,EAAE,cAAc,KAAK,IAAI,CAAC;IAEzE;;;;OAIG;IACH,kBAAkB,EAAE,CAAC,UAAU,EAAE,cAAc,EAAE,SAAS,EAAE,cAAc,EAAE,KAAK,IAAI,CAAC;IAEtF;;;OAGG;IACH,SAAS,EAAE,CAAC,MAAM,EAAE,cAAc,KAAK,IAAI,CAAC;IAE5C;;;OAGG;IACH,kBAAkB,EAAE,CAAC,OAAO,EAAE,cAAc,EAAE,KAAK,IAAI,CAAC;IAExD;;OAEG;IACH,QAAQ,EAAE,MAAM,IAAI,CAAC;CACtB;AAED;;GAEG;AACH,eAAO,MAAM,kBAAkB,QAAO,yBAmFrC,CAAC"}
|