@hackler/javascript-sdk
Advanced tools
+1
-1
@@ -12,3 +12,3 @@ export declare const DEFAULT_SDK_URL = "https://sdk-api.hackle.io"; | ||
| export declare const SDK_TIME_HEADER = "X-HACKLE-SDK-TIME"; | ||
| export declare const SDK_VERSION = "11.53.0-canary.34"; | ||
| export declare const SDK_VERSION = "11.53.0-canary.35"; | ||
| export declare const BROWSER_MIN_POOL_INTERVAL = 60000; | ||
@@ -15,0 +15,0 @@ export declare const DEFAULT_POOL_INTERVAL = 10000; |
@@ -7,3 +7,2 @@ import { EngagementListener } from "../engagement/EngagementListener"; | ||
| import { LifecycleManager } from "./LifecycleManager"; | ||
| import { Page } from "../page/Page"; | ||
| export interface LifecycleComposite { | ||
@@ -13,3 +12,2 @@ addPageListener(listener: PageListener): void; | ||
| addLifecycleListener(listener: LifecycleChangeListener): void; | ||
| trackPageView(page: Page): void; | ||
| initialize(): void; | ||
@@ -26,4 +24,3 @@ } | ||
| initialize(): void; | ||
| trackPageView(page: Page): void; | ||
| private install; | ||
| } |
@@ -9,7 +9,8 @@ import { Lifecycle } from "../lifecycle/Lifecycle"; | ||
| get currentPage(): Page; | ||
| updatePage(page: Page, timestamp: number): void; | ||
| setCurrentPage(page: Page): void; | ||
| private updatePage; | ||
| private publishStart; | ||
| private publishEnd; | ||
| onLifecycleChanged(lifecycle: Lifecycle, timestamp: number): void; | ||
| addListener(listener: PageListener): void; | ||
| addListener(listener: PageListener, automaticTracking?: boolean): void; | ||
| } |
@@ -5,3 +5,2 @@ import { EngagementListener } from "../core/internal/engagement/EngagementListener"; | ||
| import { LifecycleComposite } from "../core/internal/lifecycle/LifecycleComposite"; | ||
| import { Page } from "../core/internal/page/Page"; | ||
| /** | ||
@@ -17,4 +16,3 @@ * @exports WebViewLifecycleCompositeManager, a composite manager for web view lifecycle only. | ||
| initialize(): void; | ||
| trackPageView(page: Page): void; | ||
| } | ||
| export { PageListener, EngagementListener, LifecycleChangeListener, WebViewLifecycleCompositeManager }; |
@@ -11,6 +11,6 @@ import HackleClient from "../core/HackleClient"; | ||
| import { Throttler } from "../core/internal/throttler/Throttler"; | ||
| import { LifecycleComposite } from "../core/internal/lifecycle/LifecycleComposite"; | ||
| import { InAppMessageUi } from "./iam/ui/InAppMessageUi"; | ||
| import { PIIEventManager } from "../core/internal/pii/PIIEventManager"; | ||
| import { HackleSubscriptionOperations } from "./subscription/HackleSubscriptionOperations"; | ||
| import { PageManager } from "../core/internal/page/PageManager"; | ||
| export interface DevTools { | ||
@@ -24,5 +24,2 @@ manager: { | ||
| export interface PageView { | ||
| /** | ||
| * the user to be attached to the page view event. | ||
| */ | ||
| user?: User; | ||
@@ -33,11 +30,3 @@ /** | ||
| pathUrl?: string; | ||
| /** | ||
| * page name to be attached to the page view event. | ||
| * | ||
| * when the page name is not specified, the page name is automatically detected using page title. | ||
| */ | ||
| pageName?: string; | ||
| /** | ||
| * custom properties to be attached to the page view event. | ||
| */ | ||
| properties?: Properties; | ||
@@ -153,10 +142,5 @@ } | ||
| * @param event the unique key of the event. MUST NOT be null. | ||
| * @param user the identifier of user that performed the event. id MUST NOT be null. (e.g. { id: "userId"}) | ||
| * @param user the identifier of user that performed the event. id MUST NOT be null. (e.g. { id: "userId"} ) | ||
| */ | ||
| track(event: HackleEvent | string, user?: User | string): void; | ||
| /** | ||
| * Records the page view performed by the user. | ||
| * | ||
| * @param option the page option. | ||
| */ | ||
| trackPageView(option?: PageView): void; | ||
@@ -201,3 +185,3 @@ /** | ||
| private readonly fetchThrottler; | ||
| private readonly lifecycleComposite; | ||
| private readonly pageManager; | ||
| private readonly inAppMessageUi; | ||
@@ -207,3 +191,3 @@ private readonly devTools?; | ||
| private initialized; | ||
| constructor(core: HackleCore, synchronizer: PollingSynchronizer, sessionManager: SessionManager, userManager: UserManager, piiEventManager: PIIEventManager, fetchThrottler: Throttler, lifecycleComposite: LifecycleComposite, inAppMessageUi: InAppMessageUi, devTools?: DevTools | undefined); | ||
| constructor(core: HackleCore, synchronizer: PollingSynchronizer, sessionManager: SessionManager, userManager: UserManager, piiEventManager: PIIEventManager, fetchThrottler: Throttler, pageManager: PageManager, inAppMessageUi: InAppMessageUi, devTools?: DevTools | undefined); | ||
| private initialize; | ||
@@ -210,0 +194,0 @@ getSessionId(): string; |
+1
-1
| { | ||
| "name": "@hackler/javascript-sdk", | ||
| "version": "11.53.0-canary.34", | ||
| "version": "11.53.0-canary.35", | ||
| "description": "JavaScript SDK For Hackle", | ||
@@ -5,0 +5,0 @@ "module": "./lib/index.browser.es.js", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
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 too big to display
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
9311934
0.02%48714
-0.02%