@gemx-dev/heatmap-react 3.5.48 → 3.5.49
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/ContentTopBar.d.ts.map +1 -1
- package/dist/esm/components/Layout/ContentVizByMode.d.ts.map +1 -1
- package/dist/esm/components/Layout/LeftSidebar.d.ts.map +1 -1
- package/dist/esm/components/VizCompare/CompareGrid.d.ts +1 -0
- package/dist/esm/components/VizCompare/CompareGrid.d.ts.map +1 -0
- package/dist/esm/components/VizCompare/CompareView.d.ts +1 -0
- package/dist/esm/components/VizCompare/CompareView.d.ts.map +1 -0
- package/dist/esm/components/VizCompare/CompareViewHeader.d.ts +1 -0
- package/dist/esm/components/VizCompare/CompareViewHeader.d.ts.map +1 -0
- package/dist/esm/components/VizCompare/CompareVizRenderer.d.ts +1 -0
- package/dist/esm/components/VizCompare/CompareVizRenderer.d.ts.map +1 -0
- package/dist/esm/components/VizCompare/VizCompareHeatmap.d.ts +1 -0
- package/dist/esm/components/VizCompare/VizCompareHeatmap.d.ts.map +1 -0
- package/dist/esm/components/VizCompare/index.d.ts +1 -0
- package/dist/esm/components/VizCompare/index.d.ts.map +1 -0
- package/dist/esm/components/VizDom/VizContainer.d.ts +1 -1
- package/dist/esm/components/VizDom/VizContainer.d.ts.map +1 -1
- package/dist/esm/components/VizDom/VizDomHeatmap.d.ts.map +1 -1
- package/dist/esm/components/VizDom/VizDomRenderer.d.ts.map +1 -1
- package/dist/esm/components/VizDom/WrapperVisual.d.ts.map +1 -1
- package/dist/esm/components/VizElement/DefaultRankBadges.d.ts.map +1 -1
- package/dist/esm/components/VizElement/ElementMissing.d.ts.map +1 -1
- package/dist/esm/components/VizElement/VizElements.d.ts.map +1 -1
- package/dist/esm/components/VizLive/VizLiveHeatmap.d.ts.map +1 -1
- package/dist/esm/components/VizLive/VizLiveRenderer.d.ts.map +1 -1
- package/dist/esm/components/VizScrollmap/AverageFoldLine.d.ts.map +1 -1
- package/dist/esm/components/VizScrollmap/HoverZones.d.ts.map +1 -1
- package/dist/esm/components/VizScrollmap/ScrollMapOverlay.d.ts.map +1 -1
- package/dist/esm/components/VizScrollmap/VizScrollMap.d.ts.map +1 -1
- package/dist/esm/components/VizScrollmapV2/useScrollmapOverlay.d.ts.map +1 -1
- package/dist/esm/contexts/CompareViewContext.d.ts +28 -0
- package/dist/esm/contexts/CompareViewContext.d.ts.map +1 -0
- package/dist/esm/contexts/index.d.ts +2 -0
- package/dist/esm/contexts/index.d.ts.map +1 -0
- package/dist/esm/hooks/compare/index.d.ts +4 -0
- package/dist/esm/hooks/compare/index.d.ts.map +1 -0
- package/dist/esm/hooks/compare/useCompareAwareConfig.d.ts +21 -0
- package/dist/esm/hooks/compare/useCompareAwareConfig.d.ts.map +1 -0
- package/dist/esm/hooks/compare/useCompareAwareData.d.ts +28 -0
- package/dist/esm/hooks/compare/useCompareAwareData.d.ts.map +1 -0
- package/dist/esm/hooks/compare/useCompareAwareViz.d.ts +34 -0
- package/dist/esm/hooks/compare/useCompareAwareViz.d.ts.map +1 -0
- package/dist/esm/hooks/index.d.ts +4 -0
- package/dist/esm/hooks/index.d.ts.map +1 -1
- package/dist/esm/hooks/register/useRegisterData.d.ts.map +1 -1
- package/dist/esm/hooks/register/useRegisterHeatmap.d.ts.map +1 -1
- package/dist/esm/hooks/useHeatmapData.d.ts +16 -0
- package/dist/esm/hooks/useHeatmapData.d.ts.map +1 -0
- package/dist/esm/hooks/useHeatmapViz.d.ts +24 -0
- package/dist/esm/hooks/useHeatmapViz.d.ts.map +1 -0
- package/dist/esm/hooks/useViewId.d.ts +15 -0
- package/dist/esm/hooks/useViewId.d.ts.map +1 -0
- package/dist/esm/hooks/viz-canvas/useAreamap.d.ts.map +1 -1
- package/dist/esm/hooks/viz-canvas/useClickmap.d.ts.map +1 -1
- package/dist/esm/hooks/viz-canvas/useScrollmap.d.ts.map +1 -1
- package/dist/esm/hooks/viz-elements/useClickedElement.d.ts.map +1 -1
- package/dist/esm/hooks/viz-elements/useElementCalloutVisible.d.ts.map +1 -1
- package/dist/esm/hooks/viz-elements/useHeatmapElementPosition.d.ts.map +1 -1
- package/dist/esm/hooks/viz-elements/useHoveredElement.d.ts.map +1 -1
- package/dist/esm/hooks/viz-live/useVizLiveRender.d.ts.map +1 -1
- 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/hooks/viz-scale/useHeatmapScale.d.ts +1 -0
- package/dist/esm/hooks/viz-scale/useHeatmapScale.d.ts.map +1 -1
- package/dist/esm/hooks/viz-scale/useObserveIframeHeight.d.ts +1 -0
- package/dist/esm/hooks/viz-scale/useObserveIframeHeight.d.ts.map +1 -1
- package/dist/esm/hooks/viz-scale/useScaleCalculation.d.ts +1 -1
- package/dist/esm/hooks/viz-scale/useScaleCalculation.d.ts.map +1 -1
- package/dist/esm/hooks/viz-scale/useScrollSync.d.ts +2 -1
- package/dist/esm/hooks/viz-scale/useScrollSync.d.ts.map +1 -1
- package/dist/esm/hooks/viz-scale/useWrapperRefHeight.d.ts +0 -1
- package/dist/esm/hooks/viz-scale/useWrapperRefHeight.d.ts.map +1 -1
- package/dist/esm/hooks/viz-scrollmap/useScrollmapZones.d.ts.map +1 -1
- package/dist/esm/hooks/viz-scrollmap/useZonePositions.d.ts.map +1 -1
- package/dist/esm/index.d.ts +3 -1
- package/dist/esm/index.d.ts.map +1 -1
- package/dist/esm/index.js +671 -133
- package/dist/esm/index.mjs +671 -133
- package/dist/esm/stores/config.d.ts +2 -0
- package/dist/esm/stores/config.d.ts.map +1 -1
- package/dist/esm/stores/data.d.ts +11 -10
- package/dist/esm/stores/data.d.ts.map +1 -1
- package/dist/esm/stores/index.d.ts +1 -0
- package/dist/esm/stores/index.d.ts.map +1 -1
- package/dist/esm/stores/mode-compare.d.ts +33 -0
- package/dist/esm/stores/mode-compare.d.ts.map +1 -0
- package/dist/esm/stores/mode-live.d.ts +0 -4
- package/dist/esm/stores/mode-live.d.ts.map +1 -1
- package/dist/esm/stores/mode-single.d.ts +9 -4
- package/dist/esm/stores/mode-single.d.ts.map +1 -1
- package/dist/esm/stores/viz.d.ts +13 -10
- package/dist/esm/stores/viz.d.ts.map +1 -1
- package/dist/esm/types/compare.d.ts +68 -0
- package/dist/esm/types/compare.d.ts.map +1 -0
- package/dist/esm/types/control.d.ts +1 -1
- package/dist/esm/types/control.d.ts.map +1 -1
- package/dist/esm/types/index.d.ts +1 -0
- package/dist/esm/types/index.d.ts.map +1 -1
- package/dist/umd/components/Layout/ContentTopBar.d.ts.map +1 -1
- package/dist/umd/components/Layout/ContentVizByMode.d.ts.map +1 -1
- package/dist/umd/components/Layout/LeftSidebar.d.ts.map +1 -1
- package/dist/umd/components/VizCompare/CompareGrid.d.ts +1 -0
- package/dist/umd/components/VizCompare/CompareGrid.d.ts.map +1 -0
- package/dist/umd/components/VizCompare/CompareView.d.ts +1 -0
- package/dist/umd/components/VizCompare/CompareView.d.ts.map +1 -0
- package/dist/umd/components/VizCompare/CompareViewHeader.d.ts +1 -0
- package/dist/umd/components/VizCompare/CompareViewHeader.d.ts.map +1 -0
- package/dist/umd/components/VizCompare/CompareVizRenderer.d.ts +1 -0
- package/dist/umd/components/VizCompare/CompareVizRenderer.d.ts.map +1 -0
- package/dist/umd/components/VizCompare/VizCompareHeatmap.d.ts +1 -0
- package/dist/umd/components/VizCompare/VizCompareHeatmap.d.ts.map +1 -0
- package/dist/umd/components/VizCompare/index.d.ts +1 -0
- package/dist/umd/components/VizCompare/index.d.ts.map +1 -0
- package/dist/umd/components/VizDom/VizContainer.d.ts +1 -1
- package/dist/umd/components/VizDom/VizContainer.d.ts.map +1 -1
- package/dist/umd/components/VizDom/VizDomHeatmap.d.ts.map +1 -1
- package/dist/umd/components/VizDom/VizDomRenderer.d.ts.map +1 -1
- package/dist/umd/components/VizDom/WrapperVisual.d.ts.map +1 -1
- package/dist/umd/components/VizElement/DefaultRankBadges.d.ts.map +1 -1
- package/dist/umd/components/VizElement/ElementMissing.d.ts.map +1 -1
- package/dist/umd/components/VizElement/VizElements.d.ts.map +1 -1
- package/dist/umd/components/VizLive/VizLiveHeatmap.d.ts.map +1 -1
- package/dist/umd/components/VizLive/VizLiveRenderer.d.ts.map +1 -1
- package/dist/umd/components/VizScrollmap/AverageFoldLine.d.ts.map +1 -1
- package/dist/umd/components/VizScrollmap/HoverZones.d.ts.map +1 -1
- package/dist/umd/components/VizScrollmap/ScrollMapOverlay.d.ts.map +1 -1
- package/dist/umd/components/VizScrollmap/VizScrollMap.d.ts.map +1 -1
- package/dist/umd/components/VizScrollmapV2/useScrollmapOverlay.d.ts.map +1 -1
- package/dist/umd/contexts/CompareViewContext.d.ts +28 -0
- package/dist/umd/contexts/CompareViewContext.d.ts.map +1 -0
- package/dist/umd/contexts/index.d.ts +2 -0
- package/dist/umd/contexts/index.d.ts.map +1 -0
- package/dist/umd/hooks/compare/index.d.ts +4 -0
- package/dist/umd/hooks/compare/index.d.ts.map +1 -0
- package/dist/umd/hooks/compare/useCompareAwareConfig.d.ts +21 -0
- package/dist/umd/hooks/compare/useCompareAwareConfig.d.ts.map +1 -0
- package/dist/umd/hooks/compare/useCompareAwareData.d.ts +28 -0
- package/dist/umd/hooks/compare/useCompareAwareData.d.ts.map +1 -0
- package/dist/umd/hooks/compare/useCompareAwareViz.d.ts +34 -0
- package/dist/umd/hooks/compare/useCompareAwareViz.d.ts.map +1 -0
- package/dist/umd/hooks/index.d.ts +4 -0
- package/dist/umd/hooks/index.d.ts.map +1 -1
- package/dist/umd/hooks/register/useRegisterData.d.ts.map +1 -1
- package/dist/umd/hooks/register/useRegisterHeatmap.d.ts.map +1 -1
- package/dist/umd/hooks/useHeatmapData.d.ts +16 -0
- package/dist/umd/hooks/useHeatmapData.d.ts.map +1 -0
- package/dist/umd/hooks/useHeatmapViz.d.ts +24 -0
- package/dist/umd/hooks/useHeatmapViz.d.ts.map +1 -0
- package/dist/umd/hooks/useViewId.d.ts +15 -0
- package/dist/umd/hooks/useViewId.d.ts.map +1 -0
- package/dist/umd/hooks/viz-canvas/useAreamap.d.ts.map +1 -1
- package/dist/umd/hooks/viz-canvas/useClickmap.d.ts.map +1 -1
- package/dist/umd/hooks/viz-canvas/useScrollmap.d.ts.map +1 -1
- package/dist/umd/hooks/viz-elements/useClickedElement.d.ts.map +1 -1
- package/dist/umd/hooks/viz-elements/useElementCalloutVisible.d.ts.map +1 -1
- package/dist/umd/hooks/viz-elements/useHeatmapElementPosition.d.ts.map +1 -1
- package/dist/umd/hooks/viz-elements/useHoveredElement.d.ts.map +1 -1
- package/dist/umd/hooks/viz-live/useVizLiveRender.d.ts.map +1 -1
- 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/hooks/viz-scale/useHeatmapScale.d.ts +1 -0
- package/dist/umd/hooks/viz-scale/useHeatmapScale.d.ts.map +1 -1
- package/dist/umd/hooks/viz-scale/useObserveIframeHeight.d.ts +1 -0
- package/dist/umd/hooks/viz-scale/useObserveIframeHeight.d.ts.map +1 -1
- package/dist/umd/hooks/viz-scale/useScaleCalculation.d.ts +1 -1
- package/dist/umd/hooks/viz-scale/useScaleCalculation.d.ts.map +1 -1
- package/dist/umd/hooks/viz-scale/useScrollSync.d.ts +2 -1
- package/dist/umd/hooks/viz-scale/useScrollSync.d.ts.map +1 -1
- package/dist/umd/hooks/viz-scale/useWrapperRefHeight.d.ts +0 -1
- package/dist/umd/hooks/viz-scale/useWrapperRefHeight.d.ts.map +1 -1
- package/dist/umd/hooks/viz-scrollmap/useScrollmapZones.d.ts.map +1 -1
- package/dist/umd/hooks/viz-scrollmap/useZonePositions.d.ts.map +1 -1
- package/dist/umd/index.d.ts +3 -1
- package/dist/umd/index.d.ts.map +1 -1
- package/dist/umd/index.js +2 -2
- package/dist/umd/stores/config.d.ts +2 -0
- package/dist/umd/stores/config.d.ts.map +1 -1
- package/dist/umd/stores/data.d.ts +11 -10
- package/dist/umd/stores/data.d.ts.map +1 -1
- package/dist/umd/stores/index.d.ts +1 -0
- package/dist/umd/stores/index.d.ts.map +1 -1
- package/dist/umd/stores/mode-compare.d.ts +33 -0
- package/dist/umd/stores/mode-compare.d.ts.map +1 -0
- package/dist/umd/stores/mode-live.d.ts +0 -4
- package/dist/umd/stores/mode-live.d.ts.map +1 -1
- package/dist/umd/stores/mode-single.d.ts +9 -4
- package/dist/umd/stores/mode-single.d.ts.map +1 -1
- package/dist/umd/stores/viz.d.ts +13 -10
- package/dist/umd/stores/viz.d.ts.map +1 -1
- package/dist/umd/types/compare.d.ts +68 -0
- package/dist/umd/types/compare.d.ts.map +1 -0
- package/dist/umd/types/control.d.ts +1 -1
- package/dist/umd/types/control.d.ts.map +1 -1
- package/dist/umd/types/index.d.ts +1 -0
- package/dist/umd/types/index.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -6,6 +6,7 @@ export interface IHeatmapConfigStore {
|
|
|
6
6
|
heatmapType: IHeatmapType;
|
|
7
7
|
clickType: IClickType;
|
|
8
8
|
scrollType: IScrollType;
|
|
9
|
+
isRendering: boolean;
|
|
9
10
|
setMode: (mode: 'live' | 'compare' | 'single') => void;
|
|
10
11
|
resetMode: () => void;
|
|
11
12
|
setWidth: (width: number) => void;
|
|
@@ -13,6 +14,7 @@ export interface IHeatmapConfigStore {
|
|
|
13
14
|
setHeatmapType: (heatmapType: IHeatmapType) => void;
|
|
14
15
|
setClickType: (clickType: IClickType) => void;
|
|
15
16
|
setScrollType: (scrollType: IScrollType) => void;
|
|
17
|
+
setIsRendering: (isRendering: boolean) => void;
|
|
16
18
|
}
|
|
17
19
|
export declare const useHeatmapConfigStore: import("zustand").UseBoundStore<import("zustand").StoreApi<IHeatmapConfigStore>>;
|
|
18
20
|
//# 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,UAAU,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAEjE,MAAM,WAAW,mBAAmB;IAClC,IAAI,EAAE,MAAM,GAAG,SAAS,GAAG,QAAQ,CAAC;IACpC,KAAK,EAAE,MAAM,CAAC;IACd,YAAY,EAAE,MAAM,CAAC;IACrB,WAAW,EAAE,YAAY,CAAC;IAC1B,SAAS,EAAE,UAAU,CAAC;IACtB,UAAU,EAAE,WAAW,CAAC;IACxB,OAAO,EAAE,CAAC,IAAI,EAAE,MAAM,GAAG,SAAS,GAAG,QAAQ,KAAK,IAAI,CAAC;IACvD,SAAS,EAAE,MAAM,IAAI,CAAC;IACtB,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,eAAe,EAAE,CAAC,YAAY,EAAE,MAAM,KAAK,IAAI,CAAC;IAChD,cAAc,EAAE,CAAC,WAAW,EAAE,YAAY,KAAK,IAAI,CAAC;IACpD,YAAY,EAAE,CAAC,SAAS,EAAE,UAAU,KAAK,IAAI,CAAC;IAC9C,aAAa,EAAE,CAAC,UAAU,EAAE,WAAW,KAAK,IAAI,CAAC;
|
|
1
|
+
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../src/stores/config.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAEjE,MAAM,WAAW,mBAAmB;IAClC,IAAI,EAAE,MAAM,GAAG,SAAS,GAAG,QAAQ,CAAC;IACpC,KAAK,EAAE,MAAM,CAAC;IACd,YAAY,EAAE,MAAM,CAAC;IACrB,WAAW,EAAE,YAAY,CAAC;IAC1B,SAAS,EAAE,UAAU,CAAC;IACtB,UAAU,EAAE,WAAW,CAAC;IACxB,WAAW,EAAE,OAAO,CAAC;IAErB,OAAO,EAAE,CAAC,IAAI,EAAE,MAAM,GAAG,SAAS,GAAG,QAAQ,KAAK,IAAI,CAAC;IACvD,SAAS,EAAE,MAAM,IAAI,CAAC;IACtB,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,eAAe,EAAE,CAAC,YAAY,EAAE,MAAM,KAAK,IAAI,CAAC;IAChD,cAAc,EAAE,CAAC,WAAW,EAAE,YAAY,KAAK,IAAI,CAAC;IACpD,YAAY,EAAE,CAAC,SAAS,EAAE,UAAU,KAAK,IAAI,CAAC;IAC9C,aAAa,EAAE,CAAC,UAAU,EAAE,WAAW,KAAK,IAAI,CAAC;IACjD,cAAc,EAAE,CAAC,WAAW,EAAE,OAAO,KAAK,IAAI,CAAC;CAChD;AAED,eAAO,MAAM,qBAAqB,kFAmBhC,CAAC"}
|
|
@@ -1,15 +1,16 @@
|
|
|
1
1
|
import { ClickMapPoint, DecodedPayload, IHeatmapInfo, ScrollMapPoint } from '../types';
|
|
2
2
|
export interface IHeatmapDataStore {
|
|
3
|
-
data
|
|
4
|
-
clickmap
|
|
5
|
-
dataInfo
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
3
|
+
data: Record<string, DecodedPayload[] | undefined>;
|
|
4
|
+
clickmap: Record<string, ClickMapPoint[] | undefined>;
|
|
5
|
+
dataInfo: Record<string, IHeatmapInfo | undefined>;
|
|
6
|
+
scrollmap: Record<string, ScrollMapPoint[] | undefined>;
|
|
7
|
+
setDataInfo: (dataInfo: IHeatmapInfo, viewId?: string) => void;
|
|
8
|
+
setData: (data: DecodedPayload[], viewId?: string) => void;
|
|
9
|
+
setClickmap: (clickmap: ClickMapPoint[], viewId?: string) => void;
|
|
10
|
+
setScrollmap: (scrollmap: ScrollMapPoint[], viewId?: string) => void;
|
|
11
|
+
copyView: (fromViewId: string, toViewId: string) => void;
|
|
12
|
+
clearView: (viewId: string) => void;
|
|
13
|
+
resetAll: () => void;
|
|
13
14
|
}
|
|
14
15
|
export declare const useHeatmapDataStore: import("zustand").UseBoundStore<import("zustand").StoreApi<IHeatmapDataStore>>;
|
|
15
16
|
//# sourceMappingURL=data.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"data.d.ts","sourceRoot":"","sources":["../../src/stores/data.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,cAAc,EAAE,YAAY,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"data.d.ts","sourceRoot":"","sources":["../../src/stores/data.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,cAAc,EAAE,YAAY,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAIvF,MAAM,WAAW,iBAAiB;IAEhC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,cAAc,EAAE,GAAG,SAAS,CAAC,CAAC;IACnD,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,aAAa,EAAE,GAAG,SAAS,CAAC,CAAC;IACtD,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,YAAY,GAAG,SAAS,CAAC,CAAC;IACnD,SAAS,EAAE,MAAM,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,EAAE,cAAc,EAAE,EAAE,MAAM,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;IAC3D,WAAW,EAAE,CAAC,QAAQ,EAAE,aAAa,EAAE,EAAE,MAAM,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;IAClE,YAAY,EAAE,CAAC,SAAS,EAAE,cAAc,EAAE,EAAE,MAAM,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;IAGrE,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,gFA+D9B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/stores/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAC;AACvB,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC;AACvB,cAAc,eAAe,CAAC;AAE9B,cAAc,OAAO,CAAC;AACtB,cAAc,iBAAiB,CAAC;AAEhC,cAAc,aAAa,CAAC;AAC5B,cAAc,eAAe,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/stores/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAC;AACvB,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC;AACvB,cAAc,eAAe,CAAC;AAE9B,cAAc,OAAO,CAAC;AACtB,cAAc,iBAAiB,CAAC;AAEhC,cAAc,aAAa,CAAC;AAC5B,cAAc,eAAe,CAAC;AAC9B,cAAc,gBAAgB,CAAC"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { ICompareLayout, ICompareSyncSettings, ICompareView, ICreateCompareViewOptions } from '../types';
|
|
2
|
+
export interface IHeatmapCompareStore {
|
|
3
|
+
/** Map of view ID to view data */
|
|
4
|
+
views: Map<string, ICompareView>;
|
|
5
|
+
/** Ordered list of view IDs for consistent rendering */
|
|
6
|
+
viewOrder: string[];
|
|
7
|
+
/** Current layout mode */
|
|
8
|
+
layout: ICompareLayout;
|
|
9
|
+
/** Settings for syncing between views */
|
|
10
|
+
syncSettings: ICompareSyncSettings;
|
|
11
|
+
/** Counter for generating unique view IDs */
|
|
12
|
+
viewIdCounter: number;
|
|
13
|
+
/** Add a new view to compare */
|
|
14
|
+
addView: (options?: ICreateCompareViewOptions) => string;
|
|
15
|
+
/** Remove a view from compare */
|
|
16
|
+
removeView: (viewId: string) => void;
|
|
17
|
+
/** Update a specific view's configuration */
|
|
18
|
+
updateView: (viewId: string, updates: Partial<ICompareView>) => void;
|
|
19
|
+
/** Get a specific view */
|
|
20
|
+
getView: (viewId: string) => ICompareView | undefined;
|
|
21
|
+
/** Set layout mode */
|
|
22
|
+
setLayout: (layout: ICompareLayout) => void;
|
|
23
|
+
/** Update sync settings */
|
|
24
|
+
setSyncSettings: (settings: Partial<ICompareSyncSettings>) => void;
|
|
25
|
+
/** Initialize compare mode with N views */
|
|
26
|
+
initializeCompare: (count: 2 | 3 | 4, options?: ICreateCompareViewOptions) => void;
|
|
27
|
+
/** Reset compare mode */
|
|
28
|
+
resetCompare: () => void;
|
|
29
|
+
/** Sync a property across all views */
|
|
30
|
+
syncProperty: <K extends keyof ICompareView>(property: K, value: ICompareView[K]) => void;
|
|
31
|
+
}
|
|
32
|
+
export declare const useHeatmapCompareStore: import("zustand").UseBoundStore<import("zustand").StoreApi<IHeatmapCompareStore>>;
|
|
33
|
+
//# sourceMappingURL=mode-compare.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mode-compare.d.ts","sourceRoot":"","sources":["../../src/stores/mode-compare.ts"],"names":[],"mappings":"AACA,OAAO,EAEL,cAAc,EACd,oBAAoB,EACpB,YAAY,EACZ,yBAAyB,EAG1B,MAAM,UAAU,CAAC;AAElB,MAAM,WAAW,oBAAoB;IACnC,kCAAkC;IAClC,KAAK,EAAE,GAAG,CAAC,MAAM,EAAE,YAAY,CAAC,CAAC;IAEjC,wDAAwD;IACxD,SAAS,EAAE,MAAM,EAAE,CAAC;IAEpB,0BAA0B;IAC1B,MAAM,EAAE,cAAc,CAAC;IAEvB,yCAAyC;IACzC,YAAY,EAAE,oBAAoB,CAAC;IAEnC,6CAA6C;IAC7C,aAAa,EAAE,MAAM,CAAC;IAGtB,gCAAgC;IAChC,OAAO,EAAE,CAAC,OAAO,CAAC,EAAE,yBAAyB,KAAK,MAAM,CAAC;IAEzD,iCAAiC;IACjC,UAAU,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;IAErC,6CAA6C;IAC7C,UAAU,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,CAAC,YAAY,CAAC,KAAK,IAAI,CAAC;IAErE,0BAA0B;IAC1B,OAAO,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,YAAY,GAAG,SAAS,CAAC;IAEtD,sBAAsB;IACtB,SAAS,EAAE,CAAC,MAAM,EAAE,cAAc,KAAK,IAAI,CAAC;IAE5C,2BAA2B;IAC3B,eAAe,EAAE,CAAC,QAAQ,EAAE,OAAO,CAAC,oBAAoB,CAAC,KAAK,IAAI,CAAC;IAEnE,2CAA2C;IAC3C,iBAAiB,EAAE,CAAC,KAAK,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,EAAE,OAAO,CAAC,EAAE,yBAAyB,KAAK,IAAI,CAAC;IAEnF,yBAAyB;IACzB,YAAY,EAAE,MAAM,IAAI,CAAC;IAEzB,uCAAuC;IACvC,YAAY,EAAE,CAAC,CAAC,SAAS,MAAM,YAAY,EAAE,QAAQ,EAAE,CAAC,EAAE,KAAK,EAAE,YAAY,CAAC,CAAC,CAAC,KAAK,IAAI,CAAC;CAC3F;AAyBD,eAAO,MAAM,sBAAsB,mFAkIjC,CAAC"}
|
|
@@ -2,16 +2,12 @@ import { DecodedPayload } from '../types';
|
|
|
2
2
|
interface IHeatmapLiveStoreState {
|
|
3
3
|
payloads: DecodedPayload[];
|
|
4
4
|
htmlContent: string;
|
|
5
|
-
iframeHeight: number;
|
|
6
|
-
wrapperHeight: number;
|
|
7
5
|
}
|
|
8
6
|
interface IHeatmapLiveStoreActions {
|
|
9
7
|
setPayloads: (payloads: DecodedPayload[]) => void;
|
|
10
8
|
addPayload: (payload: DecodedPayload) => void;
|
|
11
9
|
reset: () => void;
|
|
12
10
|
setHtmlContent: (htmlContent: string) => void;
|
|
13
|
-
setWrapperHeight: (wrapperHeight: number) => void;
|
|
14
|
-
setIframeHeight: (iframeHeight: number) => void;
|
|
15
11
|
}
|
|
16
12
|
interface IHeatmapLiveStore extends IHeatmapLiveStoreState, IHeatmapLiveStoreActions {
|
|
17
13
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mode-live.d.ts","sourceRoot":"","sources":["../../src/stores/mode-live.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAE1C,UAAU,sBAAsB;IAC9B,QAAQ,EAAE,cAAc,EAAE,CAAC;IAC3B,WAAW,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"mode-live.d.ts","sourceRoot":"","sources":["../../src/stores/mode-live.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAE1C,UAAU,sBAAsB;IAC9B,QAAQ,EAAE,cAAc,EAAE,CAAC;IAC3B,WAAW,EAAE,MAAM,CAAC;CACrB;AACD,UAAU,wBAAwB;IAChC,WAAW,EAAE,CAAC,QAAQ,EAAE,cAAc,EAAE,KAAK,IAAI,CAAC;IAClD,UAAU,EAAE,CAAC,OAAO,EAAE,cAAc,KAAK,IAAI,CAAC;IAC9C,KAAK,EAAE,MAAM,IAAI,CAAC;IAClB,cAAc,EAAE,CAAC,WAAW,EAAE,MAAM,KAAK,IAAI,CAAC;CAC/C;AAED,UAAU,iBAAkB,SAAQ,sBAAsB,EAAE,wBAAwB;CAAG;AAOvF,eAAO,MAAM,mBAAmB,gFAQ9B,CAAC"}
|
|
@@ -1,9 +1,14 @@
|
|
|
1
1
|
import { Visualizer } from '@gemx-dev/clarity-visualize';
|
|
2
2
|
export interface IHeatmapSingleStore {
|
|
3
|
-
vizRef: Visualizer | null
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
3
|
+
vizRef: Record<string, Visualizer | null>;
|
|
4
|
+
iframeHeight: Record<string, number>;
|
|
5
|
+
wrapperHeight: Record<string, number>;
|
|
6
|
+
setVizRef: (vizRef: Visualizer | null, viewId?: string) => void;
|
|
7
|
+
setIframeHeight: (iframeHeight: number, viewId?: string) => void;
|
|
8
|
+
setWrapperHeight: (wrapperHeight: number, viewId?: string) => void;
|
|
9
|
+
copyView: (fromViewId: string, toViewId: string) => void;
|
|
10
|
+
clearView: (viewId: string) => void;
|
|
11
|
+
resetAll: () => void;
|
|
7
12
|
}
|
|
8
13
|
export declare const useHeatmapSingleStore: import("zustand").UseBoundStore<import("zustand").StoreApi<IHeatmapSingleStore>>;
|
|
9
14
|
//# sourceMappingURL=mode-single.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mode-single.d.ts","sourceRoot":"","sources":["../../src/stores/mode-single.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,6BAA6B,CAAC;
|
|
1
|
+
{"version":3,"file":"mode-single.d.ts","sourceRoot":"","sources":["../../src/stores/mode-single.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,6BAA6B,CAAC;AAKzD,MAAM,WAAW,mBAAmB;IAElC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,UAAU,GAAG,IAAI,CAAC,CAAC;IAC1C,YAAY,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACrC,aAAa,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAGtC,SAAS,EAAE,CAAC,MAAM,EAAE,UAAU,GAAG,IAAI,EAAE,MAAM,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;IAChE,eAAe,EAAE,CAAC,YAAY,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;IACjE,gBAAgB,EAAE,CAAC,aAAa,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;IAGnE,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,qBAAqB,kFAqDhC,CAAC"}
|
package/dist/esm/stores/viz.d.ts
CHANGED
|
@@ -1,14 +1,17 @@
|
|
|
1
1
|
export interface IHeatmapVizStore {
|
|
2
|
-
isRenderViz: boolean
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
setIsScaledToFit: (isScaledToFit: boolean) => void;
|
|
2
|
+
isRenderViz: Record<string, boolean>;
|
|
3
|
+
zoomRatio: Record<string, number>;
|
|
4
|
+
minZoomRatio: Record<string, number>;
|
|
5
|
+
scale: Record<string, number>;
|
|
6
|
+
isScaledToFit: Record<string, boolean>;
|
|
7
|
+
setIsRenderViz: (isRenderViz: boolean, viewId?: string) => void;
|
|
8
|
+
setZoomRatio: (zoomRatio: number, viewId?: string) => void;
|
|
9
|
+
setMinZoomRatio: (minZoomRatio: number, viewId?: string) => void;
|
|
10
|
+
setScale: (scale: number, viewId?: string) => void;
|
|
11
|
+
setIsScaledToFit: (isScaledToFit: boolean, viewId?: string) => void;
|
|
12
|
+
copyView: (fromViewId: string, toViewId: string) => void;
|
|
13
|
+
clearView: (viewId: string) => void;
|
|
14
|
+
resetAll: () => void;
|
|
12
15
|
}
|
|
13
16
|
export declare const useHeatmapVizStore: import("zustand").UseBoundStore<import("zustand").StoreApi<IHeatmapVizStore>>;
|
|
14
17
|
//# sourceMappingURL=viz.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"viz.d.ts","sourceRoot":"","sources":["../../src/stores/viz.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"viz.d.ts","sourceRoot":"","sources":["../../src/stores/viz.ts"],"names":[],"mappings":"AAIA,MAAM,WAAW,gBAAgB;IAE/B,WAAW,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACrC,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAClC,YAAY,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACrC,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC9B,aAAa,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAGvC,cAAc,EAAE,CAAC,WAAW,EAAE,OAAO,EAAE,MAAM,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;IAChE,YAAY,EAAE,CAAC,SAAS,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;IAC3D,eAAe,EAAE,CAAC,YAAY,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;IACjE,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;IACnD,gBAAgB,EAAE,CAAC,aAAa,EAAE,OAAO,EAAE,MAAM,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;IAGpE,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,kBAAkB,+EA0E7B,CAAC"}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import type { Visualizer } from '@gemx-dev/clarity-visualize';
|
|
2
|
+
import type { ClickMapPoint, DecodedPayload, ScrollMapPoint } from './clarity';
|
|
3
|
+
import type { IClickType, IHeatmapType, IScrollType } from './heatmap';
|
|
4
|
+
import type { IHeatmapInfo } from './heatmap-info';
|
|
5
|
+
/**
|
|
6
|
+
* Represents a single view in compare mode
|
|
7
|
+
* Each view has independent data, configuration, and visualization state
|
|
8
|
+
*/
|
|
9
|
+
export interface ICompareView {
|
|
10
|
+
/** Unique identifier for this view */
|
|
11
|
+
id: string;
|
|
12
|
+
/** Display label for this view (e.g., "Version A", "Last 7 days") */
|
|
13
|
+
label: string;
|
|
14
|
+
/** Heatmap type for this view */
|
|
15
|
+
heatmapType: IHeatmapType;
|
|
16
|
+
/** Click type filter for this view */
|
|
17
|
+
clickType: IClickType;
|
|
18
|
+
/** Scroll type filter for this view */
|
|
19
|
+
scrollType: IScrollType;
|
|
20
|
+
/** Raw session data for this view */
|
|
21
|
+
data?: DecodedPayload[];
|
|
22
|
+
/** Processed clickmap data */
|
|
23
|
+
clickmap?: ClickMapPoint[];
|
|
24
|
+
/** Processed scrollmap data */
|
|
25
|
+
scrollmap?: ScrollMapPoint[];
|
|
26
|
+
/** Heatmap analysis info */
|
|
27
|
+
dataInfo?: IHeatmapInfo;
|
|
28
|
+
/** Reference to the visualizer instance */
|
|
29
|
+
vizRef: Visualizer | null;
|
|
30
|
+
/** Height of the iframe/visualization */
|
|
31
|
+
iframeHeight: number;
|
|
32
|
+
/** Zoom ratio for this view (10-100) */
|
|
33
|
+
zoomRatio: number;
|
|
34
|
+
/** Scale factor */
|
|
35
|
+
scale: number;
|
|
36
|
+
/** Whether scaled to fit container */
|
|
37
|
+
isScaledToFit: boolean;
|
|
38
|
+
/** Whether data is currently rendering */
|
|
39
|
+
isRendering: boolean;
|
|
40
|
+
/** Whether visualization is ready */
|
|
41
|
+
isRenderViz: boolean;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Layout options for compare mode
|
|
45
|
+
*/
|
|
46
|
+
export type ICompareLayout = 'grid-2' | 'grid-3' | 'grid-4';
|
|
47
|
+
/**
|
|
48
|
+
* Settings that can be synchronized across views
|
|
49
|
+
*/
|
|
50
|
+
export interface ICompareSyncSettings {
|
|
51
|
+
/** Sync zoom ratio across all views */
|
|
52
|
+
zoomRatio: boolean;
|
|
53
|
+
/** Sync scrolling position across all views */
|
|
54
|
+
scrolling: boolean;
|
|
55
|
+
/** Sync heatmap type across all views */
|
|
56
|
+
heatmapType: boolean;
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* Options for creating a new compare view
|
|
60
|
+
*/
|
|
61
|
+
export interface ICreateCompareViewOptions {
|
|
62
|
+
label?: string;
|
|
63
|
+
heatmapType?: IHeatmapType;
|
|
64
|
+
clickType?: IClickType;
|
|
65
|
+
scrollType?: IScrollType;
|
|
66
|
+
data?: DecodedPayload[];
|
|
67
|
+
}
|
|
68
|
+
//# sourceMappingURL=compare.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"compare.d.ts","sourceRoot":"","sources":["../../src/types/compare.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,6BAA6B,CAAC;AAC9D,OAAO,KAAK,EAAE,aAAa,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAC/E,OAAO,KAAK,EAAE,UAAU,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AACvE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAEnD;;;GAGG;AACH,MAAM,WAAW,YAAY;IAC3B,sCAAsC;IACtC,EAAE,EAAE,MAAM,CAAC;IAEX,qEAAqE;IACrE,KAAK,EAAE,MAAM,CAAC;IAEd,iCAAiC;IACjC,WAAW,EAAE,YAAY,CAAC;IAE1B,sCAAsC;IACtC,SAAS,EAAE,UAAU,CAAC;IAEtB,uCAAuC;IACvC,UAAU,EAAE,WAAW,CAAC;IAExB,qCAAqC;IACrC,IAAI,CAAC,EAAE,cAAc,EAAE,CAAC;IAExB,8BAA8B;IAC9B,QAAQ,CAAC,EAAE,aAAa,EAAE,CAAC;IAE3B,+BAA+B;IAC/B,SAAS,CAAC,EAAE,cAAc,EAAE,CAAC;IAE7B,4BAA4B;IAC5B,QAAQ,CAAC,EAAE,YAAY,CAAC;IAExB,2CAA2C;IAC3C,MAAM,EAAE,UAAU,GAAG,IAAI,CAAC;IAE1B,yCAAyC;IACzC,YAAY,EAAE,MAAM,CAAC;IAErB,wCAAwC;IACxC,SAAS,EAAE,MAAM,CAAC;IAElB,mBAAmB;IACnB,KAAK,EAAE,MAAM,CAAC;IAEd,sCAAsC;IACtC,aAAa,EAAE,OAAO,CAAC;IAEvB,0CAA0C;IAC1C,WAAW,EAAE,OAAO,CAAC;IAErB,qCAAqC;IACrC,WAAW,EAAE,OAAO,CAAC;CACtB;AAED;;GAEG;AACH,MAAM,MAAM,cAAc,GAAG,QAAQ,GAAG,QAAQ,GAAG,QAAQ,CAAC;AAE5D;;GAEG;AACH,MAAM,WAAW,oBAAoB;IACnC,uCAAuC;IACvC,SAAS,EAAE,OAAO,CAAC;IAEnB,+CAA+C;IAC/C,SAAS,EAAE,OAAO,CAAC;IAEnB,yCAAyC;IACzC,WAAW,EAAE,OAAO,CAAC;CACtB;AAED;;GAEG;AACH,MAAM,WAAW,yBAAyB;IACxC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,YAAY,CAAC;IAC3B,SAAS,CAAC,EAAE,UAAU,CAAC;IACvB,UAAU,CAAC,EAAE,WAAW,CAAC;IACzB,IAAI,CAAC,EAAE,cAAc,EAAE,CAAC;CACzB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"control.d.ts","sourceRoot":"","sources":["../../src/types/control.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,eAAe;IAC9B,OAAO,EAAE,KAAK,CAAC,SAAS,CAAC;IACzB,OAAO,EAAE,KAAK,CAAC,SAAS,CAAC;IACzB,MAAM,EAAE,KAAK,CAAC,EAAE,CAAC;
|
|
1
|
+
{"version":3,"file":"control.d.ts","sourceRoot":"","sources":["../../src/types/control.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,eAAe;IAC9B,OAAO,EAAE,KAAK,CAAC,SAAS,CAAC;IACzB,OAAO,EAAE,KAAK,CAAC,SAAS,CAAC;IACzB,MAAM,CAAC,EAAE,KAAK,CAAC,EAAE,CAAC;IAClB,SAAS,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,UAAU,EAAE,KAAK,CAAC,SAAS,CAAC;IAC5B,cAAc,CAAC,EAAE,KAAK,CAAC,EAAE,CAAC;QACxB,WAAW,EAAE,MAAM,CAAC;KACrB,CAAC,CAAC;CACJ"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAE9B,cAAc,WAAW,CAAC;AAE1B,cAAc,WAAW,CAAC;AAC1B,cAAc,gBAAgB,CAAC;AAE/B,cAAc,cAAc,CAAC;AAC7B,cAAc,eAAe,CAAC;AAC9B,cAAc,iBAAiB,CAAC;AAEhC,cAAc,iBAAiB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAE9B,cAAc,WAAW,CAAC;AAE1B,cAAc,WAAW,CAAC;AAC1B,cAAc,gBAAgB,CAAC;AAE/B,cAAc,cAAc,CAAC;AAC7B,cAAc,eAAe,CAAC;AAC9B,cAAc,iBAAiB,CAAC;AAEhC,cAAc,iBAAiB,CAAC;AAEhC,cAAc,WAAW,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ContentTopBar.d.ts","sourceRoot":"","sources":["../../../src/components/Layout/ContentTopBar.tsx"],"names":[],"mappings":"AAIA,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,
|
|
1
|
+
{"version":3,"file":"ContentTopBar.d.ts","sourceRoot":"","sources":["../../../src/components/Layout/ContentTopBar.tsx"],"names":[],"mappings":"AAIA,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,EAyBjC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ContentVizByMode.d.ts","sourceRoot":"","sources":["../../../src/components/Layout/ContentVizByMode.tsx"],"names":[],"mappings":"AAIA,eAAO,MAAM,gBAAgB,EAAE,KAAK,CAAC,
|
|
1
|
+
{"version":3,"file":"ContentVizByMode.d.ts","sourceRoot":"","sources":["../../../src/components/Layout/ContentVizByMode.tsx"],"names":[],"mappings":"AAIA,eAAO,MAAM,gBAAgB,EAAE,KAAK,CAAC,EAWpC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LeftSidebar.d.ts","sourceRoot":"","sources":["../../../src/components/Layout/LeftSidebar.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"LeftSidebar.d.ts","sourceRoot":"","sources":["../../../src/components/Layout/LeftSidebar.tsx"],"names":[],"mappings":"AAQA,eAAO,MAAM,WAAW,EAAE,KAAK,CAAC,EA0G/B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
//# sourceMappingURL=CompareGrid.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CompareGrid.d.ts","sourceRoot":"","sources":["../../../src/components/VizCompare/CompareGrid.tsx"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
//# sourceMappingURL=CompareView.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CompareView.d.ts","sourceRoot":"","sources":["../../../src/components/VizCompare/CompareView.tsx"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
//# sourceMappingURL=CompareViewHeader.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CompareViewHeader.d.ts","sourceRoot":"","sources":["../../../src/components/VizCompare/CompareViewHeader.tsx"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
//# sourceMappingURL=CompareVizRenderer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CompareVizRenderer.d.ts","sourceRoot":"","sources":["../../../src/components/VizCompare/CompareVizRenderer.tsx"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
//# sourceMappingURL=VizCompareHeatmap.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"VizCompareHeatmap.d.ts","sourceRoot":"","sources":["../../../src/components/VizCompare/VizCompareHeatmap.tsx"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/VizCompare/index.ts"],"names":[],"mappings":""}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"VizContainer.d.ts","sourceRoot":"","sources":["../../../src/components/VizDom/VizContainer.tsx"],"names":[],"mappings":"AAIA,UAAU,iBAAiB;IACzB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,
|
|
1
|
+
{"version":3,"file":"VizContainer.d.ts","sourceRoot":"","sources":["../../../src/components/VizDom/VizContainer.tsx"],"names":[],"mappings":"AAIA,UAAU,iBAAiB;IACzB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,eAAO,MAAM,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC,iBAAiB,CA8BpD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"VizDomHeatmap.d.ts","sourceRoot":"","sources":["../../../src/components/VizDom/VizDomHeatmap.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"VizDomHeatmap.d.ts","sourceRoot":"","sources":["../../../src/components/VizDom/VizDomHeatmap.tsx"],"names":[],"mappings":"AAOA,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,EAuBjC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"VizDomRenderer.d.ts","sourceRoot":"","sources":["../../../src/components/VizDom/VizDomRenderer.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"VizDomRenderer.d.ts","sourceRoot":"","sources":["../../../src/components/VizDom/VizDomRenderer.tsx"],"names":[],"mappings":"AAUA,UAAU,mBAAmB;IAC3B,IAAI,CAAC,EAAE,SAAS,GAAG,QAAQ,CAAC;CAC7B;AAED,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CAgExD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WrapperVisual.d.ts","sourceRoot":"","sources":["../../../src/components/VizDom/WrapperVisual.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"WrapperVisual.d.ts","sourceRoot":"","sources":["../../../src/components/VizDom/WrapperVisual.tsx"],"names":[],"mappings":"AAIA,UAAU,kBAAkB;IAC1B,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,SAAS,EAAE,KAAK,CAAC,SAAS,CAAC,cAAc,CAAC,CAAC;IAC3C,UAAU,EAAE,KAAK,CAAC,SAAS,CAAC,cAAc,CAAC,CAAC;IAC5C,YAAY,EAAE,MAAM,CAAC;IACrB,YAAY,EAAE,MAAM,CAAC;IACrB,QAAQ,EAAE,CAAC,CAAC,EAAE,KAAK,CAAC,OAAO,CAAC,cAAc,CAAC,KAAK,IAAI,CAAC;CACtD;AAED,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,CA6DtD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DefaultRankBadges.d.ts","sourceRoot":"","sources":["../../../src/components/VizElement/DefaultRankBadges.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"DefaultRankBadges.d.ts","sourceRoot":"","sources":["../../../src/components/VizElement/DefaultRankBadges.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAO/D,UAAU,KAAK;IACb,OAAO,EAAE,CAAC,EAAE,CAAC,EAAE,cAAc,KAAK,WAAW,GAAG,IAAI,CAAC;IACrD,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB;AAED,eAAO,MAAM,iBAAiB,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,CAwB7C,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ElementMissing.d.ts","sourceRoot":"","sources":["../../../src/components/VizElement/ElementMissing.tsx"],"names":[],"mappings":"AAEA,UAAU,KAAK;IACb,IAAI,CAAC,EAAE,OAAO,CAAC;CAChB;AAED,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,
|
|
1
|
+
{"version":3,"file":"ElementMissing.d.ts","sourceRoot":"","sources":["../../../src/components/VizElement/ElementMissing.tsx"],"names":[],"mappings":"AAEA,UAAU,KAAK;IACb,IAAI,CAAC,EAAE,OAAO,CAAC;CAChB;AAED,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,CA2B1C,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"VizElements.d.ts","sourceRoot":"","sources":["../../../src/components/VizElement/VizElements.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"VizElements.d.ts","sourceRoot":"","sources":["../../../src/components/VizElement/VizElements.tsx"],"names":[],"mappings":"AAKA,UAAU,gBAAgB;IACxB,SAAS,EAAE,KAAK,CAAC,SAAS,CAAC,iBAAiB,GAAG,IAAI,CAAC,CAAC;IACrD,SAAS,EAAE,KAAK,CAAC,SAAS,CAAC,cAAc,GAAG,IAAI,CAAC,CAAC;IAClD,UAAU,EAAE,KAAK,CAAC,SAAS,CAAC,cAAc,CAAC,CAAC;CAC7C;AACD,eAAO,MAAM,WAAW,EAAE,KAAK,CAAC,EAAE,CAAC,gBAAgB,CAgDlD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"VizLiveHeatmap.d.ts","sourceRoot":"","sources":["../../../src/components/VizLive/VizLiveHeatmap.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"VizLiveHeatmap.d.ts","sourceRoot":"","sources":["../../../src/components/VizLive/VizLiveHeatmap.tsx"],"names":[],"mappings":"AAMA,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,EAqBlC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"VizLiveRenderer.d.ts","sourceRoot":"","sources":["../../../src/components/VizLive/VizLiveRenderer.tsx"],"names":[],"mappings":"AAOA,eAAO,MAAM,eAAe,EAAE,KAAK,CAAC,
|
|
1
|
+
{"version":3,"file":"VizLiveRenderer.d.ts","sourceRoot":"","sources":["../../../src/components/VizLive/VizLiveRenderer.tsx"],"names":[],"mappings":"AAOA,eAAO,MAAM,eAAe,EAAE,KAAK,CAAC,EAyCnC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AverageFoldLine.d.ts","sourceRoot":"","sources":["../../../src/components/VizScrollmap/AverageFoldLine.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"AverageFoldLine.d.ts","sourceRoot":"","sources":["../../../src/components/VizScrollmap/AverageFoldLine.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,UAAU,oBAAoB;IAC5B,SAAS,EAAE,KAAK,CAAC,SAAS,CAAC,iBAAiB,CAAC,CAAC;IAC9C,UAAU,EAAE,KAAK,CAAC,SAAS,CAAC,WAAW,CAAC,CAAC;CAC1C;AAED,eAAO,MAAM,eAAe,EAAE,KAAK,CAAC,EAAE,CAAC,oBAAoB,CA+C1D,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HoverZones.d.ts","sourceRoot":"","sources":["../../../src/components/VizScrollmap/HoverZones.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"HoverZones.d.ts","sourceRoot":"","sources":["../../../src/components/VizScrollmap/HoverZones.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AAIjD,UAAU,eAAe;IACvB,UAAU,EAAE,KAAK,CAAC,SAAS,CAAC,WAAW,CAAC,CAAC;IACzC,SAAS,EAAE,KAAK,CAAC,SAAS,CAAC,iBAAiB,CAAC,CAAC;IAC9C,QAAQ,CAAC,EAAE,kBAAkB,CAAC;IAC9B,oBAAoB,EAAE,MAAM,CAAC;CAC9B;AAED,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,eAAe,CA4ChD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ScrollMapOverlay.d.ts","sourceRoot":"","sources":["../../../src/components/VizScrollmap/ScrollMapOverlay.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ScrollMapOverlay.d.ts","sourceRoot":"","sources":["../../../src/components/VizScrollmap/ScrollMapOverlay.tsx"],"names":[],"mappings":"AAKA,UAAU,qBAAqB;IAC7B,UAAU,EAAE,KAAK,CAAC,SAAS,CAAC,WAAW,CAAC,CAAC;IACzC,SAAS,EAAE,KAAK,CAAC,SAAS,CAAC,iBAAiB,CAAC,CAAC;CAC/C;AAED,eAAO,MAAM,gBAAgB,EAAE,KAAK,CAAC,EAAE,CAAC,qBAAqB,CAkE5D,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"VizScrollMap.d.ts","sourceRoot":"","sources":["../../../src/components/VizScrollmap/VizScrollMap.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"VizScrollMap.d.ts","sourceRoot":"","sources":["../../../src/components/VizScrollmap/VizScrollMap.tsx"],"names":[],"mappings":"AAOA,UAAU,iBAAiB;IACzB,SAAS,EAAE,KAAK,CAAC,SAAS,CAAC,iBAAiB,CAAC,CAAC;IAC9C,UAAU,EAAE,KAAK,CAAC,SAAS,CAAC,WAAW,CAAC,CAAC;CAC1C;AAGD,eAAO,MAAM,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC,iBAAiB,CAwBpD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useScrollmapOverlay.d.ts","sourceRoot":"","sources":["../../../src/components/VizScrollmapV2/useScrollmapOverlay.ts"],"names":[],"mappings":"AAGA,OAAO,EAAsB,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAExE,UAAU,0BAA0B;IAClC,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,SAAS,EAAE,KAAK,CAAC,SAAS,CAAC,iBAAiB,CAAC,CAAC;IAC9C,UAAU,EAAE,KAAK,CAAC,SAAS,CAAC,WAAW,CAAC,CAAC;CAC1C;AAED,UAAU,yBAAyB;IACjC,OAAO,EAAE,OAAO,CAAC;IACjB,OAAO,EAAE,eAAe,EAAE,CAAC;IAC3B,WAAW,EAAE,MAAM,CAAC;IACpB,iBAAiB,EAAE,MAAM,GAAG,IAAI,CAAC;IACjC,gBAAgB,EAAE,CAAC,CAAC,EAAE,MAAM,GAAG,IAAI,KAAK,IAAI,CAAC;CAC9C;AAED,eAAO,MAAM,qBAAqB,GAChC,SAAS,0BAA0B,KAClC,
|
|
1
|
+
{"version":3,"file":"useScrollmapOverlay.d.ts","sourceRoot":"","sources":["../../../src/components/VizScrollmapV2/useScrollmapOverlay.ts"],"names":[],"mappings":"AAGA,OAAO,EAAsB,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAExE,UAAU,0BAA0B;IAClC,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,SAAS,EAAE,KAAK,CAAC,SAAS,CAAC,iBAAiB,CAAC,CAAC;IAC9C,UAAU,EAAE,KAAK,CAAC,SAAS,CAAC,WAAW,CAAC,CAAC;CAC1C;AAED,UAAU,yBAAyB;IACjC,OAAO,EAAE,OAAO,CAAC;IACjB,OAAO,EAAE,eAAe,EAAE,CAAC;IAC3B,WAAW,EAAE,MAAM,CAAC;IACpB,iBAAiB,EAAE,MAAM,GAAG,IAAI,CAAC;IACjC,gBAAgB,EAAE,CAAC,CAAC,EAAE,MAAM,GAAG,IAAI,KAAK,IAAI,CAAC;CAC9C;AAED,eAAO,MAAM,qBAAqB,GAChC,SAAS,0BAA0B,KAClC,yBAoKF,CAAC"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { ICompareView } from '../types';
|
|
2
|
+
export interface ICompareViewContext {
|
|
3
|
+
/** Current view ID */
|
|
4
|
+
viewId: string;
|
|
5
|
+
/** Current view data */
|
|
6
|
+
view: ICompareView;
|
|
7
|
+
/** Update the current view */
|
|
8
|
+
updateView: (updates: Partial<ICompareView>) => void;
|
|
9
|
+
}
|
|
10
|
+
export interface CompareViewProviderProps {
|
|
11
|
+
viewId: string;
|
|
12
|
+
children: React.ReactNode;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Provider that injects view context into compare mode components
|
|
16
|
+
* This allows components to access and modify their specific view data
|
|
17
|
+
*/
|
|
18
|
+
export declare const CompareViewProvider: React.FC<CompareViewProviderProps>;
|
|
19
|
+
/**
|
|
20
|
+
* Hook to access the current compare view context
|
|
21
|
+
* Must be used within a CompareViewProvider
|
|
22
|
+
*/
|
|
23
|
+
export declare const useCompareViewContext: () => ICompareViewContext;
|
|
24
|
+
/**
|
|
25
|
+
* Hook to safely access compare view context (returns null if not in compare mode)
|
|
26
|
+
*/
|
|
27
|
+
export declare const useCompareViewContextSafe: () => ICompareViewContext | null;
|
|
28
|
+
//# sourceMappingURL=CompareViewContext.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CompareViewContext.d.ts","sourceRoot":"","sources":["../../src/contexts/CompareViewContext.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAExC,MAAM,WAAW,mBAAmB;IAClC,sBAAsB;IACtB,MAAM,EAAE,MAAM,CAAC;IAEf,wBAAwB;IACxB,IAAI,EAAE,YAAY,CAAC;IAEnB,8BAA8B;IAC9B,UAAU,EAAE,CAAC,OAAO,EAAE,OAAO,CAAC,YAAY,CAAC,KAAK,IAAI,CAAC;CACtD;AAID,MAAM,WAAW,wBAAwB;IACvC,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B;AAED;;;GAGG;AACH,eAAO,MAAM,mBAAmB,EAAE,KAAK,CAAC,EAAE,CAAC,wBAAwB,CAoBlE,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,qBAAqB,QAAO,mBAQxC,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,yBAAyB,QAAO,mBAAmB,GAAG,IAElE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/contexts/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/hooks/compare/index.ts"],"names":[],"mappings":"AAAA,cAAc,uBAAuB,CAAC;AACtC,cAAc,yBAAyB,CAAC;AACxC,cAAc,sBAAsB,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { IClickType, IHeatmapType, IScrollType } from '../../types';
|
|
2
|
+
/**
|
|
3
|
+
* Hook that returns config from compare view context if in compare mode,
|
|
4
|
+
* otherwise returns config from global store
|
|
5
|
+
*/
|
|
6
|
+
export declare const useCompareAwareConfig: () => {
|
|
7
|
+
heatmapType: IHeatmapType;
|
|
8
|
+
clickType: IClickType;
|
|
9
|
+
scrollType: IScrollType;
|
|
10
|
+
};
|
|
11
|
+
/**
|
|
12
|
+
* Hook that returns config setters
|
|
13
|
+
* In compare mode, updates the view context
|
|
14
|
+
* In single/live mode, updates the global store
|
|
15
|
+
*/
|
|
16
|
+
export declare const useCompareAwareConfigSetters: () => {
|
|
17
|
+
setHeatmapType: (heatmapType: IHeatmapType) => void;
|
|
18
|
+
setClickType: (clickType: IClickType) => void;
|
|
19
|
+
setScrollType: (scrollType: IScrollType) => void;
|
|
20
|
+
};
|
|
21
|
+
//# sourceMappingURL=useCompareAwareConfig.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useCompareAwareConfig.d.ts","sourceRoot":"","sources":["../../../src/hooks/compare/useCompareAwareConfig.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAEpE;;;GAGG;AACH,eAAO,MAAM,qBAAqB;;;;CAuBjC,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,4BAA4B;kCASL,YAAY;8BAEhB,UAAU;gCAER,WAAW;CAU5C,CAAC"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { ClickMapPoint, DecodedPayload, IHeatmapInfo, ScrollMapPoint } from '../../types';
|
|
2
|
+
/**
|
|
3
|
+
* Hook that returns data from compare view context if in compare mode,
|
|
4
|
+
* otherwise returns data from global store
|
|
5
|
+
*/
|
|
6
|
+
export declare const useCompareAwareData: () => {
|
|
7
|
+
data: import("clarity-decode/types/data").DecodedPayload[] | undefined;
|
|
8
|
+
clickmap: ClickMapPoint[] | undefined;
|
|
9
|
+
scrollmap: ScrollMapPoint[] | undefined;
|
|
10
|
+
dataInfo: IHeatmapInfo | undefined;
|
|
11
|
+
} | {
|
|
12
|
+
data: Record<string, import("clarity-decode/types/data").DecodedPayload[] | undefined>;
|
|
13
|
+
clickmap: Record<string, ClickMapPoint[] | undefined>;
|
|
14
|
+
scrollmap: Record<string, ScrollMapPoint[] | undefined>;
|
|
15
|
+
dataInfo: Record<string, IHeatmapInfo | undefined>;
|
|
16
|
+
};
|
|
17
|
+
/**
|
|
18
|
+
* Hook that returns setters for data
|
|
19
|
+
* In compare mode, updates the view context
|
|
20
|
+
* In single/live mode, updates the global store
|
|
21
|
+
*/
|
|
22
|
+
export declare const useCompareAwareDataSetters: () => {
|
|
23
|
+
setData: (data: DecodedPayload[], viewId?: string) => void;
|
|
24
|
+
setClickmap: (clickmap: ClickMapPoint[], viewId?: string) => void;
|
|
25
|
+
setScrollmap: (scrollmap: ScrollMapPoint[], viewId?: string) => void;
|
|
26
|
+
setDataInfo: (dataInfo: IHeatmapInfo, viewId?: string) => void;
|
|
27
|
+
};
|
|
28
|
+
//# sourceMappingURL=useCompareAwareData.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useCompareAwareData.d.ts","sourceRoot":"","sources":["../../../src/hooks/compare/useCompareAwareData.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,aAAa,EAAE,cAAc,EAAE,YAAY,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAE1F;;;GAGG;AACH,eAAO,MAAM,mBAAmB;;;;;;;;;;CA0B/B,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,0BAA0B;;;;;CAuBtC,CAAC"}
|