@midscene/recorder 1.0.1-beta-20251107065041.0 → 1.0.1-beta-20251110115555.0

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.
@@ -116,7 +116,7 @@
116
116
  function debugLog(...args) {
117
117
  if (DEBUG) console.log('[EventRecorder]', ...args);
118
118
  }
119
- function recorder_generateHashId(type, elementRect) {
119
+ function generateHashId(type, elementRect) {
120
120
  const rectStr = elementRect ? `${elementRect.left}_${elementRect.top}_${elementRect.width}_${elementRect.height}${void 0 !== elementRect.x ? `_${elementRect.x}` : ''}${void 0 !== elementRect.y ? `_${elementRect.y}` : ''}` : 'no_rect';
121
121
  const combined = `${type}_${rectStr}`;
122
122
  let hash = 0;
@@ -245,7 +245,7 @@
245
245
  },
246
246
  value: '',
247
247
  timestamp: Date.now(),
248
- hashId: recorder_generateHashId('click', {
248
+ hashId: generateHashId('click', {
249
249
  ...elementRect
250
250
  }),
251
251
  element: target,
@@ -288,7 +288,7 @@
288
288
  },
289
289
  value: `${scrollXTarget.toFixed(2)},${scrollYTarget.toFixed(2)}`,
290
290
  timestamp: Date.now(),
291
- hashId: recorder_generateHashId('scroll', {
291
+ hashId: generateHashId('scroll', {
292
292
  ...elementRect
293
293
  }),
294
294
  element: target
@@ -316,7 +316,7 @@
316
316
  type: 'input',
317
317
  value: 'password' !== target.type ? target.value : '*****',
318
318
  timestamp: Date.now(),
319
- hashId: recorder_generateHashId('input', {
319
+ hashId: generateHashId('input', {
320
320
  ...elementRect
321
321
  }),
322
322
  element: target,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@midscene/recorder",
3
- "version": "1.0.1-beta-20251107065041.0",
3
+ "version": "1.0.1-beta-20251110115555.0",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {
@@ -24,7 +24,7 @@
24
24
  "antd": "^5.21.6",
25
25
  "dayjs": "^1.11.11",
26
26
  "react-dom": "18.3.1",
27
- "@midscene/shared": "1.0.1-beta-20251107065041.0"
27
+ "@midscene/shared": "1.0.1-beta-20251110115555.0"
28
28
  },
29
29
  "peerDependencies": {
30
30
  "react": "18.3.1",