UNPKG

@embrace-io/web-sdk

Version:
37 lines (36 loc) 968 B
import { NoOpPageManager } from "../NoOpPageManager/NoOpPageManager.js"; //#region src/api-page/manager/ProxyPageManager/ProxyPageManager.ts const NOOP_PAGE_MANAGER = new NoOpPageManager(); var ProxyPageManager = class { _delegate; getDelegate() { return this._delegate ?? NOOP_PAGE_MANAGER; } setDelegate(delegate) { this._delegate = delegate; } setCurrentRoute(route) { this.getDelegate().setCurrentRoute(route); } getCurrentRoute() { return this.getDelegate().getCurrentRoute(); } getCurrentPageId() { return this.getDelegate().getCurrentPageId(); } setPageLabel(label) { this.getDelegate().setPageLabel(label); } getPageLabel() { return this.getDelegate().getPageLabel(); } clearCurrentRoute() { this.getDelegate().clearCurrentRoute(); } addRouteChangedListener(listener) { return this.getDelegate().addRouteChangedListener(listener); } }; //#endregion export { ProxyPageManager }; //# sourceMappingURL=ProxyPageManager.js.map