@kubesense/kubesense-browser-rum-core 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +201 -0
- package/README.md +3 -0
- package/cjs/boot/preStartRum.d.ts +7 -0
- package/cjs/boot/preStartRum.js +190 -0
- package/cjs/boot/preStartRum.js.map +1 -0
- package/cjs/boot/rumPublicApi.d.ts +409 -0
- package/cjs/boot/rumPublicApi.js +168 -0
- package/cjs/boot/rumPublicApi.js.map +1 -0
- package/cjs/boot/startRum.d.ts +109 -0
- package/cjs/boot/startRum.js +153 -0
- package/cjs/boot/startRum.js.map +1 -0
- package/cjs/browser/cookieObservable.d.ts +8 -0
- package/cjs/browser/cookieObservable.js +39 -0
- package/cjs/browser/cookieObservable.js.map +1 -0
- package/cjs/browser/domMutationObservable.d.ts +27 -0
- package/cjs/browser/domMutationObservable.js +58 -0
- package/cjs/browser/domMutationObservable.js.map +1 -0
- package/cjs/browser/firstInputPolyfill.d.ts +8 -0
- package/cjs/browser/firstInputPolyfill.js +68 -0
- package/cjs/browser/firstInputPolyfill.js.map +1 -0
- package/cjs/browser/htmlDomUtils.d.ts +13 -0
- package/cjs/browser/htmlDomUtils.js +46 -0
- package/cjs/browser/htmlDomUtils.js.map +1 -0
- package/cjs/browser/locationChangeObservable.d.ts +7 -0
- package/cjs/browser/locationChangeObservable.js +51 -0
- package/cjs/browser/locationChangeObservable.js.map +1 -0
- package/cjs/browser/performanceObservable.d.ts +174 -0
- package/cjs/browser/performanceObservable.js +126 -0
- package/cjs/browser/performanceObservable.js.map +1 -0
- package/cjs/browser/performanceUtils.d.ts +7 -0
- package/cjs/browser/performanceUtils.js +42 -0
- package/cjs/browser/performanceUtils.js.map +1 -0
- package/cjs/browser/scroll.d.ts +2 -0
- package/cjs/browser/scroll.js +33 -0
- package/cjs/browser/scroll.js.map +1 -0
- package/cjs/browser/viewportObservable.d.ts +10 -0
- package/cjs/browser/viewportObservable.js +37 -0
- package/cjs/browser/viewportObservable.js.map +1 -0
- package/cjs/browser/windowOpenObservable.d.ts +5 -0
- package/cjs/browser/windowOpenObservable.js +10 -0
- package/cjs/browser/windowOpenObservable.js.map +1 -0
- package/cjs/domain/action/actionCollection.d.ts +21 -0
- package/cjs/domain/action/actionCollection.js +96 -0
- package/cjs/domain/action/actionCollection.js.map +1 -0
- package/cjs/domain/action/actionNameConstants.d.ts +18 -0
- package/cjs/domain/action/actionNameConstants.js +11 -0
- package/cjs/domain/action/actionNameConstants.js.map +1 -0
- package/cjs/domain/action/clickChain.d.ts +8 -0
- package/cjs/domain/action/clickChain.js +61 -0
- package/cjs/domain/action/clickChain.js.map +1 -0
- package/cjs/domain/action/computeFrustration.d.ts +6 -0
- package/cjs/domain/action/computeFrustration.js +70 -0
- package/cjs/domain/action/computeFrustration.js.map +1 -0
- package/cjs/domain/action/getActionNameFromElement.d.ts +4 -0
- package/cjs/domain/action/getActionNameFromElement.js +239 -0
- package/cjs/domain/action/getActionNameFromElement.js.map +1 -0
- package/cjs/domain/action/interactionSelectorCache.d.ts +5 -0
- package/cjs/domain/action/interactionSelectorCache.js +23 -0
- package/cjs/domain/action/interactionSelectorCache.js.map +1 -0
- package/cjs/domain/action/listenActionEvents.d.ts +19 -0
- package/cjs/domain/action/listenActionEvents.js +61 -0
- package/cjs/domain/action/listenActionEvents.js.map +1 -0
- package/cjs/domain/action/trackClickActions.d.ts +81 -0
- package/cjs/domain/action/trackClickActions.js +237 -0
- package/cjs/domain/action/trackClickActions.js.map +1 -0
- package/cjs/domain/assembly.d.ts +5 -0
- package/cjs/domain/assembly.js +102 -0
- package/cjs/domain/assembly.js.map +1 -0
- package/cjs/domain/configuration/configuration.d.ts +325 -0
- package/cjs/domain/configuration/configuration.js +205 -0
- package/cjs/domain/configuration/configuration.js.map +1 -0
- package/cjs/domain/configuration/index.d.ts +2 -0
- package/cjs/domain/configuration/index.js +19 -0
- package/cjs/domain/configuration/index.js.map +1 -0
- package/cjs/domain/configuration/jsonPathParser.d.ts +28 -0
- package/cjs/domain/configuration/jsonPathParser.js +159 -0
- package/cjs/domain/configuration/jsonPathParser.js.map +1 -0
- package/cjs/domain/configuration/remoteConfiguration.d.ts +39 -0
- package/cjs/domain/configuration/remoteConfiguration.js +243 -0
- package/cjs/domain/configuration/remoteConfiguration.js.map +1 -0
- package/cjs/domain/configuration/remoteConfiguration.types.d.ts +138 -0
- package/cjs/domain/configuration/remoteConfiguration.types.js +7 -0
- package/cjs/domain/configuration/remoteConfiguration.types.js.map +1 -0
- package/cjs/domain/contexts/ciVisibilityContext.d.ts +12 -0
- package/cjs/domain/contexts/ciVisibilityContext.js +34 -0
- package/cjs/domain/contexts/ciVisibilityContext.js.map +1 -0
- package/cjs/domain/contexts/connectivityContext.d.ts +2 -0
- package/cjs/domain/contexts/connectivityContext.js +11 -0
- package/cjs/domain/contexts/connectivityContext.js.map +1 -0
- package/cjs/domain/contexts/defaultContext.d.ts +4 -0
- package/cjs/domain/contexts/defaultContext.js +34 -0
- package/cjs/domain/contexts/defaultContext.js.map +1 -0
- package/cjs/domain/contexts/displayContext.d.ts +6 -0
- package/cjs/domain/contexts/displayContext.js +28 -0
- package/cjs/domain/contexts/displayContext.js.map +1 -0
- package/cjs/domain/contexts/featureFlagContext.d.ts +19 -0
- package/cjs/domain/contexts/featureFlagContext.js +53 -0
- package/cjs/domain/contexts/featureFlagContext.js.map +1 -0
- package/cjs/domain/contexts/internalContext.d.ts +12 -0
- package/cjs/domain/contexts/internalContext.js +26 -0
- package/cjs/domain/contexts/internalContext.js.map +1 -0
- package/cjs/domain/contexts/pageStateHistory.d.ts +23 -0
- package/cjs/domain/contexts/pageStateHistory.js +104 -0
- package/cjs/domain/contexts/pageStateHistory.js.map +1 -0
- package/cjs/domain/contexts/sessionContext.d.ts +5 -0
- package/cjs/domain/contexts/sessionContext.js +47 -0
- package/cjs/domain/contexts/sessionContext.js.map +1 -0
- package/cjs/domain/contexts/syntheticsContext.d.ts +2 -0
- package/cjs/domain/contexts/syntheticsContext.js +25 -0
- package/cjs/domain/contexts/syntheticsContext.js.map +1 -0
- package/cjs/domain/contexts/trackingConsentContext.d.ts +3 -0
- package/cjs/domain/contexts/trackingConsentContext.js +14 -0
- package/cjs/domain/contexts/trackingConsentContext.js.map +1 -0
- package/cjs/domain/contexts/urlContexts.d.ts +22 -0
- package/cjs/domain/contexts/urlContexts.js +64 -0
- package/cjs/domain/contexts/urlContexts.js.map +1 -0
- package/cjs/domain/contexts/userAgentDataContext.d.ts +2 -0
- package/cjs/domain/contexts/userAgentDataContext.js +31 -0
- package/cjs/domain/contexts/userAgentDataContext.js.map +1 -0
- package/cjs/domain/contexts/viewHistory.d.ts +17 -0
- package/cjs/domain/contexts/viewHistory.js +48 -0
- package/cjs/domain/contexts/viewHistory.js.map +1 -0
- package/cjs/domain/discardNegativeDuration.d.ts +2 -0
- package/cjs/domain/discardNegativeDuration.js +8 -0
- package/cjs/domain/discardNegativeDuration.js.map +1 -0
- package/cjs/domain/error/errorCollection.d.ts +17 -0
- package/cjs/domain/error/errorCollection.js +74 -0
- package/cjs/domain/error/errorCollection.js.map +1 -0
- package/cjs/domain/error/trackConsoleError.d.ts +4 -0
- package/cjs/domain/error/trackConsoleError.js +13 -0
- package/cjs/domain/error/trackConsoleError.js.map +1 -0
- package/cjs/domain/error/trackReportError.d.ts +5 -0
- package/cjs/domain/error/trackReportError.js +16 -0
- package/cjs/domain/error/trackReportError.js.map +1 -0
- package/cjs/domain/event/eventCollection.d.ts +10 -0
- package/cjs/domain/event/eventCollection.js +27 -0
- package/cjs/domain/event/eventCollection.js.map +1 -0
- package/cjs/domain/getSelectorFromElement.d.ts +64 -0
- package/cjs/domain/getSelectorFromElement.js +218 -0
- package/cjs/domain/getSelectorFromElement.js.map +1 -0
- package/cjs/domain/getSessionReplayUrl.d.ts +9 -0
- package/cjs/domain/getSessionReplayUrl.js +34 -0
- package/cjs/domain/getSessionReplayUrl.js.map +1 -0
- package/cjs/domain/hooks.d.ts +23 -0
- package/cjs/domain/hooks.js +6 -0
- package/cjs/domain/hooks.js.map +1 -0
- package/cjs/domain/lifeCycle.d.ts +73 -0
- package/cjs/domain/lifeCycle.js +6 -0
- package/cjs/domain/lifeCycle.js.map +1 -0
- package/cjs/domain/limitModification.d.ts +8 -0
- package/cjs/domain/limitModification.js +46 -0
- package/cjs/domain/limitModification.js.map +1 -0
- package/cjs/domain/longTask/longTaskCollection.d.ts +18 -0
- package/cjs/domain/longTask/longTaskCollection.js +91 -0
- package/cjs/domain/longTask/longTaskCollection.js.map +1 -0
- package/cjs/domain/plugins.d.ts +40 -0
- package/cjs/domain/plugins.js +15 -0
- package/cjs/domain/plugins.js.map +1 -0
- package/cjs/domain/privacy.d.ts +44 -0
- package/cjs/domain/privacy.js +313 -0
- package/cjs/domain/privacy.js.map +1 -0
- package/cjs/domain/privacyConstants.d.ts +23 -0
- package/cjs/domain/privacyConstants.js +39 -0
- package/cjs/domain/privacyConstants.js.map +1 -0
- package/cjs/domain/requestCollection.d.ts +54 -0
- package/cjs/domain/requestCollection.js +111 -0
- package/cjs/domain/requestCollection.js.map +1 -0
- package/cjs/domain/resource/graphql.d.ts +23 -0
- package/cjs/domain/resource/graphql.js +97 -0
- package/cjs/domain/resource/graphql.js.map +1 -0
- package/cjs/domain/resource/matchRequestResourceEntry.d.ts +16 -0
- package/cjs/domain/resource/matchRequestResourceEntry.js +49 -0
- package/cjs/domain/resource/matchRequestResourceEntry.js.map +1 -0
- package/cjs/domain/resource/requestRegistry.d.ts +9 -0
- package/cjs/domain/resource/requestRegistry.js +41 -0
- package/cjs/domain/resource/requestRegistry.js.map +1 -0
- package/cjs/domain/resource/resourceCollection.d.ts +7 -0
- package/cjs/domain/resource/resourceCollection.js +190 -0
- package/cjs/domain/resource/resourceCollection.js.map +1 -0
- package/cjs/domain/resource/resourceUtils.d.ts +55 -0
- package/cjs/domain/resource/resourceUtils.js +259 -0
- package/cjs/domain/resource/resourceUtils.js.map +1 -0
- package/cjs/domain/resource/retrieveInitialDocumentResourceTiming.d.ts +4 -0
- package/cjs/domain/resource/retrieveInitialDocumentResourceTiming.js +24 -0
- package/cjs/domain/resource/retrieveInitialDocumentResourceTiming.js.map +1 -0
- package/cjs/domain/rumSessionManager.d.ts +36 -0
- package/cjs/domain/rumSessionManager.js +77 -0
- package/cjs/domain/rumSessionManager.js.map +1 -0
- package/cjs/domain/sampler/sampler.d.ts +10 -0
- package/cjs/domain/sampler/sampler.js +63 -0
- package/cjs/domain/sampler/sampler.js.map +1 -0
- package/cjs/domain/startCustomerDataTelemetry.d.ts +4 -0
- package/cjs/domain/startCustomerDataTelemetry.js +56 -0
- package/cjs/domain/startCustomerDataTelemetry.js.map +1 -0
- package/cjs/domain/tracing/getDocumentTraceId.d.ts +12 -0
- package/cjs/domain/tracing/getDocumentTraceId.js +76 -0
- package/cjs/domain/tracing/getDocumentTraceId.js.map +1 -0
- package/cjs/domain/tracing/identifier.d.ts +13 -0
- package/cjs/domain/tracing/identifier.js +55 -0
- package/cjs/domain/tracing/identifier.js.map +1 -0
- package/cjs/domain/tracing/sampler.d.ts +10 -0
- package/cjs/domain/tracing/sampler.js +69 -0
- package/cjs/domain/tracing/sampler.js.map +1 -0
- package/cjs/domain/tracing/tracer.d.ts +30 -0
- package/cjs/domain/tracing/tracer.js +161 -0
- package/cjs/domain/tracing/tracer.js.map +1 -0
- package/cjs/domain/tracing/tracer.types.d.ts +12 -0
- package/cjs/domain/tracing/tracer.types.js +3 -0
- package/cjs/domain/tracing/tracer.types.js.map +1 -0
- package/cjs/domain/trackEventCounts.d.ts +17 -0
- package/cjs/domain/trackEventCounts.js +50 -0
- package/cjs/domain/trackEventCounts.js.map +1 -0
- package/cjs/domain/view/bfCacheSupport.d.ts +2 -0
- package/cjs/domain/view/bfCacheSupport.js +13 -0
- package/cjs/domain/view/bfCacheSupport.js.map +1 -0
- package/cjs/domain/view/trackViewEventCounts.d.ts +5 -0
- package/cjs/domain/view/trackViewEventCounts.js +16 -0
- package/cjs/domain/view/trackViewEventCounts.js.map +1 -0
- package/cjs/domain/view/trackViews.d.ts +65 -0
- package/cjs/domain/view/trackViews.js +275 -0
- package/cjs/domain/view/trackViews.js.map +1 -0
- package/cjs/domain/view/viewCollection.d.ts +18 -0
- package/cjs/domain/view/viewCollection.js +153 -0
- package/cjs/domain/view/viewCollection.js.map +1 -0
- package/cjs/domain/view/viewMetrics/getClsAttributionImpactedArea.d.ts +6 -0
- package/cjs/domain/view/viewMetrics/getClsAttributionImpactedArea.js +32 -0
- package/cjs/domain/view/viewMetrics/getClsAttributionImpactedArea.js.map +1 -0
- package/cjs/domain/view/viewMetrics/interactionCountPolyfill.d.ts +18 -0
- package/cjs/domain/view/viewMetrics/interactionCountPolyfill.js +44 -0
- package/cjs/domain/view/viewMetrics/interactionCountPolyfill.js.map +1 -0
- package/cjs/domain/view/viewMetrics/startInitialViewMetricsTelemetry.d.ts +6 -0
- package/cjs/domain/view/viewMetrics/startInitialViewMetricsTelemetry.js +44 -0
- package/cjs/domain/view/viewMetrics/startInitialViewMetricsTelemetry.js.map +1 -0
- package/cjs/domain/view/viewMetrics/trackBfcacheMetrics.d.ts +8 -0
- package/cjs/domain/view/viewMetrics/trackBfcacheMetrics.js +17 -0
- package/cjs/domain/view/viewMetrics/trackBfcacheMetrics.js.map +1 -0
- package/cjs/domain/view/viewMetrics/trackCommonViewMetrics.d.ts +21 -0
- package/cjs/domain/view/viewMetrics/trackCommonViewMetrics.js +37 -0
- package/cjs/domain/view/viewMetrics/trackCommonViewMetrics.js.map +1 -0
- package/cjs/domain/view/viewMetrics/trackCumulativeLayoutShift.d.ts +37 -0
- package/cjs/domain/view/viewMetrics/trackCumulativeLayoutShift.js +135 -0
- package/cjs/domain/view/viewMetrics/trackCumulativeLayoutShift.js.map +1 -0
- package/cjs/domain/view/viewMetrics/trackFirstContentfulPaint.d.ts +13 -0
- package/cjs/domain/view/viewMetrics/trackFirstContentfulPaint.js +39 -0
- package/cjs/domain/view/viewMetrics/trackFirstContentfulPaint.js.map +1 -0
- package/cjs/domain/view/viewMetrics/trackFirstHidden.d.ts +10 -0
- package/cjs/domain/view/viewMetrics/trackFirstHidden.js +33 -0
- package/cjs/domain/view/viewMetrics/trackFirstHidden.js.map +1 -0
- package/cjs/domain/view/viewMetrics/trackFirstInput.d.ts +19 -0
- package/cjs/domain/view/viewMetrics/trackFirstInput.js +43 -0
- package/cjs/domain/view/viewMetrics/trackFirstInput.js.map +1 -0
- package/cjs/domain/view/viewMetrics/trackInitialViewMetrics.d.ts +15 -0
- package/cjs/domain/view/viewMetrics/trackInitialViewMetrics.js +41 -0
- package/cjs/domain/view/viewMetrics/trackInitialViewMetrics.js.map +1 -0
- package/cjs/domain/view/viewMetrics/trackInteractionToNextPaint.d.ts +25 -0
- package/cjs/domain/view/viewMetrics/trackInteractionToNextPaint.js +155 -0
- package/cjs/domain/view/viewMetrics/trackInteractionToNextPaint.js.map +1 -0
- package/cjs/domain/view/viewMetrics/trackLargestContentfulPaint.d.ts +18 -0
- package/cjs/domain/view/viewMetrics/trackLargestContentfulPaint.js +61 -0
- package/cjs/domain/view/viewMetrics/trackLargestContentfulPaint.js.map +1 -0
- package/cjs/domain/view/viewMetrics/trackLoadingTime.d.ts +14 -0
- package/cjs/domain/view/viewMetrics/trackLoadingTime.js +50 -0
- package/cjs/domain/view/viewMetrics/trackLoadingTime.js.map +1 -0
- package/cjs/domain/view/viewMetrics/trackNavigationTimings.d.ts +14 -0
- package/cjs/domain/view/viewMetrics/trackNavigationTimings.js +43 -0
- package/cjs/domain/view/viewMetrics/trackNavigationTimings.js.map +1 -0
- package/cjs/domain/view/viewMetrics/trackScrollMetrics.d.ts +25 -0
- package/cjs/domain/view/viewMetrics/trackScrollMetrics.js +78 -0
- package/cjs/domain/view/viewMetrics/trackScrollMetrics.js.map +1 -0
- package/cjs/domain/vital/vitalCollection.d.ts +55 -0
- package/cjs/domain/vital/vitalCollection.js +113 -0
- package/cjs/domain/vital/vitalCollection.js.map +1 -0
- package/cjs/domain/waitPageActivityEnd.d.ts +54 -0
- package/cjs/domain/waitPageActivityEnd.js +129 -0
- package/cjs/domain/waitPageActivityEnd.js.map +1 -0
- package/cjs/domainContext.types.d.ts +39 -0
- package/cjs/domainContext.types.js +6 -0
- package/cjs/domainContext.types.js.map +1 -0
- package/cjs/index.d.ts +41 -0
- package/cjs/index.js +59 -0
- package/cjs/index.js.map +1 -0
- package/cjs/rawRumEvent.types.d.ts +326 -0
- package/cjs/rawRumEvent.types.js +34 -0
- package/cjs/rawRumEvent.types.js.map +1 -0
- package/cjs/rumEvent.types.d.ts +2026 -0
- package/cjs/rumEvent.types.js +7 -0
- package/cjs/rumEvent.types.js.map +1 -0
- package/cjs/transport/formDataTransport.d.ts +16 -0
- package/cjs/transport/formDataTransport.js +46 -0
- package/cjs/transport/formDataTransport.js.map +1 -0
- package/cjs/transport/startRumBatch.d.ts +5 -0
- package/cjs/transport/startRumBatch.js +33 -0
- package/cjs/transport/startRumBatch.js.map +1 -0
- package/cjs/transport/startRumEventBridge.d.ts +2 -0
- package/cjs/transport/startRumEventBridge.js +11 -0
- package/cjs/transport/startRumEventBridge.js.map +1 -0
- package/esm/boot/preStartRum.d.ts +7 -0
- package/esm/boot/preStartRum.js +187 -0
- package/esm/boot/preStartRum.js.map +1 -0
- package/esm/boot/rumPublicApi.d.ts +409 -0
- package/esm/boot/rumPublicApi.js +165 -0
- package/esm/boot/rumPublicApi.js.map +1 -0
- package/esm/boot/startRum.d.ts +109 -0
- package/esm/boot/startRum.js +149 -0
- package/esm/boot/startRum.js.map +1 -0
- package/esm/browser/cookieObservable.d.ts +8 -0
- package/esm/browser/cookieObservable.js +35 -0
- package/esm/browser/cookieObservable.js.map +1 -0
- package/esm/browser/domMutationObservable.d.ts +27 -0
- package/esm/browser/domMutationObservable.js +54 -0
- package/esm/browser/domMutationObservable.js.map +1 -0
- package/esm/browser/firstInputPolyfill.d.ts +8 -0
- package/esm/browser/firstInputPolyfill.js +65 -0
- package/esm/browser/firstInputPolyfill.js.map +1 -0
- package/esm/browser/htmlDomUtils.d.ts +13 -0
- package/esm/browser/htmlDomUtils.js +36 -0
- package/esm/browser/htmlDomUtils.js.map +1 -0
- package/esm/browser/locationChangeObservable.d.ts +7 -0
- package/esm/browser/locationChangeObservable.js +48 -0
- package/esm/browser/locationChangeObservable.js.map +1 -0
- package/esm/browser/performanceObservable.d.ts +174 -0
- package/esm/browser/performanceObservable.js +121 -0
- package/esm/browser/performanceObservable.js.map +1 -0
- package/esm/browser/performanceUtils.d.ts +7 -0
- package/esm/browser/performanceUtils.js +38 -0
- package/esm/browser/performanceUtils.js.map +1 -0
- package/esm/browser/scroll.d.ts +2 -0
- package/esm/browser/scroll.js +29 -0
- package/esm/browser/scroll.js.map +1 -0
- package/esm/browser/viewportObservable.d.ts +10 -0
- package/esm/browser/viewportObservable.js +32 -0
- package/esm/browser/viewportObservable.js.map +1 -0
- package/esm/browser/windowOpenObservable.d.ts +5 -0
- package/esm/browser/windowOpenObservable.js +7 -0
- package/esm/browser/windowOpenObservable.js.map +1 -0
- package/esm/domain/action/actionCollection.d.ts +21 -0
- package/esm/domain/action/actionCollection.js +93 -0
- package/esm/domain/action/actionCollection.js.map +1 -0
- package/esm/domain/action/actionNameConstants.d.ts +18 -0
- package/esm/domain/action/actionNameConstants.js +8 -0
- package/esm/domain/action/actionNameConstants.js.map +1 -0
- package/esm/domain/action/clickChain.d.ts +8 -0
- package/esm/domain/action/clickChain.js +57 -0
- package/esm/domain/action/clickChain.js.map +1 -0
- package/esm/domain/action/computeFrustration.d.ts +6 -0
- package/esm/domain/action/computeFrustration.js +65 -0
- package/esm/domain/action/computeFrustration.js.map +1 -0
- package/esm/domain/action/getActionNameFromElement.d.ts +4 -0
- package/esm/domain/action/getActionNameFromElement.js +236 -0
- package/esm/domain/action/getActionNameFromElement.js.map +1 -0
- package/esm/domain/action/interactionSelectorCache.d.ts +5 -0
- package/esm/domain/action/interactionSelectorCache.js +18 -0
- package/esm/domain/action/interactionSelectorCache.js.map +1 -0
- package/esm/domain/action/listenActionEvents.d.ts +19 -0
- package/esm/domain/action/listenActionEvents.js +58 -0
- package/esm/domain/action/listenActionEvents.js.map +1 -0
- package/esm/domain/action/trackClickActions.d.ts +81 -0
- package/esm/domain/action/trackClickActions.js +232 -0
- package/esm/domain/action/trackClickActions.js.map +1 -0
- package/esm/domain/assembly.d.ts +5 -0
- package/esm/domain/assembly.js +99 -0
- package/esm/domain/assembly.js.map +1 -0
- package/esm/domain/configuration/configuration.d.ts +325 -0
- package/esm/domain/configuration/configuration.js +200 -0
- package/esm/domain/configuration/configuration.js.map +1 -0
- package/esm/domain/configuration/index.d.ts +2 -0
- package/esm/domain/configuration/index.js +3 -0
- package/esm/domain/configuration/index.js.map +1 -0
- package/esm/domain/configuration/jsonPathParser.d.ts +28 -0
- package/esm/domain/configuration/jsonPathParser.js +156 -0
- package/esm/domain/configuration/jsonPathParser.js.map +1 -0
- package/esm/domain/configuration/remoteConfiguration.d.ts +39 -0
- package/esm/domain/configuration/remoteConfiguration.js +236 -0
- package/esm/domain/configuration/remoteConfiguration.js.map +1 -0
- package/esm/domain/configuration/remoteConfiguration.types.d.ts +138 -0
- package/esm/domain/configuration/remoteConfiguration.types.js +6 -0
- package/esm/domain/configuration/remoteConfiguration.types.js.map +1 -0
- package/esm/domain/contexts/ciVisibilityContext.d.ts +12 -0
- package/esm/domain/contexts/ciVisibilityContext.js +30 -0
- package/esm/domain/contexts/ciVisibilityContext.js.map +1 -0
- package/esm/domain/contexts/connectivityContext.d.ts +2 -0
- package/esm/domain/contexts/connectivityContext.js +8 -0
- package/esm/domain/contexts/connectivityContext.js.map +1 -0
- package/esm/domain/contexts/defaultContext.d.ts +4 -0
- package/esm/domain/contexts/defaultContext.js +31 -0
- package/esm/domain/contexts/defaultContext.js.map +1 -0
- package/esm/domain/contexts/displayContext.d.ts +6 -0
- package/esm/domain/contexts/displayContext.js +25 -0
- package/esm/domain/contexts/displayContext.js.map +1 -0
- package/esm/domain/contexts/featureFlagContext.d.ts +19 -0
- package/esm/domain/contexts/featureFlagContext.js +49 -0
- package/esm/domain/contexts/featureFlagContext.js.map +1 -0
- package/esm/domain/contexts/internalContext.d.ts +12 -0
- package/esm/domain/contexts/internalContext.js +23 -0
- package/esm/domain/contexts/internalContext.js.map +1 -0
- package/esm/domain/contexts/pageStateHistory.d.ts +23 -0
- package/esm/domain/contexts/pageStateHistory.js +100 -0
- package/esm/domain/contexts/pageStateHistory.js.map +1 -0
- package/esm/domain/contexts/sessionContext.d.ts +5 -0
- package/esm/domain/contexts/sessionContext.js +44 -0
- package/esm/domain/contexts/sessionContext.js.map +1 -0
- package/esm/domain/contexts/syntheticsContext.d.ts +2 -0
- package/esm/domain/contexts/syntheticsContext.js +22 -0
- package/esm/domain/contexts/syntheticsContext.js.map +1 -0
- package/esm/domain/contexts/trackingConsentContext.d.ts +3 -0
- package/esm/domain/contexts/trackingConsentContext.js +11 -0
- package/esm/domain/contexts/trackingConsentContext.js.map +1 -0
- package/esm/domain/contexts/urlContexts.d.ts +22 -0
- package/esm/domain/contexts/urlContexts.js +60 -0
- package/esm/domain/contexts/urlContexts.js.map +1 -0
- package/esm/domain/contexts/userAgentDataContext.d.ts +2 -0
- package/esm/domain/contexts/userAgentDataContext.js +28 -0
- package/esm/domain/contexts/userAgentDataContext.js.map +1 -0
- package/esm/domain/contexts/viewHistory.d.ts +17 -0
- package/esm/domain/contexts/viewHistory.js +44 -0
- package/esm/domain/contexts/viewHistory.js.map +1 -0
- package/esm/domain/discardNegativeDuration.d.ts +2 -0
- package/esm/domain/discardNegativeDuration.js +5 -0
- package/esm/domain/discardNegativeDuration.js.map +1 -0
- package/esm/domain/error/errorCollection.d.ts +17 -0
- package/esm/domain/error/errorCollection.js +70 -0
- package/esm/domain/error/errorCollection.js.map +1 -0
- package/esm/domain/error/trackConsoleError.d.ts +4 -0
- package/esm/domain/error/trackConsoleError.js +10 -0
- package/esm/domain/error/trackConsoleError.js.map +1 -0
- package/esm/domain/error/trackReportError.d.ts +5 -0
- package/esm/domain/error/trackReportError.js +13 -0
- package/esm/domain/error/trackReportError.js.map +1 -0
- package/esm/domain/event/eventCollection.d.ts +10 -0
- package/esm/domain/event/eventCollection.js +24 -0
- package/esm/domain/event/eventCollection.js.map +1 -0
- package/esm/domain/getSelectorFromElement.d.ts +64 -0
- package/esm/domain/getSelectorFromElement.js +213 -0
- package/esm/domain/getSelectorFromElement.js.map +1 -0
- package/esm/domain/getSessionReplayUrl.d.ts +9 -0
- package/esm/domain/getSessionReplayUrl.js +30 -0
- package/esm/domain/getSessionReplayUrl.js.map +1 -0
- package/esm/domain/hooks.d.ts +23 -0
- package/esm/domain/hooks.js +3 -0
- package/esm/domain/hooks.js.map +1 -0
- package/esm/domain/lifeCycle.d.ts +73 -0
- package/esm/domain/lifeCycle.js +3 -0
- package/esm/domain/lifeCycle.js.map +1 -0
- package/esm/domain/limitModification.d.ts +8 -0
- package/esm/domain/limitModification.js +43 -0
- package/esm/domain/limitModification.js.map +1 -0
- package/esm/domain/longTask/longTaskCollection.d.ts +18 -0
- package/esm/domain/longTask/longTaskCollection.js +87 -0
- package/esm/domain/longTask/longTaskCollection.js.map +1 -0
- package/esm/domain/plugins.d.ts +40 -0
- package/esm/domain/plugins.js +12 -0
- package/esm/domain/plugins.js.map +1 -0
- package/esm/domain/privacy.d.ts +44 -0
- package/esm/domain/privacy.js +302 -0
- package/esm/domain/privacy.js.map +1 -0
- package/esm/domain/privacyConstants.d.ts +23 -0
- package/esm/domain/privacyConstants.js +35 -0
- package/esm/domain/privacyConstants.js.map +1 -0
- package/esm/domain/requestCollection.d.ts +54 -0
- package/esm/domain/requestCollection.js +106 -0
- package/esm/domain/requestCollection.js.map +1 -0
- package/esm/domain/resource/graphql.d.ts +23 -0
- package/esm/domain/resource/graphql.js +91 -0
- package/esm/domain/resource/graphql.js.map +1 -0
- package/esm/domain/resource/matchRequestResourceEntry.d.ts +16 -0
- package/esm/domain/resource/matchRequestResourceEntry.js +46 -0
- package/esm/domain/resource/matchRequestResourceEntry.js.map +1 -0
- package/esm/domain/resource/requestRegistry.d.ts +9 -0
- package/esm/domain/resource/requestRegistry.js +37 -0
- package/esm/domain/resource/requestRegistry.js.map +1 -0
- package/esm/domain/resource/resourceCollection.d.ts +7 -0
- package/esm/domain/resource/resourceCollection.js +187 -0
- package/esm/domain/resource/resourceCollection.js.map +1 -0
- package/esm/domain/resource/resourceUtils.d.ts +55 -0
- package/esm/domain/resource/resourceUtils.js +244 -0
- package/esm/domain/resource/resourceUtils.js.map +1 -0
- package/esm/domain/resource/retrieveInitialDocumentResourceTiming.d.ts +4 -0
- package/esm/domain/resource/retrieveInitialDocumentResourceTiming.js +21 -0
- package/esm/domain/resource/retrieveInitialDocumentResourceTiming.js.map +1 -0
- package/esm/domain/rumSessionManager.d.ts +36 -0
- package/esm/domain/rumSessionManager.js +72 -0
- package/esm/domain/rumSessionManager.js.map +1 -0
- package/esm/domain/sampler/sampler.d.ts +10 -0
- package/esm/domain/sampler/sampler.js +58 -0
- package/esm/domain/sampler/sampler.js.map +1 -0
- package/esm/domain/startCustomerDataTelemetry.d.ts +4 -0
- package/esm/domain/startCustomerDataTelemetry.js +52 -0
- package/esm/domain/startCustomerDataTelemetry.js.map +1 -0
- package/esm/domain/tracing/getDocumentTraceId.d.ts +12 -0
- package/esm/domain/tracing/getDocumentTraceId.js +68 -0
- package/esm/domain/tracing/getDocumentTraceId.js.map +1 -0
- package/esm/domain/tracing/identifier.d.ts +13 -0
- package/esm/domain/tracing/identifier.js +50 -0
- package/esm/domain/tracing/identifier.js.map +1 -0
- package/esm/domain/tracing/sampler.d.ts +10 -0
- package/esm/domain/tracing/sampler.js +64 -0
- package/esm/domain/tracing/sampler.js.map +1 -0
- package/esm/domain/tracing/tracer.d.ts +30 -0
- package/esm/domain/tracing/tracer.js +156 -0
- package/esm/domain/tracing/tracer.js.map +1 -0
- package/esm/domain/tracing/tracer.types.d.ts +12 -0
- package/esm/domain/tracing/tracer.types.js +2 -0
- package/esm/domain/tracing/tracer.types.js.map +1 -0
- package/esm/domain/trackEventCounts.d.ts +17 -0
- package/esm/domain/trackEventCounts.js +47 -0
- package/esm/domain/trackEventCounts.js.map +1 -0
- package/esm/domain/view/bfCacheSupport.d.ts +2 -0
- package/esm/domain/view/bfCacheSupport.js +10 -0
- package/esm/domain/view/bfCacheSupport.js.map +1 -0
- package/esm/domain/view/trackViewEventCounts.d.ts +5 -0
- package/esm/domain/view/trackViewEventCounts.js +13 -0
- package/esm/domain/view/trackViewEventCounts.js.map +1 -0
- package/esm/domain/view/trackViews.d.ts +65 -0
- package/esm/domain/view/trackViews.js +271 -0
- package/esm/domain/view/trackViews.js.map +1 -0
- package/esm/domain/view/viewCollection.d.ts +18 -0
- package/esm/domain/view/viewCollection.js +150 -0
- package/esm/domain/view/viewCollection.js.map +1 -0
- package/esm/domain/view/viewMetrics/getClsAttributionImpactedArea.d.ts +6 -0
- package/esm/domain/view/viewMetrics/getClsAttributionImpactedArea.js +28 -0
- package/esm/domain/view/viewMetrics/getClsAttributionImpactedArea.js.map +1 -0
- package/esm/domain/view/viewMetrics/interactionCountPolyfill.d.ts +18 -0
- package/esm/domain/view/viewMetrics/interactionCountPolyfill.js +39 -0
- package/esm/domain/view/viewMetrics/interactionCountPolyfill.js.map +1 -0
- package/esm/domain/view/viewMetrics/startInitialViewMetricsTelemetry.d.ts +6 -0
- package/esm/domain/view/viewMetrics/startInitialViewMetricsTelemetry.js +41 -0
- package/esm/domain/view/viewMetrics/startInitialViewMetricsTelemetry.js.map +1 -0
- package/esm/domain/view/viewMetrics/trackBfcacheMetrics.d.ts +8 -0
- package/esm/domain/view/viewMetrics/trackBfcacheMetrics.js +14 -0
- package/esm/domain/view/viewMetrics/trackBfcacheMetrics.js.map +1 -0
- package/esm/domain/view/viewMetrics/trackCommonViewMetrics.d.ts +21 -0
- package/esm/domain/view/viewMetrics/trackCommonViewMetrics.js +34 -0
- package/esm/domain/view/viewMetrics/trackCommonViewMetrics.js.map +1 -0
- package/esm/domain/view/viewMetrics/trackCumulativeLayoutShift.d.ts +37 -0
- package/esm/domain/view/viewMetrics/trackCumulativeLayoutShift.js +130 -0
- package/esm/domain/view/viewMetrics/trackCumulativeLayoutShift.js.map +1 -0
- package/esm/domain/view/viewMetrics/trackFirstContentfulPaint.d.ts +13 -0
- package/esm/domain/view/viewMetrics/trackFirstContentfulPaint.js +34 -0
- package/esm/domain/view/viewMetrics/trackFirstContentfulPaint.js.map +1 -0
- package/esm/domain/view/viewMetrics/trackFirstHidden.d.ts +10 -0
- package/esm/domain/view/viewMetrics/trackFirstHidden.js +30 -0
- package/esm/domain/view/viewMetrics/trackFirstHidden.js.map +1 -0
- package/esm/domain/view/viewMetrics/trackFirstInput.d.ts +19 -0
- package/esm/domain/view/viewMetrics/trackFirstInput.js +40 -0
- package/esm/domain/view/viewMetrics/trackFirstInput.js.map +1 -0
- package/esm/domain/view/viewMetrics/trackInitialViewMetrics.d.ts +15 -0
- package/esm/domain/view/viewMetrics/trackInitialViewMetrics.js +38 -0
- package/esm/domain/view/viewMetrics/trackInitialViewMetrics.js.map +1 -0
- package/esm/domain/view/viewMetrics/trackInteractionToNextPaint.d.ts +25 -0
- package/esm/domain/view/viewMetrics/trackInteractionToNextPaint.js +149 -0
- package/esm/domain/view/viewMetrics/trackInteractionToNextPaint.js.map +1 -0
- package/esm/domain/view/viewMetrics/trackLargestContentfulPaint.d.ts +18 -0
- package/esm/domain/view/viewMetrics/trackLargestContentfulPaint.js +57 -0
- package/esm/domain/view/viewMetrics/trackLargestContentfulPaint.js.map +1 -0
- package/esm/domain/view/viewMetrics/trackLoadingTime.d.ts +14 -0
- package/esm/domain/view/viewMetrics/trackLoadingTime.js +47 -0
- package/esm/domain/view/viewMetrics/trackLoadingTime.js.map +1 -0
- package/esm/domain/view/viewMetrics/trackNavigationTimings.d.ts +14 -0
- package/esm/domain/view/viewMetrics/trackNavigationTimings.js +40 -0
- package/esm/domain/view/viewMetrics/trackNavigationTimings.js.map +1 -0
- package/esm/domain/view/viewMetrics/trackScrollMetrics.d.ts +25 -0
- package/esm/domain/view/viewMetrics/trackScrollMetrics.js +72 -0
- package/esm/domain/view/viewMetrics/trackScrollMetrics.js.map +1 -0
- package/esm/domain/vital/vitalCollection.d.ts +55 -0
- package/esm/domain/vital/vitalCollection.js +107 -0
- package/esm/domain/vital/vitalCollection.js.map +1 -0
- package/esm/domain/waitPageActivityEnd.d.ts +54 -0
- package/esm/domain/waitPageActivityEnd.js +123 -0
- package/esm/domain/waitPageActivityEnd.js.map +1 -0
- package/esm/domainContext.types.d.ts +39 -0
- package/esm/domainContext.types.js +5 -0
- package/esm/domainContext.types.js.map +1 -0
- package/esm/index.d.ts +41 -0
- package/esm/index.js +21 -0
- package/esm/index.js.map +1 -0
- package/esm/rawRumEvent.types.d.ts +326 -0
- package/esm/rawRumEvent.types.js +31 -0
- package/esm/rawRumEvent.types.js.map +1 -0
- package/esm/rumEvent.types.d.ts +2026 -0
- package/esm/rumEvent.types.js +6 -0
- package/esm/rumEvent.types.js.map +1 -0
- package/esm/transport/formDataTransport.d.ts +16 -0
- package/esm/transport/formDataTransport.js +43 -0
- package/esm/transport/formDataTransport.js.map +1 -0
- package/esm/transport/startRumBatch.d.ts +5 -0
- package/esm/transport/startRumBatch.js +30 -0
- package/esm/transport/startRumBatch.js.map +1 -0
- package/esm/transport/startRumEventBridge.d.ts +2 -0
- package/esm/transport/startRumEventBridge.js +8 -0
- package/esm/transport/startRumEventBridge.js.map +1 -0
- package/package.json +29 -0
- package/src/boot/preStartRum.ts +298 -0
- package/src/boot/rumPublicApi.ts +830 -0
- package/src/boot/startRum.ts +280 -0
- package/src/browser/cookieObservable.ts +63 -0
- package/src/browser/domMutationObservable.ts +98 -0
- package/src/browser/firstInputPolyfill.ts +87 -0
- package/src/browser/htmlDomUtils.ts +45 -0
- package/src/browser/locationChangeObservable.ts +69 -0
- package/src/browser/performanceObservable.ts +324 -0
- package/src/browser/performanceUtils.ts +50 -0
- package/src/browser/scroll.ts +25 -0
- package/src/browser/viewportObservable.ts +44 -0
- package/src/browser/windowOpenObservable.ts +7 -0
- package/src/domain/action/actionCollection.ts +146 -0
- package/src/domain/action/actionNameConstants.ts +20 -0
- package/src/domain/action/clickChain.ts +83 -0
- package/src/domain/action/computeFrustration.ts +77 -0
- package/src/domain/action/getActionNameFromElement.ts +337 -0
- package/src/domain/action/interactionSelectorCache.ts +21 -0
- package/src/domain/action/listenActionEvents.ts +119 -0
- package/src/domain/action/trackClickActions.ts +388 -0
- package/src/domain/assembly.ts +141 -0
- package/src/domain/configuration/configuration.ts +548 -0
- package/src/domain/configuration/index.ts +2 -0
- package/src/domain/configuration/jsonPathParser.ts +214 -0
- package/src/domain/configuration/remoteConfiguration.ts +304 -0
- package/src/domain/configuration/remoteConfiguration.types.ts +147 -0
- package/src/domain/contexts/ciVisibilityContext.ts +50 -0
- package/src/domain/contexts/connectivityContext.ts +12 -0
- package/src/domain/contexts/defaultContext.ts +43 -0
- package/src/domain/contexts/displayContext.ts +38 -0
- package/src/domain/contexts/featureFlagContext.ts +71 -0
- package/src/domain/contexts/internalContext.ts +34 -0
- package/src/domain/contexts/pageStateHistory.ts +171 -0
- package/src/domain/contexts/sessionContext.ts +59 -0
- package/src/domain/contexts/syntheticsContext.ts +33 -0
- package/src/domain/contexts/trackingConsentContext.ts +15 -0
- package/src/domain/contexts/urlContexts.ts +97 -0
- package/src/domain/contexts/userAgentDataContext.ts +36 -0
- package/src/domain/contexts/viewHistory.ts +70 -0
- package/src/domain/discardNegativeDuration.ts +6 -0
- package/src/domain/error/errorCollection.ts +107 -0
- package/src/domain/error/trackConsoleError.ts +14 -0
- package/src/domain/error/trackReportError.ts +16 -0
- package/src/domain/event/eventCollection.ts +53 -0
- package/src/domain/getSelectorFromElement.ts +268 -0
- package/src/domain/getSessionReplayUrl.ts +47 -0
- package/src/domain/hooks.ts +31 -0
- package/src/domain/lifeCycle.ts +103 -0
- package/src/domain/limitModification.ts +66 -0
- package/src/domain/longTask/longTaskCollection.ts +133 -0
- package/src/domain/plugins.ts +59 -0
- package/src/domain/privacy.ts +355 -0
- package/src/domain/privacyConstants.ts +43 -0
- package/src/domain/requestCollection.ts +179 -0
- package/src/domain/resource/graphql.ts +135 -0
- package/src/domain/resource/matchRequestResourceEntry.ts +68 -0
- package/src/domain/resource/requestRegistry.ts +52 -0
- package/src/domain/resource/resourceCollection.ts +273 -0
- package/src/domain/resource/resourceUtils.ts +355 -0
- package/src/domain/resource/retrieveInitialDocumentResourceTiming.ts +27 -0
- package/src/domain/rumSessionManager.ts +134 -0
- package/src/domain/sampler/sampler.ts +63 -0
- package/src/domain/startCustomerDataTelemetry.ts +83 -0
- package/src/domain/tracing/getDocumentTraceId.ts +90 -0
- package/src/domain/tracing/identifier.ts +69 -0
- package/src/domain/tracing/sampler.ts +69 -0
- package/src/domain/tracing/tracer.ts +248 -0
- package/src/domain/tracing/tracer.types.ts +13 -0
- package/src/domain/trackEventCounts.ts +67 -0
- package/src/domain/view/bfCacheSupport.ts +20 -0
- package/src/domain/view/trackViewEventCounts.ts +15 -0
- package/src/domain/view/trackViews.ts +431 -0
- package/src/domain/view/viewCollection.ts +203 -0
- package/src/domain/view/viewMetrics/getClsAttributionImpactedArea.ts +34 -0
- package/src/domain/view/viewMetrics/interactionCountPolyfill.ts +55 -0
- package/src/domain/view/viewMetrics/startInitialViewMetricsTelemetry.ts +70 -0
- package/src/domain/view/viewMetrics/trackBfcacheMetrics.ts +20 -0
- package/src/domain/view/viewMetrics/trackCommonViewMetrics.ts +78 -0
- package/src/domain/view/viewMetrics/trackCumulativeLayoutShift.ts +180 -0
- package/src/domain/view/viewMetrics/trackFirstContentfulPaint.ts +47 -0
- package/src/domain/view/viewMetrics/trackFirstHidden.ts +53 -0
- package/src/domain/view/viewMetrics/trackFirstInput.ts +59 -0
- package/src/domain/view/viewMetrics/trackInitialViewMetrics.ts +66 -0
- package/src/domain/view/viewMetrics/trackInteractionToNextPaint.ts +193 -0
- package/src/domain/view/viewMetrics/trackLargestContentfulPaint.ts +87 -0
- package/src/domain/view/viewMetrics/trackLoadingTime.ts +69 -0
- package/src/domain/view/viewMetrics/trackNavigationTimings.ts +66 -0
- package/src/domain/view/viewMetrics/trackScrollMetrics.ts +119 -0
- package/src/domain/vital/vitalCollection.ts +207 -0
- package/src/domain/waitPageActivityEnd.ts +189 -0
- package/src/domainContext.types.ts +61 -0
- package/src/index.ts +76 -0
- package/src/rawRumEvent.types.ts +409 -0
- package/src/rumEvent.types.ts +2151 -0
- package/src/transport/formDataTransport.ts +85 -0
- package/src/transport/startRumBatch.ts +46 -0
- package/src/transport/startRumEventBridge.ts +12 -0
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.createCustomVitalsState = createCustomVitalsState;
|
|
4
|
+
exports.startVitalCollection = startVitalCollection;
|
|
5
|
+
exports.startDurationVital = startDurationVital;
|
|
6
|
+
exports.stopDurationVital = stopDurationVital;
|
|
7
|
+
const kubesense_browser_core_1 = require("@kubesense/kubesense-browser-core");
|
|
8
|
+
const rawRumEvent_types_1 = require("../../rawRumEvent.types");
|
|
9
|
+
function createCustomVitalsState() {
|
|
10
|
+
const vitalsByName = new Map();
|
|
11
|
+
const vitalsByReference = new WeakMap();
|
|
12
|
+
return { vitalsByName, vitalsByReference };
|
|
13
|
+
}
|
|
14
|
+
function startVitalCollection(lifeCycle, pageStateHistory, customVitalsState) {
|
|
15
|
+
function isValid(vital) {
|
|
16
|
+
return !pageStateHistory.wasInPageStateDuringPeriod("frozen" /* PageState.FROZEN */, vital.startClocks.relative, vital.duration);
|
|
17
|
+
}
|
|
18
|
+
function addDurationVital(vital) {
|
|
19
|
+
if (isValid(vital)) {
|
|
20
|
+
lifeCycle.notify(12 /* LifeCycleEventType.RAW_RUM_EVENT_COLLECTED */, processVital(vital));
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
function addOperationStepVital(name, stepType, options, failureReason) {
|
|
24
|
+
if (!(0, kubesense_browser_core_1.isExperimentalFeatureEnabled)(kubesense_browser_core_1.ExperimentalFeature.FEATURE_OPERATION_VITAL)) {
|
|
25
|
+
return;
|
|
26
|
+
}
|
|
27
|
+
const { operationKey, context, description } = options || {};
|
|
28
|
+
const vital = {
|
|
29
|
+
name,
|
|
30
|
+
type: rawRumEvent_types_1.VitalType.OPERATION_STEP,
|
|
31
|
+
operationKey,
|
|
32
|
+
failureReason,
|
|
33
|
+
stepType,
|
|
34
|
+
startClocks: (0, kubesense_browser_core_1.clocksNow)(),
|
|
35
|
+
context: (0, kubesense_browser_core_1.sanitize)(context),
|
|
36
|
+
description,
|
|
37
|
+
};
|
|
38
|
+
lifeCycle.notify(12 /* LifeCycleEventType.RAW_RUM_EVENT_COLLECTED */, processVital(vital));
|
|
39
|
+
}
|
|
40
|
+
return {
|
|
41
|
+
addOperationStepVital,
|
|
42
|
+
addDurationVital,
|
|
43
|
+
startDurationVital: (name, options = {}) => startDurationVital(customVitalsState, name, options),
|
|
44
|
+
stopDurationVital: (nameOrRef, options = {}) => {
|
|
45
|
+
stopDurationVital(addDurationVital, customVitalsState, nameOrRef, options);
|
|
46
|
+
},
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
function startDurationVital({ vitalsByName, vitalsByReference }, name, options = {}) {
|
|
50
|
+
const vital = {
|
|
51
|
+
name,
|
|
52
|
+
startClocks: (0, kubesense_browser_core_1.clocksNow)(),
|
|
53
|
+
...options,
|
|
54
|
+
};
|
|
55
|
+
// To avoid leaking implementation details of the vital, we return a reference to it.
|
|
56
|
+
const reference = { __kubesense_vital_reference: true };
|
|
57
|
+
vitalsByName.set(name, vital);
|
|
58
|
+
// To avoid memory leaks caused by the creation of numerous references (e.g., from improper useEffect implementations), we use a WeakMap.
|
|
59
|
+
vitalsByReference.set(reference, vital);
|
|
60
|
+
return reference;
|
|
61
|
+
}
|
|
62
|
+
function stopDurationVital(stopCallback, { vitalsByName, vitalsByReference }, nameOrRef, options = {}) {
|
|
63
|
+
const vitalStart = typeof nameOrRef === 'string' ? vitalsByName.get(nameOrRef) : vitalsByReference.get(nameOrRef);
|
|
64
|
+
if (!vitalStart) {
|
|
65
|
+
return;
|
|
66
|
+
}
|
|
67
|
+
stopCallback(buildDurationVital(vitalStart, vitalStart.startClocks, options, (0, kubesense_browser_core_1.clocksNow)()));
|
|
68
|
+
if (typeof nameOrRef === 'string') {
|
|
69
|
+
vitalsByName.delete(nameOrRef);
|
|
70
|
+
}
|
|
71
|
+
else {
|
|
72
|
+
vitalsByReference.delete(nameOrRef);
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
function buildDurationVital(vitalStart, startClocks, stopOptions, stopClocks) {
|
|
76
|
+
var _a;
|
|
77
|
+
return {
|
|
78
|
+
name: vitalStart.name,
|
|
79
|
+
type: rawRumEvent_types_1.VitalType.DURATION,
|
|
80
|
+
startClocks,
|
|
81
|
+
duration: (0, kubesense_browser_core_1.elapsed)(startClocks.timeStamp, stopClocks.timeStamp),
|
|
82
|
+
context: (0, kubesense_browser_core_1.combine)(vitalStart.context, stopOptions.context),
|
|
83
|
+
description: (_a = stopOptions.description) !== null && _a !== void 0 ? _a : vitalStart.description,
|
|
84
|
+
};
|
|
85
|
+
}
|
|
86
|
+
function processVital(vital) {
|
|
87
|
+
const { startClocks, type, name, description, context } = vital;
|
|
88
|
+
const vitalData = {
|
|
89
|
+
id: (0, kubesense_browser_core_1.generateUUID)(),
|
|
90
|
+
type,
|
|
91
|
+
name,
|
|
92
|
+
description,
|
|
93
|
+
...(type === rawRumEvent_types_1.VitalType.DURATION
|
|
94
|
+
? { duration: (0, kubesense_browser_core_1.toServerDuration)(vital.duration) }
|
|
95
|
+
: {
|
|
96
|
+
step_type: vital.stepType,
|
|
97
|
+
operation_key: vital.operationKey,
|
|
98
|
+
failure_reason: vital.failureReason,
|
|
99
|
+
}),
|
|
100
|
+
};
|
|
101
|
+
return {
|
|
102
|
+
rawRumEvent: {
|
|
103
|
+
date: startClocks.timeStamp,
|
|
104
|
+
vital: vitalData,
|
|
105
|
+
type: rawRumEvent_types_1.RumEventType.VITAL,
|
|
106
|
+
context,
|
|
107
|
+
},
|
|
108
|
+
startTime: startClocks.relative,
|
|
109
|
+
duration: type === rawRumEvent_types_1.VitalType.DURATION ? vital.duration : undefined,
|
|
110
|
+
domainContext: {},
|
|
111
|
+
};
|
|
112
|
+
}
|
|
113
|
+
//# sourceMappingURL=vitalCollection.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"vitalCollection.js","sourceRoot":"","sources":["../../../src/domain/vital/vitalCollection.ts"],"names":[],"mappings":";;AA+DA,0DAIC;AAED,oDAiDC;AAED,gDAoBC;AAED,8CAmBC;AAhKD,8EAS0C;AAI1C,+DAAiE;AAiDjE,SAAgB,uBAAuB;IACrC,MAAM,YAAY,GAAG,IAAI,GAAG,EAA8B,CAAA;IAC1D,MAAM,iBAAiB,GAAG,IAAI,OAAO,EAA8C,CAAA;IACnF,OAAO,EAAE,YAAY,EAAE,iBAAiB,EAAE,CAAA;AAC5C,CAAC;AAED,SAAgB,oBAAoB,CAClC,SAAoB,EACpB,gBAAkC,EAClC,iBAAoC;IAEpC,SAAS,OAAO,CAAC,KAAoB;QACnC,OAAO,CAAC,gBAAgB,CAAC,0BAA0B,kCAAmB,KAAK,CAAC,WAAW,CAAC,QAAQ,EAAE,KAAK,CAAC,QAAQ,CAAC,CAAA;IACnH,CAAC;IAED,SAAS,gBAAgB,CAAC,KAAoB;QAC5C,IAAI,OAAO,CAAC,KAAK,CAAC,EAAE,CAAC;YACnB,SAAS,CAAC,MAAM,sDAA6C,YAAY,CAAC,KAAK,CAAC,CAAC,CAAA;QACnF,CAAC;IACH,CAAC;IAED,SAAS,qBAAqB,CAC5B,IAAY,EACZ,QAAyB,EACzB,OAAiC,EACjC,aAA6B;QAE7B,IAAI,CAAC,IAAA,qDAA4B,EAAC,4CAAmB,CAAC,uBAAuB,CAAC,EAAE,CAAC;YAC/E,OAAM;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B,IAAI;QACJ,IAAI;QACJ,WAAW;QACX,GAAG,CAAC,IAAI,KAAK,6BAAS,CAAC,QAAQ;YAC7B,CAAC,CAAC,EAAE,QAAQ,EAAE,IAAA,yCAAgB,EAAC,KAAK,CAAC,QAAQ,CAAC,EAAE;YAChD,CAAC,CAAC;gBACE,SAAS,EAAE,KAAK,CAAC,QAAQ;gBACzB,aAAa,EAAE,KAAK,CAAC,YAAY;gBACjC,cAAc,EAAE,KAAK,CAAC,aAAa;aACpC,CAAC;KACP,CAAA;IAED,OAAO;QACL,WAAW,EAAE;YACX,IAAI,EAAE,WAAW,CAAC,SAAS;YAC3B,KAAK,EAAE,SAAS;YAChB,IAAI,EAAE,gCAAY,CAAC,KAAK;YACxB,OAAO;SACR;QACD,SAAS,EAAE,WAAW,CAAC,QAAQ;QAC/B,QAAQ,EAAE,IAAI,KAAK,6BAAS,CAAC,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS;QAClE,aAAa,EAAE,EAAE;KAClB,CAAA;AACH,CAAC"}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import type { TimeStamp } from '@kubesense/kubesense-browser-core';
|
|
2
|
+
import { Observable } from '@kubesense/kubesense-browser-core';
|
|
3
|
+
import type { RumMutationRecord } from '../browser/domMutationObservable';
|
|
4
|
+
import type { RumConfiguration } from './configuration';
|
|
5
|
+
import type { LifeCycle } from './lifeCycle';
|
|
6
|
+
export declare const PAGE_ACTIVITY_VALIDATION_DELAY = 100;
|
|
7
|
+
export declare const PAGE_ACTIVITY_END_DELAY = 100;
|
|
8
|
+
export declare const EXCLUDED_MUTATIONS_ATTRIBUTE = "data-kubesense-excluded-activity-mutations";
|
|
9
|
+
export interface PageActivityEvent {
|
|
10
|
+
isBusy: boolean;
|
|
11
|
+
}
|
|
12
|
+
export type PageActivityEndEvent = {
|
|
13
|
+
hadActivity: true;
|
|
14
|
+
end: TimeStamp;
|
|
15
|
+
} | {
|
|
16
|
+
hadActivity: false;
|
|
17
|
+
};
|
|
18
|
+
/**
|
|
19
|
+
* Wait for the page activity end
|
|
20
|
+
*
|
|
21
|
+
* Detection lifecycle:
|
|
22
|
+
* ```
|
|
23
|
+
* Wait page activity end
|
|
24
|
+
* .-------------------'--------------------.
|
|
25
|
+
* v v
|
|
26
|
+
* [Wait for a page activity ] [Wait for a maximum duration]
|
|
27
|
+
* [timeout: VALIDATION_DELAY] [ timeout: maxDuration ]
|
|
28
|
+
* / \ |
|
|
29
|
+
* v v |
|
|
30
|
+
* [No page activity] [Page activity] |
|
|
31
|
+
* | |,----------------------. |
|
|
32
|
+
* v v | |
|
|
33
|
+
* (Discard) [Wait for a page activity] | |
|
|
34
|
+
* [ timeout: END_DELAY ] | |
|
|
35
|
+
* / \ | |
|
|
36
|
+
* v v | |
|
|
37
|
+
* [No page activity] [Page activity] | |
|
|
38
|
+
* | | | |
|
|
39
|
+
* | '------------' |
|
|
40
|
+
* '-----------. ,--------------------'
|
|
41
|
+
* v
|
|
42
|
+
* (End)
|
|
43
|
+
* ```
|
|
44
|
+
*
|
|
45
|
+
* Note: by assuming that maxDuration is greater than VALIDATION_DELAY, we are sure that if the
|
|
46
|
+
* process is still alive after maxDuration, it has been validated.
|
|
47
|
+
*/
|
|
48
|
+
export declare function waitPageActivityEnd(lifeCycle: LifeCycle, domMutationObservable: Observable<RumMutationRecord[]>, windowOpenObservable: Observable<void>, configuration: RumConfiguration, pageActivityEndCallback: (event: PageActivityEndEvent) => void, maxDuration?: number): {
|
|
49
|
+
stop: () => void;
|
|
50
|
+
};
|
|
51
|
+
export declare function doWaitPageActivityEnd(pageActivityObservable: Observable<PageActivityEvent>, pageActivityEndCallback: (event: PageActivityEndEvent) => void, maxDuration?: number): {
|
|
52
|
+
stop: () => void;
|
|
53
|
+
};
|
|
54
|
+
export declare function createPageActivityObservable(lifeCycle: LifeCycle, domMutationObservable: Observable<RumMutationRecord[]>, windowOpenObservable: Observable<void>, configuration: RumConfiguration): Observable<PageActivityEvent>;
|
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.EXCLUDED_MUTATIONS_ATTRIBUTE = exports.PAGE_ACTIVITY_END_DELAY = exports.PAGE_ACTIVITY_VALIDATION_DELAY = void 0;
|
|
4
|
+
exports.waitPageActivityEnd = waitPageActivityEnd;
|
|
5
|
+
exports.doWaitPageActivityEnd = doWaitPageActivityEnd;
|
|
6
|
+
exports.createPageActivityObservable = createPageActivityObservable;
|
|
7
|
+
const kubesense_browser_core_1 = require("@kubesense/kubesense-browser-core");
|
|
8
|
+
const performanceObservable_1 = require("../browser/performanceObservable");
|
|
9
|
+
const htmlDomUtils_1 = require("../browser/htmlDomUtils");
|
|
10
|
+
// Delay to wait for a page activity to validate the tracking process
|
|
11
|
+
exports.PAGE_ACTIVITY_VALIDATION_DELAY = 100;
|
|
12
|
+
// Delay to wait after a page activity to end the tracking process
|
|
13
|
+
exports.PAGE_ACTIVITY_END_DELAY = 100;
|
|
14
|
+
exports.EXCLUDED_MUTATIONS_ATTRIBUTE = 'data-kubesense-excluded-activity-mutations';
|
|
15
|
+
/**
|
|
16
|
+
* Wait for the page activity end
|
|
17
|
+
*
|
|
18
|
+
* Detection lifecycle:
|
|
19
|
+
* ```
|
|
20
|
+
* Wait page activity end
|
|
21
|
+
* .-------------------'--------------------.
|
|
22
|
+
* v v
|
|
23
|
+
* [Wait for a page activity ] [Wait for a maximum duration]
|
|
24
|
+
* [timeout: VALIDATION_DELAY] [ timeout: maxDuration ]
|
|
25
|
+
* / \ |
|
|
26
|
+
* v v |
|
|
27
|
+
* [No page activity] [Page activity] |
|
|
28
|
+
* | |,----------------------. |
|
|
29
|
+
* v v | |
|
|
30
|
+
* (Discard) [Wait for a page activity] | |
|
|
31
|
+
* [ timeout: END_DELAY ] | |
|
|
32
|
+
* / \ | |
|
|
33
|
+
* v v | |
|
|
34
|
+
* [No page activity] [Page activity] | |
|
|
35
|
+
* | | | |
|
|
36
|
+
* | '------------' |
|
|
37
|
+
* '-----------. ,--------------------'
|
|
38
|
+
* v
|
|
39
|
+
* (End)
|
|
40
|
+
* ```
|
|
41
|
+
*
|
|
42
|
+
* Note: by assuming that maxDuration is greater than VALIDATION_DELAY, we are sure that if the
|
|
43
|
+
* process is still alive after maxDuration, it has been validated.
|
|
44
|
+
*/
|
|
45
|
+
function waitPageActivityEnd(lifeCycle, domMutationObservable, windowOpenObservable, configuration, pageActivityEndCallback, maxDuration) {
|
|
46
|
+
const pageActivityObservable = createPageActivityObservable(lifeCycle, domMutationObservable, windowOpenObservable, configuration);
|
|
47
|
+
return doWaitPageActivityEnd(pageActivityObservable, pageActivityEndCallback, maxDuration);
|
|
48
|
+
}
|
|
49
|
+
function doWaitPageActivityEnd(pageActivityObservable, pageActivityEndCallback, maxDuration) {
|
|
50
|
+
let pageActivityEndTimeoutId;
|
|
51
|
+
let hasCompleted = false;
|
|
52
|
+
const validationTimeoutId = (0, kubesense_browser_core_1.setTimeout)((0, kubesense_browser_core_1.monitor)(() => complete({ hadActivity: false })), exports.PAGE_ACTIVITY_VALIDATION_DELAY);
|
|
53
|
+
const maxDurationTimeoutId = maxDuration !== undefined
|
|
54
|
+
? (0, kubesense_browser_core_1.setTimeout)((0, kubesense_browser_core_1.monitor)(() => complete({ hadActivity: true, end: (0, kubesense_browser_core_1.timeStampNow)() })), maxDuration)
|
|
55
|
+
: undefined;
|
|
56
|
+
const pageActivitySubscription = pageActivityObservable.subscribe(({ isBusy }) => {
|
|
57
|
+
(0, kubesense_browser_core_1.clearTimeout)(validationTimeoutId);
|
|
58
|
+
(0, kubesense_browser_core_1.clearTimeout)(pageActivityEndTimeoutId);
|
|
59
|
+
const lastChangeTime = (0, kubesense_browser_core_1.timeStampNow)();
|
|
60
|
+
if (!isBusy) {
|
|
61
|
+
pageActivityEndTimeoutId = (0, kubesense_browser_core_1.setTimeout)((0, kubesense_browser_core_1.monitor)(() => complete({ hadActivity: true, end: lastChangeTime })), exports.PAGE_ACTIVITY_END_DELAY);
|
|
62
|
+
}
|
|
63
|
+
});
|
|
64
|
+
const stop = () => {
|
|
65
|
+
hasCompleted = true;
|
|
66
|
+
(0, kubesense_browser_core_1.clearTimeout)(validationTimeoutId);
|
|
67
|
+
(0, kubesense_browser_core_1.clearTimeout)(pageActivityEndTimeoutId);
|
|
68
|
+
(0, kubesense_browser_core_1.clearTimeout)(maxDurationTimeoutId);
|
|
69
|
+
pageActivitySubscription.unsubscribe();
|
|
70
|
+
};
|
|
71
|
+
function complete(event) {
|
|
72
|
+
if (hasCompleted) {
|
|
73
|
+
return;
|
|
74
|
+
}
|
|
75
|
+
stop();
|
|
76
|
+
pageActivityEndCallback(event);
|
|
77
|
+
}
|
|
78
|
+
return { stop };
|
|
79
|
+
}
|
|
80
|
+
function createPageActivityObservable(lifeCycle, domMutationObservable, windowOpenObservable, configuration) {
|
|
81
|
+
return new kubesense_browser_core_1.Observable((observable) => {
|
|
82
|
+
const subscriptions = [];
|
|
83
|
+
let firstRequestIndex;
|
|
84
|
+
let pendingRequestsCount = 0;
|
|
85
|
+
subscriptions.push(domMutationObservable.subscribe((mutations) => {
|
|
86
|
+
if (!mutations.every(isExcludedMutation)) {
|
|
87
|
+
notifyPageActivity();
|
|
88
|
+
}
|
|
89
|
+
}), windowOpenObservable.subscribe(notifyPageActivity), (0, performanceObservable_1.createPerformanceObservable)(configuration, { type: performanceObservable_1.RumPerformanceEntryType.RESOURCE }).subscribe((entries) => {
|
|
90
|
+
if (entries.some((entry) => !isExcludedUrl(configuration, entry.name))) {
|
|
91
|
+
notifyPageActivity();
|
|
92
|
+
}
|
|
93
|
+
}), lifeCycle.subscribe(7 /* LifeCycleEventType.REQUEST_STARTED */, (startEvent) => {
|
|
94
|
+
if (isExcludedUrl(configuration, startEvent.url)) {
|
|
95
|
+
return;
|
|
96
|
+
}
|
|
97
|
+
if (firstRequestIndex === undefined) {
|
|
98
|
+
firstRequestIndex = startEvent.requestIndex;
|
|
99
|
+
}
|
|
100
|
+
pendingRequestsCount += 1;
|
|
101
|
+
notifyPageActivity();
|
|
102
|
+
}), lifeCycle.subscribe(8 /* LifeCycleEventType.REQUEST_COMPLETED */, (request) => {
|
|
103
|
+
if (isExcludedUrl(configuration, request.url) ||
|
|
104
|
+
firstRequestIndex === undefined ||
|
|
105
|
+
// If the request started before the tracking start, ignore it
|
|
106
|
+
request.requestIndex < firstRequestIndex) {
|
|
107
|
+
return;
|
|
108
|
+
}
|
|
109
|
+
pendingRequestsCount -= 1;
|
|
110
|
+
notifyPageActivity();
|
|
111
|
+
}));
|
|
112
|
+
return () => {
|
|
113
|
+
subscriptions.forEach((s) => s.unsubscribe());
|
|
114
|
+
};
|
|
115
|
+
function notifyPageActivity() {
|
|
116
|
+
observable.notify({ isBusy: pendingRequestsCount > 0 });
|
|
117
|
+
}
|
|
118
|
+
});
|
|
119
|
+
}
|
|
120
|
+
function isExcludedUrl(configuration, requestUrl) {
|
|
121
|
+
return (0, kubesense_browser_core_1.matchList)(configuration.excludedActivityUrls, requestUrl);
|
|
122
|
+
}
|
|
123
|
+
function isExcludedMutation(mutation) {
|
|
124
|
+
const targetElement = mutation.type === 'characterData' ? mutation.target.parentElement : mutation.target;
|
|
125
|
+
return Boolean(targetElement &&
|
|
126
|
+
(0, htmlDomUtils_1.isElementNode)(targetElement) &&
|
|
127
|
+
targetElement.matches(`[${exports.EXCLUDED_MUTATIONS_ATTRIBUTE}], [${exports.EXCLUDED_MUTATIONS_ATTRIBUTE}] *`));
|
|
128
|
+
}
|
|
129
|
+
//# sourceMappingURL=waitPageActivityEnd.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"waitPageActivityEnd.js","sourceRoot":"","sources":["../../src/domain/waitPageActivityEnd.ts"],"names":[],"mappings":";;;AAoDA,kDAeC;AAED,sDAgDC;AAED,oEAuDC;AA7KD,8EAA0H;AAC1H,4EAAuG;AAEvG,0DAAuD;AAKvD,qEA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AAC;IACH,CAAC,CAAC,CAAA;AACJ,CAAC;AAED,SAAS,aAAa,CAAC,aAA+B,EAAE,UAAkB;IACxE,OAAO,IAAA,kCAAS,EAAC,aAAa,CAAC,oBAAoB,EAAE,UAAU,CAAC,CAAA;AAClE,CAAC;AAED,SAAS,kBAAkB,CAAC,QAA2B;IACrD,MAAM,aAAa,GAAG,QAAQ,CAAC,IAAI,KAAK,eAAe,CAAC,CAAC,CAAC,QAAQ,CAAC,MAAM,CAAC,aAAa,CAAC,CAAC,CAAC,QAAQ,CAAC,MAAM,CAAA;IAEzG,OAAO,OAAO,CACZ,aAAa;QACb,IAAA,4BAAa,EAAC,aAAa,CAAC;QAC5B,aAAa,CAAC,OAAO,CAAC,IAAI,oCAA4B,OAAO,oCAA4B,KAAK,CAAC,CAChG,CAAA;AACH,CAAC"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Keep these types in a separate file in order to reference it from the official doc
|
|
3
|
+
*/
|
|
4
|
+
import type { RumEventType } from './rawRumEvent.types';
|
|
5
|
+
export type RumEventDomainContext<T extends RumEventType = any> = T extends typeof RumEventType.VIEW ? RumViewEventDomainContext : T extends typeof RumEventType.ACTION ? RumActionEventDomainContext : T extends typeof RumEventType.RESOURCE ? RumFetchResourceEventDomainContext | RumXhrResourceEventDomainContext | RumOtherResourceEventDomainContext : T extends typeof RumEventType.ERROR ? RumErrorEventDomainContext : T extends typeof RumEventType.LONG_TASK ? RumLongTaskEventDomainContext : T extends typeof RumEventType.VITAL ? RumVitalEventDomainContext : never;
|
|
6
|
+
export interface RumViewEventDomainContext {
|
|
7
|
+
location: Readonly<Location>;
|
|
8
|
+
}
|
|
9
|
+
export interface RumActionEventDomainContext {
|
|
10
|
+
events?: Event[];
|
|
11
|
+
handlingStack?: string;
|
|
12
|
+
}
|
|
13
|
+
export interface RumFetchResourceEventDomainContext {
|
|
14
|
+
requestInit: RequestInit | undefined;
|
|
15
|
+
requestInput: RequestInfo;
|
|
16
|
+
response: Response | undefined;
|
|
17
|
+
error: Error | undefined;
|
|
18
|
+
performanceEntry: PerformanceEntry | undefined;
|
|
19
|
+
isAborted: boolean;
|
|
20
|
+
handlingStack: string | undefined;
|
|
21
|
+
}
|
|
22
|
+
export interface RumXhrResourceEventDomainContext {
|
|
23
|
+
xhr: XMLHttpRequest;
|
|
24
|
+
performanceEntry: PerformanceEntry | undefined;
|
|
25
|
+
isAborted: boolean;
|
|
26
|
+
handlingStack: string | undefined;
|
|
27
|
+
}
|
|
28
|
+
export interface RumOtherResourceEventDomainContext {
|
|
29
|
+
performanceEntry: PerformanceEntry;
|
|
30
|
+
}
|
|
31
|
+
export interface RumErrorEventDomainContext {
|
|
32
|
+
error: unknown;
|
|
33
|
+
handlingStack?: string;
|
|
34
|
+
}
|
|
35
|
+
export interface RumLongTaskEventDomainContext {
|
|
36
|
+
performanceEntry: PerformanceEntry;
|
|
37
|
+
}
|
|
38
|
+
export interface RumVitalEventDomainContext {
|
|
39
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"domainContext.types.js","sourceRoot":"","sources":["../src/domainContext.types.ts"],"names":[],"mappings":";AAAA;;GAEG"}
|
package/cjs/index.d.ts
ADDED
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
export type { RumPublicApi, RecorderApi, ProfilerApi, StartRecordingOptions, Strategy } from './boot/rumPublicApi';
|
|
2
|
+
export { makeRumPublicApi } from './boot/rumPublicApi';
|
|
3
|
+
export type { StartRum, StartRumResult } from './boot/startRum';
|
|
4
|
+
export type { RumEvent, RumActionEvent, CommonProperties, RumErrorEvent, RumViewEvent, RumResourceEvent, RumLongTaskEvent, RumVitalEvent, ProfilingInternalContextSchema, } from './rumEvent.types';
|
|
5
|
+
export type { RumLongTaskEventDomainContext, RumErrorEventDomainContext, RumOtherResourceEventDomainContext, RumXhrResourceEventDomainContext, RumFetchResourceEventDomainContext, RumActionEventDomainContext, RumViewEventDomainContext, RumEventDomainContext, RumVitalEventDomainContext, } from './domainContext.types';
|
|
6
|
+
export type { ReplayStats, RawRumActionEvent, RawRumEvent } from './rawRumEvent.types';
|
|
7
|
+
export { ActionType, RumEventType, FrustrationType } from './rawRumEvent.types';
|
|
8
|
+
export { startRum } from './boot/startRum';
|
|
9
|
+
export type { RawRumEventCollectedData } from './domain/lifeCycle';
|
|
10
|
+
export { LifeCycle, LifeCycleEventType } from './domain/lifeCycle';
|
|
11
|
+
export type { ViewCreatedEvent, ViewOptions } from './domain/view/trackViews';
|
|
12
|
+
export type { ViewHistoryEntry, ViewHistory } from './domain/contexts/viewHistory';
|
|
13
|
+
export type { LongTaskContexts, LongTaskContext } from './domain/longTask/longTaskCollection';
|
|
14
|
+
export { startViewHistory } from './domain/contexts/viewHistory';
|
|
15
|
+
export type { RumSessionManager, RumSession } from './domain/rumSessionManager';
|
|
16
|
+
export { getMutationObserverConstructor } from './browser/domMutationObservable';
|
|
17
|
+
export type { RumMutationRecord, RumAttributesMutationRecord, RumChildListMutationRecord, RumCharacterDataMutationRecord, } from './browser/domMutationObservable';
|
|
18
|
+
export type { ViewportDimension } from './browser/viewportObservable';
|
|
19
|
+
export { initViewportObservable, getViewportDimension } from './browser/viewportObservable';
|
|
20
|
+
export { getScrollX, getScrollY } from './browser/scroll';
|
|
21
|
+
export type { RumInitConfiguration, RumConfiguration, FeatureFlagsForEvents, RemoteConfiguration, } from './domain/configuration';
|
|
22
|
+
export { DEFAULT_PROGRAMMATIC_ACTION_NAME_ATTRIBUTE } from './domain/action/actionNameConstants';
|
|
23
|
+
export { STABLE_ATTRIBUTES } from './domain/getSelectorFromElement';
|
|
24
|
+
export * from './browser/htmlDomUtils';
|
|
25
|
+
export { getSessionReplayUrl } from './domain/getSessionReplayUrl';
|
|
26
|
+
export { sanitizeIfLongDataUrl } from './domain/resource/resourceUtils';
|
|
27
|
+
export * from './domain/privacy';
|
|
28
|
+
export * from './domain/privacyConstants';
|
|
29
|
+
export { SessionReplayState } from './domain/rumSessionManager';
|
|
30
|
+
export type { RumPlugin, OnRumStartOptions } from './domain/plugins';
|
|
31
|
+
export type { MouseEventOnElement } from './domain/action/listenActionEvents';
|
|
32
|
+
export { supportPerformanceTimingEvent } from './browser/performanceObservable';
|
|
33
|
+
export { RumPerformanceEntryType } from './browser/performanceObservable';
|
|
34
|
+
export type { AllowedRawRumEvent } from './domain/event/eventCollection';
|
|
35
|
+
export type { DurationVitalReference, DurationVitalStart, AddDurationVitalOptions, DurationVitalOptions, } from './domain/vital/vitalCollection';
|
|
36
|
+
export type { Hooks, DefaultRumEventAttributes, DefaultTelemetryEventAttributes } from './domain/hooks';
|
|
37
|
+
export { createHooks } from './domain/hooks';
|
|
38
|
+
export { isSampled } from './domain/sampler/sampler';
|
|
39
|
+
export type { TracingOption, PropagatorType } from './domain/tracing/tracer.types';
|
|
40
|
+
export type { TransportPayload } from './transport/formDataTransport';
|
|
41
|
+
export { createFormDataTransport } from './transport/formDataTransport';
|
package/cjs/index.js
ADDED
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
exports.createFormDataTransport = exports.isSampled = exports.createHooks = exports.RumPerformanceEntryType = exports.supportPerformanceTimingEvent = exports.sanitizeIfLongDataUrl = exports.getSessionReplayUrl = exports.STABLE_ATTRIBUTES = exports.DEFAULT_PROGRAMMATIC_ACTION_NAME_ATTRIBUTE = exports.getScrollY = exports.getScrollX = exports.getViewportDimension = exports.initViewportObservable = exports.getMutationObserverConstructor = exports.startViewHistory = exports.LifeCycle = exports.startRum = exports.FrustrationType = exports.RumEventType = exports.ActionType = exports.makeRumPublicApi = void 0;
|
|
18
|
+
var rumPublicApi_1 = require("./boot/rumPublicApi");
|
|
19
|
+
Object.defineProperty(exports, "makeRumPublicApi", { enumerable: true, get: function () { return rumPublicApi_1.makeRumPublicApi; } });
|
|
20
|
+
var rawRumEvent_types_1 = require("./rawRumEvent.types");
|
|
21
|
+
Object.defineProperty(exports, "ActionType", { enumerable: true, get: function () { return rawRumEvent_types_1.ActionType; } });
|
|
22
|
+
Object.defineProperty(exports, "RumEventType", { enumerable: true, get: function () { return rawRumEvent_types_1.RumEventType; } });
|
|
23
|
+
Object.defineProperty(exports, "FrustrationType", { enumerable: true, get: function () { return rawRumEvent_types_1.FrustrationType; } });
|
|
24
|
+
var startRum_1 = require("./boot/startRum");
|
|
25
|
+
Object.defineProperty(exports, "startRum", { enumerable: true, get: function () { return startRum_1.startRum; } });
|
|
26
|
+
var lifeCycle_1 = require("./domain/lifeCycle");
|
|
27
|
+
Object.defineProperty(exports, "LifeCycle", { enumerable: true, get: function () { return lifeCycle_1.LifeCycle; } });
|
|
28
|
+
var viewHistory_1 = require("./domain/contexts/viewHistory");
|
|
29
|
+
Object.defineProperty(exports, "startViewHistory", { enumerable: true, get: function () { return viewHistory_1.startViewHistory; } });
|
|
30
|
+
var domMutationObservable_1 = require("./browser/domMutationObservable");
|
|
31
|
+
Object.defineProperty(exports, "getMutationObserverConstructor", { enumerable: true, get: function () { return domMutationObservable_1.getMutationObserverConstructor; } });
|
|
32
|
+
var viewportObservable_1 = require("./browser/viewportObservable");
|
|
33
|
+
Object.defineProperty(exports, "initViewportObservable", { enumerable: true, get: function () { return viewportObservable_1.initViewportObservable; } });
|
|
34
|
+
Object.defineProperty(exports, "getViewportDimension", { enumerable: true, get: function () { return viewportObservable_1.getViewportDimension; } });
|
|
35
|
+
var scroll_1 = require("./browser/scroll");
|
|
36
|
+
Object.defineProperty(exports, "getScrollX", { enumerable: true, get: function () { return scroll_1.getScrollX; } });
|
|
37
|
+
Object.defineProperty(exports, "getScrollY", { enumerable: true, get: function () { return scroll_1.getScrollY; } });
|
|
38
|
+
var actionNameConstants_1 = require("./domain/action/actionNameConstants");
|
|
39
|
+
Object.defineProperty(exports, "DEFAULT_PROGRAMMATIC_ACTION_NAME_ATTRIBUTE", { enumerable: true, get: function () { return actionNameConstants_1.DEFAULT_PROGRAMMATIC_ACTION_NAME_ATTRIBUTE; } });
|
|
40
|
+
var getSelectorFromElement_1 = require("./domain/getSelectorFromElement");
|
|
41
|
+
Object.defineProperty(exports, "STABLE_ATTRIBUTES", { enumerable: true, get: function () { return getSelectorFromElement_1.STABLE_ATTRIBUTES; } });
|
|
42
|
+
__exportStar(require("./browser/htmlDomUtils"), exports);
|
|
43
|
+
var getSessionReplayUrl_1 = require("./domain/getSessionReplayUrl");
|
|
44
|
+
Object.defineProperty(exports, "getSessionReplayUrl", { enumerable: true, get: function () { return getSessionReplayUrl_1.getSessionReplayUrl; } });
|
|
45
|
+
var resourceUtils_1 = require("./domain/resource/resourceUtils");
|
|
46
|
+
Object.defineProperty(exports, "sanitizeIfLongDataUrl", { enumerable: true, get: function () { return resourceUtils_1.sanitizeIfLongDataUrl; } });
|
|
47
|
+
__exportStar(require("./domain/privacy"), exports);
|
|
48
|
+
__exportStar(require("./domain/privacyConstants"), exports);
|
|
49
|
+
var performanceObservable_1 = require("./browser/performanceObservable");
|
|
50
|
+
Object.defineProperty(exports, "supportPerformanceTimingEvent", { enumerable: true, get: function () { return performanceObservable_1.supportPerformanceTimingEvent; } });
|
|
51
|
+
var performanceObservable_2 = require("./browser/performanceObservable");
|
|
52
|
+
Object.defineProperty(exports, "RumPerformanceEntryType", { enumerable: true, get: function () { return performanceObservable_2.RumPerformanceEntryType; } });
|
|
53
|
+
var hooks_1 = require("./domain/hooks");
|
|
54
|
+
Object.defineProperty(exports, "createHooks", { enumerable: true, get: function () { return hooks_1.createHooks; } });
|
|
55
|
+
var sampler_1 = require("./domain/sampler/sampler");
|
|
56
|
+
Object.defineProperty(exports, "isSampled", { enumerable: true, get: function () { return sampler_1.isSampled; } });
|
|
57
|
+
var formDataTransport_1 = require("./transport/formDataTransport");
|
|
58
|
+
Object.defineProperty(exports, "createFormDataTransport", { enumerable: true, get: function () { return formDataTransport_1.createFormDataTransport; } });
|
|
59
|
+
//# sourceMappingURL=index.js.map
|
package/cjs/index.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AACA,oDAAsD;AAA7C,gHAAA,gBAAgB,OAAA;AAyBzB,yDAA+E;AAAtE,+GAAA,UAAU,OAAA;AAAE,iHAAA,YAAY,OAAA;AAAE,oHAAA,eAAe,OAAA;AAClD,4CAA0C;AAAjC,oGAAA,QAAQ,OAAA;AAEjB,gDAAkE;AAAzD,sGAAA,SAAS,OAAA;AAIlB,6DAAgE;AAAvD,+GAAA,gBAAgB,OAAA;AAEzB,yEAAgF;AAAvE,uIAAA,8BAA8B,OAAA;AAQvC,mEAA2F;AAAlF,4HAAA,sBAAsB,OAAA;AAAE,0HAAA,oBAAoB,OAAA;AACrD,2CAAyD;AAAhD,oGAAA,UAAU,OAAA;AAAE,oGAAA,UAAU,OAAA;AAO/B,2EAAgG;AAAvF,iJAAA,0CAA0C,OAAA;AACnD,0EAAmE;AAA1D,2HAAA,iBAAiB,OAAA;AAC1B,yDAAsC;AACtC,oEAAkE;AAAzD,0HAAA,mBAAmB,OAAA;AAC5B,iEAAuE;AAA9D,sHAAA,qBAAqB,OAAA;AAC9B,mDAAgC;AAChC,4DAAyC;AAIzC,yEAA+E;AAAtE,sIAAA,6BAA6B,OAAA;AACtC,yEAAyE;AAAhE,gIAAA,uBAAuB,OAAA;AAShC,wCAA4C;AAAnC,oGAAA,WAAW,OAAA;AACpB,oDAAoD;AAA3C,oGAAA,SAAS,OAAA;AAGlB,mEAAuE;AAA9D,4HAAA,uBAAuB,OAAA"}
|