Skip to content

Commit 3df835e

Browse files
committed
Merge branch 'v8' of https://github.com/GleapSDK/JavaScript-SDK into v8
2 parents 7c1ddd2 + 8e9ce6a commit 3df835e

File tree

23 files changed

+249
-42
lines changed

23 files changed

+249
-42
lines changed

build/index.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

demo/fav.png

21.9 KB
Loading

demo/index.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
href="https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,300;0,500;0,700;0,800;1,400&display=swap"
1111
rel="stylesheet"
1212
/>
13+
<link rel="icon" type="image/x-icon" href="fav.png">
1314
<script
1415
src="https://kit.fontawesome.com/0a1af2edbf.js"
1516
crossorigin="anonymous"

demo/main.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,15 @@ Gleap.log("Test log err", "ERROR");
3131

3232
Gleap.trackEvent("Master Event");
3333

34+
Gleap.identify("123456789", {
35+
name: "John Doe",
36+
email: "john@doe.com",
37+
customData: {
38+
yyy: "xxx",
39+
penis: true
40+
}
41+
});
42+
3443
// Register custom action.
3544
Gleap.registerCustomAction((customAction) => {
3645
console.log("Custom action called:");

index.d.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,14 +60,18 @@ export namespace Gleap {
6060
function setLiveSite(isLiveSite: boolean): void;
6161
function enableShortcuts(enabled: boolean): void;
6262
function setLanguage(language: string): void;
63-
function preFillForm(data: string): void;
63+
function preFillForm(data: object): void;
64+
function showTabNotificationBadge(showNotificationBadge: boolean): void;
6465
function attachNetworkLogs(networkLogs: string): void;
6566
function clearIdentity(): void;
6667
function identify(
6768
userId: string,
6869
customerData: {
6970
name?: string;
7071
email?: string;
72+
phone?: string;
73+
value?: number;
74+
customData?: object;
7175
},
7276
userHash?: string
7377
): void;
@@ -89,6 +93,7 @@ export namespace Gleap {
8993
function openFeatureRequests(showBackButton?: boolean): void;
9094
function close(): void;
9195
function hide(): void;
96+
function setUseCookies(useCookies: boolean): void;
9297
function setEnvironment(environment: "dev" | "staging" | "prod"): void;
9398
function showFeedbackButton(show: boolean): void;
9499
function startFeedbackFlow(

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "gleap",
3-
"version": "8.4.1",
3+
"version": "8.5.1",
44
"main": "build/index.js",
55
"scripts": {
66
"start": "webpack serve",

published/8.4.2/index.js

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

published/8.4.3/index.js

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

published/8.4.4/index.js

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

published/8.4.5/index.js

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)