@kubesense/kubesense-browser-rum 1.7.0 → 2.0.0-beta.1
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/LICENSE +1 -1
- package/README.md +23 -0
- package/bundle/chunks/kubesenseProfiler-4b8cfd8f889074788478-kubesense-rum.js +1 -0
- package/bundle/chunks/kubesenseRecorder-db948e96649585a2b3e9-kubesense-rum.js +1 -0
- package/bundle/kubesense-rum.js +1 -1
- package/cjs/boot/kubesenseRecorder.d.ts +6 -0
- package/cjs/boot/kubesenseRecorder.js +75 -0
- package/cjs/boot/kubesenseRecorder.js.map +1 -0
- package/cjs/boot/lazyLoadProfiler.d.ts +3 -4
- package/cjs/boot/lazyLoadProfiler.js +18 -50
- package/cjs/boot/lazyLoadProfiler.js.map +1 -1
- package/cjs/boot/lazyLoadRecorder.d.ts +3 -4
- package/cjs/boot/lazyLoadRecorder.js +18 -50
- package/cjs/boot/lazyLoadRecorder.js.map +1 -1
- package/cjs/boot/postStartStrategy.d.ts +4 -4
- package/cjs/boot/postStartStrategy.js +89 -110
- package/cjs/boot/postStartStrategy.js.map +1 -1
- package/cjs/boot/preStartStrategy.js +21 -21
- package/cjs/boot/preStartStrategy.js.map +1 -1
- package/cjs/boot/profilerApi.js +44 -50
- package/cjs/boot/profilerApi.js.map +1 -1
- package/cjs/boot/recorderApi.d.ts +1 -3
- package/cjs/boot/recorderApi.js +41 -71
- package/cjs/boot/recorderApi.js.map +1 -1
- package/cjs/domain/deflate/deflateEncoder.d.ts +1 -2
- package/cjs/domain/deflate/deflateEncoder.js +94 -108
- package/cjs/domain/deflate/deflateEncoder.js.map +1 -1
- package/cjs/domain/deflate/deflateWorker.d.ts +3 -4
- package/cjs/domain/deflate/deflateWorker.js +79 -90
- package/cjs/domain/deflate/deflateWorker.js.map +1 -1
- package/cjs/domain/deflate/index.d.ts +1 -1
- package/cjs/domain/deflate/index.js +5 -10
- package/cjs/domain/getSessionReplayLink.d.ts +3 -2
- package/cjs/domain/getSessionReplayLink.js +17 -31
- package/cjs/domain/getSessionReplayLink.js.map +1 -1
- package/cjs/domain/profiling/actionHistory.d.ts +10 -0
- package/cjs/domain/profiling/actionHistory.js +37 -0
- package/cjs/domain/profiling/actionHistory.js.map +1 -0
- package/cjs/domain/profiling/kubesenseProfiler.d.ts +6 -0
- package/cjs/domain/profiling/kubesenseProfiler.js +243 -0
- package/cjs/domain/profiling/kubesenseProfiler.js.map +1 -0
- package/cjs/domain/profiling/longTaskHistory.d.ts +11 -0
- package/cjs/domain/profiling/longTaskHistory.js +22 -0
- package/cjs/domain/profiling/longTaskHistory.js.map +1 -0
- package/cjs/domain/profiling/profilerDebugIds.d.ts +2 -0
- package/cjs/domain/profiling/profilerDebugIds.js +18 -0
- package/cjs/domain/profiling/profilerDebugIds.js.map +1 -0
- package/cjs/domain/profiling/profilingContext.js +20 -25
- package/cjs/domain/profiling/profilingContext.js.map +1 -1
- package/cjs/domain/profiling/profilingSupported.js +6 -8
- package/cjs/domain/profiling/profilingSupported.js.map +1 -1
- package/cjs/domain/profiling/quotaCheck.d.ts +9 -0
- package/cjs/domain/profiling/quotaCheck.js +66 -0
- package/cjs/domain/profiling/quotaCheck.js.map +1 -0
- package/cjs/domain/profiling/test-utils/mockedTrace.d.ts +1 -1
- package/cjs/domain/profiling/transport/buildProfileEvent.d.ts +38 -0
- package/cjs/domain/profiling/transport/buildProfileEvent.js +91 -0
- package/cjs/domain/profiling/transport/buildProfileEvent.js.map +1 -0
- package/cjs/domain/profiling/transport/formDataEmitter.d.ts +5 -0
- package/cjs/domain/profiling/transport/formDataEmitter.js +17 -0
- package/cjs/domain/profiling/transport/formDataEmitter.js.map +1 -0
- package/cjs/domain/profiling/transport/profilingBridge.d.ts +2 -0
- package/cjs/domain/profiling/transport/profilingBridge.js +12 -0
- package/cjs/domain/profiling/transport/profilingBridge.js.map +1 -0
- package/cjs/domain/profiling/{types/rumProfiler.types.d.ts → types.d.ts} +13 -24
- package/cjs/domain/profiling/utils/getCustomOrDefaultViewName.js +5 -5
- package/cjs/domain/profiling/utils/getCustomOrDefaultViewName.js.map +1 -1
- package/cjs/domain/profiling/utils/getDefaultViewName.js +6 -10
- package/cjs/domain/profiling/utils/getDefaultViewName.js.map +1 -1
- package/cjs/domain/profiling/vitalHistory.d.ts +13 -0
- package/cjs/domain/profiling/vitalHistory.js +56 -0
- package/cjs/domain/profiling/vitalHistory.js.map +1 -0
- package/cjs/domain/record/assembly.d.ts +2 -1
- package/cjs/domain/record/assembly.js +15 -14
- package/cjs/domain/record/assembly.js.map +1 -1
- package/cjs/domain/record/canvas/canvasHash.d.ts +2 -0
- package/cjs/domain/record/canvas/canvasHash.js +33 -0
- package/cjs/domain/record/canvas/canvasHash.js.map +1 -0
- package/cjs/domain/record/canvas/canvasManager.d.ts +42 -0
- package/cjs/domain/record/canvas/canvasManager.js +99 -0
- package/cjs/domain/record/canvas/canvasManager.js.map +1 -0
- package/cjs/domain/record/canvas/canvasSnapshot.d.ts +8 -0
- package/cjs/domain/record/canvas/canvasSnapshot.js +40 -0
- package/cjs/domain/record/canvas/canvasSnapshot.js.map +1 -0
- package/cjs/domain/record/canvas/canvasUtils.d.ts +2 -0
- package/cjs/domain/record/canvas/canvasUtils.js +14 -0
- package/cjs/domain/record/canvas/canvasUtils.js.map +1 -0
- package/cjs/domain/record/elementsScrollPositions.js +17 -20
- package/cjs/domain/record/elementsScrollPositions.js.map +1 -1
- package/cjs/domain/record/encoding/changeDecoder.d.ts +39 -0
- package/cjs/domain/record/encoding/changeDecoder.js +152 -0
- package/cjs/domain/record/encoding/changeDecoder.js.map +1 -0
- package/cjs/domain/record/encoding/changeEncoder.d.ts +39 -0
- package/cjs/domain/record/encoding/changeEncoder.js +146 -0
- package/cjs/domain/record/encoding/changeEncoder.js.map +1 -0
- package/cjs/domain/record/encoding/index.d.ts +10 -0
- package/cjs/domain/record/encoding/itemIds.d.ts +32 -0
- package/cjs/domain/record/encoding/itemIds.js +49 -0
- package/cjs/domain/record/encoding/itemIds.js.map +1 -0
- package/cjs/domain/record/encoding/roles.d.ts +52 -0
- package/cjs/domain/record/encoding/roles.js +66 -0
- package/cjs/domain/record/encoding/roles.js.map +1 -0
- package/cjs/domain/record/encoding/stringIds.d.ts +15 -0
- package/cjs/domain/record/encoding/stringIds.js +47 -0
- package/cjs/domain/record/encoding/stringIds.js.map +1 -0
- package/cjs/domain/record/encoding/stringTable.d.ts +15 -0
- package/cjs/domain/record/encoding/stringTable.js +38 -0
- package/cjs/domain/record/encoding/stringTable.js.map +1 -0
- package/cjs/domain/record/eventsUtils.js +9 -10
- package/cjs/domain/record/eventsUtils.js.map +1 -1
- package/cjs/domain/record/index.d.ts +5 -2
- package/cjs/domain/record/index.js +13 -17
- package/cjs/domain/record/internalApi.d.ts +6 -6
- package/cjs/domain/record/internalApi.js +55 -49
- package/cjs/domain/record/internalApi.js.map +1 -1
- package/cjs/domain/record/mutationBatch.d.ts +1 -0
- package/cjs/domain/record/mutationBatch.js +38 -39
- package/cjs/domain/record/mutationBatch.js.map +1 -1
- package/cjs/domain/record/record.d.ts +7 -1
- package/cjs/domain/record/record.js +76 -87
- package/cjs/domain/record/record.js.map +1 -1
- package/cjs/domain/record/record.types.d.ts +1 -0
- package/cjs/domain/record/recordingScope.d.ts +7 -3
- package/cjs/domain/record/recordingScope.js +25 -11
- package/cjs/domain/record/recordingScope.js.map +1 -1
- package/cjs/domain/record/serialization/index.d.ts +4 -2
- package/cjs/domain/record/serialization/index.js +16 -18
- package/cjs/domain/record/serialization/insertionCursor.d.ts +57 -0
- package/cjs/domain/record/serialization/insertionCursor.js +55 -0
- package/cjs/domain/record/serialization/insertionCursor.js.map +1 -0
- package/cjs/domain/record/serialization/serialization.types.d.ts +0 -6
- package/cjs/domain/record/serialization/serializationStats.js +26 -25
- package/cjs/domain/record/serialization/serializationStats.js.map +1 -1
- package/cjs/domain/record/serialization/serializationTransaction.d.ts +44 -22
- package/cjs/domain/record/serialization/serializationTransaction.js +90 -36
- package/cjs/domain/record/serialization/serializationTransaction.js.map +1 -1
- package/cjs/domain/record/serialization/serializationUtils.d.ts +0 -1
- package/cjs/domain/record/serialization/serializationUtils.js +46 -75
- package/cjs/domain/record/serialization/serializationUtils.js.map +1 -1
- package/cjs/domain/record/serialization/serializeAttribute.js +24 -39
- package/cjs/domain/record/serialization/serializeAttribute.js.map +1 -1
- package/cjs/domain/record/serialization/serializeAttributes.d.ts +2 -2
- package/cjs/domain/record/serialization/serializeAttributes.js +100 -152
- package/cjs/domain/record/serialization/serializeAttributes.js.map +1 -1
- package/cjs/domain/record/serialization/serializeFullSnapshot.d.ts +5 -0
- package/cjs/domain/record/serialization/serializeFullSnapshot.js +14 -0
- package/cjs/domain/record/serialization/serializeFullSnapshot.js.map +1 -0
- package/cjs/domain/record/serialization/serializeMutations.d.ts +5 -0
- package/cjs/domain/record/serialization/serializeMutations.js +152 -0
- package/cjs/domain/record/serialization/serializeMutations.js.map +1 -0
- package/cjs/domain/record/serialization/serializeNode.d.ts +3 -6
- package/cjs/domain/record/serialization/serializeNode.js +116 -144
- package/cjs/domain/record/serialization/serializeNode.js.map +1 -1
- package/cjs/domain/record/shadowRootsController.d.ts +2 -2
- package/cjs/domain/record/shadowRootsController.js +37 -42
- package/cjs/domain/record/shadowRootsController.js.map +1 -1
- package/cjs/domain/record/startFullSnapshots.d.ts +1 -1
- package/cjs/domain/record/startFullSnapshots.js +38 -54
- package/cjs/domain/record/startFullSnapshots.js.map +1 -1
- package/cjs/domain/record/trackers/index.d.ts +2 -1
- package/cjs/domain/record/trackers/index.js +25 -27
- package/cjs/domain/record/trackers/trackCanvasCapture.d.ts +3 -0
- package/cjs/domain/record/trackers/trackCanvasCapture.js +102 -0
- package/cjs/domain/record/trackers/trackCanvasCapture.js.map +1 -0
- package/cjs/domain/record/trackers/trackCanvasContent.d.ts +3 -0
- package/cjs/domain/record/trackers/trackCanvasContent.js +31 -0
- package/cjs/domain/record/trackers/trackCanvasContent.js.map +1 -0
- package/cjs/domain/record/trackers/trackFocus.d.ts +1 -2
- package/cjs/domain/record/trackers/trackFocus.js +15 -13
- package/cjs/domain/record/trackers/trackFocus.js.map +1 -1
- package/cjs/domain/record/trackers/trackInput.d.ts +2 -2
- package/cjs/domain/record/trackers/trackInput.js +129 -102
- package/cjs/domain/record/trackers/trackInput.js.map +1 -1
- package/cjs/domain/record/trackers/trackMediaInteraction.js +22 -26
- package/cjs/domain/record/trackers/trackMediaInteraction.js.map +1 -1
- package/cjs/domain/record/trackers/trackMouseInteraction.js +47 -54
- package/cjs/domain/record/trackers/trackMouseInteraction.js.map +1 -1
- package/cjs/domain/record/trackers/trackMove.js +43 -49
- package/cjs/domain/record/trackers/trackMove.js.map +1 -1
- package/cjs/domain/record/trackers/trackMutation.d.ts +3 -3
- package/cjs/domain/record/trackers/trackMutation.js +42 -267
- package/cjs/domain/record/trackers/trackMutation.js.map +1 -1
- package/cjs/domain/record/trackers/trackScroll.js +36 -44
- package/cjs/domain/record/trackers/trackScroll.js.map +1 -1
- package/cjs/domain/record/trackers/trackStyleSheet.js +75 -84
- package/cjs/domain/record/trackers/trackStyleSheet.js.map +1 -1
- package/cjs/domain/record/trackers/trackViewEnd.js +17 -17
- package/cjs/domain/record/trackers/trackViewEnd.js.map +1 -1
- package/cjs/domain/record/trackers/trackViewportResize.d.ts +2 -3
- package/cjs/domain/record/trackers/trackViewportResize.js +36 -42
- package/cjs/domain/record/trackers/trackViewportResize.js.map +1 -1
- package/cjs/domain/record/viewports.js +32 -50
- package/cjs/domain/record/viewports.js.map +1 -1
- package/cjs/domain/replayStats.d.ts +1 -0
- package/cjs/domain/replayStats.js +36 -44
- package/cjs/domain/replayStats.js.map +1 -1
- package/cjs/domain/scriptLoadingError.js +15 -22
- package/cjs/domain/scriptLoadingError.js.map +1 -1
- package/cjs/domain/segmentCollection/buildReplayPayload.js +22 -23
- package/cjs/domain/segmentCollection/buildReplayPayload.js.map +1 -1
- package/cjs/domain/segmentCollection/buildResourcePayload.d.ts +5 -0
- package/cjs/domain/segmentCollection/buildResourcePayload.js +19 -0
- package/cjs/domain/segmentCollection/buildResourcePayload.js.map +1 -0
- package/cjs/domain/segmentCollection/index.d.ts +3 -0
- package/cjs/domain/segmentCollection/index.js +14 -11
- package/cjs/domain/segmentCollection/replayResourceCollection.d.ts +10 -0
- package/cjs/domain/segmentCollection/replayResourceCollection.js +52 -0
- package/cjs/domain/segmentCollection/replayResourceCollection.js.map +1 -0
- package/cjs/domain/segmentCollection/segment.js +50 -80
- package/cjs/domain/segmentCollection/segment.js.map +1 -1
- package/cjs/domain/segmentCollection/segmentCollection.d.ts +4 -4
- package/cjs/domain/segmentCollection/segmentCollection.js +87 -105
- package/cjs/domain/segmentCollection/segmentCollection.js.map +1 -1
- package/cjs/domain/segmentCollection/startDroppedSegmentRecovery.d.ts +16 -0
- package/cjs/domain/segmentCollection/startDroppedSegmentRecovery.js +29 -0
- package/cjs/domain/segmentCollection/startDroppedSegmentRecovery.js.map +1 -0
- package/cjs/domain/segmentCollection/startSegmentTelemetry.js +40 -42
- package/cjs/domain/segmentCollection/startSegmentTelemetry.js.map +1 -1
- package/cjs/domain/startRecordBridge.js +10 -14
- package/cjs/domain/startRecordBridge.js.map +1 -1
- package/cjs/domain/startRecorderInitTelemetry.js +42 -50
- package/cjs/domain/startRecorderInitTelemetry.js.map +1 -1
- package/cjs/entries/internal.d.ts +11 -2
- package/cjs/entries/internal.js +47 -28
- package/cjs/entries/internalSynthetics.js +26 -24
- package/cjs/entries/internalSynthetics.js.map +1 -1
- package/cjs/entries/main.d.ts +5 -3
- package/cjs/entries/main.js +50 -31
- package/cjs/entries/main.js.map +1 -1
- package/cjs/types/index.d.ts +1 -0
- package/cjs/types/profiling.d.ts +313 -0
- package/cjs/types/sessionReplay.d.ts +381 -3
- package/cjs/types/sessionReplayConstants.d.ts +57 -0
- package/cjs/types/sessionReplayConstants.js +104 -47
- package/cjs/types/sessionReplayConstants.js.map +1 -1
- package/esm/boot/kubesenseRecorder.mjs +75 -0
- package/esm/boot/kubesenseRecorder.mjs.map +1 -0
- package/esm/boot/lazyLoadProfiler.mjs +24 -0
- package/esm/boot/lazyLoadProfiler.mjs.map +1 -0
- package/esm/boot/lazyLoadRecorder.mjs +24 -0
- package/esm/boot/lazyLoadRecorder.mjs.map +1 -0
- package/esm/boot/postStartStrategy.mjs +97 -0
- package/esm/boot/postStartStrategy.mjs.map +1 -0
- package/esm/boot/preStartStrategy.mjs +24 -0
- package/esm/boot/preStartStrategy.mjs.map +1 -0
- package/esm/boot/profilerApi.mjs +47 -0
- package/esm/boot/profilerApi.mjs.map +1 -0
- package/esm/boot/recorderApi.mjs +43 -0
- package/esm/boot/recorderApi.mjs.map +1 -0
- package/esm/domain/deflate/deflateEncoder.mjs +96 -0
- package/esm/domain/deflate/deflateEncoder.mjs.map +1 -0
- package/esm/domain/deflate/deflateWorker.mjs +90 -0
- package/esm/domain/deflate/deflateWorker.mjs.map +1 -0
- package/esm/domain/deflate/index.mjs +3 -0
- package/esm/domain/getSessionReplayLink.mjs +21 -0
- package/esm/domain/getSessionReplayLink.mjs.map +1 -0
- package/esm/domain/profiling/actionHistory.mjs +36 -0
- package/esm/domain/profiling/actionHistory.mjs.map +1 -0
- package/esm/domain/profiling/kubesenseProfiler.mjs +242 -0
- package/esm/domain/profiling/kubesenseProfiler.mjs.map +1 -0
- package/esm/domain/profiling/longTaskHistory.mjs +21 -0
- package/esm/domain/profiling/longTaskHistory.mjs.map +1 -0
- package/esm/domain/profiling/profilerDebugIds.mjs +18 -0
- package/esm/domain/profiling/profilerDebugIds.mjs.map +1 -0
- package/esm/domain/profiling/profilingContext.mjs +23 -0
- package/esm/domain/profiling/profilingContext.mjs.map +1 -0
- package/esm/domain/profiling/profilingSupported.mjs +9 -0
- package/esm/domain/profiling/profilingSupported.mjs.map +1 -0
- package/esm/domain/profiling/quotaCheck.mjs +66 -0
- package/esm/domain/profiling/quotaCheck.mjs.map +1 -0
- package/esm/domain/profiling/transport/buildProfileEvent.mjs +90 -0
- package/esm/domain/profiling/transport/buildProfileEvent.mjs.map +1 -0
- package/esm/domain/profiling/transport/formDataEmitter.mjs +17 -0
- package/esm/domain/profiling/transport/formDataEmitter.mjs.map +1 -0
- package/esm/domain/profiling/transport/profilingBridge.mjs +12 -0
- package/esm/domain/profiling/transport/profilingBridge.mjs.map +1 -0
- package/esm/domain/profiling/utils/getCustomOrDefaultViewName.mjs +7 -0
- package/esm/domain/profiling/utils/getCustomOrDefaultViewName.mjs.map +1 -0
- package/esm/domain/profiling/utils/getDefaultViewName.mjs +10 -0
- package/esm/domain/profiling/utils/getDefaultViewName.mjs.map +1 -0
- package/esm/domain/profiling/vitalHistory.mjs +55 -0
- package/esm/domain/profiling/vitalHistory.mjs.map +1 -0
- package/esm/domain/record/assembly.mjs +17 -0
- package/esm/domain/record/assembly.mjs.map +1 -0
- package/esm/domain/record/canvas/canvasHash.mjs +33 -0
- package/esm/domain/record/canvas/canvasHash.mjs.map +1 -0
- package/esm/domain/record/canvas/canvasManager.mjs +99 -0
- package/esm/domain/record/canvas/canvasManager.mjs.map +1 -0
- package/esm/domain/record/canvas/canvasSnapshot.mjs +38 -0
- package/esm/domain/record/canvas/canvasSnapshot.mjs.map +1 -0
- package/esm/domain/record/canvas/canvasUtils.mjs +13 -0
- package/esm/domain/record/canvas/canvasUtils.mjs.map +1 -0
- package/esm/domain/record/elementsScrollPositions.mjs +20 -0
- package/esm/domain/record/elementsScrollPositions.mjs.map +1 -0
- package/esm/domain/record/encoding/changeDecoder.mjs +152 -0
- package/esm/domain/record/encoding/changeDecoder.mjs.map +1 -0
- package/esm/domain/record/encoding/changeEncoder.mjs +146 -0
- package/esm/domain/record/encoding/changeEncoder.mjs.map +1 -0
- package/esm/domain/record/encoding/itemIds.mjs +47 -0
- package/esm/domain/record/encoding/itemIds.mjs.map +1 -0
- package/esm/domain/record/encoding/roles.mjs +64 -0
- package/esm/domain/record/encoding/roles.mjs.map +1 -0
- package/esm/domain/record/encoding/stringIds.mjs +47 -0
- package/esm/domain/record/encoding/stringIds.mjs.map +1 -0
- package/esm/domain/record/encoding/stringTable.mjs +38 -0
- package/esm/domain/record/encoding/stringTable.mjs.map +1 -0
- package/esm/domain/record/eventsUtils.mjs +13 -0
- package/esm/domain/record/eventsUtils.mjs.map +1 -0
- package/esm/domain/record/index.mjs +8 -0
- package/esm/domain/record/internalApi.mjs +62 -0
- package/esm/domain/record/internalApi.mjs.map +1 -0
- package/esm/domain/record/mutationBatch.mjs +43 -0
- package/esm/domain/record/mutationBatch.mjs.map +1 -0
- package/esm/domain/record/record.mjs +79 -0
- package/esm/domain/record/record.mjs.map +1 -0
- package/esm/domain/record/recordingScope.mjs +27 -0
- package/esm/domain/record/recordingScope.mjs.map +1 -0
- package/esm/domain/record/serialization/index.mjs +9 -0
- package/esm/domain/record/serialization/insertionCursor.mjs +54 -0
- package/esm/domain/record/serialization/insertionCursor.mjs.map +1 -0
- package/esm/domain/record/serialization/serializationStats.mjs +31 -0
- package/esm/domain/record/serialization/serializationStats.mjs.map +1 -0
- package/esm/domain/record/serialization/serializationTransaction.mjs +92 -0
- package/esm/domain/record/serialization/serializationTransaction.mjs.map +1 -0
- package/esm/domain/record/serialization/serializationUtils.mjs +53 -0
- package/esm/domain/record/serialization/serializationUtils.mjs.map +1 -0
- package/esm/domain/record/serialization/serializeAttribute.mjs +26 -0
- package/esm/domain/record/serialization/serializeAttribute.mjs.map +1 -0
- package/esm/domain/record/serialization/serializeAttributes.mjs +113 -0
- package/esm/domain/record/serialization/serializeAttributes.mjs.map +1 -0
- package/esm/domain/record/serialization/serializeFullSnapshot.mjs +14 -0
- package/esm/domain/record/serialization/serializeFullSnapshot.mjs.map +1 -0
- package/esm/domain/record/serialization/serializeMutations.mjs +152 -0
- package/esm/domain/record/serialization/serializeMutations.mjs.map +1 -0
- package/esm/domain/record/serialization/serializeNode.mjs +126 -0
- package/esm/domain/record/serialization/serializeNode.mjs.map +1 -0
- package/esm/domain/record/shadowRootsController.mjs +40 -0
- package/esm/domain/record/shadowRootsController.mjs.map +1 -0
- package/esm/domain/record/startFullSnapshots.mjs +42 -0
- package/esm/domain/record/startFullSnapshots.mjs.map +1 -0
- package/esm/domain/record/trackers/index.mjs +13 -0
- package/esm/domain/record/trackers/trackCanvasCapture.mjs +102 -0
- package/esm/domain/record/trackers/trackCanvasCapture.mjs.map +1 -0
- package/esm/domain/record/trackers/trackCanvasContent.mjs +31 -0
- package/esm/domain/record/trackers/trackCanvasContent.mjs.map +1 -0
- package/esm/domain/record/trackers/trackFocus.mjs +17 -0
- package/esm/domain/record/trackers/trackFocus.mjs.map +1 -0
- package/esm/domain/record/trackers/trackInput.mjs +131 -0
- package/esm/domain/record/trackers/trackInput.mjs.map +1 -0
- package/esm/domain/record/trackers/trackMediaInteraction.mjs +25 -0
- package/esm/domain/record/trackers/trackMediaInteraction.mjs.map +1 -0
- package/esm/domain/record/trackers/trackMouseInteraction.mjs +52 -0
- package/esm/domain/record/trackers/trackMouseInteraction.mjs.map +1 -0
- package/esm/domain/record/trackers/trackMove.mjs +48 -0
- package/esm/domain/record/trackers/trackMove.mjs.map +1 -0
- package/esm/domain/record/trackers/trackMutation.mjs +45 -0
- package/esm/domain/record/trackers/trackMutation.mjs.map +1 -0
- package/esm/domain/record/trackers/trackScroll.mjs +40 -0
- package/esm/domain/record/trackers/trackScroll.mjs.map +1 -0
- package/esm/domain/record/trackers/trackStyleSheet.mjs +79 -0
- package/esm/domain/record/trackers/trackStyleSheet.mjs.map +1 -0
- package/esm/domain/record/trackers/trackViewEnd.mjs +20 -0
- package/esm/domain/record/trackers/trackViewEnd.mjs.map +1 -0
- package/esm/domain/record/trackers/trackViewportResize.mjs +39 -0
- package/esm/domain/record/trackers/trackViewportResize.mjs.map +1 -0
- package/esm/domain/record/viewports.mjs +41 -0
- package/esm/domain/record/viewports.mjs.map +1 -0
- package/esm/domain/replayStats.mjs +46 -0
- package/esm/domain/replayStats.mjs.map +1 -0
- package/esm/domain/scriptLoadingError.mjs +19 -0
- package/esm/domain/scriptLoadingError.mjs.map +1 -0
- package/esm/domain/segmentCollection/buildReplayPayload.mjs +25 -0
- package/esm/domain/segmentCollection/buildReplayPayload.mjs.map +1 -0
- package/esm/domain/segmentCollection/buildResourcePayload.mjs +19 -0
- package/esm/domain/segmentCollection/buildResourcePayload.mjs.map +1 -0
- package/esm/domain/segmentCollection/index.mjs +5 -0
- package/esm/domain/segmentCollection/replayResourceCollection.mjs +52 -0
- package/esm/domain/segmentCollection/replayResourceCollection.mjs.map +1 -0
- package/esm/domain/segmentCollection/segment.mjs +52 -0
- package/esm/domain/segmentCollection/segment.mjs.map +1 -0
- package/esm/domain/segmentCollection/segmentCollection.mjs +87 -0
- package/esm/domain/segmentCollection/segmentCollection.mjs.map +1 -0
- package/esm/domain/segmentCollection/startDroppedSegmentRecovery.mjs +28 -0
- package/esm/domain/segmentCollection/startDroppedSegmentRecovery.mjs.map +1 -0
- package/esm/domain/segmentCollection/startSegmentTelemetry.mjs +45 -0
- package/esm/domain/segmentCollection/startSegmentTelemetry.mjs.map +1 -0
- package/esm/domain/startRecordBridge.mjs +13 -0
- package/esm/domain/startRecordBridge.mjs.map +1 -0
- package/esm/domain/startRecorderInitTelemetry.mjs +47 -0
- package/esm/domain/startRecorderInitTelemetry.mjs.map +1 -0
- package/esm/entries/internal.mjs +8 -0
- package/esm/entries/internalSynthetics.mjs +22 -0
- package/esm/entries/internalSynthetics.mjs.map +1 -0
- package/esm/entries/main.mjs +35 -0
- package/esm/entries/main.mjs.map +1 -0
- package/esm/types/sessionReplayConstants.mjs +97 -0
- package/esm/types/sessionReplayConstants.mjs.map +1 -0
- package/internal/package.json +1 -1
- package/internal-synthetics/package.json +1 -1
- package/package.json +26 -15
- package/src/boot/kubesenseRecorder.ts +134 -0
- package/src/boot/lazyLoadProfiler.ts +6 -7
- package/src/boot/lazyLoadRecorder.ts +6 -7
- package/src/boot/postStartStrategy.ts +18 -16
- package/src/boot/profilerApi.ts +29 -19
- package/src/boot/recorderApi.ts +6 -21
- package/src/domain/deflate/deflateEncoder.ts +3 -8
- package/src/domain/deflate/deflateWorker.ts +8 -13
- package/src/domain/deflate/index.ts +1 -0
- package/src/domain/getSessionReplayLink.ts +15 -11
- package/src/domain/profiling/actionHistory.ts +66 -0
- package/src/domain/profiling/{profiler.ts → kubesenseProfiler.ts} +166 -79
- package/src/domain/profiling/longTaskHistory.ts +45 -0
- package/src/domain/profiling/profilerDebugIds.ts +17 -0
- package/src/domain/profiling/profilingContext.ts +8 -3
- package/src/domain/profiling/profilingSupported.ts +2 -7
- package/src/domain/profiling/quotaCheck.ts +89 -0
- package/src/domain/profiling/test-utils/mockedTrace.ts +1 -2
- package/src/domain/profiling/transport/buildProfileEvent.ts +143 -0
- package/src/domain/profiling/transport/formDataEmitter.ts +17 -0
- package/src/domain/profiling/transport/profilingBridge.ts +9 -0
- package/src/domain/profiling/{types/rumProfiler.types.ts → types.ts} +14 -26
- package/src/domain/profiling/vitalHistory.ts +106 -0
- package/src/domain/record/assembly.ts +5 -3
- package/src/domain/record/canvas/canvasHash.ts +54 -0
- package/src/domain/record/canvas/canvasManager.ts +175 -0
- package/src/domain/record/canvas/canvasSnapshot.ts +52 -0
- package/src/domain/record/canvas/canvasUtils.ts +11 -0
- package/src/domain/record/encoding/changeDecoder.ts +287 -0
- package/src/domain/record/encoding/changeEncoder.ts +327 -0
- package/src/domain/record/encoding/index.ts +19 -0
- package/src/domain/record/encoding/itemIds.ts +84 -0
- package/src/domain/record/encoding/roles.ts +136 -0
- package/src/domain/record/encoding/stringIds.ts +70 -0
- package/src/domain/record/encoding/stringTable.ts +68 -0
- package/src/domain/record/index.ts +5 -2
- package/src/domain/record/internalApi.ts +21 -18
- package/src/domain/record/mutationBatch.ts +14 -3
- package/src/domain/record/record.ts +35 -16
- package/src/domain/record/record.types.ts +1 -0
- package/src/domain/record/recordingScope.ts +28 -5
- package/src/domain/record/serialization/index.ts +4 -2
- package/src/domain/record/serialization/insertionCursor.ts +131 -0
- package/src/domain/record/serialization/serialization.types.ts +0 -16
- package/src/domain/record/serialization/serializationTransaction.ts +191 -37
- package/src/domain/record/serialization/serializationUtils.ts +1 -15
- package/src/domain/record/serialization/serializeAttributes.ts +36 -32
- package/src/domain/record/serialization/serializeFullSnapshot.ts +26 -0
- package/src/domain/record/serialization/serializeMutations.ts +357 -0
- package/src/domain/record/serialization/serializeNode.ts +200 -164
- package/src/domain/record/shadowRootsController.ts +4 -3
- package/src/domain/record/startFullSnapshots.ts +28 -41
- package/src/domain/record/trackers/index.ts +2 -1
- package/src/domain/record/trackers/trackCanvasCapture.ts +137 -0
- package/src/domain/record/trackers/trackCanvasContent.ts +46 -0
- package/src/domain/record/trackers/trackFocus.ts +4 -4
- package/src/domain/record/trackers/trackInput.ts +146 -41
- package/src/domain/record/trackers/trackMediaInteraction.ts +0 -1
- package/src/domain/record/trackers/trackMouseInteraction.ts +1 -2
- package/src/domain/record/trackers/trackMove.ts +0 -1
- package/src/domain/record/trackers/trackMutation.ts +17 -355
- package/src/domain/record/trackers/trackScroll.ts +1 -1
- package/src/domain/record/trackers/trackStyleSheet.ts +1 -1
- package/src/domain/record/trackers/trackViewEnd.ts +1 -1
- package/src/domain/record/trackers/trackViewportResize.ts +7 -16
- package/src/domain/record/trackers/tracker.types.ts +1 -1
- package/src/domain/replayStats.ts +5 -0
- package/src/domain/scriptLoadingError.ts +2 -1
- package/src/domain/segmentCollection/buildResourcePayload.ts +20 -0
- package/src/domain/segmentCollection/index.ts +3 -0
- package/src/domain/segmentCollection/replayResourceCollection.ts +79 -0
- package/src/domain/segmentCollection/segment.ts +2 -1
- package/src/domain/segmentCollection/segmentCollection.ts +14 -13
- package/src/domain/segmentCollection/startDroppedSegmentRecovery.ts +37 -0
- package/src/domain/segmentCollection/startSegmentTelemetry.ts +16 -2
- package/src/domain/startRecorderInitTelemetry.ts +5 -3
- package/src/entries/internal.ts +13 -2
- package/src/entries/internalSynthetics.ts +3 -4
- package/src/entries/main.ts +23 -14
- package/src/types/index.ts +1 -0
- package/src/types/profiling.ts +315 -0
- package/src/types/sessionReplay.ts +395 -3
- package/src/types/sessionReplayConstants.ts +109 -0
- package/bundle/chunks/profiler-6f621c66a29d9f39a9bd-kubesense-rum.js +0 -1
- package/bundle/chunks/recorder-c73b8d42b98d4a01f120-kubesense-rum.js +0 -1
- package/cjs/boot/isBrowserSupported.d.ts +0 -4
- package/cjs/boot/isBrowserSupported.js +0 -17
- package/cjs/boot/isBrowserSupported.js.map +0 -1
- package/cjs/boot/startRecording.d.ts +0 -6
- package/cjs/boot/startRecording.js +0 -45
- package/cjs/boot/startRecording.js.map +0 -1
- package/cjs/domain/deflate/index.js.map +0 -1
- package/cjs/domain/profiling/profiler.d.ts +0 -7
- package/cjs/domain/profiling/profiler.js +0 -244
- package/cjs/domain/profiling/profiler.js.map +0 -1
- package/cjs/domain/profiling/test-utils/mockedTrace.js +0 -57
- package/cjs/domain/profiling/test-utils/mockedTrace.js.map +0 -1
- package/cjs/domain/profiling/transport/assembly.d.ts +0 -21
- package/cjs/domain/profiling/transport/assembly.js +0 -45
- package/cjs/domain/profiling/transport/assembly.js.map +0 -1
- package/cjs/domain/profiling/transport/buildProfileEventAttributes.d.ts +0 -25
- package/cjs/domain/profiling/transport/buildProfileEventAttributes.js +0 -50
- package/cjs/domain/profiling/transport/buildProfileEventAttributes.js.map +0 -1
- package/cjs/domain/profiling/types/index.d.ts +0 -2
- package/cjs/domain/profiling/types/index.js +0 -3
- package/cjs/domain/profiling/types/index.js.map +0 -1
- package/cjs/domain/profiling/types/profilerApi.types.d.ts +0 -58
- package/cjs/domain/profiling/types/profilerApi.types.js +0 -5
- package/cjs/domain/profiling/types/profilerApi.types.js.map +0 -1
- package/cjs/domain/profiling/types/rumProfiler.types.js +0 -3
- package/cjs/domain/profiling/types/rumProfiler.types.js.map +0 -1
- package/cjs/domain/profiling/utils/getNumberOfSamples.d.ts +0 -7
- package/cjs/domain/profiling/utils/getNumberOfSamples.js +0 -18
- package/cjs/domain/profiling/utils/getNumberOfSamples.js.map +0 -1
- package/cjs/domain/record/eventIds.d.ts +0 -4
- package/cjs/domain/record/eventIds.js +0 -16
- package/cjs/domain/record/eventIds.js.map +0 -1
- package/cjs/domain/record/index.js.map +0 -1
- package/cjs/domain/record/nodeIds.d.ts +0 -15
- package/cjs/domain/record/nodeIds.js +0 -32
- package/cjs/domain/record/nodeIds.js.map +0 -1
- package/cjs/domain/record/record.types.js +0 -3
- package/cjs/domain/record/record.types.js.map +0 -1
- package/cjs/domain/record/serialization/index.js.map +0 -1
- package/cjs/domain/record/serialization/serialization.types.js +0 -3
- package/cjs/domain/record/serialization/serialization.types.js.map +0 -1
- package/cjs/domain/record/serialization/serializeDocument.d.ts +0 -3
- package/cjs/domain/record/serialization/serializeDocument.js +0 -11
- package/cjs/domain/record/serialization/serializeDocument.js.map +0 -1
- package/cjs/domain/record/serialization/serializeStyleSheets.d.ts +0 -2
- package/cjs/domain/record/serialization/serializeStyleSheets.js +0 -19
- package/cjs/domain/record/serialization/serializeStyleSheets.js.map +0 -1
- package/cjs/domain/record/trackers/index.js.map +0 -1
- package/cjs/domain/record/trackers/trackFrustration.d.ts +0 -7
- package/cjs/domain/record/trackers/trackFrustration.js +0 -31
- package/cjs/domain/record/trackers/trackFrustration.js.map +0 -1
- package/cjs/domain/record/trackers/tracker.types.js +0 -3
- package/cjs/domain/record/trackers/tracker.types.js.map +0 -1
- package/cjs/domain/segmentCollection/index.js.map +0 -1
- package/cjs/entries/internal.js.map +0 -1
- package/cjs/types/index.js +0 -18
- package/cjs/types/index.js.map +0 -1
- package/cjs/types/sessionReplay.js +0 -7
- package/cjs/types/sessionReplay.js.map +0 -1
- package/esm/boot/isBrowserSupported.d.ts +0 -4
- package/esm/boot/isBrowserSupported.js +0 -14
- package/esm/boot/isBrowserSupported.js.map +0 -1
- package/esm/boot/lazyLoadProfiler.d.ts +0 -4
- package/esm/boot/lazyLoadProfiler.js +0 -18
- package/esm/boot/lazyLoadProfiler.js.map +0 -1
- package/esm/boot/lazyLoadRecorder.d.ts +0 -4
- package/esm/boot/lazyLoadRecorder.js +0 -18
- package/esm/boot/lazyLoadRecorder.js.map +0 -1
- package/esm/boot/postStartStrategy.d.ts +0 -33
- package/esm/boot/postStartStrategy.js +0 -115
- package/esm/boot/postStartStrategy.js.map +0 -1
- package/esm/boot/preStartStrategy.d.ts +0 -6
- package/esm/boot/preStartStrategy.js +0 -21
- package/esm/boot/preStartStrategy.js.map +0 -1
- package/esm/boot/profilerApi.d.ts +0 -2
- package/esm/boot/profilerApi.js +0 -50
- package/esm/boot/profilerApi.js.map +0 -1
- package/esm/boot/recorderApi.d.ts +0 -4
- package/esm/boot/recorderApi.js +0 -70
- package/esm/boot/recorderApi.js.map +0 -1
- package/esm/boot/startRecording.d.ts +0 -6
- package/esm/boot/startRecording.js +0 -42
- package/esm/boot/startRecording.js.map +0 -1
- package/esm/domain/deflate/deflateEncoder.d.ts +0 -3
- package/esm/domain/deflate/deflateEncoder.js +0 -107
- package/esm/domain/deflate/deflateEncoder.js.map +0 -1
- package/esm/domain/deflate/deflateWorker.d.ts +0 -30
- package/esm/domain/deflate/deflateWorker.js +0 -97
- package/esm/domain/deflate/deflateWorker.js.map +0 -1
- package/esm/domain/deflate/index.d.ts +0 -3
- package/esm/domain/deflate/index.js +0 -3
- package/esm/domain/deflate/index.js.map +0 -1
- package/esm/domain/getSessionReplayLink.d.ts +0 -2
- package/esm/domain/getSessionReplayLink.js +0 -32
- package/esm/domain/getSessionReplayLink.js.map +0 -1
- package/esm/domain/profiling/profiler.d.ts +0 -7
- package/esm/domain/profiling/profiler.js +0 -240
- package/esm/domain/profiling/profiler.js.map +0 -1
- package/esm/domain/profiling/profilingContext.d.ts +0 -6
- package/esm/domain/profiling/profilingContext.js +0 -25
- package/esm/domain/profiling/profilingContext.js.map +0 -1
- package/esm/domain/profiling/profilingSupported.d.ts +0 -1
- package/esm/domain/profiling/profilingSupported.js +0 -8
- package/esm/domain/profiling/profilingSupported.js.map +0 -1
- package/esm/domain/profiling/test-utils/mockedTrace.d.ts +0 -3
- package/esm/domain/profiling/test-utils/mockedTrace.js +0 -54
- package/esm/domain/profiling/test-utils/mockedTrace.js.map +0 -1
- package/esm/domain/profiling/transport/assembly.d.ts +0 -21
- package/esm/domain/profiling/transport/assembly.js +0 -42
- package/esm/domain/profiling/transport/assembly.js.map +0 -1
- package/esm/domain/profiling/transport/buildProfileEventAttributes.d.ts +0 -25
- package/esm/domain/profiling/transport/buildProfileEventAttributes.js +0 -47
- package/esm/domain/profiling/transport/buildProfileEventAttributes.js.map +0 -1
- package/esm/domain/profiling/types/index.d.ts +0 -2
- package/esm/domain/profiling/types/index.js +0 -2
- package/esm/domain/profiling/types/index.js.map +0 -1
- package/esm/domain/profiling/types/profilerApi.types.d.ts +0 -58
- package/esm/domain/profiling/types/profilerApi.types.js +0 -4
- package/esm/domain/profiling/types/profilerApi.types.js.map +0 -1
- package/esm/domain/profiling/types/rumProfiler.types.d.ts +0 -72
- package/esm/domain/profiling/types/rumProfiler.types.js +0 -2
- package/esm/domain/profiling/types/rumProfiler.types.js.map +0 -1
- package/esm/domain/profiling/utils/getCustomOrDefaultViewName.d.ts +0 -1
- package/esm/domain/profiling/utils/getCustomOrDefaultViewName.js +0 -3
- package/esm/domain/profiling/utils/getCustomOrDefaultViewName.js.map +0 -1
- package/esm/domain/profiling/utils/getDefaultViewName.d.ts +0 -1
- package/esm/domain/profiling/utils/getDefaultViewName.js +0 -11
- package/esm/domain/profiling/utils/getDefaultViewName.js.map +0 -1
- package/esm/domain/profiling/utils/getNumberOfSamples.d.ts +0 -7
- package/esm/domain/profiling/utils/getNumberOfSamples.js +0 -15
- package/esm/domain/profiling/utils/getNumberOfSamples.js.map +0 -1
- package/esm/domain/record/assembly.d.ts +0 -2
- package/esm/domain/record/assembly.js +0 -13
- package/esm/domain/record/assembly.js.map +0 -1
- package/esm/domain/record/elementsScrollPositions.d.ts +0 -10
- package/esm/domain/record/elementsScrollPositions.js +0 -20
- package/esm/domain/record/elementsScrollPositions.js.map +0 -1
- package/esm/domain/record/eventIds.d.ts +0 -4
- package/esm/domain/record/eventIds.js +0 -13
- package/esm/domain/record/eventIds.js.map +0 -1
- package/esm/domain/record/eventsUtils.d.ts +0 -2
- package/esm/domain/record/eventsUtils.js +0 -11
- package/esm/domain/record/eventsUtils.js.map +0 -1
- package/esm/domain/record/index.d.ts +0 -7
- package/esm/domain/record/index.js +0 -6
- package/esm/domain/record/index.js.map +0 -1
- package/esm/domain/record/internalApi.d.ts +0 -22
- package/esm/domain/record/internalApi.js +0 -53
- package/esm/domain/record/internalApi.js.map +0 -1
- package/esm/domain/record/mutationBatch.d.ts +0 -12
- package/esm/domain/record/mutationBatch.js +0 -40
- package/esm/domain/record/mutationBatch.js.map +0 -1
- package/esm/domain/record/nodeIds.d.ts +0 -15
- package/esm/domain/record/nodeIds.js +0 -29
- package/esm/domain/record/nodeIds.js.map +0 -1
- package/esm/domain/record/record.d.ts +0 -16
- package/esm/domain/record/record.js +0 -54
- package/esm/domain/record/record.js.map +0 -1
- package/esm/domain/record/record.types.d.ts +0 -4
- package/esm/domain/record/record.types.js +0 -2
- package/esm/domain/record/record.types.js.map +0 -1
- package/esm/domain/record/recordingScope.d.ts +0 -19
- package/esm/domain/record/recordingScope.js +0 -10
- package/esm/domain/record/recordingScope.js.map +0 -1
- package/esm/domain/record/serialization/index.d.ts +0 -8
- package/esm/domain/record/serialization/index.js +0 -7
- package/esm/domain/record/serialization/index.js.map +0 -1
- package/esm/domain/record/serialization/serialization.types.d.ts +0 -28
- package/esm/domain/record/serialization/serialization.types.js +0 -2
- package/esm/domain/record/serialization/serialization.types.js.map +0 -1
- package/esm/domain/record/serialization/serializationStats.d.ts +0 -12
- package/esm/domain/record/serialization/serializationStats.js +0 -27
- package/esm/domain/record/serialization/serializationStats.js.map +0 -1
- package/esm/domain/record/serialization/serializationTransaction.d.ts +0 -45
- package/esm/domain/record/serialization/serializationTransaction.js +0 -35
- package/esm/domain/record/serialization/serializationTransaction.js.map +0 -1
- package/esm/domain/record/serialization/serializationUtils.d.ts +0 -18
- package/esm/domain/record/serialization/serializationUtils.js +0 -80
- package/esm/domain/record/serialization/serializationUtils.js.map +0 -1
- package/esm/domain/record/serialization/serializeAttribute.d.ts +0 -4
- package/esm/domain/record/serialization/serializeAttribute.js +0 -38
- package/esm/domain/record/serialization/serializeAttribute.js.map +0 -1
- package/esm/domain/record/serialization/serializeAttributes.d.ts +0 -7
- package/esm/domain/record/serialization/serializeAttributes.js +0 -161
- package/esm/domain/record/serialization/serializeAttributes.js.map +0 -1
- package/esm/domain/record/serialization/serializeDocument.d.ts +0 -3
- package/esm/domain/record/serialization/serializeDocument.js +0 -8
- package/esm/domain/record/serialization/serializeDocument.js.map +0 -1
- package/esm/domain/record/serialization/serializeNode.d.ts +0 -7
- package/esm/domain/record/serialization/serializeNode.js +0 -149
- package/esm/domain/record/serialization/serializeNode.js.map +0 -1
- package/esm/domain/record/serialization/serializeStyleSheets.d.ts +0 -2
- package/esm/domain/record/serialization/serializeStyleSheets.js +0 -16
- package/esm/domain/record/serialization/serializeStyleSheets.js.map +0 -1
- package/esm/domain/record/shadowRootsController.d.ts +0 -11
- package/esm/domain/record/shadowRootsController.js +0 -41
- package/esm/domain/record/shadowRootsController.js.map +0 -1
- package/esm/domain/record/startFullSnapshots.d.ts +0 -9
- package/esm/domain/record/startFullSnapshots.js +0 -55
- package/esm/domain/record/startFullSnapshots.js.map +0 -1
- package/esm/domain/record/trackers/index.d.ts +0 -12
- package/esm/domain/record/trackers/index.js +0 -12
- package/esm/domain/record/trackers/index.js.map +0 -1
- package/esm/domain/record/trackers/trackFocus.d.ts +0 -5
- package/esm/domain/record/trackers/trackFocus.js +0 -12
- package/esm/domain/record/trackers/trackFocus.js.map +0 -1
- package/esm/domain/record/trackers/trackFrustration.d.ts +0 -7
- package/esm/domain/record/trackers/trackFrustration.js +0 -28
- package/esm/domain/record/trackers/trackFrustration.js.map +0 -1
- package/esm/domain/record/trackers/trackInput.d.ts +0 -4
- package/esm/domain/record/trackers/trackInput.js +0 -101
- package/esm/domain/record/trackers/trackInput.js.map +0 -1
- package/esm/domain/record/trackers/trackMediaInteraction.d.ts +0 -5
- package/esm/domain/record/trackers/trackMediaInteraction.js +0 -26
- package/esm/domain/record/trackers/trackMediaInteraction.js.map +0 -1
- package/esm/domain/record/trackers/trackMouseInteraction.d.ts +0 -5
- package/esm/domain/record/trackers/trackMouseInteraction.js +0 -56
- package/esm/domain/record/trackers/trackMouseInteraction.js.map +0 -1
- package/esm/domain/record/trackers/trackMove.d.ts +0 -9
- package/esm/domain/record/trackers/trackMove.js +0 -51
- package/esm/domain/record/trackers/trackMove.js.map +0 -1
- package/esm/domain/record/trackers/trackMutation.d.ts +0 -11
- package/esm/domain/record/trackers/trackMutation.js +0 -266
- package/esm/domain/record/trackers/trackMutation.js.map +0 -1
- package/esm/domain/record/trackers/trackScroll.d.ts +0 -5
- package/esm/domain/record/trackers/trackScroll.js +0 -45
- package/esm/domain/record/trackers/trackScroll.js.map +0 -1
- package/esm/domain/record/trackers/trackStyleSheet.d.ts +0 -6
- package/esm/domain/record/trackers/trackStyleSheet.js +0 -85
- package/esm/domain/record/trackers/trackStyleSheet.js.map +0 -1
- package/esm/domain/record/trackers/trackViewEnd.d.ts +0 -5
- package/esm/domain/record/trackers/trackViewEnd.js +0 -17
- package/esm/domain/record/trackers/trackViewEnd.js.map +0 -1
- package/esm/domain/record/trackers/trackViewportResize.d.ts +0 -6
- package/esm/domain/record/trackers/trackViewportResize.js +0 -42
- package/esm/domain/record/trackers/trackViewportResize.js.map +0 -1
- package/esm/domain/record/trackers/tracker.types.d.ts +0 -3
- package/esm/domain/record/trackers/tracker.types.js +0 -2
- package/esm/domain/record/trackers/tracker.types.js.map +0 -1
- package/esm/domain/record/viewports.d.ts +0 -20
- package/esm/domain/record/viewports.js +0 -55
- package/esm/domain/record/viewports.js.map +0 -1
- package/esm/domain/replayStats.d.ts +0 -8
- package/esm/domain/replayStats.js +0 -51
- package/esm/domain/replayStats.js.map +0 -1
- package/esm/domain/scriptLoadingError.d.ts +0 -6
- package/esm/domain/scriptLoadingError.js +0 -23
- package/esm/domain/scriptLoadingError.js.map +0 -1
- package/esm/domain/segmentCollection/buildReplayPayload.d.ts +0 -15
- package/esm/domain/segmentCollection/buildReplayPayload.js +0 -23
- package/esm/domain/segmentCollection/buildReplayPayload.js.map +0 -1
- package/esm/domain/segmentCollection/index.d.ts +0 -4
- package/esm/domain/segmentCollection/index.js +0 -4
- package/esm/domain/segmentCollection/index.js.map +0 -1
- package/esm/domain/segmentCollection/segment.d.ts +0 -16
- package/esm/domain/segmentCollection/segment.js +0 -46
- package/esm/domain/segmentCollection/segment.js.map +0 -1
- package/esm/domain/segmentCollection/segmentCollection.d.ts +0 -31
- package/esm/domain/segmentCollection/segmentCollection.js +0 -106
- package/esm/domain/segmentCollection/segmentCollection.js.map +0 -1
- package/esm/domain/segmentCollection/startSegmentTelemetry.d.ts +0 -6
- package/esm/domain/segmentCollection/startSegmentTelemetry.js +0 -44
- package/esm/domain/segmentCollection/startSegmentTelemetry.js.map +0 -1
- package/esm/domain/startRecordBridge.d.ts +0 -5
- package/esm/domain/startRecordBridge.js +0 -14
- package/esm/domain/startRecordBridge.js.map +0 -1
- package/esm/domain/startRecorderInitTelemetry.d.ts +0 -15
- package/esm/domain/startRecorderInitTelemetry.js +0 -52
- package/esm/domain/startRecorderInitTelemetry.js.map +0 -1
- package/esm/entries/internal.d.ts +0 -11
- package/esm/entries/internal.js +0 -4
- package/esm/entries/internal.js.map +0 -1
- package/esm/entries/internalSynthetics.d.ts +0 -2
- package/esm/entries/internalSynthetics.js +0 -23
- package/esm/entries/internalSynthetics.js.map +0 -1
- package/esm/entries/main.d.ts +0 -23
- package/esm/entries/main.js +0 -31
- package/esm/entries/main.js.map +0 -1
- package/esm/types/index.d.ts +0 -2
- package/esm/types/index.js +0 -2
- package/esm/types/index.js.map +0 -1
- package/esm/types/sessionReplay.d.ts +0 -703
- package/esm/types/sessionReplay.js +0 -6
- package/esm/types/sessionReplay.js.map +0 -1
- package/esm/types/sessionReplayConstants.d.ts +0 -49
- package/esm/types/sessionReplayConstants.js +0 -46
- package/esm/types/sessionReplayConstants.js.map +0 -1
- package/src/boot/isBrowserSupported.ts +0 -14
- package/src/boot/startRecording.ts +0 -70
- package/src/domain/profiling/transport/assembly.ts +0 -78
- package/src/domain/profiling/transport/buildProfileEventAttributes.ts +0 -66
- package/src/domain/profiling/types/index.ts +0 -2
- package/src/domain/profiling/types/profilerApi.types.ts +0 -87
- package/src/domain/profiling/utils/getNumberOfSamples.ts +0 -16
- package/src/domain/record/eventIds.ts +0 -17
- package/src/domain/record/nodeIds.ts +0 -46
- package/src/domain/record/serialization/serializeDocument.ts +0 -13
- package/src/domain/record/serialization/serializeStyleSheets.ts +0 -18
- package/src/domain/record/trackers/trackFrustration.ts +0 -41
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
import type { TimeoutId, ClocksState } from '@kubesense/kubesense-browser-core';
|
|
2
|
-
import type { LongTaskContext } from '@kubesense/kubesense-browser-rum-core';
|
|
3
|
-
import type { ProfilerTrace, Profiler } from './profilerApi.types';
|
|
4
|
-
export interface RumViewEntry {
|
|
5
|
-
/** Detected start time of view */
|
|
6
|
-
readonly startClocks: ClocksState;
|
|
7
|
-
/** RUM view id */
|
|
8
|
-
readonly viewId: string;
|
|
9
|
-
/** RUM view name */
|
|
10
|
-
readonly viewName: string | undefined;
|
|
11
|
-
}
|
|
12
|
-
/**
|
|
13
|
-
* Additional data recorded during profiling session
|
|
14
|
-
*/
|
|
15
|
-
export interface RumProfilerEnrichmentData {
|
|
16
|
-
/** List of detected long tasks */
|
|
17
|
-
readonly longTasks: LongTaskContext[];
|
|
18
|
-
/** List of detected navigation entries */
|
|
19
|
-
readonly views: RumViewEntry[];
|
|
20
|
-
}
|
|
21
|
-
export interface RumProfilerTrace extends ProfilerTrace, RumProfilerEnrichmentData {
|
|
22
|
-
/** High resolution time when profiler trace started, relative to the profiling session's time origin */
|
|
23
|
-
readonly startClocks: ClocksState;
|
|
24
|
-
/** High resolution time when profiler trace ended, relative to the profiling session's time origin */
|
|
25
|
-
readonly endClocks: ClocksState;
|
|
26
|
-
/** Time origin of the profiling session */
|
|
27
|
-
readonly clocksOrigin: ClocksState;
|
|
28
|
-
/** Sample interval in milliseconds */
|
|
29
|
-
readonly sampleInterval: number;
|
|
30
|
-
}
|
|
31
|
-
/**
|
|
32
|
-
* Describes profiler session state when it's stopped
|
|
33
|
-
*/
|
|
34
|
-
export interface RumProfilerStoppedInstance {
|
|
35
|
-
readonly state: 'stopped';
|
|
36
|
-
readonly stateReason: 'session-expired' | 'stopped-by-user' | 'initializing';
|
|
37
|
-
}
|
|
38
|
-
/**
|
|
39
|
-
* Describes profiler session state when it's paused
|
|
40
|
-
* (this happens when user focuses on a different tab)
|
|
41
|
-
*/
|
|
42
|
-
export interface RumProfilerPausedInstance {
|
|
43
|
-
readonly state: 'paused';
|
|
44
|
-
}
|
|
45
|
-
/**
|
|
46
|
-
* Describes profiler session state when it's running
|
|
47
|
-
*/
|
|
48
|
-
export interface RumProfilerRunningInstance extends RumProfilerEnrichmentData {
|
|
49
|
-
readonly state: 'running';
|
|
50
|
-
/** Current profiler instance */
|
|
51
|
-
readonly profiler: Profiler;
|
|
52
|
-
/** High resolution time when profiler session started */
|
|
53
|
-
readonly startClocks: ClocksState;
|
|
54
|
-
/** Timeout id to stop current session */
|
|
55
|
-
readonly timeoutId: TimeoutId;
|
|
56
|
-
/** Clean-up tasks to execute after running the Profiler */
|
|
57
|
-
readonly cleanupTasks: Array<() => void>;
|
|
58
|
-
}
|
|
59
|
-
export type RumProfilerInstance = RumProfilerStoppedInstance | RumProfilerPausedInstance | RumProfilerRunningInstance;
|
|
60
|
-
export interface RUMProfiler {
|
|
61
|
-
start: () => void;
|
|
62
|
-
stop: () => Promise<void>;
|
|
63
|
-
isStopped: () => boolean;
|
|
64
|
-
isRunning: () => boolean;
|
|
65
|
-
isPaused: () => boolean;
|
|
66
|
-
}
|
|
67
|
-
export interface RUMProfilerConfiguration {
|
|
68
|
-
sampleIntervalMs: number;
|
|
69
|
-
collectIntervalMs: number;
|
|
70
|
-
minProfileDurationMs: number;
|
|
71
|
-
minNumberOfSamples: number;
|
|
72
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"rumProfiler.types.js","sourceRoot":"","sources":["../../../../src/domain/profiling/types/rumProfiler.types.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const getCustomOrDefaultViewName: (customViewName: string | undefined, viewPathUrl: string) => string;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getCustomOrDefaultViewName.js","sourceRoot":"","sources":["../../../../src/domain/profiling/utils/getCustomOrDefaultViewName.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAA;AAEzD,MAAM,CAAC,MAAM,0BAA0B,GAAG,CAAC,cAAkC,EAAE,WAAmB,EAAU,EAAE,CAC5G,cAAc,IAAI,kBAAkB,CAAC,WAAW,CAAC,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function getDefaultViewName(viewPathUrl: string): string;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
// This is the regex used to extract the path from the url (from SimpleUrlGroupingProcessor.java)
|
|
2
|
-
// It's a bit different from the one in the java code because we removed the lookbehind unsupported by Safari.
|
|
3
|
-
const PATH_MIXED_ALPHANUMERICS = /\/(?![vV]\d{1,2}\/)([^/\d?]*\d+[^/?]*)/g;
|
|
4
|
-
export function getDefaultViewName(viewPathUrl) {
|
|
5
|
-
if (!viewPathUrl) {
|
|
6
|
-
return '/';
|
|
7
|
-
}
|
|
8
|
-
// Replace all the mixed alphanumerics with a ?
|
|
9
|
-
return viewPathUrl.replace(PATH_MIXED_ALPHANUMERICS, '/?');
|
|
10
|
-
}
|
|
11
|
-
//# sourceMappingURL=getDefaultViewName.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getDefaultViewName.js","sourceRoot":"","sources":["../../../../src/domain/profiling/utils/getDefaultViewName.ts"],"names":[],"mappings":"AAAA,iGAAiG;AACjG,8GAA8G;AAC9G,MAAM,wBAAwB,GAAG,yCAAyC,CAAA;AAE1E,MAAM,UAAU,kBAAkB,CAAC,WAAmB;IACpD,IAAI,CAAC,WAAW,EAAE,CAAC;QACjB,OAAO,GAAG,CAAA;IACZ,CAAC;IAED,+CAA+C;IAC/C,OAAO,WAAW,CAAC,OAAO,CAAC,wBAAwB,EAAE,IAAI,CAAC,CAAA;AAC5D,CAAC"}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import type { ProfilerSample } from '../types';
|
|
2
|
-
/**
|
|
3
|
-
* Counts number of samples when the thread was not idle (stackId is defined)
|
|
4
|
-
* @param samples Array of collected samples
|
|
5
|
-
* @returns Number of samples
|
|
6
|
-
*/
|
|
7
|
-
export declare function getNumberOfSamples(samples: ProfilerSample[]): number;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Counts number of samples when the thread was not idle (stackId is defined)
|
|
3
|
-
* @param samples Array of collected samples
|
|
4
|
-
* @returns Number of samples
|
|
5
|
-
*/
|
|
6
|
-
export function getNumberOfSamples(samples) {
|
|
7
|
-
let numberOfSamples = 0;
|
|
8
|
-
for (const sample of samples) {
|
|
9
|
-
if (sample.stackId !== undefined) {
|
|
10
|
-
numberOfSamples++;
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
return numberOfSamples;
|
|
14
|
-
}
|
|
15
|
-
//# sourceMappingURL=getNumberOfSamples.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getNumberOfSamples.js","sourceRoot":"","sources":["../../../../src/domain/profiling/utils/getNumberOfSamples.ts"],"names":[],"mappings":"AAEA;;;;GAIG;AACH,MAAM,UAAU,kBAAkB,CAAC,OAAyB;IAC1D,IAAI,eAAe,GAAG,CAAC,CAAA;IACvB,KAAK,MAAM,MAAM,IAAI,OAAO,EAAE,CAAC;QAC7B,IAAI,MAAM,CAAC,OAAO,KAAK,SAAS,EAAE,CAAC;YACjC,eAAe,EAAE,CAAA;QACnB,CAAC;IACH,CAAC;IACD,OAAO,eAAe,CAAA;AACxB,CAAC"}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { timeStampNow } from '@kubesense/kubesense-browser-core';
|
|
2
|
-
import { RecordType } from '../../types';
|
|
3
|
-
export function assembleIncrementalSnapshot(source, data) {
|
|
4
|
-
return {
|
|
5
|
-
data: {
|
|
6
|
-
source,
|
|
7
|
-
...data,
|
|
8
|
-
},
|
|
9
|
-
type: RecordType.IncrementalSnapshot,
|
|
10
|
-
timestamp: timeStampNow(),
|
|
11
|
-
};
|
|
12
|
-
}
|
|
13
|
-
//# sourceMappingURL=assembly.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"assembly.js","sourceRoot":"","sources":["../../../src/domain/record/assembly.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,mCAAmC,CAAA;AAEhE,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAA;AAExC,MAAM,UAAU,2BAA2B,CACzC,MAAsB,EACtB,IAA0B;IAE1B,OAAO;QACL,IAAI,EAAE;YACJ,MAAM;YACN,GAAG,IAAI;SACA;QACT,IAAI,EAAE,UAAU,CAAC,mBAAmB;QACpC,SAAS,EAAE,YAAY,EAAE;KAC1B,CAAA;AACH,CAAC"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
export type ElementsScrollPositions = ReturnType<typeof createElementsScrollPositions>;
|
|
2
|
-
export interface ScrollPositions {
|
|
3
|
-
scrollLeft: number;
|
|
4
|
-
scrollTop: number;
|
|
5
|
-
}
|
|
6
|
-
export declare function createElementsScrollPositions(): {
|
|
7
|
-
set(element: Element | Document, scrollPositions: ScrollPositions): void;
|
|
8
|
-
get(element: Element): ScrollPositions | undefined;
|
|
9
|
-
has(element: Element): boolean;
|
|
10
|
-
};
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
export function createElementsScrollPositions() {
|
|
2
|
-
const scrollPositionsByElement = new WeakMap();
|
|
3
|
-
return {
|
|
4
|
-
set(element, scrollPositions) {
|
|
5
|
-
if (element === document && !document.scrollingElement) {
|
|
6
|
-
// cf https://drafts.csswg.org/cssom-view/#dom-document-scrollingelement,
|
|
7
|
-
// in some cases scrolling elements can not be defined, we don't support those for now
|
|
8
|
-
return;
|
|
9
|
-
}
|
|
10
|
-
scrollPositionsByElement.set(element === document ? document.scrollingElement : element, scrollPositions);
|
|
11
|
-
},
|
|
12
|
-
get(element) {
|
|
13
|
-
return scrollPositionsByElement.get(element);
|
|
14
|
-
},
|
|
15
|
-
has(element) {
|
|
16
|
-
return scrollPositionsByElement.has(element);
|
|
17
|
-
},
|
|
18
|
-
};
|
|
19
|
-
}
|
|
20
|
-
//# sourceMappingURL=elementsScrollPositions.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"elementsScrollPositions.js","sourceRoot":"","sources":["../../../src/domain/record/elementsScrollPositions.ts"],"names":[],"mappings":"AAMA,MAAM,UAAU,6BAA6B;IAC3C,MAAM,wBAAwB,GAAG,IAAI,OAAO,EAA4B,CAAA;IACxE,OAAO;QACL,GAAG,CAAC,OAA2B,EAAE,eAAgC;YAC/D,IAAI,OAAO,KAAK,QAAQ,IAAI,CAAC,QAAQ,CAAC,gBAAgB,EAAE,CAAC;gBACvD,yEAAyE;gBACzE,sFAAsF;gBACtF,OAAM;YACR,CAAC;YACD,wBAAwB,CAAC,GAAG,CAC1B,OAAO,KAAK,QAAQ,CAAC,CAAC,CAAC,QAAQ,CAAC,gBAAiB,CAAC,CAAC,CAAE,OAAmB,EACxE,eAAe,CAChB,CAAA;QACH,CAAC;QACD,GAAG,CAAC,OAAgB;YAClB,OAAO,wBAAwB,CAAC,GAAG,CAAC,OAAO,CAAC,CAAA;QAC9C,CAAC;QACD,GAAG,CAAC,OAAgB;YAClB,OAAO,wBAAwB,CAAC,GAAG,CAAC,OAAO,CAAC,CAAA;QAC9C,CAAC;KACF,CAAA;AACH,CAAC"}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
export function createEventIds() {
|
|
2
|
-
const eventIds = new WeakMap();
|
|
3
|
-
let nextId = 1;
|
|
4
|
-
return {
|
|
5
|
-
getIdForEvent(event) {
|
|
6
|
-
if (!eventIds.has(event)) {
|
|
7
|
-
eventIds.set(event, nextId++);
|
|
8
|
-
}
|
|
9
|
-
return eventIds.get(event);
|
|
10
|
-
},
|
|
11
|
-
};
|
|
12
|
-
}
|
|
13
|
-
//# sourceMappingURL=eventIds.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"eventIds.js","sourceRoot":"","sources":["../../../src/domain/record/eventIds.ts"],"names":[],"mappings":"AAIA,MAAM,UAAU,cAAc;IAC5B,MAAM,QAAQ,GAAG,IAAI,OAAO,EAAiB,CAAA;IAC7C,IAAI,MAAM,GAAG,CAAC,CAAA;IAEd,OAAO;QACL,aAAa,CAAC,KAAY;YACxB,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,KAAK,CAAC,EAAE,CAAC;gBACzB,QAAQ,CAAC,GAAG,CAAC,KAAK,EAAE,MAAM,EAAE,CAAC,CAAA;YAC/B,CAAC;YACD,OAAO,QAAQ,CAAC,GAAG,CAAC,KAAK,CAAE,CAAA;QAC7B,CAAC;KACF,CAAA;AACH,CAAC"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { isNodeShadowHost } from '@kubesense/kubesense-browser-rum-core';
|
|
2
|
-
export function isTouchEvent(event) {
|
|
3
|
-
return Boolean(event.changedTouches);
|
|
4
|
-
}
|
|
5
|
-
export function getEventTarget(event) {
|
|
6
|
-
if (event.composed === true && isNodeShadowHost(event.target)) {
|
|
7
|
-
return event.composedPath()[0];
|
|
8
|
-
}
|
|
9
|
-
return event.target;
|
|
10
|
-
}
|
|
11
|
-
//# sourceMappingURL=eventsUtils.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"eventsUtils.js","sourceRoot":"","sources":["../../../src/domain/record/eventsUtils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,uCAAuC,CAAA;AAExE,MAAM,UAAU,YAAY,CAAC,KAA8B;IACzD,OAAO,OAAO,CAAE,KAAoB,CAAC,cAAc,CAAC,CAAA;AACtD,CAAC;AAED,MAAM,UAAU,cAAc,CAAC,KAAY;IACzC,IAAI,KAAK,CAAC,QAAQ,KAAK,IAAI,IAAI,gBAAgB,CAAC,KAAK,CAAC,MAAc,CAAC,EAAE,CAAC;QACtE,OAAO,KAAK,CAAC,YAAY,EAAE,CAAC,CAAC,CAAS,CAAA;IACxC,CAAC;IACD,OAAO,KAAK,CAAC,MAAc,CAAA;AAC7B,CAAC"}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
export { takeFullSnapshot, takeNodeSnapshot } from './internalApi';
|
|
2
|
-
export { record } from './record';
|
|
3
|
-
export type { SerializationMetric, SerializationStats } from './serialization';
|
|
4
|
-
export { createSerializationStats, aggregateSerializationStats } from './serialization';
|
|
5
|
-
export { serializeNode, serializeDocument } from './serialization';
|
|
6
|
-
export { createElementsScrollPositions } from './elementsScrollPositions';
|
|
7
|
-
export type { ShadowRootsController } from './shadowRootsController';
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
export { takeFullSnapshot, takeNodeSnapshot } from './internalApi';
|
|
2
|
-
export { record } from './record';
|
|
3
|
-
export { createSerializationStats, aggregateSerializationStats } from './serialization';
|
|
4
|
-
export { serializeNode, serializeDocument } from './serialization';
|
|
5
|
-
export { createElementsScrollPositions } from './elementsScrollPositions';
|
|
6
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/domain/record/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAA;AAClE,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAA;AAEjC,OAAO,EAAE,wBAAwB,EAAE,2BAA2B,EAAE,MAAM,iBAAiB,CAAA;AACvF,OAAO,EAAE,aAAa,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAA;AAClE,OAAO,EAAE,6BAA6B,EAAE,MAAM,2BAA2B,CAAA"}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import type { RumConfiguration } from '@kubesense/kubesense-browser-rum-core';
|
|
2
|
-
import type { BrowserRecord, SerializedNodeWithId } from '../../types';
|
|
3
|
-
/**
|
|
4
|
-
* Take a full snapshot of the document, generating the same records that the Kubesense browser SDK
|
|
5
|
-
* would generate.
|
|
6
|
-
*
|
|
7
|
-
* This is an internal API function. Be sure to update kubesense-internal callers if you
|
|
8
|
-
* change its signature or behavior.
|
|
9
|
-
*/
|
|
10
|
-
export declare function takeFullSnapshot({ configuration, }?: {
|
|
11
|
-
configuration?: Partial<RumConfiguration>;
|
|
12
|
-
}): BrowserRecord[];
|
|
13
|
-
/**
|
|
14
|
-
* Take a snapshot of a DOM node, generating the serialized representation that the
|
|
15
|
-
* kubesense browser SDK would generate.
|
|
16
|
-
*
|
|
17
|
-
* This is an internal API function. Be sure to update Kubesense-internal callers if you
|
|
18
|
-
* change its signature or behavior.
|
|
19
|
-
*/
|
|
20
|
-
export declare function takeNodeSnapshot(node: Node, { configuration }?: {
|
|
21
|
-
configuration?: Partial<RumConfiguration>;
|
|
22
|
-
}): SerializedNodeWithId | null;
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
import { noop, timeStampNow } from '@kubesense/kubesense-browser-core';
|
|
2
|
-
import { getNodePrivacyLevel, NodePrivacyLevel } from '@kubesense/kubesense-browser-rum-core';
|
|
3
|
-
import { takeFullSnapshot as doTakeFullSnapshot } from './startFullSnapshots';
|
|
4
|
-
import { createRecordingScope } from './recordingScope';
|
|
5
|
-
import { createElementsScrollPositions } from './elementsScrollPositions';
|
|
6
|
-
import { createEventIds } from './eventIds';
|
|
7
|
-
import { createNodeIds } from './nodeIds';
|
|
8
|
-
import { serializeInTransaction, serializeNode } from './serialization';
|
|
9
|
-
/**
|
|
10
|
-
* Take a full snapshot of the document, generating the same records that the Kubesense browser SDK
|
|
11
|
-
* would generate.
|
|
12
|
-
*
|
|
13
|
-
* This is an internal API function. Be sure to update kubesense-internal callers if you
|
|
14
|
-
* change its signature or behavior.
|
|
15
|
-
*/
|
|
16
|
-
export function takeFullSnapshot({ configuration, } = {}) {
|
|
17
|
-
const records = [];
|
|
18
|
-
const emitRecord = (record) => {
|
|
19
|
-
records.push(record);
|
|
20
|
-
};
|
|
21
|
-
doTakeFullSnapshot(timeStampNow(), 0 /* SerializationKind.INITIAL_FULL_SNAPSHOT */, emitRecord, noop, createTemporaryRecordingScope(configuration));
|
|
22
|
-
return records;
|
|
23
|
-
}
|
|
24
|
-
/**
|
|
25
|
-
* Take a snapshot of a DOM node, generating the serialized representation that the
|
|
26
|
-
* kubesense browser SDK would generate.
|
|
27
|
-
*
|
|
28
|
-
* This is an internal API function. Be sure to update Kubesense-internal callers if you
|
|
29
|
-
* change its signature or behavior.
|
|
30
|
-
*/
|
|
31
|
-
export function takeNodeSnapshot(node, { configuration } = {}) {
|
|
32
|
-
let serializedNode = null;
|
|
33
|
-
serializeInTransaction(0 /* SerializationKind.INITIAL_FULL_SNAPSHOT */, noop, noop, createTemporaryRecordingScope(configuration), (transaction) => {
|
|
34
|
-
const privacyLevel = getNodePrivacyLevel(node, transaction.scope.configuration.defaultPrivacyLevel);
|
|
35
|
-
if (privacyLevel === NodePrivacyLevel.HIDDEN || privacyLevel === NodePrivacyLevel.IGNORE) {
|
|
36
|
-
return;
|
|
37
|
-
}
|
|
38
|
-
serializedNode = serializeNode(node, privacyLevel, transaction);
|
|
39
|
-
});
|
|
40
|
-
return serializedNode;
|
|
41
|
-
}
|
|
42
|
-
function createTemporaryRecordingScope(configuration) {
|
|
43
|
-
return createRecordingScope({
|
|
44
|
-
defaultPrivacyLevel: NodePrivacyLevel.ALLOW,
|
|
45
|
-
...configuration,
|
|
46
|
-
}, createElementsScrollPositions(), createEventIds(), createNodeIds(), {
|
|
47
|
-
addShadowRoot: noop,
|
|
48
|
-
removeShadowRoot: noop,
|
|
49
|
-
flush: noop,
|
|
50
|
-
stop: noop,
|
|
51
|
-
});
|
|
52
|
-
}
|
|
53
|
-
//# sourceMappingURL=internalApi.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"internalApi.js","sourceRoot":"","sources":["../../../src/domain/record/internalApi.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,YAAY,EAAE,MAAM,mCAAmC,CAAA;AAEtE,OAAO,EAAE,mBAAmB,EAAE,gBAAgB,EAAE,MAAM,uCAAuC,CAAA;AAE7F,OAAO,EAAE,gBAAgB,IAAI,kBAAkB,EAAE,MAAM,sBAAsB,CAAA;AAG7E,OAAO,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAA;AACvD,OAAO,EAAE,6BAA6B,EAAE,MAAM,2BAA2B,CAAA;AACzE,OAAO,EAAE,cAAc,EAAE,MAAM,YAAY,CAAA;AAC3C,OAAO,EAAE,aAAa,EAAE,MAAM,WAAW,CAAA;AAGzC,OAAO,EAAqB,sBAAsB,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAA;AAE1F;;;;;;GAMG;AACH,MAAM,UAAU,gBAAgB,CAAC,EAC/B,aAAa,MACoC,EAAE;IACnD,MAAM,OAAO,GAAoB,EAAE,CAAA;IACnC,MAAM,UAAU,GAAuB,CAAC,MAAqB,EAAE,EAAE;QAC/D,OAAO,CAAC,IAAI,CAAC,MAAM,CAAC,CAAA;IACtB,CAAC,CAAA;IAED,kBAAkB,CAChB,YAAY,EAAE,mDAEd,UAAU,EACV,IAAI,EACJ,6BAA6B,CAAC,aAAa,CAAC,CAC7C,CAAA;IAED,OAAO,OAAO,CAAA;AAChB,CAAC;AAED;;;;;;GAMG;AACH,MAAM,UAAU,gBAAgB,CAC9B,IAAU,EACV,EAAE,aAAa,KAAoD,EAAE;IAErE,IAAI,cAAc,GAAgC,IAAI,CAAA;IAEtD,sBAAsB,kDAEpB,IAAI,EACJ,IAAI,EACJ,6BAA6B,CAAC,aAAa,CAAC,EAC5C,CAAC,WAAqC,EAAQ,EAAE;QAC9C,MAAM,YAAY,GAAG,mBAAmB,CAAC,IAAI,EAAE,WAAW,CAAC,KAAK,CAAC,aAAa,CAAC,mBAAmB,CAAC,CAAA;QACnG,IAAI,YAAY,KAAK,gBAAgB,CAAC,MAAM,IAAI,YAAY,KAAK,gBAAgB,CAAC,MAAM,EAAE,CAAC;YACzF,OAAM;QACR,CAAC;QACD,cAAc,GAAG,aAAa,CAAC,IAAI,EAAE,YAAY,EAAE,WAAW,CAAC,CAAA;IACjE,CAAC,CACF,CAAA;IAED,OAAO,cAAc,CAAA;AACvB,CAAC;AAED,SAAS,6BAA6B,CAAC,aAAyC;IAC9E,OAAO,oBAAoB,CACzB;QACE,mBAAmB,EAAE,gBAAgB,CAAC,KAAK;QAC3C,GAAG,aAAa;KACG,EACrB,6BAA6B,EAAE,EAC/B,cAAc,EAAE,EAChB,aAAa,EAAE,EACf;QACE,aAAa,EAAE,IAAI;QACnB,gBAAgB,EAAE,IAAI;QACtB,KAAK,EAAE,IAAI;QACX,IAAI,EAAE,IAAI;KACc,CAC3B,CAAA;AACH,CAAC"}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import type { RumMutationRecord } from '@kubesense/kubesense-browser-rum-core';
|
|
2
|
-
/**
|
|
3
|
-
* Minimum duration to wait before processing mutations. This is used to batch mutations together
|
|
4
|
-
* and be able to deduplicate them to save processing time and bandwidth.
|
|
5
|
-
* 16ms is the duration of a frame at 60fps that ensure fluid UI.
|
|
6
|
-
*/
|
|
7
|
-
export declare const MUTATION_PROCESS_MIN_DELAY = 16;
|
|
8
|
-
export declare function createMutationBatch(processMutationBatch: (mutations: RumMutationRecord[]) => void): {
|
|
9
|
-
addMutations: (mutations: RumMutationRecord[]) => void;
|
|
10
|
-
flush: () => void;
|
|
11
|
-
stop: () => void;
|
|
12
|
-
};
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import { noop, throttle, requestIdleCallback } from '@kubesense/kubesense-browser-core';
|
|
2
|
-
/**
|
|
3
|
-
* Maximum duration to wait before processing mutations. If the browser is idle, mutations will be
|
|
4
|
-
* processed more quickly. If the browser is busy executing small tasks (ex: rendering frames), the
|
|
5
|
-
* mutations will wait MUTATION_PROCESS_MAX_DELAY milliseconds before being processed. If the
|
|
6
|
-
* browser is busy executing a longer task, mutations will be processed after this task.
|
|
7
|
-
*/
|
|
8
|
-
const MUTATION_PROCESS_MAX_DELAY = 100;
|
|
9
|
-
/**
|
|
10
|
-
* Minimum duration to wait before processing mutations. This is used to batch mutations together
|
|
11
|
-
* and be able to deduplicate them to save processing time and bandwidth.
|
|
12
|
-
* 16ms is the duration of a frame at 60fps that ensure fluid UI.
|
|
13
|
-
*/
|
|
14
|
-
export const MUTATION_PROCESS_MIN_DELAY = 16;
|
|
15
|
-
export function createMutationBatch(processMutationBatch) {
|
|
16
|
-
let cancelScheduledFlush = noop;
|
|
17
|
-
let pendingMutations = [];
|
|
18
|
-
function flush() {
|
|
19
|
-
cancelScheduledFlush();
|
|
20
|
-
processMutationBatch(pendingMutations);
|
|
21
|
-
pendingMutations = [];
|
|
22
|
-
}
|
|
23
|
-
const { throttled: throttledFlush, cancel: cancelThrottle } = throttle(flush, MUTATION_PROCESS_MIN_DELAY, {
|
|
24
|
-
leading: false,
|
|
25
|
-
});
|
|
26
|
-
return {
|
|
27
|
-
addMutations: (mutations) => {
|
|
28
|
-
if (pendingMutations.length === 0) {
|
|
29
|
-
cancelScheduledFlush = requestIdleCallback(throttledFlush, { timeout: MUTATION_PROCESS_MAX_DELAY });
|
|
30
|
-
}
|
|
31
|
-
pendingMutations.push(...mutations);
|
|
32
|
-
},
|
|
33
|
-
flush,
|
|
34
|
-
stop: () => {
|
|
35
|
-
cancelScheduledFlush();
|
|
36
|
-
cancelThrottle();
|
|
37
|
-
},
|
|
38
|
-
};
|
|
39
|
-
}
|
|
40
|
-
//# sourceMappingURL=mutationBatch.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"mutationBatch.js","sourceRoot":"","sources":["../../../src/domain/record/mutationBatch.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,mBAAmB,EAAE,MAAM,mCAAmC,CAAA;AAGvF;;;;;GAKG;AACH,MAAM,0BAA0B,GAAG,GAAG,CAAA;AACtC;;;;GAIG;AACH,MAAM,CAAC,MAAM,0BAA0B,GAAG,EAAE,CAAA;AAE5C,MAAM,UAAU,mBAAmB,CAAC,oBAA8D;IAChG,IAAI,oBAAoB,GAAG,IAAI,CAAA;IAC/B,IAAI,gBAAgB,GAAwB,EAAE,CAAA;IAE9C,SAAS,KAAK;QACZ,oBAAoB,EAAE,CAAA;QACtB,oBAAoB,CAAC,gBAAgB,CAAC,CAAA;QACtC,gBAAgB,GAAG,EAAE,CAAA;IACvB,CAAC;IAED,MAAM,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,EAAE,cAAc,EAAE,GAAG,QAAQ,CAAC,KAAK,EAAE,0BAA0B,EAAE;QACxG,OAAO,EAAE,KAAK;KACf,CAAC,CAAA;IAEF,OAAO;QACL,YAAY,EAAE,CAAC,SAA8B,EAAE,EAAE;YAC/C,IAAI,gBAAgB,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;gBAClC,oBAAoB,GAAG,mBAAmB,CAAC,cAAc,EAAE,EAAE,OAAO,EAAE,0BAA0B,EAAE,CAAC,CAAA;YACrG,CAAC;YACD,gBAAgB,CAAC,IAAI,CAAC,GAAG,SAAS,CAAC,CAAA;QACrC,CAAC;QAED,KAAK;QAEL,IAAI,EAAE,GAAG,EAAE;YACT,oBAAoB,EAAE,CAAA;YACtB,cAAc,EAAE,CAAA;QAClB,CAAC;KACF,CAAA;AACH,CAAC"}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
export type NodeWithSerializedNode = Node & {
|
|
2
|
-
__brand: 'NodeWithSerializedNode';
|
|
3
|
-
};
|
|
4
|
-
export type NodeId = number & {
|
|
5
|
-
__brand: 'NodeId';
|
|
6
|
-
};
|
|
7
|
-
export declare const enum NodeIdConstants {
|
|
8
|
-
FIRST_ID = 0
|
|
9
|
-
}
|
|
10
|
-
export interface NodeIds {
|
|
11
|
-
assign(node: Node): NodeId;
|
|
12
|
-
get(node: Node): NodeId | undefined;
|
|
13
|
-
areAssignedForNodeAndAncestors(node: Node): node is NodeWithSerializedNode;
|
|
14
|
-
}
|
|
15
|
-
export declare function createNodeIds(): NodeIds;
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { getParentNode, isNodeShadowRoot } from '@kubesense/kubesense-browser-rum-core';
|
|
2
|
-
export function createNodeIds() {
|
|
3
|
-
const nodeIds = new WeakMap();
|
|
4
|
-
let nextNodeId = 0 /* NodeIdConstants.FIRST_ID */;
|
|
5
|
-
const get = (node) => nodeIds.get(node);
|
|
6
|
-
return {
|
|
7
|
-
assign: (node) => {
|
|
8
|
-
// Try to reuse any existing id.
|
|
9
|
-
let nodeId = get(node);
|
|
10
|
-
if (nodeId === undefined) {
|
|
11
|
-
nodeId = nextNodeId++;
|
|
12
|
-
nodeIds.set(node, nodeId);
|
|
13
|
-
}
|
|
14
|
-
return nodeId;
|
|
15
|
-
},
|
|
16
|
-
get,
|
|
17
|
-
areAssignedForNodeAndAncestors: (node) => {
|
|
18
|
-
let current = node;
|
|
19
|
-
while (current) {
|
|
20
|
-
if (get(current) === undefined && !isNodeShadowRoot(current)) {
|
|
21
|
-
return false;
|
|
22
|
-
}
|
|
23
|
-
current = getParentNode(current);
|
|
24
|
-
}
|
|
25
|
-
return true;
|
|
26
|
-
},
|
|
27
|
-
};
|
|
28
|
-
}
|
|
29
|
-
//# sourceMappingURL=nodeIds.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"nodeIds.js","sourceRoot":"","sources":["../../../src/domain/record/nodeIds.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,gBAAgB,EAAE,MAAM,uCAAuC,CAAA;AAevF,MAAM,UAAU,aAAa;IAC3B,MAAM,OAAO,GAAG,IAAI,OAAO,EAAgB,CAAA;IAC3C,IAAI,UAAU,mCAA2B,CAAA;IAEzC,MAAM,GAAG,GAAG,CAAC,IAAU,EAAsB,EAAE,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,CAAA;IAEjE,OAAO;QACL,MAAM,EAAE,CAAC,IAAU,EAAU,EAAE;YAC7B,gCAAgC;YAChC,IAAI,MAAM,GAAG,GAAG,CAAC,IAAI,CAAC,CAAA;YACtB,IAAI,MAAM,KAAK,SAAS,EAAE,CAAC;gBACzB,MAAM,GAAG,UAAU,EAAY,CAAA;gBAC/B,OAAO,CAAC,GAAG,CAAC,IAAI,EAAE,MAAM,CAAC,CAAA;YAC3B,CAAC;YACD,OAAO,MAAM,CAAA;QACf,CAAC;QAED,GAAG;QAEH,8BAA8B,EAAE,CAAC,IAAU,EAAkC,EAAE;YAC7E,IAAI,OAAO,GAAgB,IAAI,CAAA;YAC/B,OAAO,OAAO,EAAE,CAAC;gBACf,IAAI,GAAG,CAAC,OAAO,CAAC,KAAK,SAAS,IAAI,CAAC,gBAAgB,CAAC,OAAO,CAAC,EAAE,CAAC;oBAC7D,OAAO,KAAK,CAAA;gBACd,CAAC;gBACD,OAAO,GAAG,aAAa,CAAC,OAAO,CAAC,CAAA;YAClC,CAAC;YACD,OAAO,IAAI,CAAA;QACb,CAAC;KACF,CAAA;AACH,CAAC"}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import type { LifeCycle, RumConfiguration, ViewHistory } from '@kubesense/kubesense-browser-rum-core';
|
|
2
|
-
import type { ShadowRootsController } from './shadowRootsController';
|
|
3
|
-
import type { EmitRecordCallback, EmitStatsCallback } from './record.types';
|
|
4
|
-
export interface RecordOptions {
|
|
5
|
-
emitRecord: EmitRecordCallback;
|
|
6
|
-
emitStats: EmitStatsCallback;
|
|
7
|
-
configuration: RumConfiguration;
|
|
8
|
-
lifeCycle: LifeCycle;
|
|
9
|
-
viewHistory: ViewHistory;
|
|
10
|
-
}
|
|
11
|
-
export interface RecordAPI {
|
|
12
|
-
stop: () => void;
|
|
13
|
-
flushMutations: () => void;
|
|
14
|
-
shadowRootsController: ShadowRootsController;
|
|
15
|
-
}
|
|
16
|
-
export declare function record(options: RecordOptions): RecordAPI;
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
import { sendToExtension } from '@kubesense/kubesense-browser-core';
|
|
2
|
-
import * as replayStats from '../replayStats';
|
|
3
|
-
import { trackFocus, trackFrustration, trackInput, trackMediaInteraction, trackMouseInteraction, trackMove, trackMutation, trackScroll, trackStyleSheet, trackViewEnd, trackViewportResize, trackVisualViewportResize, } from './trackers';
|
|
4
|
-
import { createElementsScrollPositions } from './elementsScrollPositions';
|
|
5
|
-
import { initShadowRootsController } from './shadowRootsController';
|
|
6
|
-
import { startFullSnapshots } from './startFullSnapshots';
|
|
7
|
-
import { createEventIds } from './eventIds';
|
|
8
|
-
import { createNodeIds } from './nodeIds';
|
|
9
|
-
import { createRecordingScope } from './recordingScope';
|
|
10
|
-
export function record(options) {
|
|
11
|
-
const { emitRecord, emitStats, configuration, lifeCycle } = options;
|
|
12
|
-
// runtime checks for user options
|
|
13
|
-
if (!emitRecord || !emitStats) {
|
|
14
|
-
throw new Error('emit functions are required');
|
|
15
|
-
}
|
|
16
|
-
const processRecord = (record) => {
|
|
17
|
-
emitRecord(record);
|
|
18
|
-
sendToExtension('record', { record });
|
|
19
|
-
const view = options.viewHistory.findView();
|
|
20
|
-
replayStats.addRecord(view.id);
|
|
21
|
-
};
|
|
22
|
-
const shadowRootsController = initShadowRootsController(processRecord, emitStats);
|
|
23
|
-
const scope = createRecordingScope(configuration, createElementsScrollPositions(), createEventIds(), createNodeIds(), shadowRootsController);
|
|
24
|
-
const { stop: stopFullSnapshots } = startFullSnapshots(lifeCycle, processRecord, emitStats, flushMutations, scope);
|
|
25
|
-
function flushMutations() {
|
|
26
|
-
shadowRootsController.flush();
|
|
27
|
-
mutationTracker.flush();
|
|
28
|
-
}
|
|
29
|
-
const mutationTracker = trackMutation(document, processRecord, emitStats, scope);
|
|
30
|
-
const trackers = [
|
|
31
|
-
mutationTracker,
|
|
32
|
-
trackMove(processRecord, scope),
|
|
33
|
-
trackMouseInteraction(processRecord, scope),
|
|
34
|
-
trackScroll(document, processRecord, scope),
|
|
35
|
-
trackViewportResize(processRecord, scope),
|
|
36
|
-
trackInput(document, processRecord, scope),
|
|
37
|
-
trackMediaInteraction(processRecord, scope),
|
|
38
|
-
trackStyleSheet(processRecord, scope),
|
|
39
|
-
trackFocus(processRecord, scope),
|
|
40
|
-
trackVisualViewportResize(processRecord, scope),
|
|
41
|
-
trackFrustration(lifeCycle, processRecord, scope),
|
|
42
|
-
trackViewEnd(lifeCycle, processRecord, flushMutations),
|
|
43
|
-
];
|
|
44
|
-
return {
|
|
45
|
-
stop: () => {
|
|
46
|
-
shadowRootsController.stop();
|
|
47
|
-
trackers.forEach((tracker) => tracker.stop());
|
|
48
|
-
stopFullSnapshots();
|
|
49
|
-
},
|
|
50
|
-
flushMutations,
|
|
51
|
-
shadowRootsController,
|
|
52
|
-
};
|
|
53
|
-
}
|
|
54
|
-
//# sourceMappingURL=record.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"record.js","sourceRoot":"","sources":["../../../src/domain/record/record.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,mCAAmC,CAAA;AAEnE,OAAO,KAAK,WAAW,MAAM,gBAAgB,CAAA;AAG7C,OAAO,EACL,UAAU,EACV,gBAAgB,EAChB,UAAU,EACV,qBAAqB,EACrB,qBAAqB,EACrB,SAAS,EACT,aAAa,EACb,WAAW,EACX,eAAe,EACf,YAAY,EACZ,mBAAmB,EACnB,yBAAyB,GAC1B,MAAM,YAAY,CAAA;AACnB,OAAO,EAAE,6BAA6B,EAAE,MAAM,2BAA2B,CAAA;AAEzE,OAAO,EAAE,yBAAyB,EAAE,MAAM,yBAAyB,CAAA;AACnE,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAA;AACzD,OAAO,EAAE,cAAc,EAAE,MAAM,YAAY,CAAA;AAC3C,OAAO,EAAE,aAAa,EAAE,MAAM,WAAW,CAAA;AAEzC,OAAO,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAA;AAgBvD,MAAM,UAAU,MAAM,CAAC,OAAsB;IAC3C,MAAM,EAAE,UAAU,EAAE,SAAS,EAAE,aAAa,EAAE,SAAS,EAAE,GAAG,OAAO,CAAA;IACnE,kCAAkC;IAClC,IAAI,CAAC,UAAU,IAAI,CAAC,SAAS,EAAE,CAAC;QAC9B,MAAM,IAAI,KAAK,CAAC,6BAA6B,CAAC,CAAA;IAChD,CAAC;IAED,MAAM,aAAa,GAAuB,CAAC,MAAqB,EAAE,EAAE;QAClE,UAAU,CAAC,MAAM,CAAC,CAAA;QAClB,eAAe,CAAC,QAAQ,EAAE,EAAE,MAAM,EAAE,CAAC,CAAA;QACrC,MAAM,IAAI,GAAG,OAAO,CAAC,WAAW,CAAC,QAAQ,EAAG,CAAA;QAC5C,WAAW,CAAC,SAAS,CAAC,IAAI,CAAC,EAAE,CAAC,CAAA;IAChC,CAAC,CAAA;IAED,MAAM,qBAAqB,GAAG,yBAAyB,CAAC,aAAa,EAAE,SAAS,CAAC,CAAA;IACjF,MAAM,KAAK,GAAG,oBAAoB,CAChC,aAAa,EACb,6BAA6B,EAAE,EAC/B,cAAc,EAAE,EAChB,aAAa,EAAE,EACf,qBAAqB,CACtB,CAAA;IAED,MAAM,EAAE,IAAI,EAAE,iBAAiB,EAAE,GAAG,kBAAkB,CAAC,SAAS,EAAE,aAAa,EAAE,SAAS,EAAE,cAAc,EAAE,KAAK,CAAC,CAAA;IAElH,SAAS,cAAc;QACrB,qBAAqB,CAAC,KAAK,EAAE,CAAA;QAC7B,eAAe,CAAC,KAAK,EAAE,CAAA;IACzB,CAAC;IAED,MAAM,eAAe,GAAG,aAAa,CAAC,QAAQ,EAAE,aAAa,EAAE,SAAS,EAAE,KAAK,CAAC,CAAA;IAChF,MAAM,QAAQ,GAAc;QAC1B,eAAe;QACf,SAAS,CAAC,aAAa,EAAE,KAAK,CAAC;QAC/B,qBAAqB,CAAC,aAAa,EAAE,KAAK,CAAC;QAC3C,WAAW,CAAC,QAAQ,EAAE,aAAa,EAAE,KAAK,CAAC;QAC3C,mBAAmB,CAAC,aAAa,EAAE,KAAK,CAAC;QACzC,UAAU,CAAC,QAAQ,EAAE,aAAa,EAAE,KAAK,CAAC;QAC1C,qBAAqB,CAAC,aAAa,EAAE,KAAK,CAAC;QAC3C,eAAe,CAAC,aAAa,EAAE,KAAK,CAAC;QACrC,UAAU,CAAC,aAAa,EAAE,KAAK,CAAC;QAChC,yBAAyB,CAAC,aAAa,EAAE,KAAK,CAAC;QAC/C,gBAAgB,CAAC,SAAS,EAAE,aAAa,EAAE,KAAK,CAAC;QACjD,YAAY,CAAC,SAAS,EAAE,aAAa,EAAE,cAAc,CAAC;KACvD,CAAA;IAED,OAAO;QACL,IAAI,EAAE,GAAG,EAAE;YACT,qBAAqB,CAAC,IAAI,EAAE,CAAA;YAC5B,QAAQ,CAAC,OAAO,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,IAAI,EAAE,CAAC,CAAA;YAC7C,iBAAiB,EAAE,CAAA;QACrB,CAAC;QACD,cAAc;QACd,qBAAqB;KACtB,CAAA;AACH,CAAC"}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import type { BrowserRecord } from '../../types';
|
|
2
|
-
import type { SerializationStats } from './serialization';
|
|
3
|
-
export type EmitRecordCallback<Record extends BrowserRecord = BrowserRecord> = (record: Record) => void;
|
|
4
|
-
export type EmitStatsCallback = (stats: SerializationStats) => void;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"record.types.js","sourceRoot":"","sources":["../../../src/domain/record/record.types.ts"],"names":[],"mappings":""}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import type { RumConfiguration } from '@kubesense/kubesense-browser-rum-core';
|
|
2
|
-
import type { ElementsScrollPositions } from './elementsScrollPositions';
|
|
3
|
-
import type { EventIds } from './eventIds';
|
|
4
|
-
import type { NodeIds } from './nodeIds';
|
|
5
|
-
import type { ShadowRootsController } from './shadowRootsController';
|
|
6
|
-
/**
|
|
7
|
-
* State associated with a stream of session replay records. When a new stream of records
|
|
8
|
-
* starts (e.g. because recording has shut down and restarted), a new RecordingScope
|
|
9
|
-
* object must be created; this ensures that we don't generate records that reference ids
|
|
10
|
-
* or data which aren't present in the current stream.
|
|
11
|
-
*/
|
|
12
|
-
export interface RecordingScope {
|
|
13
|
-
configuration: RumConfiguration;
|
|
14
|
-
elementsScrollPositions: ElementsScrollPositions;
|
|
15
|
-
eventIds: EventIds;
|
|
16
|
-
nodeIds: NodeIds;
|
|
17
|
-
shadowRootsController: ShadowRootsController;
|
|
18
|
-
}
|
|
19
|
-
export declare function createRecordingScope(configuration: RumConfiguration, elementsScrollPositions: ElementsScrollPositions, eventIds: EventIds, nodeIds: NodeIds, shadowRootsController: ShadowRootsController): RecordingScope;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
export function createRecordingScope(configuration, elementsScrollPositions, eventIds, nodeIds, shadowRootsController) {
|
|
2
|
-
return {
|
|
3
|
-
configuration,
|
|
4
|
-
elementsScrollPositions,
|
|
5
|
-
eventIds,
|
|
6
|
-
nodeIds,
|
|
7
|
-
shadowRootsController,
|
|
8
|
-
};
|
|
9
|
-
}
|
|
10
|
-
//# sourceMappingURL=recordingScope.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"recordingScope.js","sourceRoot":"","sources":["../../../src/domain/record/recordingScope.ts"],"names":[],"mappings":"AAqBA,MAAM,UAAU,oBAAoB,CAClC,aAA+B,EAC/B,uBAAgD,EAChD,QAAkB,EAClB,OAAgB,EAChB,qBAA4C;IAE5C,OAAO;QACL,aAAa;QACb,uBAAuB;QACvB,QAAQ;QACR,OAAO;QACP,qBAAqB;KACtB,CAAA;AACH,CAAC"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
export { getElementInputValue } from './serializationUtils';
|
|
2
|
-
export { serializeDocument } from './serializeDocument';
|
|
3
|
-
export { serializeNode } from './serializeNode';
|
|
4
|
-
export { serializeAttribute } from './serializeAttribute';
|
|
5
|
-
export { createSerializationStats, updateSerializationStats, aggregateSerializationStats } from './serializationStats';
|
|
6
|
-
export type { SerializationMetric, SerializationStats } from './serializationStats';
|
|
7
|
-
export { serializeInTransaction, SerializationKind } from './serializationTransaction';
|
|
8
|
-
export type { SerializationTransaction, SerializationTransactionCallback } from './serializationTransaction';
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
export { getElementInputValue } from './serializationUtils';
|
|
2
|
-
export { serializeDocument } from './serializeDocument';
|
|
3
|
-
export { serializeNode } from './serializeNode';
|
|
4
|
-
export { serializeAttribute } from './serializeAttribute';
|
|
5
|
-
export { createSerializationStats, updateSerializationStats, aggregateSerializationStats } from './serializationStats';
|
|
6
|
-
export { serializeInTransaction } from './serializationTransaction';
|
|
7
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/domain/record/serialization/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAA;AAC3D,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAA;AACvD,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAA;AAC/C,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAA;AACzD,OAAO,EAAE,wBAAwB,EAAE,wBAAwB,EAAE,2BAA2B,EAAE,MAAM,sBAAsB,CAAA;AAEtH,OAAO,EAAE,sBAAsB,EAAqB,MAAM,4BAA4B,CAAA"}
|