@gemx-dev/heatmap-react 3.5.40 → 3.5.41
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/VizElement/VizElements.d.ts.map +1 -1
- package/dist/esm/helpers/viewport-fixer.d.ts.map +1 -1
- package/dist/esm/hooks/viz-canvas/useClickmap.d.ts.map +1 -1
- package/dist/esm/hooks/viz-live/useIframeMessage.d.ts +0 -5
- package/dist/esm/hooks/viz-live/useIframeMessage.d.ts.map +1 -1
- package/dist/esm/hooks/viz-render/useHeatmapRender.d.ts.map +1 -1
- package/dist/esm/hooks/viz-scale/useHeatmapScale.d.ts.map +1 -1
- package/dist/esm/index.d.ts +1 -1
- package/dist/esm/index.d.ts.map +1 -1
- package/dist/esm/index.js +32 -31
- package/dist/esm/index.mjs +32 -31
- package/dist/esm/stores/mode-live.d.ts +4 -0
- package/dist/esm/stores/mode-live.d.ts.map +1 -1
- package/dist/esm/stores/viz.d.ts +3 -2
- package/dist/esm/stores/viz.d.ts.map +1 -1
- package/dist/umd/components/VizElement/VizElements.d.ts.map +1 -1
- package/dist/umd/helpers/viewport-fixer.d.ts.map +1 -1
- package/dist/umd/hooks/viz-canvas/useClickmap.d.ts.map +1 -1
- package/dist/umd/hooks/viz-live/useIframeMessage.d.ts +0 -5
- package/dist/umd/hooks/viz-live/useIframeMessage.d.ts.map +1 -1
- package/dist/umd/hooks/viz-render/useHeatmapRender.d.ts.map +1 -1
- package/dist/umd/hooks/viz-scale/useHeatmapScale.d.ts.map +1 -1
- package/dist/umd/index.d.ts +1 -1
- package/dist/umd/index.d.ts.map +1 -1
- package/dist/umd/index.js +2 -2
- package/dist/umd/stores/mode-live.d.ts +4 -0
- package/dist/umd/stores/mode-live.d.ts.map +1 -1
- package/dist/umd/stores/viz.d.ts +3 -2
- package/dist/umd/stores/viz.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"VizElements.d.ts","sourceRoot":"","sources":["../../../src/components/VizElement/VizElements.tsx"],"names":[],"mappings":"AAIA,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,
|
|
1
|
+
{"version":3,"file":"VizElements.d.ts","sourceRoot":"","sources":["../../../src/components/VizElement/VizElements.tsx"],"names":[],"mappings":"AAIA,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,CA+ClD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"viewport-fixer.d.ts","sourceRoot":"","sources":["../../src/helpers/viewport-fixer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAyC,cAAc,EAAE,MAAM,UAAU,CAAC;AAmB5F,qBAAa,kBAAkB;IAC7B,OAAO,CAAC,MAAM,CAAkC;IAChD,OAAO,CAAC,MAAM,CAAiB;gBAEnB,MAAM,EAAE,cAAc;YAOpB,IAAI;YAgBJ,YAAY;
|
|
1
|
+
{"version":3,"file":"viewport-fixer.d.ts","sourceRoot":"","sources":["../../src/helpers/viewport-fixer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAyC,cAAc,EAAE,MAAM,UAAU,CAAC;AAmB5F,qBAAa,kBAAkB;IAC7B,OAAO,CAAC,MAAM,CAAkC;IAChD,OAAO,CAAC,MAAM,CAAiB;gBAEnB,MAAM,EAAE,cAAc;YAOpB,IAAI;YAgBJ,YAAY;IAiB1B,OAAO,CAAC,aAAa;IAMd,WAAW,IAAI,IAAI;CAG3B;AAED,wBAAgB,iBAAiB,CAAC,MAAM,EAAE,cAAc,GAAG,kBAAkB,CAU5E;AAED,wBAAgB,kBAAkB,IAAI,SAAS,GAAG,IAAI,CA+BrD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useClickmap.d.ts","sourceRoot":"","sources":["../../../src/hooks/viz-canvas/useClickmap.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,WAAW,
|
|
1
|
+
{"version":3,"file":"useClickmap.d.ts","sourceRoot":"","sources":["../../../src/hooks/viz-canvas/useClickmap.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,WAAW,UAkBvB,CAAC"}
|
|
@@ -13,15 +13,10 @@ interface UseIframeMessageOptions {
|
|
|
13
13
|
}
|
|
14
14
|
export declare function useIframeMessage(options?: UseIframeMessageOptions): {
|
|
15
15
|
iframeRef: import("react").RefObject<HTMLIFrameElement>;
|
|
16
|
-
payloads: import("clarity-decode/types/data").DecodedPayload[];
|
|
17
16
|
isReady: boolean;
|
|
18
|
-
clearPayloads: () => void;
|
|
19
|
-
reset: () => void;
|
|
20
17
|
};
|
|
21
18
|
export declare function useIframeRender(): {
|
|
22
19
|
iframeRef: import("react").RefObject<HTMLIFrameElement>;
|
|
23
|
-
payloads: import("clarity-decode/types/data").DecodedPayload[];
|
|
24
|
-
isReady: boolean;
|
|
25
20
|
};
|
|
26
21
|
export {};
|
|
27
22
|
//# sourceMappingURL=useIframeMessage.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useIframeMessage.d.ts","sourceRoot":"","sources":["../../../src/hooks/viz-live/useIframeMessage.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"useIframeMessage.d.ts","sourceRoot":"","sources":["../../../src/hooks/viz-live/useIframeMessage.ts"],"names":[],"mappings":"AAIA,oBAAY,WAAW;IACrB,uBAAuB,4BAA4B;IACnD,aAAa,kBAAkB;CAChC;AAED,MAAM,WAAW,cAAc;IAC7B,IAAI,EAAE,WAAW,CAAC;IAClB,OAAO,CAAC,EAAE,GAAG,CAAC;IACd,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,UAAU,uBAAuB;IAC/B,cAAc,CAAC,EAAE,MAAM,EAAE,CAAC;IAC1B,SAAS,CAAC,EAAE,CAAC,OAAO,EAAE,cAAc,KAAK,IAAI,CAAC;CAC/C;AAED,wBAAgB,gBAAgB,CAAC,OAAO,GAAE,uBAA4B;;;EAmErE;AAED,wBAAgB,eAAe;;EAuC9B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useHeatmapRender.d.ts","sourceRoot":"","sources":["../../../src/hooks/viz-render/useHeatmapRender.ts"],"names":[],"mappings":"AAMA,UAAU,uBAAuB;IAC/B,SAAS,EAAE,KAAK,CAAC,SAAS,CAAC,iBAAiB,GAAG,IAAI,CAAC,CAAC;CACtD;
|
|
1
|
+
{"version":3,"file":"useHeatmapRender.d.ts","sourceRoot":"","sources":["../../../src/hooks/viz-render/useHeatmapRender.ts"],"names":[],"mappings":"AAMA,UAAU,uBAAuB;IAC/B,SAAS,EAAE,KAAK,CAAC,SAAS,CAAC,iBAAiB,GAAG,IAAI,CAAC,CAAC;CACtD;AAGD,eAAO,MAAM,gBAAgB,QAAO,uBAsCnC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useHeatmapScale.d.ts","sourceRoot":"","sources":["../../../src/hooks/viz-scale/useHeatmapScale.ts"],"names":[],"mappings":"AAMA,UAAU,kBAAkB;IAC1B,UAAU,EAAE,KAAK,CAAC,SAAS,CAAC,cAAc,GAAG,IAAI,CAAC,CAAC;IACnD,SAAS,EAAE,KAAK,CAAC,SAAS,CAAC,iBAAiB,GAAG,IAAI,CAAC,CAAC;IACrD,SAAS,EAAE,KAAK,CAAC,SAAS,CAAC,cAAc,GAAG,IAAI,CAAC,CAAC;IAClD,YAAY,EAAE,MAAM,CAAC;IAErB,eAAe,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;CAC3C;AAED,UAAU,sBAAsB;IAC9B,cAAc,EAAE,MAAM,CAAC;IACvB,eAAe,EAAE,MAAM,CAAC;IACxB,WAAW,EAAE,MAAM,CAAC;IACpB,YAAY,EAAE,MAAM,CAAC;IACrB,YAAY,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,IAAI,CAAC;CAC3C;AAED,eAAO,MAAM,eAAe,GAAI,OAAO,kBAAkB,KAAG,
|
|
1
|
+
{"version":3,"file":"useHeatmapScale.d.ts","sourceRoot":"","sources":["../../../src/hooks/viz-scale/useHeatmapScale.ts"],"names":[],"mappings":"AAMA,UAAU,kBAAkB;IAC1B,UAAU,EAAE,KAAK,CAAC,SAAS,CAAC,cAAc,GAAG,IAAI,CAAC,CAAC;IACnD,SAAS,EAAE,KAAK,CAAC,SAAS,CAAC,iBAAiB,GAAG,IAAI,CAAC,CAAC;IACrD,SAAS,EAAE,KAAK,CAAC,SAAS,CAAC,cAAc,GAAG,IAAI,CAAC,CAAC;IAClD,YAAY,EAAE,MAAM,CAAC;IAErB,eAAe,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;CAC3C;AAED,UAAU,sBAAsB;IAC9B,cAAc,EAAE,MAAM,CAAC;IACvB,eAAe,EAAE,MAAM,CAAC;IACxB,WAAW,EAAE,MAAM,CAAC;IACpB,YAAY,EAAE,MAAM,CAAC;IACrB,YAAY,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,IAAI,CAAC;CAC3C;AAED,eAAO,MAAM,eAAe,GAAI,OAAO,kBAAkB,KAAG,sBA4B3D,CAAC"}
|
package/dist/esm/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export * from './components';
|
|
2
2
|
export * from './types';
|
|
3
|
-
export { useHeatmapConfigStore, useHeatmapDataStore, useHeatmapInteractionStore, useHeatmapLiveStore, } from './stores';
|
|
3
|
+
export { useHeatmapConfigStore, useHeatmapDataStore, useHeatmapInteractionStore, useHeatmapLiveStore, useHeatmapVizStore, } from './stores';
|
|
4
4
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/esm/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,SAAS,CAAC;AAExB,OAAO,EACL,qBAAqB,EACrB,mBAAmB,EACnB,0BAA0B,EAC1B,mBAAmB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,SAAS,CAAC;AAExB,OAAO,EACL,qBAAqB,EACrB,mBAAmB,EACnB,0BAA0B,EAC1B,mBAAmB,EACnB,kBAAkB,GACnB,MAAM,UAAU,CAAC"}
|
package/dist/esm/index.js
CHANGED
|
@@ -139,7 +139,7 @@ const useHeatmapVizStore = create()((set, get) => {
|
|
|
139
139
|
isRenderViz: false,
|
|
140
140
|
setIsRenderViz: (isRenderViz) => set({ isRenderViz }),
|
|
141
141
|
scale: 1,
|
|
142
|
-
vizRef:
|
|
142
|
+
vizRef: null,
|
|
143
143
|
iframeHeight: 0,
|
|
144
144
|
setScale: (scale) => set({ scale }),
|
|
145
145
|
setVizRef: (vizRef) => set({ vizRef }),
|
|
@@ -148,6 +148,7 @@ const useHeatmapVizStore = create()((set, get) => {
|
|
|
148
148
|
});
|
|
149
149
|
|
|
150
150
|
const initialState = {
|
|
151
|
+
payloads: [],
|
|
151
152
|
htmlContent: '',
|
|
152
153
|
wrapperHeight: 0,
|
|
153
154
|
iframeHeight: 0,
|
|
@@ -156,6 +157,8 @@ const useHeatmapLiveStore = create()((set, get) => {
|
|
|
156
157
|
return {
|
|
157
158
|
...initialState,
|
|
158
159
|
reset: () => set(initialState),
|
|
160
|
+
setPayloads: (payloads) => set({ payloads }),
|
|
161
|
+
addPayload: (payload) => set((state) => ({ payloads: [...state.payloads, payload] })),
|
|
159
162
|
setHtmlContent: (htmlContent) => set({ htmlContent }),
|
|
160
163
|
setWrapperHeight: (wrapperHeight) => set({ wrapperHeight }),
|
|
161
164
|
setIframeHeight: (iframeHeight) => set({ iframeHeight }),
|
|
@@ -546,12 +549,9 @@ class ViewportUnitsFixer {
|
|
|
546
549
|
try {
|
|
547
550
|
win.__viewportConfig = this.config;
|
|
548
551
|
const script = doc.createElement('script');
|
|
549
|
-
console.log(`🚀 🐥 ~ ViewportUnitsFixer ~ injectScript ~ script:`, script);
|
|
550
552
|
const scriptCode = await getScriptInjectCode();
|
|
551
|
-
console.log(`🚀 🐥 ~ ViewportUnitsFixer ~ injectScript ~ scriptCode:`, scriptCode);
|
|
552
553
|
script.textContent = scriptCode;
|
|
553
554
|
doc.head.appendChild(script);
|
|
554
|
-
console.log(`🚀 🐥 ~ ViewportUnitsFixer ~ injectScript ~ doc:`, doc);
|
|
555
555
|
}
|
|
556
556
|
catch (error) {
|
|
557
557
|
console.error('[Parent] Failed to inject script', error);
|
|
@@ -1018,7 +1018,7 @@ var MessageType;
|
|
|
1018
1018
|
})(MessageType || (MessageType = {}));
|
|
1019
1019
|
function useIframeMessage(options = {}) {
|
|
1020
1020
|
const { trustedOrigins = [], onMessage } = options;
|
|
1021
|
-
const
|
|
1021
|
+
const addPayload = useHeatmapLiveStore((state) => state.addPayload);
|
|
1022
1022
|
const [isReady, setIsReady] = useState(false);
|
|
1023
1023
|
const iframeRef = useRef(null);
|
|
1024
1024
|
const isValidOrigin = useCallback((origin) => {
|
|
@@ -1044,9 +1044,9 @@ function useIframeMessage(options = {}) {
|
|
|
1044
1044
|
switch (message.type) {
|
|
1045
1045
|
case MessageType.GX_DOM_TRACKING_PAYLOAD:
|
|
1046
1046
|
if (message.payload) {
|
|
1047
|
-
const
|
|
1048
|
-
if (
|
|
1049
|
-
|
|
1047
|
+
const data = decodePayloads(message.payload);
|
|
1048
|
+
if (data) {
|
|
1049
|
+
addPayload(data);
|
|
1050
1050
|
}
|
|
1051
1051
|
}
|
|
1052
1052
|
break;
|
|
@@ -1061,19 +1061,9 @@ function useIframeMessage(options = {}) {
|
|
|
1061
1061
|
window.removeEventListener('message', handleMessage);
|
|
1062
1062
|
};
|
|
1063
1063
|
}, [handleMessage]);
|
|
1064
|
-
const clearPayloads = useCallback(() => {
|
|
1065
|
-
setPayloads([]);
|
|
1066
|
-
}, []);
|
|
1067
|
-
const reset = useCallback(() => {
|
|
1068
|
-
setPayloads([]);
|
|
1069
|
-
setIsReady(false);
|
|
1070
|
-
}, []);
|
|
1071
1064
|
return {
|
|
1072
1065
|
iframeRef,
|
|
1073
|
-
payloads,
|
|
1074
1066
|
isReady,
|
|
1075
|
-
clearPayloads,
|
|
1076
|
-
reset,
|
|
1077
1067
|
};
|
|
1078
1068
|
}
|
|
1079
1069
|
function useIframeRender() {
|
|
@@ -1081,7 +1071,8 @@ function useIframeRender() {
|
|
|
1081
1071
|
const contentWidth = useHeatmapConfigStore((state) => state.width);
|
|
1082
1072
|
const setIframeHeight = useHeatmapVizStore((state) => state.setIframeHeight);
|
|
1083
1073
|
const htmlContent = useHeatmapLiveStore((state) => state.htmlContent);
|
|
1084
|
-
const
|
|
1074
|
+
const setIsRenderViz = useHeatmapVizStore((state) => state.setIsRenderViz);
|
|
1075
|
+
const { iframeRef, isReady } = useIframeMessage();
|
|
1085
1076
|
useEffect(() => {
|
|
1086
1077
|
if (!htmlContent || !iframeRef.current)
|
|
1087
1078
|
return;
|
|
@@ -1101,30 +1092,31 @@ function useIframeRender() {
|
|
|
1101
1092
|
const iframe = iframeRef.current;
|
|
1102
1093
|
if (!iframe || !htmlContent)
|
|
1103
1094
|
return;
|
|
1095
|
+
setIsRenderViz(false);
|
|
1104
1096
|
reset$1(iframe, { width: contentWidth, height: wrapperHeight }, (height) => {
|
|
1105
|
-
setIframeHeight(height);
|
|
1097
|
+
height && setIframeHeight(height);
|
|
1098
|
+
setIsRenderViz(true);
|
|
1106
1099
|
});
|
|
1107
1100
|
}, [isReady, contentWidth, wrapperHeight]);
|
|
1108
1101
|
return {
|
|
1109
1102
|
iframeRef,
|
|
1110
|
-
payloads,
|
|
1111
|
-
isReady,
|
|
1112
1103
|
};
|
|
1113
1104
|
}
|
|
1114
|
-
function reset$1(iframe,
|
|
1105
|
+
function reset$1(iframe, rect, onSuccess) {
|
|
1115
1106
|
const viewportFixer = initViewportFixer({
|
|
1116
|
-
targetWidth:
|
|
1117
|
-
targetHeight:
|
|
1107
|
+
targetWidth: rect.width,
|
|
1108
|
+
targetHeight: rect.height,
|
|
1118
1109
|
iframe: iframe,
|
|
1119
1110
|
onSuccess: (data) => {
|
|
1120
|
-
onSuccess(data.height);
|
|
1121
1111
|
iframe.height = `${data.height}px`;
|
|
1112
|
+
onSuccess(data.height);
|
|
1122
1113
|
},
|
|
1123
1114
|
});
|
|
1124
1115
|
viewportFixer.recalculate();
|
|
1125
1116
|
return iframe;
|
|
1126
1117
|
}
|
|
1127
1118
|
|
|
1119
|
+
let visualizer = new Visualizer();
|
|
1128
1120
|
const useHeatmapRender = () => {
|
|
1129
1121
|
const data = useHeatmapDataStore((state) => state.data);
|
|
1130
1122
|
const setVizRef = useHeatmapVizStore((state) => state.setVizRef);
|
|
@@ -1135,16 +1127,17 @@ const useHeatmapRender = () => {
|
|
|
1135
1127
|
if (!payloads || payloads.length === 0)
|
|
1136
1128
|
return;
|
|
1137
1129
|
setIsRenderViz(false);
|
|
1138
|
-
const visualizer = new Visualizer();
|
|
1139
1130
|
const iframe = iframeRef.current;
|
|
1140
1131
|
if (!iframe?.contentWindow)
|
|
1141
1132
|
return;
|
|
1142
1133
|
await visualizer.html(payloads, iframe.contentWindow);
|
|
1134
|
+
const element = visualizer.get('3w0uppvjw');
|
|
1135
|
+
console.log(`🚀 🐥 ~ useHeatmapRender ~ element:`, element);
|
|
1143
1136
|
reset(iframe, payloads, (height) => {
|
|
1144
1137
|
height && setIframeHeight(height);
|
|
1145
1138
|
setIsRenderViz(true);
|
|
1139
|
+
setVizRef(visualizer);
|
|
1146
1140
|
});
|
|
1147
|
-
setVizRef(visualizer);
|
|
1148
1141
|
}, []);
|
|
1149
1142
|
useEffect(() => {
|
|
1150
1143
|
if (!data || data.length === 0)
|
|
@@ -1486,11 +1479,13 @@ const useHeatmapScale = (props) => {
|
|
|
1486
1479
|
const { scale } = useScaleCalculation({ containerWidth, contentWidth });
|
|
1487
1480
|
// 5. Setup scroll sync
|
|
1488
1481
|
const { handleScroll } = useScrollSync({ iframeRef });
|
|
1482
|
+
const scaledHeight = iframeHeight * scale;
|
|
1483
|
+
const scaledWidth = contentWidth * scale;
|
|
1489
1484
|
return {
|
|
1490
1485
|
containerWidth,
|
|
1491
1486
|
containerHeight,
|
|
1492
|
-
scaledWidth
|
|
1493
|
-
scaledHeight
|
|
1487
|
+
scaledWidth,
|
|
1488
|
+
scaledHeight,
|
|
1494
1489
|
handleScroll,
|
|
1495
1490
|
};
|
|
1496
1491
|
};
|
|
@@ -1657,6 +1652,8 @@ const useClickmap = () => {
|
|
|
1657
1652
|
if (!vizRef || !clickmap || clickmap.length === 0)
|
|
1658
1653
|
return;
|
|
1659
1654
|
vizRef.clearmap();
|
|
1655
|
+
const element = vizRef.get('3w0uppvjw');
|
|
1656
|
+
console.log(`🚀 🐥 ~ useClickmap ~ element:`, element);
|
|
1660
1657
|
vizRef?.clickmap(clickmap);
|
|
1661
1658
|
setIsInitialized(true);
|
|
1662
1659
|
}, [vizRef, clickmap]);
|
|
@@ -1842,8 +1839,12 @@ const HeatmapElements = (props) => {
|
|
|
1842
1839
|
const VizElements = ({ iframeRef, visualRef, wrapperRef }) => {
|
|
1843
1840
|
const heatmapInfo = useHeatmapDataStore((state) => state.dataInfo);
|
|
1844
1841
|
const contentWidth = useHeatmapConfigStore((state) => state.width);
|
|
1842
|
+
const vizRef = useHeatmapVizStore((state) => state.vizRef);
|
|
1845
1843
|
const visualizer = {
|
|
1846
1844
|
get: (hash) => {
|
|
1845
|
+
if (vizRef) {
|
|
1846
|
+
return vizRef.get(hash);
|
|
1847
|
+
}
|
|
1847
1848
|
const doc = iframeRef.current?.contentDocument;
|
|
1848
1849
|
if (!doc)
|
|
1849
1850
|
return null;
|
|
@@ -2052,4 +2053,4 @@ const HeatmapLayout = ({ data, clickmap, controls, dataInfo, }) => {
|
|
|
2052
2053
|
}
|
|
2053
2054
|
};
|
|
2054
2055
|
|
|
2055
|
-
export { GraphView, HeatmapLayout, IHeatmapType, useHeatmapConfigStore, useHeatmapDataStore, useHeatmapInteractionStore, useHeatmapLiveStore };
|
|
2056
|
+
export { GraphView, HeatmapLayout, IHeatmapType, useHeatmapConfigStore, useHeatmapDataStore, useHeatmapInteractionStore, useHeatmapLiveStore, useHeatmapVizStore };
|
package/dist/esm/index.mjs
CHANGED
|
@@ -139,7 +139,7 @@ const useHeatmapVizStore = create()((set, get) => {
|
|
|
139
139
|
isRenderViz: false,
|
|
140
140
|
setIsRenderViz: (isRenderViz) => set({ isRenderViz }),
|
|
141
141
|
scale: 1,
|
|
142
|
-
vizRef:
|
|
142
|
+
vizRef: null,
|
|
143
143
|
iframeHeight: 0,
|
|
144
144
|
setScale: (scale) => set({ scale }),
|
|
145
145
|
setVizRef: (vizRef) => set({ vizRef }),
|
|
@@ -148,6 +148,7 @@ const useHeatmapVizStore = create()((set, get) => {
|
|
|
148
148
|
});
|
|
149
149
|
|
|
150
150
|
const initialState = {
|
|
151
|
+
payloads: [],
|
|
151
152
|
htmlContent: '',
|
|
152
153
|
wrapperHeight: 0,
|
|
153
154
|
iframeHeight: 0,
|
|
@@ -156,6 +157,8 @@ const useHeatmapLiveStore = create()((set, get) => {
|
|
|
156
157
|
return {
|
|
157
158
|
...initialState,
|
|
158
159
|
reset: () => set(initialState),
|
|
160
|
+
setPayloads: (payloads) => set({ payloads }),
|
|
161
|
+
addPayload: (payload) => set((state) => ({ payloads: [...state.payloads, payload] })),
|
|
159
162
|
setHtmlContent: (htmlContent) => set({ htmlContent }),
|
|
160
163
|
setWrapperHeight: (wrapperHeight) => set({ wrapperHeight }),
|
|
161
164
|
setIframeHeight: (iframeHeight) => set({ iframeHeight }),
|
|
@@ -546,12 +549,9 @@ class ViewportUnitsFixer {
|
|
|
546
549
|
try {
|
|
547
550
|
win.__viewportConfig = this.config;
|
|
548
551
|
const script = doc.createElement('script');
|
|
549
|
-
console.log(`🚀 🐥 ~ ViewportUnitsFixer ~ injectScript ~ script:`, script);
|
|
550
552
|
const scriptCode = await getScriptInjectCode();
|
|
551
|
-
console.log(`🚀 🐥 ~ ViewportUnitsFixer ~ injectScript ~ scriptCode:`, scriptCode);
|
|
552
553
|
script.textContent = scriptCode;
|
|
553
554
|
doc.head.appendChild(script);
|
|
554
|
-
console.log(`🚀 🐥 ~ ViewportUnitsFixer ~ injectScript ~ doc:`, doc);
|
|
555
555
|
}
|
|
556
556
|
catch (error) {
|
|
557
557
|
console.error('[Parent] Failed to inject script', error);
|
|
@@ -1018,7 +1018,7 @@ var MessageType;
|
|
|
1018
1018
|
})(MessageType || (MessageType = {}));
|
|
1019
1019
|
function useIframeMessage(options = {}) {
|
|
1020
1020
|
const { trustedOrigins = [], onMessage } = options;
|
|
1021
|
-
const
|
|
1021
|
+
const addPayload = useHeatmapLiveStore((state) => state.addPayload);
|
|
1022
1022
|
const [isReady, setIsReady] = useState(false);
|
|
1023
1023
|
const iframeRef = useRef(null);
|
|
1024
1024
|
const isValidOrigin = useCallback((origin) => {
|
|
@@ -1044,9 +1044,9 @@ function useIframeMessage(options = {}) {
|
|
|
1044
1044
|
switch (message.type) {
|
|
1045
1045
|
case MessageType.GX_DOM_TRACKING_PAYLOAD:
|
|
1046
1046
|
if (message.payload) {
|
|
1047
|
-
const
|
|
1048
|
-
if (
|
|
1049
|
-
|
|
1047
|
+
const data = decodePayloads(message.payload);
|
|
1048
|
+
if (data) {
|
|
1049
|
+
addPayload(data);
|
|
1050
1050
|
}
|
|
1051
1051
|
}
|
|
1052
1052
|
break;
|
|
@@ -1061,19 +1061,9 @@ function useIframeMessage(options = {}) {
|
|
|
1061
1061
|
window.removeEventListener('message', handleMessage);
|
|
1062
1062
|
};
|
|
1063
1063
|
}, [handleMessage]);
|
|
1064
|
-
const clearPayloads = useCallback(() => {
|
|
1065
|
-
setPayloads([]);
|
|
1066
|
-
}, []);
|
|
1067
|
-
const reset = useCallback(() => {
|
|
1068
|
-
setPayloads([]);
|
|
1069
|
-
setIsReady(false);
|
|
1070
|
-
}, []);
|
|
1071
1064
|
return {
|
|
1072
1065
|
iframeRef,
|
|
1073
|
-
payloads,
|
|
1074
1066
|
isReady,
|
|
1075
|
-
clearPayloads,
|
|
1076
|
-
reset,
|
|
1077
1067
|
};
|
|
1078
1068
|
}
|
|
1079
1069
|
function useIframeRender() {
|
|
@@ -1081,7 +1071,8 @@ function useIframeRender() {
|
|
|
1081
1071
|
const contentWidth = useHeatmapConfigStore((state) => state.width);
|
|
1082
1072
|
const setIframeHeight = useHeatmapVizStore((state) => state.setIframeHeight);
|
|
1083
1073
|
const htmlContent = useHeatmapLiveStore((state) => state.htmlContent);
|
|
1084
|
-
const
|
|
1074
|
+
const setIsRenderViz = useHeatmapVizStore((state) => state.setIsRenderViz);
|
|
1075
|
+
const { iframeRef, isReady } = useIframeMessage();
|
|
1085
1076
|
useEffect(() => {
|
|
1086
1077
|
if (!htmlContent || !iframeRef.current)
|
|
1087
1078
|
return;
|
|
@@ -1101,30 +1092,31 @@ function useIframeRender() {
|
|
|
1101
1092
|
const iframe = iframeRef.current;
|
|
1102
1093
|
if (!iframe || !htmlContent)
|
|
1103
1094
|
return;
|
|
1095
|
+
setIsRenderViz(false);
|
|
1104
1096
|
reset$1(iframe, { width: contentWidth, height: wrapperHeight }, (height) => {
|
|
1105
|
-
setIframeHeight(height);
|
|
1097
|
+
height && setIframeHeight(height);
|
|
1098
|
+
setIsRenderViz(true);
|
|
1106
1099
|
});
|
|
1107
1100
|
}, [isReady, contentWidth, wrapperHeight]);
|
|
1108
1101
|
return {
|
|
1109
1102
|
iframeRef,
|
|
1110
|
-
payloads,
|
|
1111
|
-
isReady,
|
|
1112
1103
|
};
|
|
1113
1104
|
}
|
|
1114
|
-
function reset$1(iframe,
|
|
1105
|
+
function reset$1(iframe, rect, onSuccess) {
|
|
1115
1106
|
const viewportFixer = initViewportFixer({
|
|
1116
|
-
targetWidth:
|
|
1117
|
-
targetHeight:
|
|
1107
|
+
targetWidth: rect.width,
|
|
1108
|
+
targetHeight: rect.height,
|
|
1118
1109
|
iframe: iframe,
|
|
1119
1110
|
onSuccess: (data) => {
|
|
1120
|
-
onSuccess(data.height);
|
|
1121
1111
|
iframe.height = `${data.height}px`;
|
|
1112
|
+
onSuccess(data.height);
|
|
1122
1113
|
},
|
|
1123
1114
|
});
|
|
1124
1115
|
viewportFixer.recalculate();
|
|
1125
1116
|
return iframe;
|
|
1126
1117
|
}
|
|
1127
1118
|
|
|
1119
|
+
let visualizer = new Visualizer();
|
|
1128
1120
|
const useHeatmapRender = () => {
|
|
1129
1121
|
const data = useHeatmapDataStore((state) => state.data);
|
|
1130
1122
|
const setVizRef = useHeatmapVizStore((state) => state.setVizRef);
|
|
@@ -1135,16 +1127,17 @@ const useHeatmapRender = () => {
|
|
|
1135
1127
|
if (!payloads || payloads.length === 0)
|
|
1136
1128
|
return;
|
|
1137
1129
|
setIsRenderViz(false);
|
|
1138
|
-
const visualizer = new Visualizer();
|
|
1139
1130
|
const iframe = iframeRef.current;
|
|
1140
1131
|
if (!iframe?.contentWindow)
|
|
1141
1132
|
return;
|
|
1142
1133
|
await visualizer.html(payloads, iframe.contentWindow);
|
|
1134
|
+
const element = visualizer.get('3w0uppvjw');
|
|
1135
|
+
console.log(`🚀 🐥 ~ useHeatmapRender ~ element:`, element);
|
|
1143
1136
|
reset(iframe, payloads, (height) => {
|
|
1144
1137
|
height && setIframeHeight(height);
|
|
1145
1138
|
setIsRenderViz(true);
|
|
1139
|
+
setVizRef(visualizer);
|
|
1146
1140
|
});
|
|
1147
|
-
setVizRef(visualizer);
|
|
1148
1141
|
}, []);
|
|
1149
1142
|
useEffect(() => {
|
|
1150
1143
|
if (!data || data.length === 0)
|
|
@@ -1486,11 +1479,13 @@ const useHeatmapScale = (props) => {
|
|
|
1486
1479
|
const { scale } = useScaleCalculation({ containerWidth, contentWidth });
|
|
1487
1480
|
// 5. Setup scroll sync
|
|
1488
1481
|
const { handleScroll } = useScrollSync({ iframeRef });
|
|
1482
|
+
const scaledHeight = iframeHeight * scale;
|
|
1483
|
+
const scaledWidth = contentWidth * scale;
|
|
1489
1484
|
return {
|
|
1490
1485
|
containerWidth,
|
|
1491
1486
|
containerHeight,
|
|
1492
|
-
scaledWidth
|
|
1493
|
-
scaledHeight
|
|
1487
|
+
scaledWidth,
|
|
1488
|
+
scaledHeight,
|
|
1494
1489
|
handleScroll,
|
|
1495
1490
|
};
|
|
1496
1491
|
};
|
|
@@ -1657,6 +1652,8 @@ const useClickmap = () => {
|
|
|
1657
1652
|
if (!vizRef || !clickmap || clickmap.length === 0)
|
|
1658
1653
|
return;
|
|
1659
1654
|
vizRef.clearmap();
|
|
1655
|
+
const element = vizRef.get('3w0uppvjw');
|
|
1656
|
+
console.log(`🚀 🐥 ~ useClickmap ~ element:`, element);
|
|
1660
1657
|
vizRef?.clickmap(clickmap);
|
|
1661
1658
|
setIsInitialized(true);
|
|
1662
1659
|
}, [vizRef, clickmap]);
|
|
@@ -1842,8 +1839,12 @@ const HeatmapElements = (props) => {
|
|
|
1842
1839
|
const VizElements = ({ iframeRef, visualRef, wrapperRef }) => {
|
|
1843
1840
|
const heatmapInfo = useHeatmapDataStore((state) => state.dataInfo);
|
|
1844
1841
|
const contentWidth = useHeatmapConfigStore((state) => state.width);
|
|
1842
|
+
const vizRef = useHeatmapVizStore((state) => state.vizRef);
|
|
1845
1843
|
const visualizer = {
|
|
1846
1844
|
get: (hash) => {
|
|
1845
|
+
if (vizRef) {
|
|
1846
|
+
return vizRef.get(hash);
|
|
1847
|
+
}
|
|
1847
1848
|
const doc = iframeRef.current?.contentDocument;
|
|
1848
1849
|
if (!doc)
|
|
1849
1850
|
return null;
|
|
@@ -2052,4 +2053,4 @@ const HeatmapLayout = ({ data, clickmap, controls, dataInfo, }) => {
|
|
|
2052
2053
|
}
|
|
2053
2054
|
};
|
|
2054
2055
|
|
|
2055
|
-
export { GraphView, HeatmapLayout, IHeatmapType, useHeatmapConfigStore, useHeatmapDataStore, useHeatmapInteractionStore, useHeatmapLiveStore };
|
|
2056
|
+
export { GraphView, HeatmapLayout, IHeatmapType, useHeatmapConfigStore, useHeatmapDataStore, useHeatmapInteractionStore, useHeatmapLiveStore, useHeatmapVizStore };
|
|
@@ -1,9 +1,13 @@
|
|
|
1
|
+
import { DecodedPayload } from '../types';
|
|
1
2
|
interface IHeatmapLiveStoreState {
|
|
3
|
+
payloads: DecodedPayload[];
|
|
2
4
|
htmlContent: string;
|
|
3
5
|
iframeHeight: number;
|
|
4
6
|
wrapperHeight: number;
|
|
5
7
|
}
|
|
6
8
|
interface IHeatmapLiveStoreActions {
|
|
9
|
+
setPayloads: (payloads: DecodedPayload[]) => void;
|
|
10
|
+
addPayload: (payload: DecodedPayload) => void;
|
|
7
11
|
reset: () => void;
|
|
8
12
|
setHtmlContent: (htmlContent: string) => void;
|
|
9
13
|
setWrapperHeight: (wrapperHeight: number) => void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mode-live.d.ts","sourceRoot":"","sources":["../../src/stores/mode-live.ts"],"names":[],"mappings":"
|
|
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;IACpB,YAAY,EAAE,MAAM,CAAC;IACrB,aAAa,EAAE,MAAM,CAAC;CACvB;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;IAC9C,gBAAgB,EAAE,CAAC,aAAa,EAAE,MAAM,KAAK,IAAI,CAAC;IAClD,eAAe,EAAE,CAAC,YAAY,EAAE,MAAM,KAAK,IAAI,CAAC;CACjD;AAED,UAAU,iBAAkB,SAAQ,sBAAsB,EAAE,wBAAwB;CAAG;AASvF,eAAO,MAAM,mBAAmB,gFAU9B,CAAC"}
|
package/dist/esm/stores/viz.d.ts
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
|
+
import { Visualizer } from '@gemx-dev/clarity-visualize';
|
|
1
2
|
export interface IHeatmapVizStore {
|
|
2
3
|
isRenderViz: boolean;
|
|
3
4
|
setIsRenderViz: (isRenderViz: boolean) => void;
|
|
4
|
-
vizRef:
|
|
5
|
-
setVizRef: (vizRef:
|
|
5
|
+
vizRef: Visualizer | null;
|
|
6
|
+
setVizRef: (vizRef: Visualizer | null) => void;
|
|
6
7
|
scale: number;
|
|
7
8
|
setScale: (scale: number) => void;
|
|
8
9
|
iframeHeight: number;
|
|
@@ -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":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,6BAA6B,CAAC;AAGzD,MAAM,WAAW,gBAAgB;IAC/B,WAAW,EAAE,OAAO,CAAC;IACrB,cAAc,EAAE,CAAC,WAAW,EAAE,OAAO,KAAK,IAAI,CAAC;IAC/C,MAAM,EAAE,UAAU,GAAG,IAAI,CAAC;IAC1B,SAAS,EAAE,CAAC,MAAM,EAAE,UAAU,GAAG,IAAI,KAAK,IAAI,CAAC;IAC/C,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,YAAY,EAAE,MAAM,CAAC;IACrB,eAAe,EAAE,CAAC,YAAY,EAAE,MAAM,KAAK,IAAI,CAAC;CACjD;AAED,eAAO,MAAM,kBAAkB,+EAW7B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"VizElements.d.ts","sourceRoot":"","sources":["../../../src/components/VizElement/VizElements.tsx"],"names":[],"mappings":"AAIA,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,
|
|
1
|
+
{"version":3,"file":"VizElements.d.ts","sourceRoot":"","sources":["../../../src/components/VizElement/VizElements.tsx"],"names":[],"mappings":"AAIA,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,CA+ClD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"viewport-fixer.d.ts","sourceRoot":"","sources":["../../src/helpers/viewport-fixer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAyC,cAAc,EAAE,MAAM,UAAU,CAAC;AAmB5F,qBAAa,kBAAkB;IAC7B,OAAO,CAAC,MAAM,CAAkC;IAChD,OAAO,CAAC,MAAM,CAAiB;gBAEnB,MAAM,EAAE,cAAc;YAOpB,IAAI;YAgBJ,YAAY;
|
|
1
|
+
{"version":3,"file":"viewport-fixer.d.ts","sourceRoot":"","sources":["../../src/helpers/viewport-fixer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAyC,cAAc,EAAE,MAAM,UAAU,CAAC;AAmB5F,qBAAa,kBAAkB;IAC7B,OAAO,CAAC,MAAM,CAAkC;IAChD,OAAO,CAAC,MAAM,CAAiB;gBAEnB,MAAM,EAAE,cAAc;YAOpB,IAAI;YAgBJ,YAAY;IAiB1B,OAAO,CAAC,aAAa;IAMd,WAAW,IAAI,IAAI;CAG3B;AAED,wBAAgB,iBAAiB,CAAC,MAAM,EAAE,cAAc,GAAG,kBAAkB,CAU5E;AAED,wBAAgB,kBAAkB,IAAI,SAAS,GAAG,IAAI,CA+BrD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useClickmap.d.ts","sourceRoot":"","sources":["../../../src/hooks/viz-canvas/useClickmap.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,WAAW,
|
|
1
|
+
{"version":3,"file":"useClickmap.d.ts","sourceRoot":"","sources":["../../../src/hooks/viz-canvas/useClickmap.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,WAAW,UAkBvB,CAAC"}
|
|
@@ -13,15 +13,10 @@ interface UseIframeMessageOptions {
|
|
|
13
13
|
}
|
|
14
14
|
export declare function useIframeMessage(options?: UseIframeMessageOptions): {
|
|
15
15
|
iframeRef: import("react").RefObject<HTMLIFrameElement>;
|
|
16
|
-
payloads: import("clarity-decode/types/data").DecodedPayload[];
|
|
17
16
|
isReady: boolean;
|
|
18
|
-
clearPayloads: () => void;
|
|
19
|
-
reset: () => void;
|
|
20
17
|
};
|
|
21
18
|
export declare function useIframeRender(): {
|
|
22
19
|
iframeRef: import("react").RefObject<HTMLIFrameElement>;
|
|
23
|
-
payloads: import("clarity-decode/types/data").DecodedPayload[];
|
|
24
|
-
isReady: boolean;
|
|
25
20
|
};
|
|
26
21
|
export {};
|
|
27
22
|
//# sourceMappingURL=useIframeMessage.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useIframeMessage.d.ts","sourceRoot":"","sources":["../../../src/hooks/viz-live/useIframeMessage.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"useIframeMessage.d.ts","sourceRoot":"","sources":["../../../src/hooks/viz-live/useIframeMessage.ts"],"names":[],"mappings":"AAIA,oBAAY,WAAW;IACrB,uBAAuB,4BAA4B;IACnD,aAAa,kBAAkB;CAChC;AAED,MAAM,WAAW,cAAc;IAC7B,IAAI,EAAE,WAAW,CAAC;IAClB,OAAO,CAAC,EAAE,GAAG,CAAC;IACd,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,UAAU,uBAAuB;IAC/B,cAAc,CAAC,EAAE,MAAM,EAAE,CAAC;IAC1B,SAAS,CAAC,EAAE,CAAC,OAAO,EAAE,cAAc,KAAK,IAAI,CAAC;CAC/C;AAED,wBAAgB,gBAAgB,CAAC,OAAO,GAAE,uBAA4B;;;EAmErE;AAED,wBAAgB,eAAe;;EAuC9B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useHeatmapRender.d.ts","sourceRoot":"","sources":["../../../src/hooks/viz-render/useHeatmapRender.ts"],"names":[],"mappings":"AAMA,UAAU,uBAAuB;IAC/B,SAAS,EAAE,KAAK,CAAC,SAAS,CAAC,iBAAiB,GAAG,IAAI,CAAC,CAAC;CACtD;
|
|
1
|
+
{"version":3,"file":"useHeatmapRender.d.ts","sourceRoot":"","sources":["../../../src/hooks/viz-render/useHeatmapRender.ts"],"names":[],"mappings":"AAMA,UAAU,uBAAuB;IAC/B,SAAS,EAAE,KAAK,CAAC,SAAS,CAAC,iBAAiB,GAAG,IAAI,CAAC,CAAC;CACtD;AAGD,eAAO,MAAM,gBAAgB,QAAO,uBAsCnC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useHeatmapScale.d.ts","sourceRoot":"","sources":["../../../src/hooks/viz-scale/useHeatmapScale.ts"],"names":[],"mappings":"AAMA,UAAU,kBAAkB;IAC1B,UAAU,EAAE,KAAK,CAAC,SAAS,CAAC,cAAc,GAAG,IAAI,CAAC,CAAC;IACnD,SAAS,EAAE,KAAK,CAAC,SAAS,CAAC,iBAAiB,GAAG,IAAI,CAAC,CAAC;IACrD,SAAS,EAAE,KAAK,CAAC,SAAS,CAAC,cAAc,GAAG,IAAI,CAAC,CAAC;IAClD,YAAY,EAAE,MAAM,CAAC;IAErB,eAAe,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;CAC3C;AAED,UAAU,sBAAsB;IAC9B,cAAc,EAAE,MAAM,CAAC;IACvB,eAAe,EAAE,MAAM,CAAC;IACxB,WAAW,EAAE,MAAM,CAAC;IACpB,YAAY,EAAE,MAAM,CAAC;IACrB,YAAY,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,IAAI,CAAC;CAC3C;AAED,eAAO,MAAM,eAAe,GAAI,OAAO,kBAAkB,KAAG,
|
|
1
|
+
{"version":3,"file":"useHeatmapScale.d.ts","sourceRoot":"","sources":["../../../src/hooks/viz-scale/useHeatmapScale.ts"],"names":[],"mappings":"AAMA,UAAU,kBAAkB;IAC1B,UAAU,EAAE,KAAK,CAAC,SAAS,CAAC,cAAc,GAAG,IAAI,CAAC,CAAC;IACnD,SAAS,EAAE,KAAK,CAAC,SAAS,CAAC,iBAAiB,GAAG,IAAI,CAAC,CAAC;IACrD,SAAS,EAAE,KAAK,CAAC,SAAS,CAAC,cAAc,GAAG,IAAI,CAAC,CAAC;IAClD,YAAY,EAAE,MAAM,CAAC;IAErB,eAAe,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;CAC3C;AAED,UAAU,sBAAsB;IAC9B,cAAc,EAAE,MAAM,CAAC;IACvB,eAAe,EAAE,MAAM,CAAC;IACxB,WAAW,EAAE,MAAM,CAAC;IACpB,YAAY,EAAE,MAAM,CAAC;IACrB,YAAY,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,IAAI,CAAC;CAC3C;AAED,eAAO,MAAM,eAAe,GAAI,OAAO,kBAAkB,KAAG,sBA4B3D,CAAC"}
|
package/dist/umd/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export * from './components';
|
|
2
2
|
export * from './types';
|
|
3
|
-
export { useHeatmapConfigStore, useHeatmapDataStore, useHeatmapInteractionStore, useHeatmapLiveStore, } from './stores';
|
|
3
|
+
export { useHeatmapConfigStore, useHeatmapDataStore, useHeatmapInteractionStore, useHeatmapLiveStore, useHeatmapVizStore, } from './stores';
|
|
4
4
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/umd/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,SAAS,CAAC;AAExB,OAAO,EACL,qBAAqB,EACrB,mBAAmB,EACnB,0BAA0B,EAC1B,mBAAmB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,SAAS,CAAC;AAExB,OAAO,EACL,qBAAqB,EACrB,mBAAmB,EACnB,0BAA0B,EAC1B,mBAAmB,EACnB,kBAAkB,GACnB,MAAM,UAAU,CAAC"}
|