@embrace-io/web-sdk
Version:
30 lines • 1.33 kB
text/typescript
import { NavigationHost, TitleDocument } from "../../common/types.cjs";
import { PerformanceManager } from "../../utils/PerformanceManager/types.cjs";
import "../../utils/index.cjs";
import "../EmbraceUserSessionManager/index.cjs";
import { UserSessionManagerInternal } from "../EmbraceUserSessionManager/types.cjs";
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.cts.map