@cloudcare/browser-rum 3.3.23 → 3.3.25
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/README.md +33 -0
- package/README.zh.md +30 -0
- package/bundle/dataflux-rum.js +1 -1
- package/cjs/boot/buildEnv.js +1 -1
- package/cjs/boot/disabledRumPublicApi.js +5 -0
- package/cjs/boot/disabledRumPublicApi.js.map +1 -1
- package/cjs/boot/initCallbacks.js +25 -0
- package/cjs/boot/initCallbacks.js.map +1 -0
- package/cjs/boot/perStartRum.js +99 -50
- package/cjs/boot/perStartRum.js.map +1 -1
- package/cjs/boot/rum.js +7 -4
- package/cjs/boot/rum.js.map +1 -1
- package/cjs/boot/rumPublicApi.js +6 -7
- package/cjs/boot/rumPublicApi.js.map +1 -1
- package/cjs/boot/startRecording.js +2 -0
- package/cjs/boot/startRecording.js.map +1 -1
- package/cjs/domain/configuration.js +15 -2
- package/cjs/domain/configuration.js.map +1 -1
- package/cjs/domain/contexts/urlContexts.js +32 -21
- package/cjs/domain/contexts/urlContexts.js.map +1 -1
- package/cjs/domain/contexts/viewContexts.js +1 -1
- package/cjs/domain/contexts/viewContexts.js.map +1 -1
- package/cjs/domain/deflate/deflateWorker.js +39 -27
- package/cjs/domain/deflate/deflateWorker.js.map +1 -1
- package/cjs/domain/privacy.js +9 -6
- package/cjs/domain/privacy.js.map +1 -1
- package/cjs/domain/replay/record/canvasCommandCapture.js +91 -179
- package/cjs/domain/replay/record/canvasCommandCapture.js.map +1 -1
- package/cjs/domain/replay/record/canvasCommandObserverStub.js +24 -0
- package/cjs/domain/replay/record/canvasCommandObserverStub.js.map +1 -0
- package/cjs/domain/replay/record/canvasCommandSerializeArgs.js +3 -2
- package/cjs/domain/replay/record/canvasCommandSerializeArgs.js.map +1 -1
- package/cjs/domain/replay/record/canvasContext.js +25 -0
- package/cjs/domain/replay/record/canvasContext.js.map +1 -1
- package/cjs/domain/replay/record/canvasEncodeWorker.js +1 -1
- package/cjs/domain/replay/record/canvasObserver.js +3 -0
- package/cjs/domain/replay/record/canvasObserver.js.map +1 -1
- package/cjs/domain/replay/record/mutationObserver.js +3 -12
- package/cjs/domain/replay/record/mutationObserver.js.map +1 -1
- package/cjs/domain/replay/record/record.js +1 -1
- package/cjs/domain/replay/record/record.js.map +1 -1
- package/cjs/domain/replay/record/serialize.js +15 -13
- package/cjs/domain/replay/record/serialize.js.map +1 -1
- package/cjs/domain/replay/segmentCollection/buildReplayPayload.js +21 -6
- package/cjs/domain/replay/segmentCollection/buildReplayPayload.js.map +1 -1
- package/cjs/domain/replay/segmentCollection/segmentCollection.js +91 -143
- package/cjs/domain/replay/segmentCollection/segmentCollection.js.map +1 -1
- package/cjs/domain/replayCanvasSupported.js +8 -0
- package/cjs/domain/replayCanvasSupported.js.map +1 -0
- package/cjs/domain/requestCollection.js +38 -39
- package/cjs/domain/requestCollection.js.map +1 -1
- package/cjs/domain/rumEventsCollection/actions/listenActionEvents.js +1 -1
- package/cjs/domain/rumEventsCollection/actions/listenActionEvents.js.map +1 -1
- package/cjs/domain/rumEventsCollection/resource/fetchTimingRegistry.js +143 -0
- package/cjs/domain/rumEventsCollection/resource/fetchTimingRegistry.js.map +1 -0
- package/cjs/domain/rumEventsCollection/resource/matchRequestResourceEntry.js +2 -2
- package/cjs/domain/rumEventsCollection/resource/matchRequestResourceEntry.js.map +1 -1
- package/cjs/domain/rumEventsCollection/resource/resourceCollection.js +77 -45
- package/cjs/domain/rumEventsCollection/resource/resourceCollection.js.map +1 -1
- package/cjs/domain/rumEventsCollection/resource/resourceTrackerManager.js +11 -9
- package/cjs/domain/rumEventsCollection/resource/resourceTrackerManager.js.map +1 -1
- package/cjs/domain/rumEventsCollection/resource/resourceUtils.js +30 -40
- package/cjs/domain/rumEventsCollection/resource/resourceUtils.js.map +1 -1
- package/cjs/domain/rumEventsCollection/resource/retrieveInitialDocumentResourceTiming.js +7 -1
- package/cjs/domain/rumEventsCollection/resource/retrieveInitialDocumentResourceTiming.js.map +1 -1
- package/cjs/domain/rumEventsCollection/view/trackViews.js +3 -0
- package/cjs/domain/rumEventsCollection/view/trackViews.js.map +1 -1
- package/cjs/domain/tracing/skywalkingTracer.js +4 -50
- package/cjs/domain/tracing/skywalkingTracer.js.map +1 -1
- package/cjs/domain/tracing/tracer.js +26 -3
- package/cjs/domain/tracing/tracer.js.map +1 -1
- package/esm/boot/buildEnv.js +2 -5
- package/esm/boot/buildEnv.js.map +1 -1
- package/esm/boot/disabledRumPublicApi.js +2 -35
- package/esm/boot/disabledRumPublicApi.js.map +1 -1
- package/esm/boot/initCallbacks.js +2 -0
- package/esm/boot/initCallbacks.js.map +1 -0
- package/esm/boot/perStartRum.js +2 -260
- package/esm/boot/perStartRum.js.map +1 -1
- package/esm/boot/recorderApi.js +2 -338
- package/esm/boot/recorderApi.js.map +1 -1
- package/esm/boot/recorderApiStub.js +2 -21
- package/esm/boot/recorderApiStub.js.map +1 -1
- package/esm/boot/rum.entry.js +2 -13
- package/esm/boot/rum.entry.js.map +1 -1
- package/esm/boot/rum.js +2 -184
- package/esm/boot/rum.js.map +1 -1
- package/esm/boot/rum.slim.entry.js +2 -7
- package/esm/boot/rum.slim.entry.js.map +1 -1
- package/esm/boot/rumEntryFactory.js +2 -18
- package/esm/boot/rumEntryFactory.js.map +1 -1
- package/esm/boot/rumPublicApi.js +2 -344
- package/esm/boot/rumPublicApi.js.map +1 -1
- package/esm/boot/rumRecorderApiStub.js +2 -13
- package/esm/boot/rumRecorderApiStub.js.map +1 -1
- package/esm/boot/rumSlimConfiguration.js +2 -10
- package/esm/boot/rumSlimConfiguration.js.map +1 -1
- package/esm/boot/sessionReplayPublicApi.js +2 -43
- package/esm/boot/sessionReplayPublicApi.js.map +1 -1
- package/esm/boot/startRecording.js +2 -444
- package/esm/boot/startRecording.js.map +1 -1
- package/esm/constants.js +2 -28
- package/esm/constants.js.map +1 -1
- package/esm/domain/assembly.js +2 -213
- package/esm/domain/assembly.js.map +1 -1
- package/esm/domain/configuration.js +2 -323
- package/esm/domain/configuration.js.map +1 -1
- package/esm/domain/contexts/commonContext.js +2 -8
- package/esm/domain/contexts/commonContext.js.map +1 -1
- package/esm/domain/contexts/displayContext.js +2 -16
- package/esm/domain/contexts/displayContext.js.map +1 -1
- package/esm/domain/contexts/foregroundContexts.js +2 -103
- package/esm/domain/contexts/foregroundContexts.js.map +1 -1
- package/esm/domain/contexts/internalContext.js +2 -41
- package/esm/domain/contexts/internalContext.js.map +1 -1
- package/esm/domain/contexts/pageStateHistory.js +2 -104
- package/esm/domain/contexts/pageStateHistory.js.map +1 -1
- package/esm/domain/contexts/urlContexts.js +2 -85
- package/esm/domain/contexts/urlContexts.js.map +1 -1
- package/esm/domain/contexts/viewContexts.js +2 -45
- package/esm/domain/contexts/viewContexts.js.map +1 -1
- package/esm/domain/deflate/deflateEncoder.js +2 -592
- package/esm/domain/deflate/deflateEncoder.js.map +1 -1
- package/esm/domain/deflate/deflateWorker.js +2 -225
- package/esm/domain/deflate/deflateWorker.js.map +1 -1
- package/esm/domain/deflate/index.js +2 -3
- package/esm/domain/deflate/index.js.map +1 -1
- package/esm/domain/domMutationObservable.js +2 -62
- package/esm/domain/domMutationObservable.js.map +1 -1
- package/esm/domain/encoderStreamId.js +2 -6
- package/esm/domain/encoderStreamId.js.map +1 -1
- package/esm/domain/firstInputPolyfill.js +2 -77
- package/esm/domain/firstInputPolyfill.js.map +1 -1
- package/esm/domain/initViewportObservable.js +2 -36
- package/esm/domain/initViewportObservable.js.map +1 -1
- package/esm/domain/locationChangeObservable.js +2 -65
- package/esm/domain/locationChangeObservable.js.map +1 -1
- package/esm/domain/performanceObservable.js +2 -116
- package/esm/domain/performanceObservable.js.map +1 -1
- package/esm/domain/performanceUtils.js +2 -45
- package/esm/domain/performanceUtils.js.map +1 -1
- package/esm/domain/plugins.js +2 -59
- package/esm/domain/plugins.js.map +1 -1
- package/esm/domain/privacy.js +2 -266
- package/esm/domain/privacy.js.map +1 -1
- package/esm/domain/replay/record/canvasAutoSnapshot.js +2 -9
- package/esm/domain/replay/record/canvasAutoSnapshot.js.map +1 -1
- package/esm/domain/replay/record/canvasCommandCapture.js +2 -1275
- package/esm/domain/replay/record/canvasCommandCapture.js.map +1 -1
- package/esm/domain/replay/record/canvasCommandObserver.js +2 -1207
- package/esm/domain/replay/record/canvasCommandObserver.js.map +1 -1
- package/esm/domain/replay/record/canvasCommandObserverStub.js +2 -0
- package/esm/domain/replay/record/canvasCommandObserverStub.js.map +1 -0
- package/esm/domain/replay/record/canvasCommandSerializeArgs.js +2 -111
- package/esm/domain/replay/record/canvasCommandSerializeArgs.js.map +1 -1
- package/esm/domain/replay/record/canvasContext.js +2 -50
- package/esm/domain/replay/record/canvasContext.js.map +1 -1
- package/esm/domain/replay/record/canvasContinuousScheduler.js +2 -378
- package/esm/domain/replay/record/canvasContinuousScheduler.js.map +1 -1
- package/esm/domain/replay/record/canvasEncodeBridge.js +2 -692
- package/esm/domain/replay/record/canvasEncodeBridge.js.map +1 -1
- package/esm/domain/replay/record/canvasEncodeWorker.js +2 -164
- package/esm/domain/replay/record/canvasEncodeWorker.js.map +1 -1
- package/esm/domain/replay/record/canvasFrameSignature.js +2 -75
- package/esm/domain/replay/record/canvasFrameSignature.js.map +1 -1
- package/esm/domain/replay/record/canvasMutationRecord.js +2 -26
- package/esm/domain/replay/record/canvasMutationRecord.js.map +1 -1
- package/esm/domain/replay/record/canvasObserver.js +2 -420
- package/esm/domain/replay/record/canvasObserver.js.map +1 -1
- package/esm/domain/replay/record/canvasSerializeArgs.js +2 -101
- package/esm/domain/replay/record/canvasSerializeArgs.js.map +1 -1
- package/esm/domain/replay/record/canvasWebGLPluginHost.js +2 -26
- package/esm/domain/replay/record/canvasWebGLPluginHost.js.map +1 -1
- package/esm/domain/replay/record/elementsScrollPositions.js +2 -23
- package/esm/domain/replay/record/elementsScrollPositions.js.map +1 -1
- package/esm/domain/replay/record/index.js +2 -4
- package/esm/domain/replay/record/index.js.map +1 -1
- package/esm/domain/replay/record/mutationBatch.js +2 -562
- package/esm/domain/replay/record/mutationBatch.js.map +1 -1
- package/esm/domain/replay/record/mutationObserver.js +2 -2332
- package/esm/domain/replay/record/mutationObserver.js.map +1 -1
- package/esm/domain/replay/record/mutationResourceBudget.js +2 -137
- package/esm/domain/replay/record/mutationResourceBudget.js.map +1 -1
- package/esm/domain/replay/record/observers.js +2 -624
- package/esm/domain/replay/record/observers.js.map +1 -1
- package/esm/domain/replay/record/privacy.js +2 -1
- package/esm/domain/replay/record/privacy.js.map +1 -1
- package/esm/domain/replay/record/record.js +2 -3511
- package/esm/domain/replay/record/record.js.map +1 -1
- package/esm/domain/replay/record/serializationUtils.js +2 -677
- package/esm/domain/replay/record/serializationUtils.js.map +1 -1
- package/esm/domain/replay/record/serialize.js +2 -735
- package/esm/domain/replay/record/serialize.js.map +1 -1
- package/esm/domain/replay/record/shadowRootsController.js +2 -902
- package/esm/domain/replay/record/shadowRootsController.js.map +1 -1
- package/esm/domain/replay/record/utils.js +2 -36
- package/esm/domain/replay/record/utils.js.map +1 -1
- package/esm/domain/replay/record/viewports.js +2 -58
- package/esm/domain/replay/record/viewports.js.map +1 -1
- package/esm/domain/replay/replayStats.js +2 -59
- package/esm/domain/replay/replayStats.js.map +1 -1
- package/esm/domain/replay/segmentCollection/buildReplayPayload.js +2 -31
- package/esm/domain/replay/segmentCollection/buildReplayPayload.js.map +1 -1
- package/esm/domain/replay/segmentCollection/index.js +2 -3
- package/esm/domain/replay/segmentCollection/index.js.map +1 -1
- package/esm/domain/replay/segmentCollection/segment.js +2 -415
- package/esm/domain/replay/segmentCollection/segment.js.map +1 -1
- package/esm/domain/replay/segmentCollection/segmentCollection.js +2 -1114
- package/esm/domain/replay/segmentCollection/segmentCollection.js.map +1 -1
- package/esm/domain/replay/startRecordBridge.js +2 -13
- package/esm/domain/replay/startRecordBridge.js.map +1 -1
- package/esm/domain/replay/timeAnchor.js +2 -20
- package/esm/domain/replay/timeAnchor.js.map +1 -1
- package/esm/domain/replayCanvasSupported.js +2 -0
- package/esm/domain/replayCanvasSupported.js.map +1 -0
- package/esm/domain/requestCollection.js +2 -121
- package/esm/domain/requestCollection.js.map +1 -1
- package/esm/domain/rumEventsCollection/actions/actionCollection.js +2 -83
- package/esm/domain/rumEventsCollection/actions/actionCollection.js.map +1 -1
- package/esm/domain/rumEventsCollection/actions/clickChain.js +2 -62
- package/esm/domain/rumEventsCollection/actions/clickChain.js.map +1 -1
- package/esm/domain/rumEventsCollection/actions/computeFrustration.js +2 -67
- package/esm/domain/rumEventsCollection/actions/computeFrustration.js.map +1 -1
- package/esm/domain/rumEventsCollection/actions/getActionNameFromElement.js +2 -279
- package/esm/domain/rumEventsCollection/actions/getActionNameFromElement.js.map +1 -1
- package/esm/domain/rumEventsCollection/actions/getSelectorsFromElement.js +2 -233
- package/esm/domain/rumEventsCollection/actions/getSelectorsFromElement.js.map +1 -1
- package/esm/domain/rumEventsCollection/actions/interactionSelectorCache.js +2 -21
- package/esm/domain/rumEventsCollection/actions/interactionSelectorCache.js.map +1 -1
- package/esm/domain/rumEventsCollection/actions/listenActionEvents.js +2 -67
- package/esm/domain/rumEventsCollection/actions/listenActionEvents.js.map +1 -1
- package/esm/domain/rumEventsCollection/actions/trackClickActions.js +2 -263
- package/esm/domain/rumEventsCollection/actions/trackClickActions.js.map +1 -1
- package/esm/domain/rumEventsCollection/error/errorCollection.js +2 -93
- package/esm/domain/rumEventsCollection/error/errorCollection.js.map +1 -1
- package/esm/domain/rumEventsCollection/error/trackConsoleError.js +2 -12
- package/esm/domain/rumEventsCollection/error/trackConsoleError.js.map +1 -1
- package/esm/domain/rumEventsCollection/error/trackReportError.js +2 -19
- package/esm/domain/rumEventsCollection/error/trackReportError.js.map +1 -1
- package/esm/domain/rumEventsCollection/longTask/longAnimationFrameCollection.js +2 -55
- package/esm/domain/rumEventsCollection/longTask/longAnimationFrameCollection.js.map +1 -1
- package/esm/domain/rumEventsCollection/longTask/longTaskCollection.js +2 -38
- package/esm/domain/rumEventsCollection/longTask/longTaskCollection.js.map +1 -1
- package/esm/domain/rumEventsCollection/resource/fetchTimingRegistry.js +2 -0
- package/esm/domain/rumEventsCollection/resource/fetchTimingRegistry.js.map +1 -0
- package/esm/domain/rumEventsCollection/resource/matchRequestResourceEntry.js +2 -69
- package/esm/domain/rumEventsCollection/resource/matchRequestResourceEntry.js.map +1 -1
- package/esm/domain/rumEventsCollection/resource/resourceCollection.js +2 -294
- package/esm/domain/rumEventsCollection/resource/resourceCollection.js.map +1 -1
- package/esm/domain/rumEventsCollection/resource/resourceTrackerManager.js +2 -232
- package/esm/domain/rumEventsCollection/resource/resourceTrackerManager.js.map +1 -1
- package/esm/domain/rumEventsCollection/resource/resourceUtils.js +2 -218
- package/esm/domain/rumEventsCollection/resource/resourceUtils.js.map +1 -1
- package/esm/domain/rumEventsCollection/resource/retrieveInitialDocumentResourceTiming.js +2 -19
- package/esm/domain/rumEventsCollection/resource/retrieveInitialDocumentResourceTiming.js.map +1 -1
- package/esm/domain/rumEventsCollection/resource/webSocketCollection.js +2 -191
- package/esm/domain/rumEventsCollection/resource/webSocketCollection.js.map +1 -1
- package/esm/domain/rumEventsCollection/view/interactionCountPolyfill.js +2 -47
- package/esm/domain/rumEventsCollection/view/interactionCountPolyfill.js.map +1 -1
- package/esm/domain/rumEventsCollection/view/trackCommonViewMetrics.js +2 -42
- package/esm/domain/rumEventsCollection/view/trackCommonViewMetrics.js.map +1 -1
- package/esm/domain/rumEventsCollection/view/trackCumulativeLayoutShift.js +2 -117
- package/esm/domain/rumEventsCollection/view/trackCumulativeLayoutShift.js.map +1 -1
- package/esm/domain/rumEventsCollection/view/trackFirstContentfulPaint.js +2 -20
- package/esm/domain/rumEventsCollection/view/trackFirstContentfulPaint.js.map +1 -1
- package/esm/domain/rumEventsCollection/view/trackFirstHidden.js +2 -49
- package/esm/domain/rumEventsCollection/view/trackFirstHidden.js.map +1 -1
- package/esm/domain/rumEventsCollection/view/trackFirstInput.js +2 -41
- package/esm/domain/rumEventsCollection/view/trackFirstInput.js.map +1 -1
- package/esm/domain/rumEventsCollection/view/trackInitialViewTimings.js +2 -44
- package/esm/domain/rumEventsCollection/view/trackInitialViewTimings.js.map +1 -1
- package/esm/domain/rumEventsCollection/view/trackInteractionToNextPaint.js +2 -153
- package/esm/domain/rumEventsCollection/view/trackInteractionToNextPaint.js.map +1 -1
- package/esm/domain/rumEventsCollection/view/trackLargestContentfulPaint.js +2 -54
- package/esm/domain/rumEventsCollection/view/trackLargestContentfulPaint.js.map +1 -1
- package/esm/domain/rumEventsCollection/view/trackLoadingTime.js +2 -50
- package/esm/domain/rumEventsCollection/view/trackLoadingTime.js.map +1 -1
- package/esm/domain/rumEventsCollection/view/trackNavigationTimings.js +2 -73
- package/esm/domain/rumEventsCollection/view/trackNavigationTimings.js.map +1 -1
- package/esm/domain/rumEventsCollection/view/trackScrollMetrics.js +2 -84
- package/esm/domain/rumEventsCollection/view/trackScrollMetrics.js.map +1 -1
- package/esm/domain/rumEventsCollection/view/trackSoftNavigationMetrics.js +2 -38
- package/esm/domain/rumEventsCollection/view/trackSoftNavigationMetrics.js.map +1 -1
- package/esm/domain/rumEventsCollection/view/trackViewEventCounts.js +2 -15
- package/esm/domain/rumEventsCollection/view/trackViewEventCounts.js.map +1 -1
- package/esm/domain/rumEventsCollection/view/trackViews.js +2 -418
- package/esm/domain/rumEventsCollection/view/trackViews.js.map +1 -1
- package/esm/domain/rumEventsCollection/view/viewCollection.js +2 -127
- package/esm/domain/rumEventsCollection/view/viewCollection.js.map +1 -1
- package/esm/domain/rumSessionManager.js +2 -208
- package/esm/domain/rumSessionManager.js.map +1 -1
- package/esm/domain/tracing/ddtraceTracer.js +2 -40
- package/esm/domain/tracing/ddtraceTracer.js.map +1 -1
- package/esm/domain/tracing/getDocumentTraceId.js +2 -69
- package/esm/domain/tracing/getDocumentTraceId.js.map +1 -1
- package/esm/domain/tracing/jaegerTracer.js +2 -42
- package/esm/domain/tracing/jaegerTracer.js.map +1 -1
- package/esm/domain/tracing/sampler.js +2 -61
- package/esm/domain/tracing/sampler.js.map +1 -1
- package/esm/domain/tracing/skywalkingTracer.js +2 -90
- package/esm/domain/tracing/skywalkingTracer.js.map +1 -1
- package/esm/domain/tracing/traceIdentifier.js +2 -57
- package/esm/domain/tracing/traceIdentifier.js.map +1 -1
- package/esm/domain/tracing/tracer.js +2 -128
- package/esm/domain/tracing/tracer.js.map +1 -1
- package/esm/domain/tracing/w3cTraceParentTracer.js +2 -69
- package/esm/domain/tracing/w3cTraceParentTracer.js.map +1 -1
- package/esm/domain/tracing/zipkinMultiTracer.js +2 -42
- package/esm/domain/tracing/zipkinMultiTracer.js.map +1 -1
- package/esm/domain/tracing/zipkinSingleTracer.js +2 -41
- package/esm/domain/tracing/zipkinSingleTracer.js.map +1 -1
- package/esm/domain/trackEventCounts.js +2 -49
- package/esm/domain/trackEventCounts.js.map +1 -1
- package/esm/domain/usr/index.js +2 -38
- package/esm/domain/usr/index.js.map +1 -1
- package/esm/domain/visitorId/index.js +2 -406
- package/esm/domain/visitorId/index.js.map +1 -1
- package/esm/domain/waitPageActivityEnd.js +2 -142
- package/esm/domain/waitPageActivityEnd.js.map +1 -1
- package/esm/index.js +2 -4
- package/esm/index.js.map +1 -1
- package/esm/transport/startRumBatch.js +2 -74
- package/esm/transport/startRumBatch.js.map +1 -1
- package/esm/transport/startRumEventBridge.js +2 -9
- package/esm/transport/startRumEventBridge.js.map +1 -1
- package/esm/types/index.js +2 -1
- package/esm/types/index.js.map +1 -1
- package/esm/types/sessionReplayConstants.js +2 -46
- package/esm/types/sessionReplayConstants.js.map +1 -1
- package/package.json +8 -8
- package/src/boot/disabledRumPublicApi.js +5 -0
- package/src/boot/initCallbacks.js +16 -0
- package/src/boot/perStartRum.js +102 -59
- package/src/boot/rum.js +7 -4
- package/src/boot/rumPublicApi.js +6 -8
- package/src/boot/startRecording.js +2 -0
- package/src/domain/configuration.js +13 -2
- package/src/domain/contexts/urlContexts.js +34 -27
- package/src/domain/contexts/viewContexts.js +2 -2
- package/src/domain/deflate/deflateWorker.js +35 -21
- package/src/domain/privacy.js +13 -13
- package/src/domain/replay/record/canvasCommandCapture.js +105 -239
- package/src/domain/replay/record/canvasCommandObserverStub.js +11 -0
- package/src/domain/replay/record/canvasCommandSerializeArgs.js +2 -2
- package/src/domain/replay/record/canvasContext.js +32 -0
- package/src/domain/replay/record/canvasObserver.js +5 -1
- package/src/domain/replay/record/mutationObserver.js +6 -22
- package/src/domain/replay/record/record.js +1 -1
- package/src/domain/replay/record/serialize.js +24 -11
- package/src/domain/replay/segmentCollection/buildReplayPayload.js +24 -14
- package/src/domain/replay/segmentCollection/segmentCollection.js +97 -227
- package/src/domain/replayCanvasSupported.js +1 -0
- package/src/domain/requestCollection.js +39 -51
- package/src/domain/rumEventsCollection/actions/listenActionEvents.js +8 -2
- package/src/domain/rumEventsCollection/resource/fetchTimingRegistry.js +138 -0
- package/src/domain/rumEventsCollection/resource/matchRequestResourceEntry.js +2 -2
- package/src/domain/rumEventsCollection/resource/resourceCollection.js +87 -64
- package/src/domain/rumEventsCollection/resource/resourceTrackerManager.js +10 -10
- package/src/domain/rumEventsCollection/resource/resourceUtils.js +36 -59
- package/src/domain/rumEventsCollection/resource/retrieveInitialDocumentResourceTiming.js +8 -2
- package/src/domain/rumEventsCollection/view/trackViews.js +3 -0
- package/src/domain/tracing/skywalkingTracer.js +14 -91
- package/src/domain/tracing/tracer.js +28 -4
- package/types/index.d.ts +9 -0
|
@@ -1,67 +1,2 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
export function computeFrustration(clicks, rageClick) {
|
|
4
|
-
if (isRage(clicks)) {
|
|
5
|
-
rageClick.addFrustration(FrustrationType.RAGE_CLICK);
|
|
6
|
-
if (some(clicks, isDead)) {
|
|
7
|
-
rageClick.addFrustration(FrustrationType.DEAD_CLICK);
|
|
8
|
-
}
|
|
9
|
-
if (rageClick.hasError()) {
|
|
10
|
-
rageClick.addFrustration(FrustrationType.ERROR_CLICK);
|
|
11
|
-
}
|
|
12
|
-
return {
|
|
13
|
-
isRage: true
|
|
14
|
-
};
|
|
15
|
-
}
|
|
16
|
-
var hasSelectionChanged = some(clicks, function (click) {
|
|
17
|
-
return click.getUserActivity().selection;
|
|
18
|
-
});
|
|
19
|
-
each(clicks, function (click) {
|
|
20
|
-
if (click.hasError()) {
|
|
21
|
-
click.addFrustration(FrustrationType.ERROR_CLICK);
|
|
22
|
-
}
|
|
23
|
-
if (isDead(click) &&
|
|
24
|
-
// Avoid considering clicks part of a double-click or triple-click selections as dead clicks
|
|
25
|
-
!hasSelectionChanged) {
|
|
26
|
-
click.addFrustration(FrustrationType.DEAD_CLICK);
|
|
27
|
-
}
|
|
28
|
-
});
|
|
29
|
-
return {
|
|
30
|
-
isRage: false
|
|
31
|
-
};
|
|
32
|
-
}
|
|
33
|
-
export function isRage(clicks) {
|
|
34
|
-
if (some(clicks, function (click) {
|
|
35
|
-
return click.getUserActivity().selection || click.getUserActivity().scroll;
|
|
36
|
-
})) {
|
|
37
|
-
return false;
|
|
38
|
-
}
|
|
39
|
-
for (var i = 0; i < clicks.length - (MIN_CLICKS_PER_SECOND_TO_CONSIDER_RAGE - 1); i += 1) {
|
|
40
|
-
if (clicks[i + MIN_CLICKS_PER_SECOND_TO_CONSIDER_RAGE - 1].event.timeStamp - clicks[i].event.timeStamp <= ONE_SECOND) {
|
|
41
|
-
return true;
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
return false;
|
|
45
|
-
}
|
|
46
|
-
var DEAD_CLICK_EXCLUDE_SELECTOR =
|
|
47
|
-
// inputs that don't trigger a meaningful event like "input" when clicked, including textual
|
|
48
|
-
// inputs (using a negative selector is shorter here)
|
|
49
|
-
'input:not([type="checkbox"]):not([type="radio"]):not([type="button"]):not([type="submit"]):not([type="reset"]):not([type="range"]),' + 'textarea,' + 'select,' +
|
|
50
|
-
// contenteditable and their descendants don't always trigger meaningful changes when manipulated
|
|
51
|
-
'[contenteditable],' + '[contenteditable] *,' +
|
|
52
|
-
// canvas, as there is no good way to detect activity occurring on them
|
|
53
|
-
'canvas,' +
|
|
54
|
-
// links that are interactive (have an href attribute) or any of their descendants, as they can
|
|
55
|
-
// open a new tab or navigate to a hash without triggering a meaningful event
|
|
56
|
-
'a[href],' + 'a[href] *';
|
|
57
|
-
export function isDead(click) {
|
|
58
|
-
if (click.hasPageActivity() || click.getUserActivity().input || click.getUserActivity().scroll) {
|
|
59
|
-
return false;
|
|
60
|
-
}
|
|
61
|
-
var target = click.event.target;
|
|
62
|
-
if (target.tagName === 'LABEL' && target.hasAttribute('for')) {
|
|
63
|
-
target = document.getElementById(target.getAttribute('for'));
|
|
64
|
-
}
|
|
65
|
-
return !target || !elementMatches(target, DEAD_CLICK_EXCLUDE_SELECTOR);
|
|
66
|
-
}
|
|
67
|
-
//# sourceMappingURL=computeFrustration.js.map
|
|
1
|
+
import{elementMatches,ONE_SECOND,FrustrationType,some,each}from"@cloudcare/browser-core";export function computeFrustration(clicks,rageClick){if(isRage(clicks))return rageClick.addFrustration(FrustrationType.RAGE_CLICK),some(clicks,isDead)&&rageClick.addFrustration(FrustrationType.DEAD_CLICK),rageClick.hasError()&&rageClick.addFrustration(FrustrationType.ERROR_CLICK),{isRage:!0};var hasSelectionChanged=some(clicks,(function(click){return click.getUserActivity().selection}));return each(clicks,(function(click){click.hasError()&&click.addFrustration(FrustrationType.ERROR_CLICK),isDead(click)&&!hasSelectionChanged&&click.addFrustration(FrustrationType.DEAD_CLICK)})),{isRage:!1}}export function isRage(clicks){if(some(clicks,(function(click){return click.getUserActivity().selection||click.getUserActivity().scroll})))return!1;for(var i=0;i<clicks.length-2;i+=1)if(clicks[i+3-1].event.timeStamp-clicks[i].event.timeStamp<=ONE_SECOND)return!0;return!1}var DEAD_CLICK_EXCLUDE_SELECTOR='input:not([type="checkbox"]):not([type="radio"]):not([type="button"]):not([type="submit"]):not([type="reset"]):not([type="range"]),textarea,select,[contenteditable],[contenteditable] *,canvas,a[href],a[href] *';export function isDead(click){if(click.hasPageActivity()||click.getUserActivity().input||click.getUserActivity().scroll)return!1;var target=click.event.target;return"LABEL"===target.tagName&&target.hasAttribute("for")&&(target=document.getElementById(target.getAttribute("for"))),!target||!elementMatches(target,DEAD_CLICK_EXCLUDE_SELECTOR)}
|
|
2
|
+
//# sourceMappingURL=computeFrustration.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"computeFrustration.js","names":["elementMatches","ONE_SECOND","FrustrationType","some","each","
|
|
1
|
+
{"version":3,"file":"computeFrustration.js","names":["elementMatches","ONE_SECOND","FrustrationType","some","each","computeFrustration","clicks","rageClick","isRage","addFrustration","RAGE_CLICK","isDead","DEAD_CLICK","hasError","ERROR_CLICK","hasSelectionChanged","click","getUserActivity","selection","scroll","i","length","event","timeStamp","DEAD_CLICK_EXCLUDE_SELECTOR","hasPageActivity","input","target","tagName","hasAttribute","document","getElementById","getAttribute"],"sources":["../../../../src/domain/rumEventsCollection/actions/computeFrustration.js"],"mappings":"OACEA,eACAC,WACAC,gBACAC,KACAC,SACK,iCAIA,SAASC,mBAAmBC,OAAQC,WACzC,GAAIC,OAAOF,QAQT,OAPAC,UAAUE,eAAeP,gBAAgBQ,YACrCP,KAAKG,OAAQK,SACfJ,UAAUE,eAAeP,gBAAgBU,YAEvCL,UAAUM,YACZN,UAAUE,eAAeP,gBAAgBY,aAEpC,CAAEN,QAAQ,GAGnB,IAAIO,oBAAsBZ,KAAKG,QAAQ,SAAUU,OAC/C,OAAOA,MAAMC,kBAAkBC,SACjC,IAcA,OAbAd,KAAKE,QAAQ,SAAUU,OACjBA,MAAMH,YACRG,MAAMP,eAAeP,gBAAgBY,aAGrCH,OAAOK,SAEND,qBAEDC,MAAMP,eAAeP,gBAAgBU,WAEzC,IAEO,CAAEJ,QAAQ,EACnB,QAEO,SAASA,OAAOF,QACrB,GACEH,KAAKG,QAAQ,SAAUU,OACrB,OAAOA,MAAMC,kBAAkBC,WAAaF,MAAMC,kBAAkBE,MACtE,IAEA,OAAO,EAET,IACE,IAAIC,EAAI,EACRA,EAAId,OAAOe,OAAM,EACjBD,GAAK,EAEL,GACEd,OAAOc,EA/CgC,EA+Ca,GAAGE,MAAMC,UAC3DjB,OAAOc,GAAGE,MAAMC,WAClBtB,WAEA,OAAO,EAGX,OAAO,CACT,CAEA,IAAIuB,4BAGF,2NAaK,SAASb,OAAOK,OACrB,GACEA,MAAMS,mBACNT,MAAMC,kBAAkBS,OACxBV,MAAMC,kBAAkBE,OAExB,OAAO,EAET,IAAIQ,OAASX,MAAMM,MAAMK,OAMzB,MAJuB,UAAnBA,OAAOC,SAAuBD,OAAOE,aAAa,SACpDF,OAASG,SAASC,eAAeJ,OAAOK,aAAa,UAG/CL,SAAW3B,eAAe2B,OAAQH,4BAC5C","ignoreList":[]}
|
|
@@ -1,279 +1,2 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
import { getNodePrivacyLevel, shouldMaskNode } from '../../privacy';
|
|
4
|
-
export var DEFAULT_PROGRAMMATIC_ACTION_NAME_ATTRIBUTE = 'data-guance-action-name';
|
|
5
|
-
export var ACTION_NAME_PLACEHOLDER = 'Masked Element';
|
|
6
|
-
export function getActionNameFromElement(element, configuration, shouldIgnoreTextualFallback, nodePrivacyLevel) {
|
|
7
|
-
configuration = configuration || {};
|
|
8
|
-
var userProgrammaticAttribute = configuration.actionNameAttribute;
|
|
9
|
-
var nodePrivacyLevelCache = new SDKMap();
|
|
10
|
-
var explicitActionName = getExplicitActionName(element, userProgrammaticAttribute);
|
|
11
|
-
if (explicitActionName) {
|
|
12
|
-
return explicitActionName;
|
|
13
|
-
}
|
|
14
|
-
if (configuration.enablePrivacyForActionName && shouldMaskNode(configuration, element, nodePrivacyLevel)) {
|
|
15
|
-
return ACTION_NAME_PLACEHOLDER;
|
|
16
|
-
}
|
|
17
|
-
return getActionNameFromElementForStrategies(element, configuration, nodePrivacyLevelCache, shouldIgnoreTextualFallback ? shadowDomPriorityStrategies : priorityStrategies) || !shouldIgnoreTextualFallback && getActionNameFromElementForStrategies(element, configuration, nodePrivacyLevelCache, fallbackStrategies) || '';
|
|
18
|
-
}
|
|
19
|
-
function getExplicitActionName(element, userProgrammaticAttribute) {
|
|
20
|
-
return getActionNameFromElementProgrammatically(element, DEFAULT_PROGRAMMATIC_ACTION_NAME_ATTRIBUTE) || userProgrammaticAttribute && getActionNameFromElementProgrammatically(element, userProgrammaticAttribute);
|
|
21
|
-
}
|
|
22
|
-
function getActionNameFromElementProgrammatically(targetElement, programmaticAttribute) {
|
|
23
|
-
var elementWithAttribute;
|
|
24
|
-
// We don't use getActionNameFromElementForStrategies here, because we want to consider all parents,
|
|
25
|
-
// without limit. It is up to the user to declare a relevant naming strategy.
|
|
26
|
-
var element = targetElement;
|
|
27
|
-
while (element) {
|
|
28
|
-
if (element.hasAttribute(programmaticAttribute)) {
|
|
29
|
-
elementWithAttribute = element;
|
|
30
|
-
break;
|
|
31
|
-
}
|
|
32
|
-
element = getParentElement(element);
|
|
33
|
-
}
|
|
34
|
-
if (!elementWithAttribute) {
|
|
35
|
-
return;
|
|
36
|
-
}
|
|
37
|
-
var name = elementWithAttribute.getAttribute(programmaticAttribute);
|
|
38
|
-
return truncate(normalizeWhitespace(name.trim()));
|
|
39
|
-
}
|
|
40
|
-
var priorityStrategies = [
|
|
41
|
-
// associated LABEL text
|
|
42
|
-
function (element, configuration, nodePrivacyLevelCache) {
|
|
43
|
-
// IE does not support element.labels, so we fallback to a CSS selector based on the element id
|
|
44
|
-
// instead
|
|
45
|
-
if (supportsLabelProperty()) {
|
|
46
|
-
if ('labels' in element && element.labels && element.labels.length > 0) {
|
|
47
|
-
return getTextualContent(element.labels[0], configuration, nodePrivacyLevelCache);
|
|
48
|
-
}
|
|
49
|
-
} else if (element.id) {
|
|
50
|
-
var label = element.ownerDocument && find(element.ownerDocument.querySelectorAll('label'), function (label) {
|
|
51
|
-
return label.htmlFor === element.id;
|
|
52
|
-
});
|
|
53
|
-
return label && getTextualContent(label, configuration, nodePrivacyLevelCache);
|
|
54
|
-
}
|
|
55
|
-
},
|
|
56
|
-
// INPUT button (and associated) value
|
|
57
|
-
function (element) {
|
|
58
|
-
if (element.nodeName === 'INPUT') {
|
|
59
|
-
var input = element;
|
|
60
|
-
var type = input.getAttribute('type');
|
|
61
|
-
if (type === 'button' || type === 'submit' || type === 'reset') {
|
|
62
|
-
return input.value;
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
},
|
|
66
|
-
// BUTTON, LABEL or button-like element text
|
|
67
|
-
function (element, configuration, nodePrivacyLevelCache) {
|
|
68
|
-
if (element.nodeName === 'BUTTON' || element.nodeName === 'LABEL' || element.getAttribute('role') === 'button') {
|
|
69
|
-
return getTextualContent(element, configuration, nodePrivacyLevelCache);
|
|
70
|
-
}
|
|
71
|
-
}, function (element) {
|
|
72
|
-
return element.getAttribute('aria-label');
|
|
73
|
-
},
|
|
74
|
-
// associated element text designated by the aria-labelledby attribute
|
|
75
|
-
function (element, configuration, nodePrivacyLevelCache) {
|
|
76
|
-
var labelledByAttribute = element.getAttribute('aria-labelledby');
|
|
77
|
-
if (labelledByAttribute) {
|
|
78
|
-
labelledByAttribute = labelledByAttribute.split(/\s+/);
|
|
79
|
-
labelledByAttribute = map(labelledByAttribute, function (id) {
|
|
80
|
-
return getElementById(element, id);
|
|
81
|
-
});
|
|
82
|
-
labelledByAttribute = filter(labelledByAttribute, function (label) {
|
|
83
|
-
return Boolean(label);
|
|
84
|
-
});
|
|
85
|
-
labelledByAttribute = map(labelledByAttribute, function (ele) {
|
|
86
|
-
return getTextualContent(ele, configuration, nodePrivacyLevelCache);
|
|
87
|
-
});
|
|
88
|
-
return labelledByAttribute.join(' ');
|
|
89
|
-
}
|
|
90
|
-
}, function (element) {
|
|
91
|
-
return element.getAttribute('alt');
|
|
92
|
-
}, function (element) {
|
|
93
|
-
return element.getAttribute('name');
|
|
94
|
-
}, function (element) {
|
|
95
|
-
return element.getAttribute('title');
|
|
96
|
-
}, function (element) {
|
|
97
|
-
return element.getAttribute('placeholder');
|
|
98
|
-
},
|
|
99
|
-
// SELECT first OPTION text
|
|
100
|
-
function (element, configuration, nodePrivacyLevelCache) {
|
|
101
|
-
if ('options' in element && element.options.length > 0) {
|
|
102
|
-
return getTextualContent(element.options[0], configuration, nodePrivacyLevelCache);
|
|
103
|
-
}
|
|
104
|
-
}];
|
|
105
|
-
var shadowDomPriorityStrategies = priorityStrategies.concat([function (element, configuration, nodePrivacyLevelCache) {
|
|
106
|
-
if (element.nodeName === 'A' && element.hasAttribute('href')) {
|
|
107
|
-
return getTextualContent(element, configuration, nodePrivacyLevelCache);
|
|
108
|
-
}
|
|
109
|
-
}]);
|
|
110
|
-
var fallbackStrategies = [function (element, configuration, nodePrivacyLevelCache) {
|
|
111
|
-
return getTextualContent(element, configuration, nodePrivacyLevelCache);
|
|
112
|
-
}];
|
|
113
|
-
|
|
114
|
-
/**
|
|
115
|
-
* Iterates over the target element and its parent, using the strategies list to get an action name.
|
|
116
|
-
* Each strategies are applied on each element, stopping as soon as a non-empty value is returned.
|
|
117
|
-
*/
|
|
118
|
-
var MAX_PARENTS_TO_CONSIDER = 10;
|
|
119
|
-
function getActionNameFromElementForStrategies(targetElement, configuration, nodePrivacyLevelCache, strategies) {
|
|
120
|
-
var element = targetElement;
|
|
121
|
-
var recursionCounter = 0;
|
|
122
|
-
while (recursionCounter <= MAX_PARENTS_TO_CONSIDER && element && element.nodeName !== 'BODY' && element.nodeName !== 'HTML' && element.nodeName !== 'HEAD') {
|
|
123
|
-
if (configuration.enablePrivacyForActionName) {
|
|
124
|
-
var privacyLevel = getNodePrivacyLevel(element, configuration.defaultPrivacyLevel, nodePrivacyLevelCache);
|
|
125
|
-
if (shouldMaskNode(configuration, element, privacyLevel)) {
|
|
126
|
-
return ACTION_NAME_PLACEHOLDER;
|
|
127
|
-
}
|
|
128
|
-
}
|
|
129
|
-
for (var i = 0; i < strategies.length; i++) {
|
|
130
|
-
var strategy = strategies[i];
|
|
131
|
-
var name = strategy(element, configuration, nodePrivacyLevelCache);
|
|
132
|
-
if (typeof name === 'string') {
|
|
133
|
-
var trimmedName = name.trim();
|
|
134
|
-
if (trimmedName) {
|
|
135
|
-
return truncate(normalizeWhitespace(trimmedName));
|
|
136
|
-
}
|
|
137
|
-
}
|
|
138
|
-
}
|
|
139
|
-
// Consider a FORM as a contextual limit to get the action name. This is experimental and may
|
|
140
|
-
// be reconsidered in the future.
|
|
141
|
-
if (element.nodeName === 'FORM') {
|
|
142
|
-
break;
|
|
143
|
-
}
|
|
144
|
-
element = getParentElement(element);
|
|
145
|
-
recursionCounter += 1;
|
|
146
|
-
}
|
|
147
|
-
}
|
|
148
|
-
function normalizeWhitespace(s) {
|
|
149
|
-
return s.replace(/\s+/g, ' ');
|
|
150
|
-
}
|
|
151
|
-
function truncate(s) {
|
|
152
|
-
return s.length > 100 ? safeTruncate(s, 100) + ' [...]' : s;
|
|
153
|
-
}
|
|
154
|
-
function getElementById(refElement, id) {
|
|
155
|
-
if (typeof refElement.getRootNode === 'function') {
|
|
156
|
-
var rootNode = refElement.getRootNode();
|
|
157
|
-
if (isNodeShadowRoot(rootNode) && typeof rootNode.getElementById === 'function') {
|
|
158
|
-
var shadowElement = rootNode.getElementById(id);
|
|
159
|
-
if (shadowElement) {
|
|
160
|
-
return shadowElement;
|
|
161
|
-
}
|
|
162
|
-
}
|
|
163
|
-
}
|
|
164
|
-
// Use the element ownerDocument here, because tests are executed in an iframe, so
|
|
165
|
-
// document.getElementById won't work.
|
|
166
|
-
return refElement.ownerDocument ? refElement.ownerDocument.getElementById(id) : null;
|
|
167
|
-
}
|
|
168
|
-
function getTextualContent(element, configuration, nodePrivacyLevelCache) {
|
|
169
|
-
if (element.isContentEditable) {
|
|
170
|
-
return;
|
|
171
|
-
}
|
|
172
|
-
if (configuration.enablePrivacyForActionName) {
|
|
173
|
-
var privacyLevel = getNodePrivacyLevel(element, configuration.defaultPrivacyLevel, nodePrivacyLevelCache);
|
|
174
|
-
if (shouldMaskNode(configuration, element, privacyLevel)) {
|
|
175
|
-
return;
|
|
176
|
-
}
|
|
177
|
-
return getPrivacyAwareTextualContent(element, configuration, nodePrivacyLevelCache);
|
|
178
|
-
}
|
|
179
|
-
return getLegacyTextualContent(element, configuration.actionNameAttribute);
|
|
180
|
-
}
|
|
181
|
-
function getLegacyTextualContent(element, userProgrammaticAttribute) {
|
|
182
|
-
if ('innerText' in element) {
|
|
183
|
-
var text = element.innerText;
|
|
184
|
-
var removeTextFromElements = function removeTextFromElements(query) {
|
|
185
|
-
var list = element.querySelectorAll(query);
|
|
186
|
-
for (var index = 0; index < list.length; index += 1) {
|
|
187
|
-
var _element = list[index];
|
|
188
|
-
if ('innerText' in _element) {
|
|
189
|
-
var textToReplace = _element.innerText;
|
|
190
|
-
if (textToReplace && textToReplace.trim().length > 0) {
|
|
191
|
-
text = text.replace(textToReplace, '');
|
|
192
|
-
}
|
|
193
|
-
}
|
|
194
|
-
}
|
|
195
|
-
};
|
|
196
|
-
if (!supportsInnerTextScriptAndStyleRemoval()) {
|
|
197
|
-
// remove the inner text of SCRIPT and STYLES from the result. This is a bit dirty, but should
|
|
198
|
-
// be relatively fast and work in most cases.
|
|
199
|
-
removeTextFromElements('script, style');
|
|
200
|
-
}
|
|
201
|
-
|
|
202
|
-
// remove the text of elements with programmatic attribute value
|
|
203
|
-
removeTextFromElements('[' + DEFAULT_PROGRAMMATIC_ACTION_NAME_ATTRIBUTE + ']');
|
|
204
|
-
if (userProgrammaticAttribute) {
|
|
205
|
-
removeTextFromElements('[' + userProgrammaticAttribute + ']');
|
|
206
|
-
}
|
|
207
|
-
return text;
|
|
208
|
-
}
|
|
209
|
-
return element.textContent;
|
|
210
|
-
}
|
|
211
|
-
function getPrivacyAwareTextualContent(element, configuration, nodePrivacyLevelCache) {
|
|
212
|
-
var ownerDocument = element.ownerDocument || document;
|
|
213
|
-
var ownerWindow = ownerDocument.defaultView || window;
|
|
214
|
-
var nodeFilter = ownerWindow.NodeFilter || NodeFilter;
|
|
215
|
-
var walker = ownerDocument.createTreeWalker(element, nodeFilter.SHOW_ELEMENT | nodeFilter.SHOW_TEXT, function (node) {
|
|
216
|
-
var privacyLevel = getNodePrivacyLevel(node, configuration.defaultPrivacyLevel, nodePrivacyLevelCache);
|
|
217
|
-
if (shouldMaskNode(configuration, node, privacyLevel)) {
|
|
218
|
-
return nodeFilter.FILTER_REJECT;
|
|
219
|
-
}
|
|
220
|
-
if (node.nodeType === node.ELEMENT_NODE) {
|
|
221
|
-
if (node.hasAttribute(DEFAULT_PROGRAMMATIC_ACTION_NAME_ATTRIBUTE) || configuration.actionNameAttribute && node.hasAttribute(configuration.actionNameAttribute)) {
|
|
222
|
-
return nodeFilter.FILTER_REJECT;
|
|
223
|
-
}
|
|
224
|
-
var style = ownerWindow.getComputedStyle(node);
|
|
225
|
-
if (style.visibility !== 'visible' || style.display === 'none' || style.contentVisibility && style.contentVisibility !== 'visible') {
|
|
226
|
-
return nodeFilter.FILTER_REJECT;
|
|
227
|
-
}
|
|
228
|
-
}
|
|
229
|
-
return nodeFilter.FILTER_ACCEPT;
|
|
230
|
-
});
|
|
231
|
-
var text = '';
|
|
232
|
-
while (walker.nextNode()) {
|
|
233
|
-
var node = walker.currentNode;
|
|
234
|
-
if (node.nodeType === node.ELEMENT_NODE) {
|
|
235
|
-
var style = ownerWindow.getComputedStyle(node);
|
|
236
|
-
if (node.nodeName === 'BR' || node.nodeName === 'P' || ['block', 'flex', 'grid', 'list-item', 'table', 'table-caption'].indexOf(style.display) !== -1) {
|
|
237
|
-
text += ' ';
|
|
238
|
-
}
|
|
239
|
-
} else {
|
|
240
|
-
text += node.textContent || '';
|
|
241
|
-
}
|
|
242
|
-
}
|
|
243
|
-
return normalizeWhitespace(text).trim();
|
|
244
|
-
}
|
|
245
|
-
|
|
246
|
-
/**
|
|
247
|
-
* Returns true if element.innerText excludes the text from inline SCRIPT and STYLE element. This
|
|
248
|
-
* should be the case everywhere except on Internet Explorer 10 and 11 (see [1])
|
|
249
|
-
*
|
|
250
|
-
* The innerText property relies on what is actually rendered to compute its output, so to check if
|
|
251
|
-
* it actually excludes SCRIPT and STYLE content, a solution would be to create a style element, set
|
|
252
|
-
* its content to '*', inject it in the document body, and check if the style element innerText
|
|
253
|
-
* property returns '*'. Using a new `document` instance won't work as it is not rendered.
|
|
254
|
-
*
|
|
255
|
-
* This solution requires specific CSP rules (see [2]) to be set by the customer. We want to avoid
|
|
256
|
-
* this, so instead we rely on browser detection. In case of false negative, the impact should be
|
|
257
|
-
* low, since we rely on this result to remove the SCRIPT and STYLE innerText (which will be empty)
|
|
258
|
-
* from a parent element innerText.
|
|
259
|
-
*
|
|
260
|
-
* [1]: https://web.archive.org/web/20210602165716/http://perfectionkills.com/the-poor-misunderstood-innerText/#diff-with-textContent
|
|
261
|
-
*/
|
|
262
|
-
function supportsInnerTextScriptAndStyleRemoval() {
|
|
263
|
-
return !isIE();
|
|
264
|
-
}
|
|
265
|
-
|
|
266
|
-
/**
|
|
267
|
-
* Returns true if the browser supports the element.labels property. This should be the case
|
|
268
|
-
* everywhere except on Internet Explorer.
|
|
269
|
-
* Note: The result is computed lazily, because we don't want any DOM access when the SDK is
|
|
270
|
-
* evaluated.
|
|
271
|
-
*/
|
|
272
|
-
var supportsLabelPropertyResult;
|
|
273
|
-
function supportsLabelProperty() {
|
|
274
|
-
if (supportsLabelPropertyResult === undefined) {
|
|
275
|
-
supportsLabelPropertyResult = 'labels' in HTMLInputElement.prototype;
|
|
276
|
-
}
|
|
277
|
-
return supportsLabelPropertyResult;
|
|
278
|
-
}
|
|
279
|
-
//# sourceMappingURL=getActionNameFromElement.js.map
|
|
1
|
+
import{SDKMap}from"@cloudcare/browser-core";import{safeTruncate,isIE,find,map,filter,getParentElement,isNodeShadowRoot}from"@cloudcare/browser-core";import{getNodePrivacyLevel,shouldMaskNode}from"../../privacy";export var DEFAULT_PROGRAMMATIC_ACTION_NAME_ATTRIBUTE="data-guance-action-name";export var ACTION_NAME_PLACEHOLDER="Masked Element";export function getActionNameFromElement(element,configuration,shouldIgnoreTextualFallback,nodePrivacyLevel){var userProgrammaticAttribute=(configuration=configuration||{}).actionNameAttribute,nodePrivacyLevelCache=new SDKMap,explicitActionName=function getExplicitActionName(element,userProgrammaticAttribute){return getActionNameFromElementProgrammatically(element,DEFAULT_PROGRAMMATIC_ACTION_NAME_ATTRIBUTE)||userProgrammaticAttribute&&getActionNameFromElementProgrammatically(element,userProgrammaticAttribute)}(element,userProgrammaticAttribute);return explicitActionName||(configuration.enablePrivacyForActionName&&shouldMaskNode(configuration,element,nodePrivacyLevel)?ACTION_NAME_PLACEHOLDER:getActionNameFromElementForStrategies(element,configuration,nodePrivacyLevelCache,shouldIgnoreTextualFallback?shadowDomPriorityStrategies:priorityStrategies)||!shouldIgnoreTextualFallback&&getActionNameFromElementForStrategies(element,configuration,nodePrivacyLevelCache,fallbackStrategies)||"")}function getActionNameFromElementProgrammatically(targetElement,programmaticAttribute){for(var elementWithAttribute,element=targetElement;element;){if(element.hasAttribute(programmaticAttribute)){elementWithAttribute=element;break}element=getParentElement(element)}if(elementWithAttribute)return truncate(normalizeWhitespace(elementWithAttribute.getAttribute(programmaticAttribute).trim()))}var supportsLabelPropertyResult,priorityStrategies=[function(element,configuration,nodePrivacyLevelCache){if(function supportsLabelProperty(){void 0===supportsLabelPropertyResult&&(supportsLabelPropertyResult="labels"in HTMLInputElement.prototype);return supportsLabelPropertyResult}()){if("labels"in element&&element.labels&&element.labels.length>0)return getTextualContent(element.labels[0],configuration,nodePrivacyLevelCache)}else if(element.id){var label=element.ownerDocument&&find(element.ownerDocument.querySelectorAll("label"),(function(label){return label.htmlFor===element.id}));return label&&getTextualContent(label,configuration,nodePrivacyLevelCache)}},function(element){if("INPUT"===element.nodeName){var input=element,type=input.getAttribute("type");if("button"===type||"submit"===type||"reset"===type)return input.value}},function(element,configuration,nodePrivacyLevelCache){if("BUTTON"===element.nodeName||"LABEL"===element.nodeName||"button"===element.getAttribute("role"))return getTextualContent(element,configuration,nodePrivacyLevelCache)},function(element){return element.getAttribute("aria-label")},function(element,configuration,nodePrivacyLevelCache){var labelledByAttribute=element.getAttribute("aria-labelledby");if(labelledByAttribute)return labelledByAttribute=labelledByAttribute.split(/\s+/),labelledByAttribute=map(labelledByAttribute,(function(id){return function getElementById(refElement,id){if("function"==typeof refElement.getRootNode){var rootNode=refElement.getRootNode();if(isNodeShadowRoot(rootNode)&&"function"==typeof rootNode.getElementById){var shadowElement=rootNode.getElementById(id);if(shadowElement)return shadowElement}}return refElement.ownerDocument?refElement.ownerDocument.getElementById(id):null}(element,id)})),labelledByAttribute=filter(labelledByAttribute,(function(label){return Boolean(label)})),(labelledByAttribute=map(labelledByAttribute,(function(ele){return getTextualContent(ele,configuration,nodePrivacyLevelCache)}))).join(" ")},function(element){return element.getAttribute("alt")},function(element){return element.getAttribute("name")},function(element){return element.getAttribute("title")},function(element){return element.getAttribute("placeholder")},function(element,configuration,nodePrivacyLevelCache){if("options"in element&&element.options.length>0)return getTextualContent(element.options[0],configuration,nodePrivacyLevelCache)}],shadowDomPriorityStrategies=priorityStrategies.concat([function(element,configuration,nodePrivacyLevelCache){if("A"===element.nodeName&&element.hasAttribute("href"))return getTextualContent(element,configuration,nodePrivacyLevelCache)}]),fallbackStrategies=[function(element,configuration,nodePrivacyLevelCache){return getTextualContent(element,configuration,nodePrivacyLevelCache)}],MAX_PARENTS_TO_CONSIDER=10;function getActionNameFromElementForStrategies(targetElement,configuration,nodePrivacyLevelCache,strategies){for(var element=targetElement,recursionCounter=0;recursionCounter<=MAX_PARENTS_TO_CONSIDER&&element&&"BODY"!==element.nodeName&&"HTML"!==element.nodeName&&"HEAD"!==element.nodeName;){if(configuration.enablePrivacyForActionName){var privacyLevel=getNodePrivacyLevel(element,configuration.defaultPrivacyLevel,nodePrivacyLevelCache);if(shouldMaskNode(configuration,element,privacyLevel))return ACTION_NAME_PLACEHOLDER}for(var i=0;i<strategies.length;i++){var name=(0,strategies[i])(element,configuration,nodePrivacyLevelCache);if("string"==typeof name){var trimmedName=name.trim();if(trimmedName)return truncate(normalizeWhitespace(trimmedName))}}if("FORM"===element.nodeName)break;element=getParentElement(element),recursionCounter+=1}}function normalizeWhitespace(s){return s.replace(/\s+/g," ")}function truncate(s){return s.length>100?safeTruncate(s,100)+" [...]":s}function getTextualContent(element,configuration,nodePrivacyLevelCache){if(!element.isContentEditable){if(configuration.enablePrivacyForActionName){var privacyLevel=getNodePrivacyLevel(element,configuration.defaultPrivacyLevel,nodePrivacyLevelCache);if(shouldMaskNode(configuration,element,privacyLevel))return;return function getPrivacyAwareTextualContent(element,configuration,nodePrivacyLevelCache){var ownerDocument=element.ownerDocument||document,ownerWindow=ownerDocument.defaultView||window,nodeFilter=ownerWindow.NodeFilter||NodeFilter,walker=ownerDocument.createTreeWalker(element,nodeFilter.SHOW_ELEMENT|nodeFilter.SHOW_TEXT,(function(node){var privacyLevel=getNodePrivacyLevel(node,configuration.defaultPrivacyLevel,nodePrivacyLevelCache);if(shouldMaskNode(configuration,node,privacyLevel))return nodeFilter.FILTER_REJECT;if(node.nodeType===node.ELEMENT_NODE){if(node.hasAttribute(DEFAULT_PROGRAMMATIC_ACTION_NAME_ATTRIBUTE)||configuration.actionNameAttribute&&node.hasAttribute(configuration.actionNameAttribute))return nodeFilter.FILTER_REJECT;var style=ownerWindow.getComputedStyle(node);if("visible"!==style.visibility||"none"===style.display||style.contentVisibility&&"visible"!==style.contentVisibility)return nodeFilter.FILTER_REJECT}return nodeFilter.FILTER_ACCEPT})),text="";for(;walker.nextNode();){var node=walker.currentNode;if(node.nodeType===node.ELEMENT_NODE){var style=ownerWindow.getComputedStyle(node);"BR"!==node.nodeName&&"P"!==node.nodeName&&-1===["block","flex","grid","list-item","table","table-caption"].indexOf(style.display)||(text+=" ")}else text+=node.textContent||""}return normalizeWhitespace(text).trim()}(element,configuration,nodePrivacyLevelCache)}return function getLegacyTextualContent(element,userProgrammaticAttribute){if("innerText"in element){var text=element.innerText,removeTextFromElements=function removeTextFromElements(query){for(var list=element.querySelectorAll(query),index=0;index<list.length;index+=1){var _element=list[index];if("innerText"in _element){var textToReplace=_element.innerText;textToReplace&&textToReplace.trim().length>0&&(text=text.replace(textToReplace,""))}}};return function supportsInnerTextScriptAndStyleRemoval(){return!isIE()}()||removeTextFromElements("script, style"),removeTextFromElements("["+DEFAULT_PROGRAMMATIC_ACTION_NAME_ATTRIBUTE+"]"),userProgrammaticAttribute&&removeTextFromElements("["+userProgrammaticAttribute+"]"),text}return element.textContent}(element,configuration.actionNameAttribute)}}
|
|
2
|
+
//# sourceMappingURL=getActionNameFromElement.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getActionNameFromElement.js","names":["SDKMap","safeTruncate","isIE","find","map","filter","getParentElement","isNodeShadowRoot","getNodePrivacyLevel","shouldMaskNode","DEFAULT_PROGRAMMATIC_ACTION_NAME_ATTRIBUTE","ACTION_NAME_PLACEHOLDER","getActionNameFromElement","element","configuration","shouldIgnoreTextualFallback","nodePrivacyLevel","userProgrammaticAttribute","actionNameAttribute","nodePrivacyLevelCache","explicitActionName","getExplicitActionName","enablePrivacyForActionName","getActionNameFromElementForStrategies","shadowDomPriorityStrategies","priorityStrategies","fallbackStrategies","getActionNameFromElementProgrammatically","targetElement","programmaticAttribute","elementWithAttribute","hasAttribute","name","getAttribute","truncate","normalizeWhitespace","trim","supportsLabelProperty","labels","length","getTextualContent","id","label","ownerDocument","querySelectorAll","htmlFor","nodeName","input","type","value","labelledByAttribute","split","getElementById","Boolean","ele","join","options","concat","MAX_PARENTS_TO_CONSIDER","strategies","recursionCounter","privacyLevel","defaultPrivacyLevel","i","strategy","trimmedName","s","replace","refElement","getRootNode","rootNode","shadowElement","isContentEditable","getPrivacyAwareTextualContent","getLegacyTextualContent","text","innerText","removeTextFromElements","query","list","index","_element","textToReplace","supportsInnerTextScriptAndStyleRemoval","textContent","document","ownerWindow","defaultView","window","nodeFilter","NodeFilter","walker","createTreeWalker","SHOW_ELEMENT","SHOW_TEXT","node","FILTER_REJECT","nodeType","ELEMENT_NODE","style","getComputedStyle","visibility","display","contentVisibility","FILTER_ACCEPT","nextNode","currentNode","indexOf","supportsLabelPropertyResult","undefined","HTMLInputElement","prototype"],"sources":["../../../../src/domain/rumEventsCollection/actions/getActionNameFromElement.js"],"mappings":"AAAA,SAASA,MAAM,QAAQ,yBAAyB;AAChD,SACEC,YAAY,EACZC,IAAI,EACJC,IAAI,EACJC,GAAG,EACHC,MAAM,EACNC,gBAAgB,EAChBC,gBAAgB,QACX,yBAAyB;AAChC,SACEC,mBAAmB,EACnBC,cAAc,QACT,eAAe;AAEtB,OAAO,IAAIC,0CAA0C,GACnD,yBAAyB;AAC3B,OAAO,IAAIC,uBAAuB,GAAG,gBAAgB;AAErD,OAAO,SAASC,wBAAwBA,CACtCC,OAAO,EACPC,aAAa,EACbC,2BAA2B,EAC3BC,gBAAgB,EAChB;EACAF,aAAa,GAAGA,aAAa,IAAI,CAAC,CAAC;EACnC,IAAIG,yBAAyB,GAAGH,aAAa,CAACI,mBAAmB;EACjE,IAAIC,qBAAqB,GAAG,IAAInB,MAAM,CAAC,CAAC;EACxC,IAAIoB,kBAAkB,GAAGC,qBAAqB,CAC5CR,OAAO,EACPI,yBACF,CAAC;EAED,IAAIG,kBAAkB,EAAE;IACtB,OAAOA,kBAAkB;EAC3B;EACA,IACEN,aAAa,CAACQ,0BAA0B,IACxCb,cAAc,CAACK,aAAa,EAAED,OAAO,EAAEG,gBAAgB,CAAC,EACxD;IACA,OAAOL,uBAAuB;EAChC;EAEA,OACEY,qCAAqC,CACnCV,OAAO,EACPC,aAAa,EACbK,qBAAqB,EACrBJ,2BAA2B,GACvBS,2BAA2B,GAC3BC,kBACN,CAAC,IACA,CAACV,2BAA2B,IAC3BQ,qCAAqC,CACnCV,OAAO,EACPC,aAAa,EACbK,qBAAqB,EACrBO,kBACF,CAAE,IACJ,EAAE;AAEN;AAEA,SAASL,qBAAqBA,CAACR,OAAO,EAAEI,yBAAyB,EAAE;E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B,IAAI,GAAG,EAAE;EACb,OAAOgB,MAAM,CAACc,QAAQ,CAAC,CAAC,EAAE;IACxB,IAAIV,IAAI,GAAGJ,MAAM,CAACe,WAAW;IAC7B,IAAIX,IAAI,CAACE,QAAQ,KAAKF,IAAI,CAACG,YAAY,EAAE;MACvC,IAAIC,KAAK,GAAGb,WAAW,CAACc,gBAAgB,CAACL,IAAI,CAAC;MAC9C,IACEA,IAAI,CAACjD,QAAQ,KAAK,IAAI,IACtBiD,IAAI,CAACjD,QAAQ,KAAK,GAAG,IACrB,CAAC,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,WAAW,EAAE,OAAO,EAAE,eAAe,CAAC,CAAC6D,OAAO,CACtER,KAAK,CAACG,OACR,CAAC,KAAK,CAAC,CAAC,EACR;QACA3B,IAAI,IAAI,GAAG;MACb;IACF,CAAC,MAAM;MACLA,IAAI,IAAIoB,IAAI,CAACX,WAAW,IAAI,EAAE;IAChC;EACF;EACA,OAAOjD,mBAAmB,CAACwC,IAAI,CAAC,CAACvC,IAAI,CAAC,CAAC;AACzC;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS+C,sCAAsCA,CAAA,EAAG;EAChD,OAAO,CAACjF,IAAI,CAAC,CAAC;AAChB;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI0G,2BAA2B;AAC/B,SAASvE,qBAAqBA,CAAA,EAAG;EAC/B,IAAIuE,2BAA2B,KAAKC,SAAS,EAAE;IAC7CD,2BAA2B,GAAG,QAAQ,IAAIE,gBAAgB,CAACC,SAAS;EACtE;EACA,OAAOH,2BAA2B;AACpC","ignoreList":[]}
|
|
1
|
+
{"version":3,"file":"getActionNameFromElement.js","names":["SDKMap","safeTruncate","isIE","find","map","filter","getParentElement","isNodeShadowRoot","getNodePrivacyLevel","shouldMaskNode","DEFAULT_PROGRAMMATIC_ACTION_NAME_ATTRIBUTE","ACTION_NAME_PLACEHOLDER","getActionNameFromElement","element","configuration","shouldIgnoreTextualFallback","nodePrivacyLevel","userProgrammaticAttribute","actionNameAttribute","nodePrivacyLevelCache","explicitActionName","getExplicitActionName","getActionNameFromElementProgrammatically","enablePrivacyForActionName","getActionNameFromElementForStrategies","shadowDomPriorityStrategies","priorityStrategies","fallbackStrategies","targetElement","programmaticAttribute","elementWithAttribute","hasAttribute","truncate","normalizeWhitespace","getAttribute","trim","supportsLabelPropertyResult","supportsLabelProperty","undefined","HTMLInputElement","prototype","labels","length","getTextualContent","id","label","ownerDocument","querySelectorAll","htmlFor","nodeName","input","type","value","labelledByAttribute","split","getElementById","refElement","getRootNode","rootNode","shadowElement","Boolean","ele","join","options","concat","MAX_PARENTS_TO_CONSIDER","strategies","recursionCounter","privacyLevel","defaultPrivacyLevel","i","name","strategy","trimmedName","s","replace","isContentEditable","getPrivacyAwareTextualContent","document","ownerWindow","defaultView","window","nodeFilter","NodeFilter","walker","createTreeWalker","SHOW_ELEMENT","SHOW_TEXT","node","FILTER_REJECT","nodeType","ELEMENT_NODE","style","getComputedStyle","visibility","display","contentVisibility","FILTER_ACCEPT","text","nextNode","currentNode","indexOf","textContent","getLegacyTextualContent","innerText","removeTextFromElements","query","list","index","_element","textToReplace","supportsInnerTextScriptAndStyleRemoval"],"sources":["../../../../src/domain/rumEventsCollection/actions/getActionNameFromElement.js"],"mappings":"OAASA,WAAc,iCAErBC,aACAC,KACAC,KACAC,IACAC,OACAC,iBACAC,qBACK,iCAELC,oBACAC,mBACK,uBAEA,IAAIC,2CACT,iCACK,IAAIC,wBAA0B,wBAE9B,SAASC,yBACdC,QACAC,cACAC,4BACAC,kBAGA,IAAIC,2BADJH,cAAgBA,eAAiB,CAAC,GACYI,oBAC1CC,sBAAwB,IAAInB,OAC5BoB,mBAmCN,SAASC,sBAAsBR,QAASI,2BACtC,OACEK,yCACET,QACAH,6CAEDO,2BACCK,yCACET,QACAI,0BAGR,CA/C2BI,CACvBR,QACAI,2BAGF,OAAIG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