@datadog/browser-rum
Advanced tools
Comparing version 4.34.3 to 4.35.0
@@ -8,3 +8,3 @@ export declare const NodePrivacyLevel: { | ||
}; | ||
export declare type NodePrivacyLevel = typeof NodePrivacyLevel[keyof typeof NodePrivacyLevel]; | ||
export declare type NodePrivacyLevel = (typeof NodePrivacyLevel)[keyof typeof NodePrivacyLevel]; | ||
export declare const PRIVACY_ATTR_NAME = "data-dd-privacy"; | ||
@@ -11,0 +11,0 @@ export declare const PRIVACY_ATTR_VALUE_ALLOW = "allow"; |
export { record } from './record'; | ||
export { serializeNodeWithId, serializeDocument, SerializationContextStatus } from './serialize'; | ||
export { createElementsScrollPositions } from './elementsScrollPositions'; | ||
export { ShadowRootsController } from './shadowRootsController'; |
@@ -1,2 +0,2 @@ | ||
import type { RumMutationRecord } from './mutationObserver'; | ||
import type { RumMutationRecord } from './observers'; | ||
export declare function createMutationBatch(processMutationBatch: (mutations: RumMutationRecord[]) => void): { | ||
@@ -3,0 +3,0 @@ addMutations: (mutations: RumMutationRecord[]) => void; |
import type { RumConfiguration } from '@datadog/browser-rum-core'; | ||
import type { MutationCallBack, InputCallback } from './observers'; | ||
import type { InputCallback, MutationCallBack } from './observers'; | ||
export declare type ShadowRootCallBack = (shadowRoot: ShadowRoot) => void; | ||
@@ -4,0 +4,0 @@ export interface ShadowRootsController { |
@@ -5,3 +5,2 @@ "use strict"; | ||
var browser_core_1 = require("@datadog/browser-core"); | ||
var mutationObserver_1 = require("./mutationObserver"); | ||
var observers_1 = require("./observers"); | ||
@@ -13,3 +12,3 @@ var initShadowRootsController = function (configuration, _a) { | ||
addShadowRoot: function (shadowRoot) { | ||
var _a = (0, mutationObserver_1.startMutationObserver)(mutationCb, configuration, shadowRootsController, shadowRoot), stopMutationObserver = _a.stop, flush = _a.flush; | ||
var _a = (0, observers_1.initMutationObserver)(mutationCb, configuration, shadowRootsController, shadowRoot), stopMutationObserver = _a.stop, flush = _a.flush; | ||
// the change event no do bubble up across the shadow root, we have to listen on the shadow root | ||
@@ -16,0 +15,0 @@ var stopInputObserver = (0, observers_1.initInputObserver)(inputCb, configuration.defaultPrivacyLevel, { |
import type { BrowserIncrementalData, BrowserIncrementalSnapshotRecord } from '../../types'; | ||
export declare function isTouchEvent(event: MouseEvent | TouchEvent): event is TouchEvent; | ||
export declare function forEach<List extends { | ||
[index: number]: any; | ||
}>(list: List, callback: (value: List[number], index: number, parent: List) => void): void; | ||
export declare function assembleIncrementalSnapshot<Data extends BrowserIncrementalData>(source: Data['source'], data: Omit<Data, 'source'>): BrowserIncrementalSnapshotRecord; | ||
export declare function getPathToNestedCSSRule(rule: CSSRule): number[] | undefined; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.getPathToNestedCSSRule = exports.assembleIncrementalSnapshot = exports.forEach = exports.isTouchEvent = void 0; | ||
exports.getPathToNestedCSSRule = exports.assembleIncrementalSnapshot = exports.isTouchEvent = void 0; | ||
var browser_core_1 = require("@datadog/browser-core"); | ||
@@ -10,6 +10,2 @@ var types_1 = require("../../types"); | ||
exports.isTouchEvent = isTouchEvent; | ||
function forEach(list, callback) { | ||
Array.prototype.forEach.call(list, callback); | ||
} | ||
exports.forEach = forEach; | ||
function assembleIncrementalSnapshot(source, data) { | ||
@@ -16,0 +12,0 @@ return { |
@@ -11,3 +11,3 @@ import type * as SessionReplay from './sessionReplay'; | ||
}; | ||
export declare type RecordType = typeof RecordType[keyof typeof RecordType]; | ||
export declare type RecordType = (typeof RecordType)[keyof typeof RecordType]; | ||
export declare const NodeType: { | ||
@@ -21,3 +21,3 @@ Document: SessionReplay.DocumentNode['type']; | ||
}; | ||
export declare type NodeType = typeof NodeType[keyof typeof NodeType]; | ||
export declare type NodeType = (typeof NodeType)[keyof typeof NodeType]; | ||
export declare const IncrementalSource: { | ||
@@ -34,3 +34,3 @@ Mutation: SessionReplay.BrowserMutationData['source']; | ||
}; | ||
export declare type IncrementalSource = typeof IncrementalSource[keyof typeof IncrementalSource]; | ||
export declare type IncrementalSource = (typeof IncrementalSource)[keyof typeof IncrementalSource]; | ||
export declare const MouseInteractionType: { | ||
@@ -47,3 +47,3 @@ readonly MouseUp: 0; | ||
}; | ||
export declare type MouseInteractionType = typeof MouseInteractionType[keyof typeof MouseInteractionType]; | ||
export declare type MouseInteractionType = (typeof MouseInteractionType)[keyof typeof MouseInteractionType]; | ||
export declare const MediaInteractionType: { | ||
@@ -53,2 +53,2 @@ readonly Play: 0; | ||
}; | ||
export declare type MediaInteractionType = typeof MediaInteractionType[keyof typeof MediaInteractionType]; | ||
export declare type MediaInteractionType = (typeof MediaInteractionType)[keyof typeof MediaInteractionType]; |
@@ -8,3 +8,3 @@ export declare const NodePrivacyLevel: { | ||
}; | ||
export declare type NodePrivacyLevel = typeof NodePrivacyLevel[keyof typeof NodePrivacyLevel]; | ||
export declare type NodePrivacyLevel = (typeof NodePrivacyLevel)[keyof typeof NodePrivacyLevel]; | ||
export declare const PRIVACY_ATTR_NAME = "data-dd-privacy"; | ||
@@ -11,0 +11,0 @@ export declare const PRIVACY_ATTR_VALUE_ALLOW = "allow"; |
export { record } from './record'; | ||
export { serializeNodeWithId, serializeDocument, SerializationContextStatus } from './serialize'; | ||
export { createElementsScrollPositions } from './elementsScrollPositions'; | ||
export { ShadowRootsController } from './shadowRootsController'; |
@@ -1,2 +0,2 @@ | ||
import type { RumMutationRecord } from './mutationObserver'; | ||
import type { RumMutationRecord } from './observers'; | ||
export declare function createMutationBatch(processMutationBatch: (mutations: RumMutationRecord[]) => void): { | ||
@@ -3,0 +3,0 @@ addMutations: (mutations: RumMutationRecord[]) => void; |
import type { RumConfiguration } from '@datadog/browser-rum-core'; | ||
import type { MutationCallBack, InputCallback } from './observers'; | ||
import type { InputCallback, MutationCallBack } from './observers'; | ||
export declare type ShadowRootCallBack = (shadowRoot: ShadowRoot) => void; | ||
@@ -4,0 +4,0 @@ export interface ShadowRootsController { |
import { addTelemetryDebug, isExperimentalFeatureEnabled } from '@datadog/browser-core'; | ||
import { startMutationObserver } from './mutationObserver'; | ||
import { initInputObserver } from './observers'; | ||
import { initInputObserver, initMutationObserver } from './observers'; | ||
export var initShadowRootsController = function (configuration, _a) { | ||
@@ -9,3 +8,3 @@ var mutationCb = _a.mutationCb, inputCb = _a.inputCb; | ||
addShadowRoot: function (shadowRoot) { | ||
var _a = startMutationObserver(mutationCb, configuration, shadowRootsController, shadowRoot), stopMutationObserver = _a.stop, flush = _a.flush; | ||
var _a = initMutationObserver(mutationCb, configuration, shadowRootsController, shadowRoot), stopMutationObserver = _a.stop, flush = _a.flush; | ||
// the change event no do bubble up across the shadow root, we have to listen on the shadow root | ||
@@ -12,0 +11,0 @@ var stopInputObserver = initInputObserver(inputCb, configuration.defaultPrivacyLevel, { |
import type { BrowserIncrementalData, BrowserIncrementalSnapshotRecord } from '../../types'; | ||
export declare function isTouchEvent(event: MouseEvent | TouchEvent): event is TouchEvent; | ||
export declare function forEach<List extends { | ||
[index: number]: any; | ||
}>(list: List, callback: (value: List[number], index: number, parent: List) => void): void; | ||
export declare function assembleIncrementalSnapshot<Data extends BrowserIncrementalData>(source: Data['source'], data: Omit<Data, 'source'>): BrowserIncrementalSnapshotRecord; | ||
export declare function getPathToNestedCSSRule(rule: CSSRule): number[] | undefined; |
@@ -6,5 +6,2 @@ import { assign, timeStampNow } from '@datadog/browser-core'; | ||
} | ||
export function forEach(list, callback) { | ||
Array.prototype.forEach.call(list, callback); | ||
} | ||
export function assembleIncrementalSnapshot(source, data) { | ||
@@ -11,0 +8,0 @@ return { |
@@ -11,3 +11,3 @@ import type * as SessionReplay from './sessionReplay'; | ||
}; | ||
export declare type RecordType = typeof RecordType[keyof typeof RecordType]; | ||
export declare type RecordType = (typeof RecordType)[keyof typeof RecordType]; | ||
export declare const NodeType: { | ||
@@ -21,3 +21,3 @@ Document: SessionReplay.DocumentNode['type']; | ||
}; | ||
export declare type NodeType = typeof NodeType[keyof typeof NodeType]; | ||
export declare type NodeType = (typeof NodeType)[keyof typeof NodeType]; | ||
export declare const IncrementalSource: { | ||
@@ -34,3 +34,3 @@ Mutation: SessionReplay.BrowserMutationData['source']; | ||
}; | ||
export declare type IncrementalSource = typeof IncrementalSource[keyof typeof IncrementalSource]; | ||
export declare type IncrementalSource = (typeof IncrementalSource)[keyof typeof IncrementalSource]; | ||
export declare const MouseInteractionType: { | ||
@@ -47,3 +47,3 @@ readonly MouseUp: 0; | ||
}; | ||
export declare type MouseInteractionType = typeof MouseInteractionType[keyof typeof MouseInteractionType]; | ||
export declare type MouseInteractionType = (typeof MouseInteractionType)[keyof typeof MouseInteractionType]; | ||
export declare const MediaInteractionType: { | ||
@@ -53,2 +53,2 @@ readonly Play: 0; | ||
}; | ||
export declare type MediaInteractionType = typeof MediaInteractionType[keyof typeof MediaInteractionType]; | ||
export declare type MediaInteractionType = (typeof MediaInteractionType)[keyof typeof MediaInteractionType]; |
{ | ||
"name": "@datadog/browser-rum", | ||
"version": "4.34.3", | ||
"version": "4.35.0", | ||
"license": "Apache-2.0", | ||
@@ -15,7 +15,7 @@ "main": "cjs/entries/main.js", | ||
"dependencies": { | ||
"@datadog/browser-core": "4.34.3", | ||
"@datadog/browser-rum-core": "4.34.3" | ||
"@datadog/browser-core": "4.35.0", | ||
"@datadog/browser-rum-core": "4.35.0" | ||
}, | ||
"peerDependencies": { | ||
"@datadog/browser-logs": "4.34.3" | ||
"@datadog/browser-logs": "4.35.0" | ||
}, | ||
@@ -34,3 +34,3 @@ "peerDependenciesMeta": { | ||
"@types/pako": "2.0.0", | ||
"pako": "2.0.4" | ||
"pako": "2.1.0" | ||
}, | ||
@@ -40,3 +40,3 @@ "volta": { | ||
}, | ||
"gitHead": "6f59d743da0d1b23fea9094bdfa04e21aa599c9b" | ||
"gitHead": "c71f60a74755ba55b3d64cf789aa472f2867afef" | ||
} |
@@ -159,3 +159,3 @@ import { isIE, noop } from '@datadog/browser-core' | ||
describe('if browser is not supported', () => { | ||
let originalArrayFrom: typeof Array['from'] | ||
let originalArrayFrom: (typeof Array)['from'] | ||
@@ -162,0 +162,0 @@ beforeEach(() => { |
@@ -10,3 +10,3 @@ import { DefaultPrivacyLevel } from '@datadog/browser-core' | ||
} as const | ||
export type NodePrivacyLevel = typeof NodePrivacyLevel[keyof typeof NodePrivacyLevel] | ||
export type NodePrivacyLevel = (typeof NodePrivacyLevel)[keyof typeof NodePrivacyLevel] | ||
@@ -13,0 +13,0 @@ export const PRIVACY_ATTR_NAME = 'data-dd-privacy' |
export { record } from './record' | ||
export { serializeNodeWithId, serializeDocument, SerializationContextStatus } from './serialize' | ||
export { createElementsScrollPositions } from './elementsScrollPositions' | ||
export { ShadowRootsController } from './shadowRootsController' |
import { collectAsyncCalls } from '../../../../core/test/collectAsyncCalls' | ||
import { createMutationBatch } from './mutationBatch' | ||
import type { RumMutationRecord } from './mutationObserver' | ||
import type { RumMutationRecord } from './observers' | ||
@@ -5,0 +5,0 @@ describe('createMutationBatch', () => { |
import { noop, requestIdleCallback } from '@datadog/browser-core' | ||
import type { RumMutationRecord } from './mutationObserver' | ||
import type { RumMutationRecord } from './observers' | ||
@@ -4,0 +4,0 @@ /** |
@@ -19,4 +19,2 @@ import type { TimeStamp } from '@datadog/browser-core' | ||
import { initObservers } from './observers' | ||
import type { InputCallback } from './observers' | ||
import { getVisualViewport, getScrollX, getScrollY } from './viewports' | ||
@@ -27,2 +25,3 @@ import { assembleIncrementalSnapshot } from './utils' | ||
import { initShadowRootsController } from './shadowRootsController' | ||
import type { InputCallback } from './observers' | ||
@@ -29,0 +28,0 @@ export interface RecordOptions { |
import { addTelemetryDebug, DOM_EVENT, isExperimentalFeatureEnabled } from '@datadog/browser-core' | ||
import type { RumConfiguration } from '@datadog/browser-rum-core' | ||
import { startMutationObserver } from './mutationObserver' | ||
import { initInputObserver } from './observers' | ||
import type { MutationCallBack, InputCallback } from './observers' | ||
import type { InputCallback, MutationCallBack } from './observers' | ||
import { initInputObserver, initMutationObserver } from './observers' | ||
@@ -35,3 +34,3 @@ interface ShadowRootController { | ||
addShadowRoot: (shadowRoot: ShadowRoot) => { | ||
const { stop: stopMutationObserver, flush } = startMutationObserver( | ||
const { stop: stopMutationObserver, flush } = initMutationObserver( | ||
mutationCb, | ||
@@ -38,0 +37,0 @@ configuration, |
@@ -9,9 +9,2 @@ import { assign, timeStampNow } from '@datadog/browser-core' | ||
export function forEach<List extends { [index: number]: any }>( | ||
list: List, | ||
callback: (value: List[number], index: number, parent: List) => void | ||
) { | ||
Array.prototype.forEach.call(list, callback as any) | ||
} | ||
export function assembleIncrementalSnapshot<Data extends BrowserIncrementalData>( | ||
@@ -18,0 +11,0 @@ source: Data['source'], |
@@ -21,3 +21,3 @@ import type * as SessionReplay from './sessionReplay' | ||
export type RecordType = typeof RecordType[keyof typeof RecordType] | ||
export type RecordType = (typeof RecordType)[keyof typeof RecordType] | ||
@@ -40,3 +40,3 @@ export const NodeType: { | ||
export type NodeType = typeof NodeType[keyof typeof NodeType] | ||
export type NodeType = (typeof NodeType)[keyof typeof NodeType] | ||
@@ -67,3 +67,3 @@ export const IncrementalSource: { | ||
export type IncrementalSource = typeof IncrementalSource[keyof typeof IncrementalSource] | ||
export type IncrementalSource = (typeof IncrementalSource)[keyof typeof IncrementalSource] | ||
@@ -82,3 +82,3 @@ export const MouseInteractionType = { | ||
export type MouseInteractionType = typeof MouseInteractionType[keyof typeof MouseInteractionType] | ||
export type MouseInteractionType = (typeof MouseInteractionType)[keyof typeof MouseInteractionType] | ||
@@ -90,2 +90,2 @@ export const MediaInteractionType = { | ||
export type MediaInteractionType = typeof MediaInteractionType[keyof typeof MediaInteractionType] | ||
export type MediaInteractionType = (typeof MediaInteractionType)[keyof typeof MediaInteractionType] |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1600974
308
26776
+ Added@datadog/browser-core@4.35.0(transitive)
+ Added@datadog/browser-logs@4.35.0(transitive)
+ Added@datadog/browser-rum-core@4.35.0(transitive)
- Removed@datadog/browser-core@4.34.3(transitive)
- Removed@datadog/browser-logs@4.34.3(transitive)
- Removed@datadog/browser-rum-core@4.34.3(transitive)
Updated@datadog/browser-core@4.35.0