@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,109 @@
|
|
|
1
|
+
import type { Observable, RawError, DeflateEncoderStreamId, Encoder, TrackingConsentState, BufferedData, BufferedObservable } from '@kubesense/kubesense-browser-core';
|
|
2
|
+
import { LifeCycle } from '../domain/lifeCycle';
|
|
3
|
+
import type { RumSessionManager } from '../domain/rumSessionManager';
|
|
4
|
+
import type { RumConfiguration } from '../domain/configuration';
|
|
5
|
+
import type { ViewOptions } from '../domain/view/trackViews';
|
|
6
|
+
import type { CustomVitalsState } from '../domain/vital/vitalCollection';
|
|
7
|
+
import type { SdkName } from '../domain/contexts/defaultContext';
|
|
8
|
+
import type { Hooks } from '../domain/hooks';
|
|
9
|
+
import type { RecorderApi, ProfilerApi } from './rumPublicApi';
|
|
10
|
+
export type StartRum = typeof startRum;
|
|
11
|
+
export type StartRumResult = ReturnType<StartRum>;
|
|
12
|
+
export declare function startRum(configuration: RumConfiguration, recorderApi: RecorderApi, profilerApi: ProfilerApi, initialViewOptions: ViewOptions | undefined, createEncoder: (streamId: DeflateEncoderStreamId) => Encoder, trackingConsentState: TrackingConsentState, customVitalsState: CustomVitalsState, bufferedDataObservable: BufferedObservable<BufferedData>, sdkName?: SdkName): {
|
|
13
|
+
lifeCycle: import("@kubesense/kubesense-browser-core").AbstractLifeCycle<import("../domain/lifeCycle").LifeCycleEventMap>;
|
|
14
|
+
session: RumSessionManager;
|
|
15
|
+
stopSession: () => void;
|
|
16
|
+
telemetry: import("@kubesense/kubesense-browser-core").Telemetry;
|
|
17
|
+
stop: () => void;
|
|
18
|
+
hooks: {
|
|
19
|
+
register<K extends import("@kubesense/kubesense-browser-core").HookNames>(hookName: K, callback: import("../domain/hooks").HookCallbackMap[K]): {
|
|
20
|
+
unregister: () => void;
|
|
21
|
+
};
|
|
22
|
+
triggerHook<K extends import("@kubesense/kubesense-browser-core").HookNames>(hookName: K, param: Parameters<import("../domain/hooks").HookCallbackMap[K]>[0]): "DISCARDED" | Exclude<ReturnType<import("../domain/hooks").HookCallbackMap[K]>, "SKIPPED"> | undefined;
|
|
23
|
+
};
|
|
24
|
+
addAction: (action: import("../domain/action/actionCollection").CustomAction) => void;
|
|
25
|
+
addEvent: (startTime: import("@kubesense/kubesense-browser-core").RelativeTime, event: import("../domain/event/eventCollection").AllowedRawRumEvent, domainContext: import("..").RumEventDomainContext, duration?: import("@kubesense/kubesense-browser-core").Duration) => void;
|
|
26
|
+
addError: ({ error, handlingStack, componentStack, startClocks, context }: import("../domain/error/errorCollection").ProvidedError) => void;
|
|
27
|
+
addTiming: (name: string, time?: import("@kubesense/kubesense-browser-core").RelativeTime | import("@kubesense/kubesense-browser-core").TimeStamp) => void;
|
|
28
|
+
addFeatureFlagEvaluation: (key: string, value: import("@kubesense/kubesense-browser-core").ContextValue) => void;
|
|
29
|
+
startView: (options?: ViewOptions, startClocks?: import("@kubesense/kubesense-browser-core").ClocksState) => void;
|
|
30
|
+
setViewContext: (context: import("@kubesense/kubesense-browser-core").Context) => void;
|
|
31
|
+
setViewContextProperty: (key: string, value: import("@kubesense/kubesense-browser-core").ContextValue) => void;
|
|
32
|
+
getViewContext: () => import("@kubesense/kubesense-browser-core").Context;
|
|
33
|
+
setViewName: (name: string) => void;
|
|
34
|
+
viewHistory: import("../domain/contexts/viewHistory").ViewHistory;
|
|
35
|
+
getInternalContext: (startTime?: number) => import("@kubesense/kubesense-browser-core").RumInternalContext | undefined;
|
|
36
|
+
startDurationVital: (name: string, options?: import("../domain/vital/vitalCollection").DurationVitalOptions) => import("../domain/vital/vitalCollection").DurationVitalReference;
|
|
37
|
+
stopDurationVital: (nameOrRef: string | import("../domain/vital/vitalCollection").DurationVitalReference, options?: import("../domain/vital/vitalCollection").DurationVitalOptions) => void;
|
|
38
|
+
addDurationVital: (vital: import("../domain/vital/vitalCollection").DurationVital) => void;
|
|
39
|
+
addOperationStepVital: (name: string, stepType: "start" | "end", options?: import("../domain/vital/vitalCollection").FeatureOperationOptions, failureReason?: import("../domain/vital/vitalCollection").FailureReason) => void;
|
|
40
|
+
globalContext: {
|
|
41
|
+
getContext: () => import("@kubesense/kubesense-browser-core").Context;
|
|
42
|
+
setContext: (newContext: unknown) => void;
|
|
43
|
+
setContextProperty: (key: string, property: any) => void;
|
|
44
|
+
removeContextProperty: (key: string) => void;
|
|
45
|
+
clearContext: () => void;
|
|
46
|
+
changeObservable: import("@kubesense/kubesense-browser-core").Observable<void>;
|
|
47
|
+
};
|
|
48
|
+
userContext: {
|
|
49
|
+
getContext: () => import("@kubesense/kubesense-browser-core").Context;
|
|
50
|
+
setContext: (newContext: unknown) => void;
|
|
51
|
+
setContextProperty: (key: string, property: any) => void;
|
|
52
|
+
removeContextProperty: (key: string) => void;
|
|
53
|
+
clearContext: () => void;
|
|
54
|
+
changeObservable: import("@kubesense/kubesense-browser-core").Observable<void>;
|
|
55
|
+
};
|
|
56
|
+
accountContext: {
|
|
57
|
+
getContext: () => import("@kubesense/kubesense-browser-core").Context;
|
|
58
|
+
setContext: (newContext: unknown) => void;
|
|
59
|
+
setContextProperty: (key: string, property: any) => void;
|
|
60
|
+
removeContextProperty: (key: string) => void;
|
|
61
|
+
clearContext: () => void;
|
|
62
|
+
changeObservable: import("@kubesense/kubesense-browser-core").Observable<void>;
|
|
63
|
+
};
|
|
64
|
+
longTaskContexts: import("../domain/longTask/longTaskCollection").LongTaskContexts;
|
|
65
|
+
};
|
|
66
|
+
export declare function startRumEventCollection(lifeCycle: LifeCycle, hooks: Hooks, configuration: RumConfiguration, session: RumSessionManager, recorderApi: RecorderApi, initialViewOptions: ViewOptions | undefined, customVitalsState: CustomVitalsState, bufferedDataObservable: Observable<BufferedData>, sdkName: SdkName | undefined, reportError: (error: RawError) => void): {
|
|
67
|
+
addAction: (action: import("../domain/action/actionCollection").CustomAction) => void;
|
|
68
|
+
addEvent: (startTime: import("@kubesense/kubesense-browser-core").RelativeTime, event: import("../domain/event/eventCollection").AllowedRawRumEvent, domainContext: import("..").RumEventDomainContext, duration?: import("@kubesense/kubesense-browser-core").Duration) => void;
|
|
69
|
+
addError: ({ error, handlingStack, componentStack, startClocks, context }: import("../domain/error/errorCollection").ProvidedError) => void;
|
|
70
|
+
addTiming: (name: string, time?: import("@kubesense/kubesense-browser-core").RelativeTime | import("@kubesense/kubesense-browser-core").TimeStamp) => void;
|
|
71
|
+
addFeatureFlagEvaluation: (key: string, value: import("@kubesense/kubesense-browser-core").ContextValue) => void;
|
|
72
|
+
startView: (options?: ViewOptions, startClocks?: import("@kubesense/kubesense-browser-core").ClocksState) => void;
|
|
73
|
+
setViewContext: (context: import("@kubesense/kubesense-browser-core").Context) => void;
|
|
74
|
+
setViewContextProperty: (key: string, value: import("@kubesense/kubesense-browser-core").ContextValue) => void;
|
|
75
|
+
getViewContext: () => import("@kubesense/kubesense-browser-core").Context;
|
|
76
|
+
setViewName: (name: string) => void;
|
|
77
|
+
viewHistory: import("../domain/contexts/viewHistory").ViewHistory;
|
|
78
|
+
getInternalContext: (startTime?: number) => import("@kubesense/kubesense-browser-core").RumInternalContext | undefined;
|
|
79
|
+
startDurationVital: (name: string, options?: import("../domain/vital/vitalCollection").DurationVitalOptions) => import("../domain/vital/vitalCollection").DurationVitalReference;
|
|
80
|
+
stopDurationVital: (nameOrRef: string | import("../domain/vital/vitalCollection").DurationVitalReference, options?: import("../domain/vital/vitalCollection").DurationVitalOptions) => void;
|
|
81
|
+
addDurationVital: (vital: import("../domain/vital/vitalCollection").DurationVital) => void;
|
|
82
|
+
addOperationStepVital: (name: string, stepType: "start" | "end", options?: import("../domain/vital/vitalCollection").FeatureOperationOptions, failureReason?: import("../domain/vital/vitalCollection").FailureReason) => void;
|
|
83
|
+
globalContext: {
|
|
84
|
+
getContext: () => import("@kubesense/kubesense-browser-core").Context;
|
|
85
|
+
setContext: (newContext: unknown) => void;
|
|
86
|
+
setContextProperty: (key: string, property: any) => void;
|
|
87
|
+
removeContextProperty: (key: string) => void;
|
|
88
|
+
clearContext: () => void;
|
|
89
|
+
changeObservable: import("@kubesense/kubesense-browser-core").Observable<void>;
|
|
90
|
+
};
|
|
91
|
+
userContext: {
|
|
92
|
+
getContext: () => import("@kubesense/kubesense-browser-core").Context;
|
|
93
|
+
setContext: (newContext: unknown) => void;
|
|
94
|
+
setContextProperty: (key: string, property: any) => void;
|
|
95
|
+
removeContextProperty: (key: string) => void;
|
|
96
|
+
clearContext: () => void;
|
|
97
|
+
changeObservable: import("@kubesense/kubesense-browser-core").Observable<void>;
|
|
98
|
+
};
|
|
99
|
+
accountContext: {
|
|
100
|
+
getContext: () => import("@kubesense/kubesense-browser-core").Context;
|
|
101
|
+
setContext: (newContext: unknown) => void;
|
|
102
|
+
setContextProperty: (key: string, property: any) => void;
|
|
103
|
+
removeContextProperty: (key: string) => void;
|
|
104
|
+
clearContext: () => void;
|
|
105
|
+
changeObservable: import("@kubesense/kubesense-browser-core").Observable<void>;
|
|
106
|
+
};
|
|
107
|
+
longTaskContexts: import("../domain/longTask/longTaskCollection").LongTaskContexts;
|
|
108
|
+
stop: () => void;
|
|
109
|
+
};
|
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
import { sendToExtension, createPageMayExitObservable, startTelemetry, canUseEventBridge, addTelemetryDebug, startAccountContext, startGlobalContext, startUserContext, } from '@kubesense/kubesense-browser-core';
|
|
2
|
+
import { createDOMMutationObservable } from '../browser/domMutationObservable';
|
|
3
|
+
import { createWindowOpenObservable } from '../browser/windowOpenObservable';
|
|
4
|
+
import { startInternalContext } from '../domain/contexts/internalContext';
|
|
5
|
+
import { LifeCycle } from '../domain/lifeCycle';
|
|
6
|
+
import { startViewHistory } from '../domain/contexts/viewHistory';
|
|
7
|
+
import { startRequestCollection } from '../domain/requestCollection';
|
|
8
|
+
import { startActionCollection } from '../domain/action/actionCollection';
|
|
9
|
+
import { startErrorCollection } from '../domain/error/errorCollection';
|
|
10
|
+
import { startResourceCollection } from '../domain/resource/resourceCollection';
|
|
11
|
+
import { startViewCollection } from '../domain/view/viewCollection';
|
|
12
|
+
import { startRumSessionManager, startRumSessionManagerStub } from '../domain/rumSessionManager';
|
|
13
|
+
import { startRumBatch } from '../transport/startRumBatch';
|
|
14
|
+
import { startRumEventBridge } from '../transport/startRumEventBridge';
|
|
15
|
+
import { startUrlContexts } from '../domain/contexts/urlContexts';
|
|
16
|
+
import { createLocationChangeObservable } from '../browser/locationChangeObservable';
|
|
17
|
+
import { startFeatureFlagContexts } from '../domain/contexts/featureFlagContext';
|
|
18
|
+
import { startCustomerDataTelemetry } from '../domain/startCustomerDataTelemetry';
|
|
19
|
+
import { startPageStateHistory } from '../domain/contexts/pageStateHistory';
|
|
20
|
+
import { startDisplayContext } from '../domain/contexts/displayContext';
|
|
21
|
+
import { startVitalCollection } from '../domain/vital/vitalCollection';
|
|
22
|
+
import { startCiVisibilityContext } from '../domain/contexts/ciVisibilityContext';
|
|
23
|
+
import { startLongTaskCollection } from '../domain/longTask/longTaskCollection';
|
|
24
|
+
import { startSyntheticsContext } from '../domain/contexts/syntheticsContext';
|
|
25
|
+
import { startRumAssembly } from '../domain/assembly';
|
|
26
|
+
import { startSessionContext } from '../domain/contexts/sessionContext';
|
|
27
|
+
import { startConnectivityContext } from '../domain/contexts/connectivityContext';
|
|
28
|
+
import { startUserAgentDataContext } from '../domain/contexts/userAgentDataContext';
|
|
29
|
+
import { startDefaultContext } from '../domain/contexts/defaultContext';
|
|
30
|
+
import { startTrackingConsentContext } from '../domain/contexts/trackingConsentContext';
|
|
31
|
+
import { createHooks } from '../domain/hooks';
|
|
32
|
+
import { startEventCollection } from '../domain/event/eventCollection';
|
|
33
|
+
import { startInitialViewMetricsTelemetry } from '../domain/view/viewMetrics/startInitialViewMetricsTelemetry';
|
|
34
|
+
export function startRum(configuration, recorderApi, profilerApi, initialViewOptions, createEncoder,
|
|
35
|
+
// `startRum` and its subcomponents assume tracking consent is granted initially and starts
|
|
36
|
+
// collecting logs unconditionally. As such, `startRum` should be called with a
|
|
37
|
+
// `trackingConsentState` set to "granted".
|
|
38
|
+
trackingConsentState, customVitalsState, bufferedDataObservable, sdkName) {
|
|
39
|
+
const cleanupTasks = [];
|
|
40
|
+
const lifeCycle = new LifeCycle();
|
|
41
|
+
const hooks = createHooks();
|
|
42
|
+
lifeCycle.subscribe(13 /* LifeCycleEventType.RUM_EVENT_COLLECTED */, (event) => sendToExtension('rum', event));
|
|
43
|
+
const reportError = (error) => {
|
|
44
|
+
lifeCycle.notify(14 /* LifeCycleEventType.RAW_ERROR_COLLECTED */, { error });
|
|
45
|
+
// monitor-until: forever, to keep an eye on the errors reported to customers
|
|
46
|
+
addTelemetryDebug('Error reported to customer', { 'error.message': error.message });
|
|
47
|
+
};
|
|
48
|
+
const pageMayExitObservable = createPageMayExitObservable(configuration);
|
|
49
|
+
const pageMayExitSubscription = pageMayExitObservable.subscribe((event) => {
|
|
50
|
+
lifeCycle.notify(11 /* LifeCycleEventType.PAGE_MAY_EXIT */, event);
|
|
51
|
+
});
|
|
52
|
+
cleanupTasks.push(() => pageMayExitSubscription.unsubscribe());
|
|
53
|
+
const telemetry = startTelemetry("kubesense-browser-rum-sdk" /* TelemetryService.RUM */, configuration, hooks, reportError, pageMayExitObservable, createEncoder);
|
|
54
|
+
cleanupTasks.push(telemetry.stop);
|
|
55
|
+
const session = !canUseEventBridge()
|
|
56
|
+
? startRumSessionManager(configuration, lifeCycle, trackingConsentState)
|
|
57
|
+
: startRumSessionManagerStub();
|
|
58
|
+
if (!canUseEventBridge()) {
|
|
59
|
+
const batch = startRumBatch(configuration, lifeCycle, reportError, pageMayExitObservable, session.expireObservable, createEncoder);
|
|
60
|
+
cleanupTasks.push(() => batch.stop());
|
|
61
|
+
startCustomerDataTelemetry(telemetry, lifeCycle, batch.flushController.flushObservable);
|
|
62
|
+
}
|
|
63
|
+
else {
|
|
64
|
+
startRumEventBridge(lifeCycle);
|
|
65
|
+
}
|
|
66
|
+
startTrackingConsentContext(hooks, trackingConsentState);
|
|
67
|
+
const { stop: stopInitialViewMetricsTelemetry } = startInitialViewMetricsTelemetry(lifeCycle, telemetry);
|
|
68
|
+
cleanupTasks.push(stopInitialViewMetricsTelemetry);
|
|
69
|
+
const { stop: stopRumEventCollection, ...startRumEventCollectionResult } = startRumEventCollection(lifeCycle, hooks, configuration, session, recorderApi, initialViewOptions, customVitalsState, bufferedDataObservable, sdkName, reportError);
|
|
70
|
+
cleanupTasks.push(stopRumEventCollection);
|
|
71
|
+
bufferedDataObservable.unbuffer();
|
|
72
|
+
// Add Clean-up tasks for Profiler API.
|
|
73
|
+
cleanupTasks.push(() => profilerApi.stop());
|
|
74
|
+
return {
|
|
75
|
+
...startRumEventCollectionResult,
|
|
76
|
+
lifeCycle,
|
|
77
|
+
session,
|
|
78
|
+
stopSession: () => session.expire(),
|
|
79
|
+
telemetry,
|
|
80
|
+
stop: () => {
|
|
81
|
+
cleanupTasks.forEach((task) => task());
|
|
82
|
+
},
|
|
83
|
+
hooks,
|
|
84
|
+
};
|
|
85
|
+
}
|
|
86
|
+
export function startRumEventCollection(lifeCycle, hooks, configuration, session, recorderApi, initialViewOptions, customVitalsState, bufferedDataObservable, sdkName, reportError) {
|
|
87
|
+
const cleanupTasks = [];
|
|
88
|
+
const domMutationObservable = createDOMMutationObservable();
|
|
89
|
+
const locationChangeObservable = createLocationChangeObservable(configuration, location);
|
|
90
|
+
const { observable: windowOpenObservable, stop: stopWindowOpen } = createWindowOpenObservable();
|
|
91
|
+
cleanupTasks.push(stopWindowOpen);
|
|
92
|
+
startDefaultContext(hooks, configuration, sdkName);
|
|
93
|
+
const pageStateHistory = startPageStateHistory(hooks, configuration);
|
|
94
|
+
cleanupTasks.push(() => pageStateHistory.stop());
|
|
95
|
+
const viewHistory = startViewHistory(lifeCycle);
|
|
96
|
+
cleanupTasks.push(() => viewHistory.stop());
|
|
97
|
+
const urlContexts = startUrlContexts(lifeCycle, hooks, locationChangeObservable, location);
|
|
98
|
+
cleanupTasks.push(() => urlContexts.stop());
|
|
99
|
+
const featureFlagContexts = startFeatureFlagContexts(lifeCycle, hooks, configuration);
|
|
100
|
+
startSessionContext(hooks, session, recorderApi, viewHistory);
|
|
101
|
+
startConnectivityContext(hooks);
|
|
102
|
+
startUserAgentDataContext(hooks);
|
|
103
|
+
const globalContext = startGlobalContext(hooks, configuration, 'rum', true);
|
|
104
|
+
const userContext = startUserContext(hooks, configuration, session, 'rum');
|
|
105
|
+
const accountContext = startAccountContext(hooks, configuration, 'rum');
|
|
106
|
+
const actionCollection = startActionCollection(lifeCycle, hooks, domMutationObservable, windowOpenObservable, configuration);
|
|
107
|
+
cleanupTasks.push(actionCollection.stop);
|
|
108
|
+
const eventCollection = startEventCollection(lifeCycle);
|
|
109
|
+
const displayContext = startDisplayContext(hooks, configuration);
|
|
110
|
+
cleanupTasks.push(displayContext.stop);
|
|
111
|
+
const ciVisibilityContext = startCiVisibilityContext(configuration, hooks);
|
|
112
|
+
cleanupTasks.push(ciVisibilityContext.stop);
|
|
113
|
+
startSyntheticsContext(hooks);
|
|
114
|
+
startRumAssembly(configuration, lifeCycle, hooks, reportError);
|
|
115
|
+
const { addTiming, startView, setViewName, setViewContext, setViewContextProperty, getViewContext, stop: stopViewCollection, } = startViewCollection(lifeCycle, hooks, configuration, location, domMutationObservable, windowOpenObservable, locationChangeObservable, recorderApi, viewHistory, initialViewOptions);
|
|
116
|
+
cleanupTasks.push(stopViewCollection);
|
|
117
|
+
const { stop: stopResourceCollection } = startResourceCollection(lifeCycle, configuration, pageStateHistory);
|
|
118
|
+
cleanupTasks.push(stopResourceCollection);
|
|
119
|
+
const { stop: stopLongTaskCollection, longTaskContexts } = startLongTaskCollection(lifeCycle, configuration);
|
|
120
|
+
cleanupTasks.push(stopLongTaskCollection);
|
|
121
|
+
const { addError } = startErrorCollection(lifeCycle, configuration, bufferedDataObservable);
|
|
122
|
+
startRequestCollection(lifeCycle, configuration, session, userContext, accountContext);
|
|
123
|
+
const vitalCollection = startVitalCollection(lifeCycle, pageStateHistory, customVitalsState);
|
|
124
|
+
const internalContext = startInternalContext(configuration.applicationId, session, viewHistory, actionCollection.actionContexts, urlContexts);
|
|
125
|
+
return {
|
|
126
|
+
addAction: actionCollection.addAction,
|
|
127
|
+
addEvent: eventCollection.addEvent,
|
|
128
|
+
addError,
|
|
129
|
+
addTiming,
|
|
130
|
+
addFeatureFlagEvaluation: featureFlagContexts.addFeatureFlagEvaluation,
|
|
131
|
+
startView,
|
|
132
|
+
setViewContext,
|
|
133
|
+
setViewContextProperty,
|
|
134
|
+
getViewContext,
|
|
135
|
+
setViewName,
|
|
136
|
+
viewHistory,
|
|
137
|
+
getInternalContext: internalContext.get,
|
|
138
|
+
startDurationVital: vitalCollection.startDurationVital,
|
|
139
|
+
stopDurationVital: vitalCollection.stopDurationVital,
|
|
140
|
+
addDurationVital: vitalCollection.addDurationVital,
|
|
141
|
+
addOperationStepVital: vitalCollection.addOperationStepVital,
|
|
142
|
+
globalContext,
|
|
143
|
+
userContext,
|
|
144
|
+
accountContext,
|
|
145
|
+
longTaskContexts,
|
|
146
|
+
stop: () => cleanupTasks.forEach((task) => task()),
|
|
147
|
+
};
|
|
148
|
+
}
|
|
149
|
+
//# sourceMappingURL=startRum.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"startRum.js","sourceRoot":"","sources":["../../src/boot/startRum.ts"],"names":[],"mappings":"AASA,OAAO,EACL,eAAe,EACf,2BAA2B,EAE3B,cAAc,EACd,iBAAiB,EACjB,iBAAiB,EACjB,mBAAmB,EACn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CAAA;IAE5F,MAAM,eAAe,GAAG,oBAAoB,CAC1C,aAAa,CAAC,aAAa,EAC3B,OAAO,EACP,WAAW,EACX,gBAAgB,CAAC,cAAc,EAC/B,WAAW,CACZ,CAAA;IAED,OAAO;QACL,SAAS,EAAE,gBAAgB,CAAC,SAAS;QACrC,QAAQ,EAAE,eAAe,CAAC,QAAQ;QAClC,QAAQ;QACR,SAAS;QACT,wBAAwB,EAAE,mBAAmB,CAAC,wBAAwB;QACtE,SAAS;QACT,cAAc;QACd,sBAAsB;QACtB,cAAc;QACd,WAAW;QACX,WAAW;QACX,kBAAkB,EAAE,eAAe,CAAC,GAAG;QACvC,kBAAkB,EAAE,eAAe,CAAC,kBAAkB;QACtD,iBAAiB,EAAE,eAAe,CAAC,iBAAiB;QACpD,gBAAgB,EAAE,eAAe,CAAC,gBAAgB;QAClD,qBAAqB,EAAE,eAAe,CAAC,qBAAqB;QAC5D,aAAa;QACb,WAAW;QACX,cAAc;QACd,gBAAgB;QAChB,IAAI,EAAE,GAAG,EAAE,CAAC,YAAY,CAAC,OAAO,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,EAAE,CAAC;KACnD,CAAA;AACH,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { Configuration, CookieStore } from '@kubesense/kubesense-browser-core';
|
|
2
|
+
import { Observable } from '@kubesense/kubesense-browser-core';
|
|
3
|
+
export interface CookieStoreWindow {
|
|
4
|
+
cookieStore?: CookieStore;
|
|
5
|
+
}
|
|
6
|
+
export type CookieObservable = ReturnType<typeof createCookieObservable>;
|
|
7
|
+
export declare function createCookieObservable(configuration: Configuration, cookieName: string): Observable<string | undefined>;
|
|
8
|
+
export declare const WATCH_COOKIE_INTERVAL_DELAY = 1000;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { setInterval, clearInterval, Observable, addEventListener, ONE_SECOND, findCommaSeparatedValue, } from '@kubesense/kubesense-browser-core';
|
|
2
|
+
export function createCookieObservable(configuration, cookieName) {
|
|
3
|
+
const detectCookieChangeStrategy = window.cookieStore
|
|
4
|
+
? listenToCookieStoreChange(configuration)
|
|
5
|
+
: watchCookieFallback;
|
|
6
|
+
return new Observable((observable) => detectCookieChangeStrategy(cookieName, (event) => observable.notify(event)));
|
|
7
|
+
}
|
|
8
|
+
function listenToCookieStoreChange(configuration) {
|
|
9
|
+
return (cookieName, callback) => {
|
|
10
|
+
const listener = addEventListener(configuration, window.cookieStore, "change" /* DOM_EVENT.CHANGE */, (event) => {
|
|
11
|
+
// Based on our experimentation, we're assuming that entries for the same cookie cannot be in both the 'changed' and 'deleted' arrays.
|
|
12
|
+
// However, due to ambiguity in the specification, we asked for clarification: https://github.com/WICG/cookie-store/issues/226
|
|
13
|
+
const changeEvent = event.changed.find((event) => event.name === cookieName) ||
|
|
14
|
+
event.deleted.find((event) => event.name === cookieName);
|
|
15
|
+
if (changeEvent) {
|
|
16
|
+
callback(changeEvent.value);
|
|
17
|
+
}
|
|
18
|
+
});
|
|
19
|
+
return listener.stop;
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
export const WATCH_COOKIE_INTERVAL_DELAY = ONE_SECOND;
|
|
23
|
+
function watchCookieFallback(cookieName, callback) {
|
|
24
|
+
const previousCookieValue = findCommaSeparatedValue(document.cookie, cookieName);
|
|
25
|
+
const watchCookieIntervalId = setInterval(() => {
|
|
26
|
+
const cookieValue = findCommaSeparatedValue(document.cookie, cookieName);
|
|
27
|
+
if (cookieValue !== previousCookieValue) {
|
|
28
|
+
callback(cookieValue);
|
|
29
|
+
}
|
|
30
|
+
}, WATCH_COOKIE_INTERVAL_DELAY);
|
|
31
|
+
return () => {
|
|
32
|
+
clearInterval(watchCookieIntervalId);
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
//# sourceMappingURL=cookieObservable.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cookieObservable.js","sourceRoot":"","sources":["../../src/browser/cookieObservable.ts"],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MAAM,mBAAmB,GAAG,uBAAuB,CAAC,QAAQ,CAAC,MAAM,EAAE,UAAU,CAAC,CAAA;IAChF,MAAM,qBAAqB,GAAG,WAAW,CAAC,GAAG,EAAE;QAC7C,MAAM,WAAW,GAAG,uBAAuB,CAAC,QAAQ,CAAC,MAAM,EAAE,UAAU,CAAC,CAAA;QACxE,IAAI,WAAW,KAAK,mBAAmB,EAAE,CAAC;YACxC,QAAQ,CAAC,WAAW,CAAC,CAAA;QACvB,CAAC;IACH,CAAC,EAAE,2BAA2B,CAAC,CAAA;IAE/B,OAAO,GAAG,EAAE;QACV,aAAa,CAAC,qBAAqB,CAAC,CAAA;IACtC,CAAC,CAAA;AACH,CAAC"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { Observable } from '@kubesense/kubesense-browser-core';
|
|
2
|
+
export interface RumCharacterDataMutationRecord {
|
|
3
|
+
type: 'characterData';
|
|
4
|
+
target: Node;
|
|
5
|
+
oldValue: string | null;
|
|
6
|
+
}
|
|
7
|
+
export interface RumAttributesMutationRecord {
|
|
8
|
+
type: 'attributes';
|
|
9
|
+
target: Element;
|
|
10
|
+
oldValue: string | null;
|
|
11
|
+
attributeName: string | null;
|
|
12
|
+
}
|
|
13
|
+
export interface RumChildListMutationRecord {
|
|
14
|
+
type: 'childList';
|
|
15
|
+
target: Node;
|
|
16
|
+
addedNodes: NodeList;
|
|
17
|
+
removedNodes: NodeList;
|
|
18
|
+
}
|
|
19
|
+
export type RumMutationRecord = RumCharacterDataMutationRecord | RumAttributesMutationRecord | RumChildListMutationRecord;
|
|
20
|
+
export declare function createDOMMutationObservable(): Observable<RumMutationRecord[]>;
|
|
21
|
+
type MutationObserverConstructor = new (callback: (records: RumMutationRecord[]) => void) => MutationObserver;
|
|
22
|
+
export interface BrowserWindow extends Window {
|
|
23
|
+
MutationObserver?: MutationObserverConstructor;
|
|
24
|
+
Zone?: unknown;
|
|
25
|
+
}
|
|
26
|
+
export declare function getMutationObserverConstructor(): MutationObserverConstructor | undefined;
|
|
27
|
+
export {};
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { monitor, noop, Observable, getZoneJsOriginalValue } from '@kubesense/kubesense-browser-core';
|
|
2
|
+
export function createDOMMutationObservable() {
|
|
3
|
+
const MutationObserver = getMutationObserverConstructor();
|
|
4
|
+
return new Observable((observable) => {
|
|
5
|
+
if (!MutationObserver) {
|
|
6
|
+
return;
|
|
7
|
+
}
|
|
8
|
+
const observer = new MutationObserver(monitor((records) => observable.notify(records)));
|
|
9
|
+
observer.observe(document, {
|
|
10
|
+
attributes: true,
|
|
11
|
+
characterData: true,
|
|
12
|
+
childList: true,
|
|
13
|
+
subtree: true,
|
|
14
|
+
});
|
|
15
|
+
return () => observer.disconnect();
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
export function getMutationObserverConstructor() {
|
|
19
|
+
let constructor;
|
|
20
|
+
const browserWindow = window;
|
|
21
|
+
// Angular uses Zone.js to provide a context persisting across async tasks. Zone.js replaces the
|
|
22
|
+
// global MutationObserver constructor with a patched version to support the context propagation.
|
|
23
|
+
// There is an ongoing issue[1][2] with this setup when using a MutationObserver within a Angular
|
|
24
|
+
// component: on some occasions, the callback is being called in an infinite loop, causing the
|
|
25
|
+
// page to freeze (even if the callback is completely empty).
|
|
26
|
+
//
|
|
27
|
+
// To work around this issue, we try to get the original MutationObserver constructor stored by
|
|
28
|
+
// Zone.js.
|
|
29
|
+
//
|
|
30
|
+
// [1] https://github.com/angular/angular/issues/26948
|
|
31
|
+
// [2] https://github.com/angular/angular/issues/31712
|
|
32
|
+
if (browserWindow.Zone) {
|
|
33
|
+
// Zone.js 0.8.6+ is storing original class constructors into the browser 'window' object[3].
|
|
34
|
+
//
|
|
35
|
+
// [3] https://github.com/angular/angular/blob/6375fa79875c0fe7b815efc45940a6e6f5c9c9eb/packages/zone.js/lib/common/utils.ts#L288
|
|
36
|
+
constructor = getZoneJsOriginalValue(browserWindow, 'MutationObserver');
|
|
37
|
+
if (browserWindow.MutationObserver && constructor === browserWindow.MutationObserver) {
|
|
38
|
+
// Anterior Zone.js versions (used in Angular 2) does not expose the original MutationObserver
|
|
39
|
+
// in the 'window' object. Luckily, the patched MutationObserver class is storing an original
|
|
40
|
+
// instance in its properties[4]. Let's get the original MutationObserver constructor from
|
|
41
|
+
// there.
|
|
42
|
+
//
|
|
43
|
+
// [4] https://github.com/angular/zone.js/blob/v0.8.5/lib/common/utils.ts#L412
|
|
44
|
+
const patchedInstance = new browserWindow.MutationObserver(noop);
|
|
45
|
+
const originalInstance = getZoneJsOriginalValue(patchedInstance, 'originalInstance');
|
|
46
|
+
constructor = originalInstance && originalInstance.constructor;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
if (!constructor) {
|
|
50
|
+
constructor = browserWindow.MutationObserver;
|
|
51
|
+
}
|
|
52
|
+
return constructor;
|
|
53
|
+
}
|
|
54
|
+
//# sourceMappingURL=domMutationObservable.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"domMutationObservable.js","sourceRoot":"","sources":["../../src/browser/domMutationObservable.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,UAAU,EAAE,sBAAsB,EAAE,MAAM,mCAAmC,CAAA;AA4BrG,MAAM,UAAU,2BAA2B;IACzC,MAAM,gBAAgB,GAAG,8BAA8B,EAAE,CAAA;IAEzD,OAAO,IAAI,UAAU,CAAsB,CAAC,UAAU,EAAE,EAAE;QACxD,IAAI,CAAC,gBAAgB,EAAE,CAAC;YACtB,OAAM;QACR,CAAC;QAED,MAAM,QAAQ,GAAG,IAAI,gBAAgB,CAAC,OAAO,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,CAAA;QACvF,QAAQ,CAAC,OAAO,CAAC,QAAQ,EAAE;YACzB,UAAU,EAAE,IAAI;YAChB,aAAa,EAAE,IAAI;YACnB,SAAS,EAAE,IAAI;YACf,OAAO,EAAE,IAAI;SACd,CAAC,CAAA;QACF,OAAO,GAAG,EAAE,CAAC,QAAQ,CAAC,UAAU,EAAE,CAAA;IACpC,CAAC,CAAC,CAAA;AACJ,CAAC;AASD,MAAM,UAAU,8BAA8B;IAC5C,IAAI,WAAoD,CAAA;IACxD,MAAM,aAAa,GAAG,MAAuB,CAAA;IAE7C,iGAAiG;IACjG,iGAAiG;IACjG,iGAAiG;IACjG,8FAA8F;IAC9F,6DAA6D;IAC7D,EAAE;IACF,+FAA+F;IAC/F,WAAW;IACX,EAAE;IACF,sDAAsD;IACtD,sDAAsD;IACtD,IAAI,aAAa,CAAC,IAAI,EAAE,CAAC;QACvB,6FAA6F;QAC7F,EAAE;QACF,iIAAiI;QACjI,WAAW,GAAG,sBAAsB,CAAC,aAAa,EAAE,kBAAkB,CAAC,CAAA;QAEvE,IAAI,aAAa,CAAC,gBAAgB,IAAI,WAAW,KAAK,aAAa,CAAC,gBAAgB,EAAE,CAAC;YACrF,8FAA8F;YAC9F,6FAA6F;YAC7F,0FAA0F;YAC1F,SAAS;YACT,EAAE;YACF,8EAA8E;YAE9E,MAAM,eAAe,GAAG,IAAI,aAAa,CAAC,gBAAgB,CAAC,IAAI,CAE9D,CAAA;YAED,MAAM,gBAAgB,GAAG,sBAAsB,CAAC,eAAe,EAAE,kBAAkB,CAAC,CAAA;YACpF,WAAW,GAAG,gBAAgB,IAAI,gBAAgB,CAAC,WAAW,CAAA;QAChE,CAAC;IACH,CAAC;IAED,IAAI,CAAC,WAAW,EAAE,CAAC;QACjB,WAAW,GAAG,aAAa,CAAC,gBAAgB,CAAA;IAC9C,CAAC;IAED,OAAO,WAAW,CAAA;AACpB,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { RumConfiguration } from '../domain/configuration';
|
|
2
|
+
/**
|
|
3
|
+
* first-input timing entry polyfill based on
|
|
4
|
+
* https://github.com/GoogleChrome/web-vitals/blob/master/src/lib/polyfills/firstInputPolyfill.ts
|
|
5
|
+
*/
|
|
6
|
+
export declare function retrieveFirstInputTiming(configuration: RumConfiguration, callback: (timing: PerformanceEventTiming) => void): {
|
|
7
|
+
stop: () => void;
|
|
8
|
+
};
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { addEventListeners, dateNow, relativeNow } from '@kubesense/kubesense-browser-core';
|
|
2
|
+
/**
|
|
3
|
+
* first-input timing entry polyfill based on
|
|
4
|
+
* https://github.com/GoogleChrome/web-vitals/blob/master/src/lib/polyfills/firstInputPolyfill.ts
|
|
5
|
+
*/
|
|
6
|
+
export function retrieveFirstInputTiming(configuration, callback) {
|
|
7
|
+
const startTimeStamp = dateNow();
|
|
8
|
+
let timingSent = false;
|
|
9
|
+
const { stop: removeEventListeners } = addEventListeners(configuration, window, ["click" /* DOM_EVENT.CLICK */, "mousedown" /* DOM_EVENT.MOUSE_DOWN */, "keydown" /* DOM_EVENT.KEY_DOWN */, "touchstart" /* DOM_EVENT.TOUCH_START */, "pointerdown" /* DOM_EVENT.POINTER_DOWN */], (evt) => {
|
|
10
|
+
// Only count cancelable events, which should trigger behavior important to the user.
|
|
11
|
+
if (!evt.cancelable) {
|
|
12
|
+
return;
|
|
13
|
+
}
|
|
14
|
+
// This timing will be used to compute the "first Input delay", which is the delta between
|
|
15
|
+
// when the system received the event (e.g. evt.timeStamp) and when it could run the callback
|
|
16
|
+
// (e.g. performance.now()).
|
|
17
|
+
const timing = {
|
|
18
|
+
entryType: 'first-input',
|
|
19
|
+
processingStart: relativeNow(),
|
|
20
|
+
processingEnd: relativeNow(),
|
|
21
|
+
startTime: evt.timeStamp,
|
|
22
|
+
duration: 0, // arbitrary value to avoid nullable duration and simplify INP logic
|
|
23
|
+
name: '',
|
|
24
|
+
cancelable: false,
|
|
25
|
+
target: null,
|
|
26
|
+
toJSON: () => ({}),
|
|
27
|
+
};
|
|
28
|
+
if (evt.type === "pointerdown" /* DOM_EVENT.POINTER_DOWN */) {
|
|
29
|
+
sendTimingIfPointerIsNotCancelled(configuration, timing);
|
|
30
|
+
}
|
|
31
|
+
else {
|
|
32
|
+
sendTiming(timing);
|
|
33
|
+
}
|
|
34
|
+
}, { passive: true, capture: true });
|
|
35
|
+
return { stop: removeEventListeners };
|
|
36
|
+
/**
|
|
37
|
+
* Pointer events are a special case, because they can trigger main or compositor thread behavior.
|
|
38
|
+
* We differentiate these cases based on whether or not we see a pointercancel event, which are
|
|
39
|
+
* fired when we scroll. If we're scrolling we don't need to report input delay since FID excludes
|
|
40
|
+
* scrolling and pinch/zooming.
|
|
41
|
+
*/
|
|
42
|
+
function sendTimingIfPointerIsNotCancelled(configuration, timing) {
|
|
43
|
+
addEventListeners(configuration, window, ["pointerup" /* DOM_EVENT.POINTER_UP */, "pointercancel" /* DOM_EVENT.POINTER_CANCEL */], (event) => {
|
|
44
|
+
if (event.type === "pointerup" /* DOM_EVENT.POINTER_UP */) {
|
|
45
|
+
sendTiming(timing);
|
|
46
|
+
}
|
|
47
|
+
}, { once: true });
|
|
48
|
+
}
|
|
49
|
+
function sendTiming(timing) {
|
|
50
|
+
if (!timingSent) {
|
|
51
|
+
timingSent = true;
|
|
52
|
+
removeEventListeners();
|
|
53
|
+
// In some cases the recorded delay is clearly wrong, e.g. it's negative or it's larger than
|
|
54
|
+
// the time between now and when the page was loaded.
|
|
55
|
+
// - https://github.com/GoogleChromeLabs/first-input-delay/issues/4
|
|
56
|
+
// - https://github.com/GoogleChromeLabs/first-input-delay/issues/6
|
|
57
|
+
// - https://github.com/GoogleChromeLabs/first-input-delay/issues/7
|
|
58
|
+
const delay = timing.processingStart - timing.startTime;
|
|
59
|
+
if (delay >= 0 && delay < dateNow() - startTimeStamp) {
|
|
60
|
+
callback(timing);
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
//# sourceMappingURL=firstInputPolyfill.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"firstInputPolyfill.js","sourceRoot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B,CACf,aAAa,EACb,MAAM,EACN,wFAAgD,EAChD,CAAC,KAAK,EAAE,EAAE;YACR,IAAI,KAAK,CAAC,IAAI,2CAAyB,EAAE,CAAC;gBACxC,UAAU,CAAC,MAAM,CAAC,CAAA;YACpB,CAAC;QACH,CAAC,EACD,EAAE,IAAI,EAAE,IAAI,EAAE,CACf,CAAA;IACH,CAAC;IAED,SAAS,UAAU,CAAC,MAA8B;QAChD,IAAI,CAAC,UAAU,EAAE,CAAC;YAChB,UAAU,GAAG,IAAI,CAAA;YACjB,oBAAoB,EAAE,CAAA;YACtB,4FAA4F;YAC5F,qDAAqD;YACrD,mEAAmE;YACnE,mEAAmE;YACnE,mEAAmE;YACnE,MAAM,KAAK,GAAG,MAAM,CAAC,eAAe,GAAG,MAAM,CAAC,SAAS,CAAA;YACvD,IAAI,KAAK,IAAI,CAAC,IAAI,KAAK,GAAG,OAAO,EAAE,GAAG,cAAc,EAAE,CAAC;gBACrD,QAAQ,CAAC,MAAM,CAAC,CAAA;YAClB,CAAC;QACH,CAAC;IACH,CAAC;AACH,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export declare function isTextNode(node: Node): node is Text;
|
|
2
|
+
export declare function isCommentNode(node: Node): node is Comment;
|
|
3
|
+
export declare function isElementNode(node: Node): node is Element;
|
|
4
|
+
export declare function isNodeShadowHost(node: Node): node is Element & {
|
|
5
|
+
shadowRoot: ShadowRoot;
|
|
6
|
+
};
|
|
7
|
+
export declare function isNodeShadowRoot(node: Node): node is ShadowRoot;
|
|
8
|
+
export declare function hasChildNodes(node: Node): boolean;
|
|
9
|
+
export declare function forEachChildNodes(node: Node, callback: (child: Node) => void): void;
|
|
10
|
+
/**
|
|
11
|
+
* Return `host` in case if the current node is a shadow root otherwise will return the `parentNode`
|
|
12
|
+
*/
|
|
13
|
+
export declare function getParentNode(node: Node): Node | null;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
export function isTextNode(node) {
|
|
2
|
+
return node.nodeType === Node.TEXT_NODE;
|
|
3
|
+
}
|
|
4
|
+
export function isCommentNode(node) {
|
|
5
|
+
return node.nodeType === Node.COMMENT_NODE;
|
|
6
|
+
}
|
|
7
|
+
export function isElementNode(node) {
|
|
8
|
+
return node.nodeType === Node.ELEMENT_NODE;
|
|
9
|
+
}
|
|
10
|
+
export function isNodeShadowHost(node) {
|
|
11
|
+
return isElementNode(node) && Boolean(node.shadowRoot);
|
|
12
|
+
}
|
|
13
|
+
export function isNodeShadowRoot(node) {
|
|
14
|
+
const shadowRoot = node;
|
|
15
|
+
return !!shadowRoot.host && shadowRoot.nodeType === Node.DOCUMENT_FRAGMENT_NODE && isElementNode(shadowRoot.host);
|
|
16
|
+
}
|
|
17
|
+
export function hasChildNodes(node) {
|
|
18
|
+
return node.childNodes.length > 0 || isNodeShadowHost(node);
|
|
19
|
+
}
|
|
20
|
+
export function forEachChildNodes(node, callback) {
|
|
21
|
+
let child = node.firstChild;
|
|
22
|
+
while (child) {
|
|
23
|
+
callback(child);
|
|
24
|
+
child = child.nextSibling;
|
|
25
|
+
}
|
|
26
|
+
if (isNodeShadowHost(node)) {
|
|
27
|
+
callback(node.shadowRoot);
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* Return `host` in case if the current node is a shadow root otherwise will return the `parentNode`
|
|
32
|
+
*/
|
|
33
|
+
export function getParentNode(node) {
|
|
34
|
+
return isNodeShadowRoot(node) ? node.host : node.parentNode;
|
|
35
|
+
}
|
|
36
|
+
//# sourceMappingURL=htmlDomUtils.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"htmlDomUtils.js","sourceRoot":"","sources":["../../src/browser/htmlDomUtils.ts"],"names":[],"mappings":"AAAA,MAAM,UAAU,UAAU,CAAC,IAAU;IACnC,OAAO,IAAI,CAAC,QAAQ,KAAK,IAAI,CAAC,SAAS,CAAA;AACzC,CAAC;AAED,MAAM,UAAU,aAAa,CAAC,IAAU;IACtC,OA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
|
1
|
+
import { Observable } from '@kubesense/kubesense-browser-core';
|
|
2
|
+
import type { RumConfiguration } from '../domain/configuration';
|
|
3
|
+
export interface LocationChange {
|
|
4
|
+
oldLocation: Readonly<Location>;
|
|
5
|
+
newLocation: Readonly<Location>;
|
|
6
|
+
}
|
|
7
|
+
export declare function createLocationChangeObservable(configuration: RumConfiguration, location: Location): Observable<LocationChange>;
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { addEventListener, instrumentMethod, Observable, shallowClone } from '@kubesense/kubesense-browser-core';
|
|
2
|
+
export function createLocationChangeObservable(configuration, location) {
|
|
3
|
+
let currentLocation = shallowClone(location);
|
|
4
|
+
return new Observable((observable) => {
|
|
5
|
+
const { stop: stopHistoryTracking } = trackHistory(configuration, onLocationChange);
|
|
6
|
+
const { stop: stopHashTracking } = trackHash(configuration, onLocationChange);
|
|
7
|
+
function onLocationChange() {
|
|
8
|
+
if (currentLocation.href === location.href) {
|
|
9
|
+
return;
|
|
10
|
+
}
|
|
11
|
+
const newLocation = shallowClone(location);
|
|
12
|
+
observable.notify({
|
|
13
|
+
newLocation,
|
|
14
|
+
oldLocation: currentLocation,
|
|
15
|
+
});
|
|
16
|
+
currentLocation = newLocation;
|
|
17
|
+
}
|
|
18
|
+
return () => {
|
|
19
|
+
stopHistoryTracking();
|
|
20
|
+
stopHashTracking();
|
|
21
|
+
};
|
|
22
|
+
});
|
|
23
|
+
}
|
|
24
|
+
function trackHistory(configuration, onHistoryChange) {
|
|
25
|
+
const { stop: stopInstrumentingPushState } = instrumentMethod(getHistoryInstrumentationTarget('pushState'), 'pushState', ({ onPostCall }) => {
|
|
26
|
+
onPostCall(onHistoryChange);
|
|
27
|
+
});
|
|
28
|
+
const { stop: stopInstrumentingReplaceState } = instrumentMethod(getHistoryInstrumentationTarget('replaceState'), 'replaceState', ({ onPostCall }) => {
|
|
29
|
+
onPostCall(onHistoryChange);
|
|
30
|
+
});
|
|
31
|
+
const { stop: removeListener } = addEventListener(configuration, window, "popstate" /* DOM_EVENT.POP_STATE */, onHistoryChange);
|
|
32
|
+
return {
|
|
33
|
+
stop: () => {
|
|
34
|
+
stopInstrumentingPushState();
|
|
35
|
+
stopInstrumentingReplaceState();
|
|
36
|
+
removeListener();
|
|
37
|
+
},
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
function trackHash(configuration, onHashChange) {
|
|
41
|
+
return addEventListener(configuration, window, "hashchange" /* DOM_EVENT.HASH_CHANGE */, onHashChange);
|
|
42
|
+
}
|
|
43
|
+
function getHistoryInstrumentationTarget(methodName) {
|
|
44
|
+
// Ideally we should always instument the method on the prototype, however some frameworks (e.g [Next.js](https://github.com/vercel/next.js/blob/d3f5532065f3e3bb84fb54bd2dfd1a16d0f03a21/packages/next/src/client/components/app-router.tsx#L429))
|
|
45
|
+
// are wrapping the instance method. In that case we should also wrap the instance method.
|
|
46
|
+
return Object.prototype.hasOwnProperty.call(history, methodName) ? history : History.prototype;
|
|
47
|
+
}
|
|
48
|
+
//# sourceMappingURL=locationChangeObservable.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"locationChangeObservable.js","sourceRoot":"","sources":["../../src/browser/locationChangeObservable.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAa,gBAAgB,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,mCAAmC,CAAA;AAQ3H,MAAM,UAAU,8BAA8B,CAAC,aAA+B,EAAE,QAAkB;IAChG,IAAI,eAAe,GAAG,YAAY,CAAC,QAAQ,CAAC,CAAA;IAE5C,OAAO,IAAI,UAAU,CAAiB,CAAC,UAAU,EAAE,EAAE;QACnD,MAAM,EAAE,IAAI,EAAE,mBAAmB,EAAE,GAAG,YAAY,CAAC,aAAa,EAAE,gBAAgB,CAAC,CAAA;QACnF,MAAM,EAAE,IAAI,EAAE,gBAAgB,EAAE,GAAG,SAAS,CAAC,aAAa,EAAE,gBAAgB,CAAC,CAAA;QAE7E,SAAS,gBAAgB;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