Skip to content

Commit 9349bdd

Browse files
committed
v8.0.22
1 parent 443c571 commit 9349bdd

File tree

5 files changed

+33
-6
lines changed

5 files changed

+33
-6
lines changed

demo/main.js

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,14 @@ Gleap.setApiUrl("http://0.0.0.0:9000");
1111
Gleap.initialize("KProDXhMS0V3UUku2iNnrZ4XsBnAYzxt");
1212
//Gleap.setEnvironment("dev");
1313

14-
/*Gleap.identify("user_1933333283", {
15-
name: "Franz.Demoddddman+asdf@eap.io",
14+
/*
15+
Gleap.identify("user_1933333283", {
16+
name: "Luki",
1617
email: "lukas@gleap.io",
1718
value: 199
18-
});*/
19+
});
20+
*/
21+
//Gleap.clearIdentity();
1922

2023
Gleap.attachCustomData({
2124
mission: "Unicorn",

index.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ export namespace Gleap {
7575
): void;
7676
function open(): void;
7777
function openNews(): void;
78+
function openFeatureRequests(): void;
7879
function close(): void;
7980
function hide(): void;
8081
function setEnvironment(environment: "dev" | "staging" | "prod"): void;

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.0.21",
3+
"version": "8.0.22",
44
"main": "build/index.js",
55
"scripts": {
66
"start": "webpack serve",

src/Gleap.js

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -558,6 +558,19 @@ class Gleap {
558558
GleapFrameManager.getInstance().showWidget();
559559
}
560560

561+
/**
562+
* Opens the feature requests overview.
563+
*/
564+
static openFeatureRequests() {
565+
GleapFrameManager.getInstance().setAppMode("widget");
566+
567+
GleapFrameManager.getInstance().sendMessage({
568+
name: "open-feature-requests",
569+
});
570+
571+
GleapFrameManager.getInstance().showWidget();
572+
}
573+
561574
isLiveMode() {
562575
if (this.offlineMode === true) {
563576
return false;

src/UI.js

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -210,8 +210,8 @@ export const injectStyledCSS = (
210210
211211
.gleap-notification-close {
212212
border-radius: 100%;
213-
width: 30px;
214-
height: 30px;
213+
width: 28px;
214+
height: 28px;
215215
background-color: ${subTextColor};
216216
display: flex;
217217
justify-content: center;
@@ -230,6 +230,16 @@ export const injectStyledCSS = (
230230
animation-name: bbFadeInOpacity;
231231
}
232232
233+
@media only screen and (max-width: 450px) {
234+
.gleap-notification-close {
235+
visibility: visible;
236+
pointer-events: auto;
237+
animation-duration: 0.7s;
238+
animation-fill-mode: both;
239+
animation-name: bbFadeInOpacity;
240+
}
241+
}
242+
233243
.gleap-notification-close svg {
234244
width: 45%;
235245
height: 45%;

0 commit comments

Comments
 (0)