@tef-novum/webview-bridge
Advanced tools
Comparing version
# CHANGELOG | ||
## v.2.18.1 - 2020-08-27 | ||
- Fix `TrackingEvent` type to be `readonly`, so analytics functions can accept | ||
immutable events too. | ||
## v.2.18.0 - 2020-07-07 | ||
@@ -4,0 +9,0 @@ |
@@ -5,11 +5,10 @@ declare type CustomDimensionIdx = 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 24 | 25 | 26; | ||
export declare const CD_EVENT_VALUE: CustomDimensionIdx; | ||
declare type TrackingEvent = { | ||
export declare const logEvent: ({ category, action, label, value, ...fieldsObject }: Readonly<{ | ||
[key: string]: any; | ||
category: string; | ||
action: string; | ||
label?: string; | ||
value?: number; | ||
[key: string]: any; | ||
}; | ||
export declare const logEvent: ({ category, action, label, value, ...fieldsObject }: TrackingEvent) => Promise<void>; | ||
export declare const logTiming: ({ category, variable, value, label, }: { | ||
label?: string | undefined; | ||
value?: number | undefined; | ||
}>) => Promise<void>; | ||
export declare const logTiming: ({ category, variable, value, label, }: Readonly<{ | ||
category?: string | undefined; | ||
@@ -19,3 +18,3 @@ variable: string; | ||
label?: string | undefined; | ||
}) => Promise<void>; | ||
}>) => Promise<void>; | ||
export declare const setScreenName: (screenName: string, fieldsObject?: {} | undefined) => Promise<void>; | ||
@@ -22,0 +21,0 @@ export declare const setUserProperty: (name: "obIds" | "paymentModels" | "serviceWorkerStatus" | "isAdmin" | "hasIpComms" | "af_source" | "af_campaign" | "novum_uid_session" | "user_logged" | "currentSubscriptionId" | "currentSubscriptionType" | "currentPaymentModel" | "webviewBrowserVersion" | "activatedRoles" | "appInstanceId" | "experimentflag" | "friendsApps" | "accountLineSelector" | "OneClickDisplayed", value: string) => Promise<void>; |
{ | ||
"name": "@tef-novum/webview-bridge", | ||
"version": "2.18.0", | ||
"version": "2.18.1", | ||
"description": "JavaScript library to access to native functionality. Requires a webview with a postMessage bridge.", | ||
@@ -5,0 +5,0 @@ "main": "./dist/webview-bridge-cjs.js", |
@@ -256,3 +256,4 @@ <p align="center"> | ||
in native app versions >= 11.8 | ||
- `showBackButton`: shows or hides NavigationBar Back button | ||
- `showBackButton`: shows or hides left icon in NavigationBar. Depending on | ||
the navigation mode, could be a close (X) or back (<) icon | ||
- `showReloadButton`: shows or hides NavigationBar Reload button | ||
@@ -259,0 +260,0 @@ - `showProfileButton`: shows or hides NavigationBar Profile button (which |
Sorry, the diff of this file is not supported yet
198132
0.13%668
0.15%4001
-0.02%