@gemx-dev/heatmap-react 3.5.48 → 3.5.50
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/ContentMetricBar.d.ts.map +1 -1
- 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/HeatmapLayout.d.ts.map +1 -1
- package/dist/esm/components/Layout/Sidebar/ContentSidebar.d.ts +2 -0
- package/dist/esm/components/Layout/Sidebar/ContentSidebar.d.ts.map +1 -0
- package/dist/esm/components/Layout/Sidebar/PopoverSidebar.d.ts +2 -0
- package/dist/esm/components/Layout/Sidebar/PopoverSidebar.d.ts.map +1 -0
- package/dist/esm/components/Layout/Sidebar/index.d.ts +3 -0
- package/dist/esm/components/Layout/Sidebar/index.d.ts.map +1 -0
- package/dist/esm/components/Layout/WrapperLayout.d.ts.map +1 -1
- package/dist/esm/components/Layout/WrapperPreview.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/ElementCallout.d.ts.map +1 -1
- package/dist/esm/components/VizElement/ElementMissing.d.ts.map +1 -1
- package/dist/esm/components/VizElement/ElementOverlay.d.ts +1 -0
- package/dist/esm/components/VizElement/ElementOverlay.d.ts.map +1 -1
- package/dist/esm/components/VizElement/HeatmapElements.d.ts +0 -1
- package/dist/esm/components/VizElement/HeatmapElements.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/ScrollMapMinimap.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/configs/index.d.ts +2 -0
- package/dist/esm/configs/index.d.ts.map +1 -1
- package/dist/esm/configs/viewId.d.ts +21 -0
- package/dist/esm/configs/viewId.d.ts.map +1 -0
- package/dist/esm/configs/z-index.d.ts +8 -0
- package/dist/esm/configs/z-index.d.ts.map +1 -0
- package/dist/esm/constants/index.d.ts +13 -4
- package/dist/esm/constants/index.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/helpers/iframe-helper/style-replacer.d.ts.map +1 -1
- package/dist/esm/hooks/index.d.ts +1 -0
- package/dist/esm/hooks/index.d.ts.map +1 -1
- package/dist/esm/hooks/register/useRegisterControl.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/view-context/index.d.ts +7 -0
- package/dist/esm/hooks/view-context/index.d.ts.map +1 -0
- package/dist/esm/hooks/view-context/useHeatmapCopyView.d.ts +33 -0
- package/dist/esm/hooks/view-context/useHeatmapCopyView.d.ts.map +1 -0
- package/dist/esm/hooks/view-context/useHeatmapData.d.ts +16 -0
- package/dist/esm/hooks/view-context/useHeatmapData.d.ts.map +1 -0
- package/dist/esm/hooks/view-context/useHeatmapInteraction.d.ts +16 -0
- package/dist/esm/hooks/view-context/useHeatmapInteraction.d.ts.map +1 -0
- package/dist/esm/hooks/view-context/useHeatmapViz.d.ts +26 -0
- package/dist/esm/hooks/view-context/useHeatmapViz.d.ts.map +1 -0
- package/dist/esm/hooks/view-context/useHeatmapVizScrollmap.d.ts +13 -0
- package/dist/esm/hooks/view-context/useHeatmapVizScrollmap.d.ts.map +1 -0
- package/dist/esm/hooks/view-context/useViewId.d.ts +15 -0
- package/dist/esm/hooks/view-context/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/useHeatmapCanvas.d.ts +1 -3
- package/dist/esm/hooks/viz-canvas/useHeatmapCanvas.d.ts.map +1 -1
- package/dist/esm/hooks/viz-elements/useClickedElement.d.ts +0 -1
- package/dist/esm/hooks/viz-elements/useClickedElement.d.ts.map +1 -1
- package/dist/esm/hooks/viz-elements/useHeatmapEffects.d.ts +1 -4
- package/dist/esm/hooks/viz-elements/useHeatmapEffects.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 -1
- package/dist/esm/hooks/viz-scale/useHeatmapScale.d.ts.map +1 -1
- package/dist/esm/hooks/viz-scale/useObserveIframeHeight.d.ts +1 -1
- 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 +4 -1
- package/dist/esm/index.d.ts.map +1 -1
- package/dist/esm/index.js +1457 -313
- package/dist/esm/index.mjs +1457 -313
- package/dist/esm/performance/PerformanceLogger.d.ts +22 -0
- package/dist/esm/performance/PerformanceLogger.d.ts.map +1 -0
- package/dist/esm/performance/hooks.d.ts +28 -0
- package/dist/esm/performance/hooks.d.ts.map +1 -0
- package/dist/esm/performance/index.d.ts +7 -0
- package/dist/esm/performance/index.d.ts.map +1 -0
- package/dist/esm/performance/storeTracker.d.ts +10 -0
- package/dist/esm/performance/storeTracker.d.ts.map +1 -0
- package/dist/esm/performance/types.d.ts +79 -0
- package/dist/esm/performance/types.d.ts.map +1 -0
- package/dist/esm/performance/utils.d.ts +42 -0
- package/dist/esm/performance/utils.d.ts.map +1 -0
- package/dist/esm/performance/withPerformanceTracking.d.ts +14 -0
- package/dist/esm/performance/withPerformanceTracking.d.ts.map +1 -0
- package/dist/esm/stores/comp.d.ts.map +1 -1
- 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 +20 -11
- 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/interaction.d.ts +20 -9
- package/dist/esm/stores/interaction.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 +20 -5
- package/dist/esm/stores/mode-single.d.ts.map +1 -1
- package/dist/esm/stores/viz-scrollmap.d.ts +18 -7
- package/dist/esm/stores/viz-scrollmap.d.ts.map +1 -1
- package/dist/esm/stores/viz.d.ts +22 -11
- 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 +10 -2
- package/dist/esm/types/control.d.ts.map +1 -1
- package/dist/esm/types/index.d.ts +2 -0
- package/dist/esm/types/index.d.ts.map +1 -1
- package/dist/style.css +7 -1
- package/dist/umd/components/Layout/ContentMetricBar.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/HeatmapLayout.d.ts.map +1 -1
- package/dist/umd/components/Layout/Sidebar/ContentSidebar.d.ts +2 -0
- package/dist/umd/components/Layout/Sidebar/ContentSidebar.d.ts.map +1 -0
- package/dist/umd/components/Layout/Sidebar/PopoverSidebar.d.ts +2 -0
- package/dist/umd/components/Layout/Sidebar/PopoverSidebar.d.ts.map +1 -0
- package/dist/umd/components/Layout/Sidebar/index.d.ts +3 -0
- package/dist/umd/components/Layout/Sidebar/index.d.ts.map +1 -0
- package/dist/umd/components/Layout/WrapperLayout.d.ts.map +1 -1
- package/dist/umd/components/Layout/WrapperPreview.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/ElementCallout.d.ts.map +1 -1
- package/dist/umd/components/VizElement/ElementMissing.d.ts.map +1 -1
- package/dist/umd/components/VizElement/ElementOverlay.d.ts +1 -0
- package/dist/umd/components/VizElement/ElementOverlay.d.ts.map +1 -1
- package/dist/umd/components/VizElement/HeatmapElements.d.ts +0 -1
- package/dist/umd/components/VizElement/HeatmapElements.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/ScrollMapMinimap.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/configs/index.d.ts +2 -0
- package/dist/umd/configs/index.d.ts.map +1 -1
- package/dist/umd/configs/viewId.d.ts +21 -0
- package/dist/umd/configs/viewId.d.ts.map +1 -0
- package/dist/umd/configs/z-index.d.ts +8 -0
- package/dist/umd/configs/z-index.d.ts.map +1 -0
- package/dist/umd/constants/index.d.ts +13 -4
- package/dist/umd/constants/index.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/helpers/iframe-helper/style-replacer.d.ts.map +1 -1
- package/dist/umd/hooks/index.d.ts +1 -0
- package/dist/umd/hooks/index.d.ts.map +1 -1
- package/dist/umd/hooks/register/useRegisterControl.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/view-context/index.d.ts +7 -0
- package/dist/umd/hooks/view-context/index.d.ts.map +1 -0
- package/dist/umd/hooks/view-context/useHeatmapCopyView.d.ts +33 -0
- package/dist/umd/hooks/view-context/useHeatmapCopyView.d.ts.map +1 -0
- package/dist/umd/hooks/view-context/useHeatmapData.d.ts +16 -0
- package/dist/umd/hooks/view-context/useHeatmapData.d.ts.map +1 -0
- package/dist/umd/hooks/view-context/useHeatmapInteraction.d.ts +16 -0
- package/dist/umd/hooks/view-context/useHeatmapInteraction.d.ts.map +1 -0
- package/dist/umd/hooks/view-context/useHeatmapViz.d.ts +26 -0
- package/dist/umd/hooks/view-context/useHeatmapViz.d.ts.map +1 -0
- package/dist/umd/hooks/view-context/useHeatmapVizScrollmap.d.ts +13 -0
- package/dist/umd/hooks/view-context/useHeatmapVizScrollmap.d.ts.map +1 -0
- package/dist/umd/hooks/view-context/useViewId.d.ts +15 -0
- package/dist/umd/hooks/view-context/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/useHeatmapCanvas.d.ts +1 -3
- package/dist/umd/hooks/viz-canvas/useHeatmapCanvas.d.ts.map +1 -1
- package/dist/umd/hooks/viz-elements/useClickedElement.d.ts +0 -1
- package/dist/umd/hooks/viz-elements/useClickedElement.d.ts.map +1 -1
- package/dist/umd/hooks/viz-elements/useHeatmapEffects.d.ts +1 -4
- package/dist/umd/hooks/viz-elements/useHeatmapEffects.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 -1
- package/dist/umd/hooks/viz-scale/useHeatmapScale.d.ts.map +1 -1
- package/dist/umd/hooks/viz-scale/useObserveIframeHeight.d.ts +1 -1
- 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 +4 -1
- package/dist/umd/index.d.ts.map +1 -1
- package/dist/umd/index.js +2 -2
- package/dist/umd/performance/PerformanceLogger.d.ts +22 -0
- package/dist/umd/performance/PerformanceLogger.d.ts.map +1 -0
- package/dist/umd/performance/hooks.d.ts +28 -0
- package/dist/umd/performance/hooks.d.ts.map +1 -0
- package/dist/umd/performance/index.d.ts +7 -0
- package/dist/umd/performance/index.d.ts.map +1 -0
- package/dist/umd/performance/storeTracker.d.ts +10 -0
- package/dist/umd/performance/storeTracker.d.ts.map +1 -0
- package/dist/umd/performance/types.d.ts +79 -0
- package/dist/umd/performance/types.d.ts.map +1 -0
- package/dist/umd/performance/utils.d.ts +42 -0
- package/dist/umd/performance/utils.d.ts.map +1 -0
- package/dist/umd/performance/withPerformanceTracking.d.ts +14 -0
- package/dist/umd/performance/withPerformanceTracking.d.ts.map +1 -0
- package/dist/umd/stores/comp.d.ts.map +1 -1
- 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 +20 -11
- 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/interaction.d.ts +20 -9
- package/dist/umd/stores/interaction.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 +20 -5
- package/dist/umd/stores/mode-single.d.ts.map +1 -1
- package/dist/umd/stores/viz-scrollmap.d.ts +18 -7
- package/dist/umd/stores/viz-scrollmap.d.ts.map +1 -1
- package/dist/umd/stores/viz.d.ts +22 -11
- 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 +10 -2
- package/dist/umd/types/control.d.ts.map +1 -1
- package/dist/umd/types/index.d.ts +2 -0
- package/dist/umd/types/index.d.ts.map +1 -1
- package/package.json +1 -1
- package/dist/esm/components/Layout/LeftSidebar.d.ts +0 -2
- package/dist/esm/components/Layout/LeftSidebar.d.ts.map +0 -1
- package/dist/umd/components/Layout/LeftSidebar.d.ts +0 -2
- package/dist/umd/components/Layout/LeftSidebar.d.ts.map +0 -1
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { IPerformanceLoggerConfig, IPerformanceReport, PerformanceMetric } from './types';
|
|
2
|
+
declare class PerformanceLogger {
|
|
3
|
+
private static instance;
|
|
4
|
+
private metrics;
|
|
5
|
+
private sessionId;
|
|
6
|
+
private sessionStartTime;
|
|
7
|
+
private config;
|
|
8
|
+
private constructor();
|
|
9
|
+
static getInstance(): PerformanceLogger;
|
|
10
|
+
configure(config: Partial<IPerformanceLoggerConfig>): void;
|
|
11
|
+
log(metric: PerformanceMetric): void;
|
|
12
|
+
private logToConsole;
|
|
13
|
+
private getConsoleStyle;
|
|
14
|
+
private checkThresholds;
|
|
15
|
+
generateReport(): IPerformanceReport;
|
|
16
|
+
clearMetrics(): void;
|
|
17
|
+
getMetrics(): PerformanceMetric[];
|
|
18
|
+
isEnabled(): boolean;
|
|
19
|
+
}
|
|
20
|
+
export declare const performanceLogger: PerformanceLogger;
|
|
21
|
+
export {};
|
|
22
|
+
//# sourceMappingURL=PerformanceLogger.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PerformanceLogger.d.ts","sourceRoot":"","sources":["../../src/performance/PerformanceLogger.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,wBAAwB,EAAE,kBAAkB,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC;AAE/F,cAAM,iBAAiB;IACrB,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAoB;IAC3C,OAAO,CAAC,OAAO,CAA2B;IAC1C,OAAO,CAAC,SAAS,CAAS;IAC1B,OAAO,CAAC,gBAAgB,CAAS;IACjC,OAAO,CAAC,MAAM,CAA2B;IAEzC,OAAO;WAeO,WAAW,IAAI,iBAAiB;IAOvC,SAAS,CAAC,MAAM,EAAE,OAAO,CAAC,wBAAwB,CAAC,GAAG,IAAI;IAU1D,GAAG,CAAC,MAAM,EAAE,iBAAiB,GAAG,IAAI;IAmB3C,OAAO,CAAC,YAAY;IAwBpB,OAAO,CAAC,eAAe;IAUvB,OAAO,CAAC,eAAe;IA+BhB,cAAc,IAAI,kBAAkB;IAmFpC,YAAY,IAAI,IAAI;IAMpB,UAAU,IAAI,iBAAiB,EAAE;IAIjC,SAAS,IAAI,OAAO;CAG5B;AAED,eAAO,MAAM,iBAAiB,mBAAkC,CAAC"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Hook to track render count of a component
|
|
3
|
+
* @param componentName - Name of the component
|
|
4
|
+
* @param viewId - Optional viewId for compare mode
|
|
5
|
+
*/
|
|
6
|
+
export declare function useRenderCount(componentName: string, viewId?: string): number;
|
|
7
|
+
/**
|
|
8
|
+
* Hook to detect why a component re-rendered (which props changed)
|
|
9
|
+
* @param componentName - Name of the component
|
|
10
|
+
* @param props - Props object to track
|
|
11
|
+
* @param viewId - Optional viewId
|
|
12
|
+
*/
|
|
13
|
+
export declare function useWhyDidYouUpdate(componentName: string, props: Record<string, any>, viewId?: string): void;
|
|
14
|
+
/**
|
|
15
|
+
* Hook to measure execution time of a function
|
|
16
|
+
* @param functionName - Name of the function
|
|
17
|
+
* @param fn - Function to measure
|
|
18
|
+
* @param viewId - Optional viewId
|
|
19
|
+
*/
|
|
20
|
+
export declare function useMeasureFunction<T extends (...args: any[]) => any>(functionName: string, fn: T, viewId?: string): T;
|
|
21
|
+
/**
|
|
22
|
+
* Hook to track when a hook is called
|
|
23
|
+
* @param hookName - Name of the hook
|
|
24
|
+
* @param viewId - Optional viewId
|
|
25
|
+
* @param storeSlice - Optional store slice being accessed
|
|
26
|
+
*/
|
|
27
|
+
export declare function useTrackHookCall(hookName: string, viewId?: string, storeSlice?: string): void;
|
|
28
|
+
//# sourceMappingURL=hooks.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"hooks.d.ts","sourceRoot":"","sources":["../../src/performance/hooks.ts"],"names":[],"mappings":"AAIA;;;;GAIG;AACH,wBAAgB,cAAc,CAAC,aAAa,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CA0B7E;AAED;;;;;GAKG;AACH,wBAAgB,kBAAkB,CAChC,aAAa,EAAE,MAAM,EACrB,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAC1B,MAAM,CAAC,EAAE,MAAM,GACd,IAAI,CAoDN;AAED;;;;;GAKG;AACH,wBAAgB,kBAAkB,CAAC,CAAC,SAAS,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,GAAG,EAClE,YAAY,EAAE,MAAM,EACpB,EAAE,EAAE,CAAC,EACL,MAAM,CAAC,EAAE,MAAM,GACd,CAAC,CAuBH;AAED;;;;;GAKG;AACH,wBAAgB,gBAAgB,CAAC,QAAQ,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM,EAAE,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAkB7F"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export type { IPerformanceMetric, IRenderMetric, IHookMetric, IStoreMetric, IFunctionMetric, PerformanceMetric, IPerformanceReport, IPerformanceLoggerConfig, } from './types';
|
|
2
|
+
export { performanceLogger } from './PerformanceLogger';
|
|
3
|
+
export { useRenderCount, useWhyDidYouUpdate, useMeasureFunction, useTrackHookCall, } from './hooks';
|
|
4
|
+
export { withPerformanceTracking } from './withPerformanceTracking';
|
|
5
|
+
export { createStorePerformanceTracker, trackStoreAction } from './storeTracker';
|
|
6
|
+
export * from './utils';
|
|
7
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/performance/index.ts"],"names":[],"mappings":"AACA,YAAY,EACV,kBAAkB,EAClB,aAAa,EACb,WAAW,EACX,YAAY,EACZ,eAAe,EACf,iBAAiB,EACjB,kBAAkB,EAClB,wBAAwB,GACzB,MAAM,SAAS,CAAC;AAGjB,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAGxD,OAAO,EACL,cAAc,EACd,kBAAkB,EAClB,kBAAkB,EAClB,gBAAgB,GACjB,MAAM,SAAS,CAAC;AAGjB,OAAO,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AAGpE,OAAO,EAAE,6BAA6B,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAGjF,cAAc,SAAS,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { StoreApi } from 'zustand';
|
|
2
|
+
/**
|
|
3
|
+
* Middleware để track store updates
|
|
4
|
+
*/
|
|
5
|
+
export declare function createStorePerformanceTracker<T extends Record<string, any>>(storeName: string): (config: any) => (set: any, get: any, api: StoreApi<T>) => any;
|
|
6
|
+
/**
|
|
7
|
+
* Track specific store action
|
|
8
|
+
*/
|
|
9
|
+
export declare function trackStoreAction(storeName: string, action: string, viewId?: string, metadata?: Record<string, any>): void;
|
|
10
|
+
//# sourceMappingURL=storeTracker.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"storeTracker.d.ts","sourceRoot":"","sources":["../../src/performance/storeTracker.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAIxC;;GAEG;AACH,wBAAgB,6BAA6B,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EACzE,SAAS,EAAE,MAAM,IAET,QAAQ,GAAG,MAAM,KAAK,GAAG,EAAE,KAAK,GAAG,EAAE,KAAK,QAAQ,CAAC,CAAC,CAAC,SAqD9D;AAED;;GAEG;AACH,wBAAgB,gBAAgB,CAC9B,SAAS,EAAE,MAAM,EACjB,MAAM,EAAE,MAAM,EACd,MAAM,CAAC,EAAE,MAAM,EACf,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAC7B,IAAI,CAaN"}
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
export interface IPerformanceMetric {
|
|
2
|
+
id: string;
|
|
3
|
+
type: 'render' | 'hook' | 'store' | 'function';
|
|
4
|
+
name: string;
|
|
5
|
+
timestamp: number;
|
|
6
|
+
duration?: number;
|
|
7
|
+
metadata?: Record<string, any>;
|
|
8
|
+
}
|
|
9
|
+
export interface IRenderMetric extends IPerformanceMetric {
|
|
10
|
+
type: 'render';
|
|
11
|
+
componentName: string;
|
|
12
|
+
renderCount: number;
|
|
13
|
+
viewId?: string;
|
|
14
|
+
reason?: string;
|
|
15
|
+
propsChanged?: string[];
|
|
16
|
+
}
|
|
17
|
+
export interface IHookMetric extends IPerformanceMetric {
|
|
18
|
+
type: 'hook';
|
|
19
|
+
hookName: string;
|
|
20
|
+
viewId?: string;
|
|
21
|
+
storeSlice?: string;
|
|
22
|
+
}
|
|
23
|
+
export interface IStoreMetric extends IPerformanceMetric {
|
|
24
|
+
type: 'store';
|
|
25
|
+
storeName: string;
|
|
26
|
+
action: string;
|
|
27
|
+
viewId?: string;
|
|
28
|
+
affectedViews?: string[];
|
|
29
|
+
}
|
|
30
|
+
export interface IFunctionMetric extends IPerformanceMetric {
|
|
31
|
+
type: 'function';
|
|
32
|
+
functionName: string;
|
|
33
|
+
viewId?: string;
|
|
34
|
+
}
|
|
35
|
+
export type PerformanceMetric = IRenderMetric | IHookMetric | IStoreMetric | IFunctionMetric;
|
|
36
|
+
export interface IPerformanceReport {
|
|
37
|
+
session: {
|
|
38
|
+
id: string;
|
|
39
|
+
startTime: number;
|
|
40
|
+
endTime?: number;
|
|
41
|
+
duration?: number;
|
|
42
|
+
};
|
|
43
|
+
summary: {
|
|
44
|
+
totalRenders: number;
|
|
45
|
+
totalHookCalls: number;
|
|
46
|
+
totalStoreUpdates: number;
|
|
47
|
+
averageRenderTime: number;
|
|
48
|
+
viewMetrics: Record<string, {
|
|
49
|
+
renders: number;
|
|
50
|
+
hookCalls: number;
|
|
51
|
+
storeUpdates: number;
|
|
52
|
+
}>;
|
|
53
|
+
};
|
|
54
|
+
metrics: PerformanceMetric[];
|
|
55
|
+
warnings: {
|
|
56
|
+
excessiveRenders: Array<{
|
|
57
|
+
component: string;
|
|
58
|
+
count: number;
|
|
59
|
+
viewId?: string;
|
|
60
|
+
}>;
|
|
61
|
+
slowOperations: Array<{
|
|
62
|
+
name: string;
|
|
63
|
+
duration: number;
|
|
64
|
+
type: string;
|
|
65
|
+
}>;
|
|
66
|
+
};
|
|
67
|
+
}
|
|
68
|
+
export interface IPerformanceLoggerConfig {
|
|
69
|
+
enabled: boolean;
|
|
70
|
+
logToConsole: boolean;
|
|
71
|
+
logLevel: 'verbose' | 'normal' | 'minimal';
|
|
72
|
+
externalLogger?: (metric: PerformanceMetric) => void;
|
|
73
|
+
thresholds: {
|
|
74
|
+
slowRenderMs: number;
|
|
75
|
+
slowHookMs: number;
|
|
76
|
+
excessiveRenderCount: number;
|
|
77
|
+
};
|
|
78
|
+
}
|
|
79
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/performance/types.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,kBAAkB;IACjC,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,QAAQ,GAAG,MAAM,GAAG,OAAO,GAAG,UAAU,CAAC;IAC/C,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;CAChC;AAED,MAAM,WAAW,aAAc,SAAQ,kBAAkB;IACvD,IAAI,EAAE,QAAQ,CAAC;IACf,aAAa,EAAE,MAAM,CAAC;IACtB,WAAW,EAAE,MAAM,CAAC;IACpB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,YAAY,CAAC,EAAE,MAAM,EAAE,CAAC;CACzB;AAED,MAAM,WAAW,WAAY,SAAQ,kBAAkB;IACrD,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,WAAW,YAAa,SAAQ,kBAAkB;IACtD,IAAI,EAAE,OAAO,CAAC;IACd,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,aAAa,CAAC,EAAE,MAAM,EAAE,CAAC;CAC1B;AAED,MAAM,WAAW,eAAgB,SAAQ,kBAAkB;IACzD,IAAI,EAAE,UAAU,CAAC;IACjB,YAAY,EAAE,MAAM,CAAC;IACrB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,MAAM,iBAAiB,GAAG,aAAa,GAAG,WAAW,GAAG,YAAY,GAAG,eAAe,CAAC;AAE7F,MAAM,WAAW,kBAAkB;IACjC,OAAO,EAAE;QACP,EAAE,EAAE,MAAM,CAAC;QACX,SAAS,EAAE,MAAM,CAAC;QAClB,OAAO,CAAC,EAAE,MAAM,CAAC;QACjB,QAAQ,CAAC,EAAE,MAAM,CAAC;KACnB,CAAC;IACF,OAAO,EAAE;QACP,YAAY,EAAE,MAAM,CAAC;QACrB,cAAc,EAAE,MAAM,CAAC;QACvB,iBAAiB,EAAE,MAAM,CAAC;QAC1B,iBAAiB,EAAE,MAAM,CAAC;QAC1B,WAAW,EAAE,MAAM,CAAC,MAAM,EAAE;YAC1B,OAAO,EAAE,MAAM,CAAC;YAChB,SAAS,EAAE,MAAM,CAAC;YAClB,YAAY,EAAE,MAAM,CAAC;SACtB,CAAC,CAAC;KACJ,CAAC;IACF,OAAO,EAAE,iBAAiB,EAAE,CAAC;IAC7B,QAAQ,EAAE;QACR,gBAAgB,EAAE,KAAK,CAAC;YAAE,SAAS,EAAE,MAAM,CAAC;YAAC,KAAK,EAAE,MAAM,CAAC;YAAC,MAAM,CAAC,EAAE,MAAM,CAAA;SAAE,CAAC,CAAC;QAC/E,cAAc,EAAE,KAAK,CAAC;YAAE,IAAI,EAAE,MAAM,CAAC;YAAC,QAAQ,EAAE,MAAM,CAAC;YAAC,IAAI,EAAE,MAAM,CAAA;SAAE,CAAC,CAAC;KACzE,CAAC;CACH;AAED,MAAM,WAAW,wBAAwB;IACvC,OAAO,EAAE,OAAO,CAAC;IACjB,YAAY,EAAE,OAAO,CAAC;IACtB,QAAQ,EAAE,SAAS,GAAG,QAAQ,GAAG,SAAS,CAAC;IAC3C,cAAc,CAAC,EAAE,CAAC,MAAM,EAAE,iBAAiB,KAAK,IAAI,CAAC;IACrD,UAAU,EAAE;QACV,YAAY,EAAE,MAAM,CAAC;QACrB,UAAU,EAAE,MAAM,CAAC;QACnB,oBAAoB,EAAE,MAAM,CAAC;KAC9B,CAAC;CACH"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import type { IPerformanceReport } from './types';
|
|
2
|
+
/**
|
|
3
|
+
* Get performance report as JSON string
|
|
4
|
+
*/
|
|
5
|
+
export declare function getPerformanceReportJSON(): string;
|
|
6
|
+
/**
|
|
7
|
+
* Download performance report as JSON file
|
|
8
|
+
*/
|
|
9
|
+
export declare function downloadPerformanceReport(filename?: string): void;
|
|
10
|
+
/**
|
|
11
|
+
* Send performance report to external endpoint
|
|
12
|
+
*/
|
|
13
|
+
export declare function sendPerformanceReport(endpoint: string): Promise<void>;
|
|
14
|
+
/**
|
|
15
|
+
* Print performance summary to console
|
|
16
|
+
*/
|
|
17
|
+
export declare function printPerformanceSummary(): void;
|
|
18
|
+
/**
|
|
19
|
+
* Get performance metrics filtered by viewId
|
|
20
|
+
*/
|
|
21
|
+
export declare function getMetricsByViewId(viewId: string): IPerformanceReport;
|
|
22
|
+
/**
|
|
23
|
+
* Compare performance between two viewIds
|
|
24
|
+
*/
|
|
25
|
+
export declare function compareViewPerformance(viewId1: string, viewId2: string): {
|
|
26
|
+
view1: {
|
|
27
|
+
renders: number;
|
|
28
|
+
hookCalls: number;
|
|
29
|
+
storeUpdates: number;
|
|
30
|
+
};
|
|
31
|
+
view2: {
|
|
32
|
+
renders: number;
|
|
33
|
+
hookCalls: number;
|
|
34
|
+
storeUpdates: number;
|
|
35
|
+
};
|
|
36
|
+
difference: {
|
|
37
|
+
renders: number;
|
|
38
|
+
hookCalls: number;
|
|
39
|
+
storeUpdates: number;
|
|
40
|
+
};
|
|
41
|
+
};
|
|
42
|
+
//# sourceMappingURL=utils.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/performance/utils.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAElD;;GAEG;AACH,wBAAgB,wBAAwB,IAAI,MAAM,CAGjD;AAED;;GAEG;AACH,wBAAgB,yBAAyB,CAAC,QAAQ,SAAoC,GAAG,IAAI,CAS5F;AAED;;GAEG;AACH,wBAAsB,qBAAqB,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAmB3E;AAED;;GAEG;AACH,wBAAgB,uBAAuB,IAAI,IAAI,CA8B9C;AAED;;GAEG;AACH,wBAAgB,kBAAkB,CAAC,MAAM,EAAE,MAAM,GAAG,kBAAkB,CAmBrE;AAED;;GAEG;AACH,wBAAgB,sBAAsB,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG;IACxE,KAAK,EAAE;QAAE,OAAO,EAAE,MAAM,CAAC;QAAC,SAAS,EAAE,MAAM,CAAC;QAAC,YAAY,EAAE,MAAM,CAAA;KAAE,CAAC;IACpE,KAAK,EAAE;QAAE,OAAO,EAAE,MAAM,CAAC;QAAC,SAAS,EAAE,MAAM,CAAC;QAAC,YAAY,EAAE,MAAM,CAAA;KAAE,CAAC;IACpE,UAAU,EAAE;QAAE,OAAO,EAAE,MAAM,CAAC;QAAC,SAAS,EAAE,MAAM,CAAC;QAAC,YAAY,EAAE,MAAM,CAAA;KAAE,CAAC;CAC1E,CAcA"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ComponentType } from 'react';
|
|
2
|
+
interface WithPerformanceTrackingOptions {
|
|
3
|
+
trackProps?: boolean;
|
|
4
|
+
componentName?: string;
|
|
5
|
+
viewIdProp?: string;
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* HOC to track component performance
|
|
9
|
+
* @param Component - Component to wrap
|
|
10
|
+
* @param options - Tracking options
|
|
11
|
+
*/
|
|
12
|
+
export declare function withPerformanceTracking<P extends Record<string, any>>(Component: ComponentType<P>, options?: WithPerformanceTrackingOptions): ComponentType<P>;
|
|
13
|
+
export {};
|
|
14
|
+
//# sourceMappingURL=withPerformanceTracking.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"withPerformanceTracking.d.ts","sourceRoot":"","sources":["../../src/performance/withPerformanceTracking.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAG7C,UAAU,8BAA8B;IACtC,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED;;;;GAIG;AACH,wBAAgB,uBAAuB,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EACnE,SAAS,EAAE,aAAa,CAAC,CAAC,CAAC,EAC3B,OAAO,GAAE,8BAAmC,GAC3C,aAAa,CAAC,CAAC,CAAC,CAiBlB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"comp.d.ts","sourceRoot":"","sources":["../../src/stores/comp.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAEnD,MAAM,WAAW,oBAAoB;IACnC,QAAQ,EAAE,eAAe,CAAC;IAC1B,eAAe,EAAE,CACf,GAAG,EAAE,MAAM,eAAe,EAC1B,OAAO,EAAE,eAAe,CAAC,MAAM,eAAe,CAAC,KAC5C,IAAI,CAAC;CACX;AAED,eAAO,MAAM,sBAAsB,
|
|
1
|
+
{"version":3,"file":"comp.d.ts","sourceRoot":"","sources":["../../src/stores/comp.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAEnD,MAAM,WAAW,oBAAoB;IACnC,QAAQ,EAAE,eAAe,CAAC;IAC1B,eAAe,EAAE,CACf,GAAG,EAAE,MAAM,eAAe,EAC1B,OAAO,EAAE,eAAe,CAAC,MAAM,eAAe,CAAC,KAC5C,IAAI,CAAC;CACX;AAED,eAAO,MAAM,sBAAsB,mFAoBjC,CAAC"}
|
|
@@ -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,24 @@
|
|
|
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
|
-
export declare const useHeatmapDataStore: import("zustand").UseBoundStore<import("zustand").StoreApi<IHeatmapDataStore
|
|
15
|
+
export declare const useHeatmapDataStore: import("zustand").UseBoundStore<Omit<import("zustand").StoreApi<IHeatmapDataStore>, "subscribe"> & {
|
|
16
|
+
subscribe: {
|
|
17
|
+
(listener: (selectedState: IHeatmapDataStore, previousSelectedState: IHeatmapDataStore) => void): () => void;
|
|
18
|
+
<U>(selector: (state: IHeatmapDataStore) => U, listener: (selectedState: U, previousSelectedState: U) => void, options?: {
|
|
19
|
+
equalityFn?: ((a: U, b: U) => boolean) | undefined;
|
|
20
|
+
fireImmediately?: boolean;
|
|
21
|
+
} | undefined): () => void;
|
|
22
|
+
};
|
|
23
|
+
}>;
|
|
15
24
|
//# sourceMappingURL=data.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"data.d.ts","sourceRoot":"","sources":["../../src/stores/data.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"data.d.ts","sourceRoot":"","sources":["../../src/stores/data.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,aAAa,EAAE,cAAc,EAAE,YAAY,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAEvF,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;;;;;;;;EAiE/B,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"}
|
|
@@ -3,14 +3,25 @@ export interface IHeatmapState {
|
|
|
3
3
|
hideSidebar: boolean;
|
|
4
4
|
}
|
|
5
5
|
export interface IHeatmapInteractionStore {
|
|
6
|
-
state: IHeatmapState
|
|
7
|
-
setState: (state: IHeatmapState) => void;
|
|
8
|
-
selectedElement: string | null
|
|
9
|
-
setSelectedElement: (selectedElement: string | null) => void;
|
|
10
|
-
hoveredElement: ElementInfo | null
|
|
11
|
-
setHoveredElement: (hoveredElement: ElementInfo | null) => void;
|
|
12
|
-
shouldShowCallout: boolean
|
|
13
|
-
setShouldShowCallout: (shouldShowCallout: boolean) => void;
|
|
6
|
+
state: Record<string, IHeatmapState>;
|
|
7
|
+
setState: (state: IHeatmapState, viewId?: string) => void;
|
|
8
|
+
selectedElement: Record<string, string | null>;
|
|
9
|
+
setSelectedElement: (selectedElement: string | null, viewId?: string) => void;
|
|
10
|
+
hoveredElement: Record<string, ElementInfo | null>;
|
|
11
|
+
setHoveredElement: (hoveredElement: ElementInfo | null, viewId?: string) => void;
|
|
12
|
+
shouldShowCallout: Record<string, boolean>;
|
|
13
|
+
setShouldShowCallout: (shouldShowCallout: boolean, viewId?: string) => void;
|
|
14
|
+
copyView: (fromViewId: string, toViewId: string) => void;
|
|
15
|
+
clearView: (viewId: string) => void;
|
|
16
|
+
resetAll: () => void;
|
|
14
17
|
}
|
|
15
|
-
export declare const useHeatmapInteractionStore: import("zustand").UseBoundStore<import("zustand").StoreApi<IHeatmapInteractionStore
|
|
18
|
+
export declare const useHeatmapInteractionStore: import("zustand").UseBoundStore<Omit<import("zustand").StoreApi<IHeatmapInteractionStore>, "subscribe"> & {
|
|
19
|
+
subscribe: {
|
|
20
|
+
(listener: (selectedState: IHeatmapInteractionStore, previousSelectedState: IHeatmapInteractionStore) => void): () => void;
|
|
21
|
+
<U>(selector: (state: IHeatmapInteractionStore) => U, listener: (selectedState: U, previousSelectedState: U) => void, options?: {
|
|
22
|
+
equalityFn?: ((a: U, b: U) => boolean) | undefined;
|
|
23
|
+
fireImmediately?: boolean;
|
|
24
|
+
} | undefined): () => void;
|
|
25
|
+
};
|
|
26
|
+
}>;
|
|
16
27
|
//# sourceMappingURL=interaction.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"interaction.d.ts","sourceRoot":"","sources":["../../src/stores/interaction.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"interaction.d.ts","sourceRoot":"","sources":["../../src/stores/interaction.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAEvC,MAAM,WAAW,aAAa;IAC5B,WAAW,EAAE,OAAO,CAAC;CACtB;AAED,MAAM,WAAW,wBAAwB;IAEvC,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,aAAa,CAAC,CAAC;IACrC,QAAQ,EAAE,CAAC,KAAK,EAAE,aAAa,EAAE,MAAM,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;IAC1D,eAAe,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC,CAAC;IAC/C,kBAAkB,EAAE,CAAC,eAAe,EAAE,MAAM,GAAG,IAAI,EAAE,MAAM,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;IAC9E,cAAc,EAAE,MAAM,CAAC,MAAM,EAAE,WAAW,GAAG,IAAI,CAAC,CAAC;IACnD,iBAAiB,EAAE,CAAC,cAAc,EAAE,WAAW,GAAG,IAAI,EAAE,MAAM,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;IACjF,iBAAiB,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAC3C,oBAAoB,EAAE,CAAC,iBAAiB,EAAE,OAAO,EAAE,MAAM,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;IAG5E,QAAQ,EAAE,CAAC,UAAU,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC;IACzD,SAAS,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;IACpC,QAAQ,EAAE,MAAM,IAAI,CAAC;CACtB;AAMD,eAAO,MAAM,0BAA0B;;;;;;;;EA6EtC,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,24 @@
|
|
|
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
|
+
wrapperWidth: Record<string, number>;
|
|
7
|
+
setVizRef: (vizRef: Visualizer | null, viewId?: string) => void;
|
|
8
|
+
setIframeHeight: (iframeHeight: number, viewId?: string) => void;
|
|
9
|
+
setWrapperHeight: (wrapperHeight: number, viewId?: string) => void;
|
|
10
|
+
setWrapperWidth: (wrapperWidth: number, viewId?: string) => void;
|
|
11
|
+
copyView: (fromViewId: string, toViewId: string) => void;
|
|
12
|
+
clearView: (viewId: string) => void;
|
|
13
|
+
resetAll: () => void;
|
|
7
14
|
}
|
|
8
|
-
export declare const useHeatmapSingleStore: import("zustand").UseBoundStore<import("zustand").StoreApi<IHeatmapSingleStore
|
|
15
|
+
export declare const useHeatmapSingleStore: import("zustand").UseBoundStore<Omit<import("zustand").StoreApi<IHeatmapSingleStore>, "subscribe"> & {
|
|
16
|
+
subscribe: {
|
|
17
|
+
(listener: (selectedState: IHeatmapSingleStore, previousSelectedState: IHeatmapSingleStore) => void): () => void;
|
|
18
|
+
<U>(selector: (state: IHeatmapSingleStore) => U, listener: (selectedState: U, previousSelectedState: U) => void, options?: {
|
|
19
|
+
equalityFn?: ((a: U, b: U) => boolean) | undefined;
|
|
20
|
+
fireImmediately?: boolean;
|
|
21
|
+
} | undefined): () => void;
|
|
22
|
+
};
|
|
23
|
+
}>;
|
|
9
24
|
//# 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;IACtC,YAAY,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAGrC,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;IACnE,eAAe,EAAE,CAAC,YAAY,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;IAGjE,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;;;;;;;;EAoEjC,CAAC"}
|
|
@@ -1,11 +1,22 @@
|
|
|
1
1
|
import { IScrollZone } from '../types';
|
|
2
2
|
export interface IHeatmapVizScrollmapStore {
|
|
3
|
-
zones: IScrollZone[]
|
|
4
|
-
setZones: (zones: IScrollZone[]) => void;
|
|
5
|
-
hoveredZone: IScrollZone | null
|
|
6
|
-
setHoveredZone: (hoveredZone: IScrollZone | null) => void;
|
|
7
|
-
showMinimap: boolean
|
|
8
|
-
setShowMinimap: (showMinimap: boolean) => void;
|
|
3
|
+
zones: Record<string, IScrollZone[]>;
|
|
4
|
+
setZones: (zones: IScrollZone[], viewId?: string) => void;
|
|
5
|
+
hoveredZone: Record<string, IScrollZone | null>;
|
|
6
|
+
setHoveredZone: (hoveredZone: IScrollZone | null, viewId?: string) => void;
|
|
7
|
+
showMinimap: Record<string, boolean>;
|
|
8
|
+
setShowMinimap: (showMinimap: boolean, viewId?: string) => void;
|
|
9
|
+
copyView: (fromViewId: string, toViewId: string) => void;
|
|
10
|
+
clearView: (viewId: string) => void;
|
|
11
|
+
resetAll: () => void;
|
|
9
12
|
}
|
|
10
|
-
export declare const useHeatmapVizScrollmapStore: import("zustand").UseBoundStore<import("zustand").StoreApi<IHeatmapVizScrollmapStore
|
|
13
|
+
export declare const useHeatmapVizScrollmapStore: import("zustand").UseBoundStore<Omit<import("zustand").StoreApi<IHeatmapVizScrollmapStore>, "subscribe"> & {
|
|
14
|
+
subscribe: {
|
|
15
|
+
(listener: (selectedState: IHeatmapVizScrollmapStore, previousSelectedState: IHeatmapVizScrollmapStore) => void): () => void;
|
|
16
|
+
<U>(selector: (state: IHeatmapVizScrollmapStore) => U, listener: (selectedState: U, previousSelectedState: U) => void, options?: {
|
|
17
|
+
equalityFn?: ((a: U, b: U) => boolean) | undefined;
|
|
18
|
+
fireImmediately?: boolean;
|
|
19
|
+
} | undefined): () => void;
|
|
20
|
+
};
|
|
21
|
+
}>;
|
|
11
22
|
//# sourceMappingURL=viz-scrollmap.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"viz-scrollmap.d.ts","sourceRoot":"","sources":["../../src/stores/viz-scrollmap.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"viz-scrollmap.d.ts","sourceRoot":"","sources":["../../src/stores/viz-scrollmap.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAEvC,MAAM,WAAW,yBAAyB;IAExC,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,WAAW,EAAE,CAAC,CAAC;IACrC,QAAQ,EAAE,CAAC,KAAK,EAAE,WAAW,EAAE,EAAE,MAAM,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;IAC1D,WAAW,EAAE,MAAM,CAAC,MAAM,EAAE,WAAW,GAAG,IAAI,CAAC,CAAC;IAChD,cAAc,EAAE,CAAC,WAAW,EAAE,WAAW,GAAG,IAAI,EAAE,MAAM,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;IAC3E,WAAW,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACrC,cAAc,EAAE,CAAC,WAAW,EAAE,OAAO,EAAE,MAAM,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;IAGhE,QAAQ,EAAE,CAAC,UAAU,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC;IACzD,SAAS,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;IACpC,QAAQ,EAAE,MAAM,IAAI,CAAC;CACtB;AAED,eAAO,MAAM,2BAA2B;;;;;;;;EA+DvC,CAAC"}
|
package/dist/umd/stores/viz.d.ts
CHANGED
|
@@ -1,14 +1,25 @@
|
|
|
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
|
-
export declare const useHeatmapVizStore: import("zustand").UseBoundStore<import("zustand").StoreApi<IHeatmapVizStore
|
|
16
|
+
export declare const useHeatmapVizStore: import("zustand").UseBoundStore<Omit<import("zustand").StoreApi<IHeatmapVizStore>, "subscribe"> & {
|
|
17
|
+
subscribe: {
|
|
18
|
+
(listener: (selectedState: IHeatmapVizStore, previousSelectedState: IHeatmapVizStore) => void): () => void;
|
|
19
|
+
<U>(selector: (state: IHeatmapVizStore) => U, listener: (selectedState: U, previousSelectedState: U) => void, options?: {
|
|
20
|
+
equalityFn?: ((a: U, b: U) => boolean) | undefined;
|
|
21
|
+
fireImmediately?: boolean;
|
|
22
|
+
} | undefined): () => void;
|
|
23
|
+
};
|
|
24
|
+
}>;
|
|
14
25
|
//# 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;;;;;;;;EA+E9B,CAAC"}
|