@sailfish-ai/recorder 1.9.0 → 1.9.2-alpha1

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.
Binary file
Binary file
package/dist/recording.js CHANGED
@@ -201,7 +201,19 @@ function createThrottledEmit(enabled, intervalMs = 1000) {
201
201
  sendEvent(event);
202
202
  return;
203
203
  }
204
- // For text edit events (mutation or input), buffer and send periodically
204
+ // Mutation events (source 0) with structural DOM changes (adds/removes)
205
+ // must NOT be throttled. These contain critical node insertions/removals
206
+ // (e.g., login page removal) that would be lost if overwritten in the buffer.
207
+ if (eventSource === 0) {
208
+ const data = event.data;
209
+ const hasAdds = data?.adds && data.adds.length > 0;
210
+ const hasRemoves = data?.removes && data.removes.length > 0;
211
+ if (hasAdds || hasRemoves) {
212
+ sendEvent(event);
213
+ return;
214
+ }
215
+ }
216
+ // For text-only edit events (mutation or input), buffer and send periodically
205
217
  // Create a key for this event (include source and target id for granular buffering)
206
218
  const targetId = event.data?.id || 'unknown';
207
219
  const eventKey = `3:${eventSource}:${targetId}`;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sailfish-ai/recorder",
3
- "version": "1.9.0",
3
+ "version": "1.9.2-alpha1",
4
4
  "publishPublicly": true,
5
5
  "type": "module",
6
6
  "main": "dist/recorder.cjs",
@@ -44,9 +44,9 @@
44
44
  ],
45
45
  "dependencies": {
46
46
  "@sailfish-ai/sf-map-utils": "0.4.5",
47
- "@sailfish-rrweb/rrweb-plugin-console-record": "0.5.5",
48
- "@sailfish-rrweb/rrweb-record-only": "0.5.5",
49
- "@sailfish-rrweb/types": "0.5.5",
47
+ "@sailfish-rrweb/rrweb-plugin-console-record": "0.5.6",
48
+ "@sailfish-rrweb/rrweb-record-only": "0.5.6",
49
+ "@sailfish-rrweb/types": "0.5.6",
50
50
  "async-mutex": "^0.5.0",
51
51
  "idb": "^8.0.3",
52
52
  "reconnecting-websocket": "^4.4.0",