UNPKG

@embrace-io/web-sdk

Version:
30 lines 1.33 kB
import { NavigationHost, TitleDocument } from "../../common/types.js"; import { PerformanceManager } from "../../utils/PerformanceManager/types.js"; import "../../utils/index.js"; import "../EmbraceUserSessionManager/index.js"; import { UserSessionManagerInternal } from "../EmbraceUserSessionManager/types.js"; import { DiagLogger } from "@opentelemetry/api"; //#region src/managers/EmbracePageManager/types.d.ts interface EmbracePageManagerArgs { diag?: DiagLogger; useDocumentTitleAsPageLabel?: boolean; titleDocument?: TitleDocument; /** * Window-shaped object used to detect and listen for soft navigations via * the Navigation API. Defaults to `window`. Optional `navigation` property * handles old browsers that lack the API. */ navigationHost?: NavigationHost; /** * Used to roll the session part over on soft navigation. Optional so * EmbracePageManager stays usable standalone (without session-part * awareness) — when omitted, soft navigation still updates the route but * skips the rollover. */ userSessionManager?: UserSessionManagerInternal; /** Used to convert a soft navigation's event.timeStamp to an epoch time when resetting the SDK's zero time. */ perf?: PerformanceManager; } //#endregion export { EmbracePageManagerArgs }; //# sourceMappingURL=types.d.ts.map