Skip to content

Commit bab1f52

Browse files
committed
v6.0.0
1 parent 4ccb309 commit bab1f52

File tree

8 files changed

+81
-85
lines changed

8 files changed

+81
-85
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/bb.css

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -479,7 +479,7 @@
479479

480480
.bb-feedback-type-description {
481481
font-family: "Inter", sans-serif;
482-
color: #000000;
482+
color: #59617d;
483483
font-size: 14px;
484484
line-height: 16px;
485485
}
@@ -1430,16 +1430,16 @@ textarea.bb-feedback-required {
14301430
background: linear-gradient(135deg, #ed4337 0%, #c7372d 100%);
14311431
}
14321432

1433-
.bb-feedback-dialog--crashed .bb-feedback-send-button {
1434-
background-color: #ed4337;
1433+
.bb-feedback-dialog--crashed .bb-feedback-dialog-header-title {
1434+
color: #fff;
14351435
}
14361436

1437-
.bb-feedback-dialog--crashed .bb-feedback-dialog-infoitem {
1438-
border-top: 2px solid #ed433777;
1437+
.bb-feedback-dialog--crashed .bb-feedback-send-button {
1438+
color: #fff;
14391439
}
14401440

1441-
.bb-feedback-dialog--crashed .bb-feedback-dialog-infoitem {
1442-
background-color: #ed433709;
1441+
.bb-feedback-dialog--crashed .bb-feedback-send-button {
1442+
background-color: #ed4337;
14431443
}
14441444

14451445
.bb-feedback-dialog--crashed

demo/main.js

Lines changed: 30 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,34 @@ const Gleap = window.Gleap;
22

33
window.onGleapLoaded = () => {
44
console.log("LOADED.");
5-
6-
Gleap.identify(
7-
"1",
8-
"db5897fe20d33d8072babc477655eba5240e606cbde86deaa0c17e34eaef6201",
9-
{
10-
name: "Franz",
11-
email: "x@x.com",
12-
}
13-
);
145
};
156

16-
Gleap.setApiUrl("http://0.0.0.0:9000");
7+
// Gleap.setApiUrl("http://0.0.0.0:9000");
178

18-
Gleap.initialize("OcLgYN5vWavsjTrv1vjAjGj22INW0Xdz");
9+
// Sample for feedback type options
10+
Gleap.setMenuOptions([
11+
{
12+
title: "Report an issue",
13+
description: "Found a bug? Let us know.",
14+
icon: "https://i.ibb.co/CJV3jZ0/Subtract-1.png",
15+
actionFlow: "default",
16+
color: "#F4CAC8",
17+
},
18+
{
19+
title: "Contact us",
20+
description: "We are here to help.",
21+
icon: "https://i.ibb.co/WcWGJ6S/Subtract.png",
22+
actionFlow: "contact",
23+
color: "#EFE2FF",
24+
},
25+
{
26+
title: "Request a feature",
27+
description: "Which feature would you like to see next?",
28+
icon: "https://i.ibb.co/qsmt9WR/Subtract-2.png",
29+
actionFlow: "featurerequest",
30+
color: "#FFEEC2",
31+
},
32+
]);
1933

2034
Gleap.setFeedbackActions({
2135
bugreporting: {
@@ -194,43 +208,20 @@ Gleap.setFeedbackActions({
194208
},
195209
});
196210

197-
// Sample for feedback type options
198-
Gleap.setMenuOptions([
199-
{
200-
title: "Report an issue",
201-
description: "Found a bug? Let us know.",
202-
icon: "https://i.ibb.co/CJV3jZ0/Subtract-1.png",
203-
actionFlow: "default",
204-
color: "#F4CAC8",
205-
},
206-
{
207-
title: "Contact us",
208-
description: "We are here to help.",
209-
icon: "https://i.ibb.co/WcWGJ6S/Subtract.png",
210-
actionFlow: "contact",
211-
color: "#EFE2FF",
212-
},
213-
{
214-
title: "Request a feature",
215-
description: "Which feature would you like to see next?",
216-
icon: "https://i.ibb.co/qsmt9WR/Subtract-2.png",
217-
actionFlow: "featurerequest",
218-
color: "#FFEEC2",
219-
},
220-
]);
221-
222211
Gleap.enableNetworkLogger();
223212

224213
Gleap.setAppBuildNumber("2345");
225214

226215
Gleap.enableReplays(true);
227216

228-
Gleap.setColors("red", "blue", "green");
217+
Gleap.setColors("#ffffff", "#ffffff", "#ffffff");
229218

230219
Gleap.enablePoweredBy(true);
231220

232221
Gleap.enableCrashDetector(true, false);
233222

223+
Gleap.enableRageClickDetector(true);
224+
234225
// Sets the app's build number.
235226
Gleap.setAppBuildNumber(5);
236227

@@ -242,3 +233,5 @@ Gleap.attachCustomData({
242233
test1: "Battle",
243234
data2: "Unicorn",
244235
});
236+
237+
Gleap.initialize("ogWhNhuiZcGWrva5nlDS8l7a78OfaLlV");

published/6.0.0/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.

published/6.0.0/index.min.css

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

src/Gleap.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -516,7 +516,7 @@ class Gleap {
516516
if (instance.enabledRageClickDetectorSilent) {
517517
Gleap.sendSilentBugReport("Rage click detected.");
518518
} else {
519-
Gleap.startFeedbackFlow(instance.feedbackActions.crash);
519+
Gleap.startFeedbackFlow("crash");
520520
}
521521
});
522522
}
@@ -571,7 +571,7 @@ class Gleap {
571571
instance.severity = priority;
572572
instance.feedbackType = "BUG";
573573

574-
this.startFeedbackFlow({}, true);
574+
this.startFeedbackFlow(null, true);
575575
}
576576

577577
/**
@@ -666,7 +666,7 @@ class Gleap {
666666
return;
667667
}
668668

669-
var feedbackOptions = {};
669+
var feedbackOptions = null;
670670

671671
// Try to load the specific feedback flow.
672672
if (feedbackFlow) {
@@ -842,7 +842,7 @@ class Gleap {
842842
)}\n`;
843843
Gleap.sendSilentBugReport(errorMessage);
844844
} else {
845-
Gleap.startFeedbackFlow(self.feedbackActions.crash);
845+
Gleap.startFeedbackFlow("crash");
846846
}
847847
}
848848

src/UI.js

Lines changed: 36 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ export const injectColorCSS = (primaryColor, headerColor, buttonColor) => {
1414
const contrastHeaderColor = calculateContrast(headerColor);
1515
const contrastButtonColor = calculateContrast(buttonColor);
1616
const colorStyleSheet = `
17+
.bb-screenshot-editor-drag-info {
18+
color: ${contrastColor};
19+
}
1720
.bb-logo-arrowdown {
1821
fill: ${contrastButtonColor};
1922
}
@@ -112,7 +115,7 @@ export const createWidgetDialog = function (
112115
content,
113116
back,
114117
showBack = true,
115-
appendClass = "",
118+
appendClass = ""
116119
) {
117120
var elem = document.createElement("div");
118121
elem.className = "bb-feedback-dialog-container";
@@ -285,7 +288,7 @@ export const createFeedbackTypeDialog = function (
285288
optionsHTML,
286289
null,
287290
true,
288-
fromBack ? 'bb-anim-fadeinfromback' : 'bb-anim-fadein'
291+
fromBack ? "bb-anim-fadeinfromback" : "bb-anim-fadein"
289292
);
290293

291294
// Hook actions
@@ -339,31 +342,39 @@ export const setLoadingIndicatorProgress = function (percentComplete) {
339342

340343
export const loadIcon = function (name, color) {
341344
if (name === "bblogo") {
342-
return `<svg class="bb-logo-logo" width="42" height="42" viewBox="0 0 42 42" fill="none" xmlns="http://www.w3.org/2000/svg">
343-
<g clip-path="url(#clip0)">
344-
<path d="M6.46038 34.119C1.1035 31.0262 -0.731897 24.1764 2.3609 18.8195C5.45369 13.4626 12.3035 11.6272 17.6604 14.72C23.0173 17.8128 24.8527 24.6626 21.7599 30.0195C16.1599 39.719 4.86038 36.8902 4.86038 36.8902L6.46038 34.119Z" fill="#9D50FF"/>
345-
<path d="M28.2245 35.725C37.7381 32.997 43.2389 23.0733 40.5109 13.5598C37.7829 4.0462 27.8592 -1.4546 18.3457 1.27336C8.83213 4.00133 3.33133 13.925 6.05929 23.4386C10.9987 40.6644 29.6358 40.6466 29.6358 40.6466L28.2245 35.725Z" fill="#485BFF"/>
346-
<mask id="mask0" style="mask-type:alpha" maskUnits="userSpaceOnUse" x="5" y="0" width="37" height="41">
347-
<path d="M28.2245 35.725C37.7381 32.997 43.2389 23.0733 40.5109 13.5598C37.7829 4.0462 27.8592 -1.4546 18.3457 1.27336C8.83213 4.00133 3.33133 13.925 6.05929 23.4386C10.9987 40.6644 29.6358 40.6466 29.6358 40.6466L28.2245 35.725Z" fill="#C4C4C4"/>
348-
</mask>
349-
<g mask="url(#mask0)">
350-
<path d="M6.46038 34.119C1.1035 31.0262 -0.731897 24.1764 2.3609 18.8195C5.45369 13.4626 12.3035 11.6272 17.6604 14.72C23.0173 17.8128 24.8527 24.6626 21.7599 30.0195C16.1599 39.719 4.86038 36.8902 4.86038 36.8902L6.46038 34.119Z" fill="#9D50FF"/>
351-
<path fill-rule="evenodd" clip-rule="evenodd" d="M16.7633 12.5322C15.4531 14.1494 14.88 16.3205 14.8801 18.4C14.8801 20.4795 15.4531 22.6506 16.7633 24.2678C18.0277 25.8286 20.1099 27.04 23.5202 27.04C27.1157 27.04 28.9061 25.4568 29.8477 23.9515C30.5102 22.8924 30.7476 22.1184 30.8326 21.597C30.8895 21.2481 31.1666 20.96 31.5201 20.96H33.4401C33.7935 20.96 34.0842 21.2466 34.0541 21.5988C33.9747 22.5254 33.6684 23.8777 32.5606 25.6485C31.078 28.0187 28.2988 30.24 23.5202 30.24C19.2504 30.24 16.2124 28.6714 14.2769 26.2822C12.387 23.9494 11.6801 21.0005 11.6801 18.4C11.68 15.7995 12.387 12.8506 14.2768 10.5178C16.1142 8.24986 18.9448 6.72135 22.8795 6.57202C23.2327 6.55862 23.5202 6.84653 23.5202 7.2V9.12C23.5202 9.47346 23.2333 9.75818 22.8802 9.77472C19.8461 9.91683 17.9466 11.0715 16.7633 12.5322Z" fill="white"/>
352-
<mask id="mask1" style="mask-type:alpha" maskUnits="userSpaceOnUse" x="0" y="13" width="24" height="25">
353-
<path d="M6.4605 34.119C1.10363 31.0262 -0.731775 24.1764 2.36102 18.8195C5.45381 13.4626 12.3036 11.6272 17.6605 14.72C23.0174 17.8128 24.8528 24.6626 21.76 30.0195C16.16 39.719 4.8605 36.8902 4.8605 36.8902L6.4605 34.119Z" fill="#101D49"/>
354-
</mask>
355-
<g mask="url(#mask1)">
356-
<path fill-rule="evenodd" clip-rule="evenodd" d="M16.7633 12.5322C15.4531 14.1494 14.88 16.3205 14.8801 18.4C14.8801 20.4795 15.4531 22.6506 16.7633 24.2678C18.0277 25.8286 20.1099 27.04 23.5202 27.04C27.1157 27.04 28.9061 25.4568 29.8477 23.9515C30.875 22.3092 30.8801 21.3524 30.8801 20.96H34.08C34.08 21.8476 33.9577 23.4153 32.5606 25.6485C31.078 28.0187 28.2988 30.24 23.5202 30.24C19.2504 30.24 16.2124 28.6714 14.2769 26.2822C12.387 23.9494 11.6801 21.0005 11.6801 18.4C11.68 15.7995 12.387 12.8506 14.2768 10.5178C16.2124 8.1286 19.2504 6.56 23.5202 6.56V9.76C20.1099 9.76 18.0277 10.9714 16.7633 12.5322Z" fill="#FFC5F6"/>
357-
</g>
358-
<path d="M35.04 14.56C35.04 15.9738 33.8939 17.12 32.48 17.12C31.0662 17.12 29.92 15.9738 29.92 14.56C29.92 13.1462 31.0662 12 32.48 12C33.8939 12 35.04 13.1462 35.04 14.56Z" fill="white"/>
359-
</g>
360-
</g>
345+
return `<svg width="41px" height="41px" viewBox="0 0 41 41" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
346+
<title>Group</title>
361347
<defs>
362-
<clipPath id="clip0">
363-
<rect width="40.96" height="40.96" fill="white" transform="translate(0.47998 0.479996)"/>
364-
</clipPath>
348+
<path d="M22.8640197,35.1504495 C32.3776197,32.4224495 37.8784197,22.4987495 35.1504197,12.9852495 C32.4224197,3.4716495 22.4987197,-2.0291505 12.9852197,0.698809498 C3.47164965,3.4267795 -2.02915035,13.3504495 0.698809655,22.8640495 C5.63821965,40.0898495 24.2753197,40.0720495 24.2753197,40.0720495 L22.8640197,35.1504495 Z" id="path-1"></path>
349+
<path d="M5.60186532,20.901389 C0.244995316,17.808589 -1.59040968,10.958789 1.50238532,5.60188901 C4.59517532,0.244989006 11.4449653,-1.59041099 16.8018653,1.50238901 C22.1587653,4.59518901 23.9941653,11.444989 20.9013653,16.801889 C15.3013653,26.501389 4.00186532,23.672589 4.00186532,23.672589 L5.60186532,20.901389 Z" id="path-3"></path>
365350
</defs>
366-
</svg>`;
351+
<g id="Page-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
352+
<g id="Group" transform="translate(0.000000, -0.000000)">
353+
<path d="M5.60186839,33.5444495 C0.244988386,30.4516495 -1.59040861,23.6018495 1.50238839,18.2449495 C4.59517839,12.8880495 11.4449884,11.0526495 16.8018884,14.1454495 C22.1587884,17.2382495 23.9941884,24.0880495 20.9013884,29.4449495 C15.3013884,39.1444495 4.00186839,36.3156495 4.00186839,36.3156495 L5.60186839,33.5444495 Z" id="Path" fill="#9D50FF" fill-rule="nonzero"></path>
354+
<path d="M27.3659884,35.1504495 C36.8795884,32.4224495 42.3803884,22.4987495 39.6523884,12.9852495 C36.9243884,3.4716495 27.0006884,-2.0291505 17.4871884,0.698809498 C7.97361839,3.4267795 2.47281839,13.3504495 5.20077839,22.8640495 C10.1401884,40.0898495 28.7772884,40.0720495 28.7772884,40.0720495 L27.3659884,35.1504495 Z" id="Path" fill="#485BFF" fill-rule="nonzero"></path>
355+
<g id="Clipped" transform="translate(4.501969, 0.000000)">
356+
<mask id="mask-2" fill="white">
357+
<use xlink:href="#path-1"></use>
358+
</mask>
359+
<g id="Path"></g>
360+
<g id="Group" mask="url(#mask-2)">
361+
<g transform="translate(-4.501969, 5.997020)">
362+
<path d="M5.60186839,27.5474296 C0.244988386,24.4546296 -1.59040861,17.6048296 1.50238839,12.2479296 C4.59517839,6.89102957 11.4449884,5.05562957 16.8018884,8.14842957 C22.1587884,11.2412296 23.9941884,18.0910296 20.9013884,23.4479296 C15.3013884,33.1474296 4.00186839,30.3186296 4.00186839,30.3186296 L5.60186839,27.5474296 Z" id="Path" fill="#9D50FF" fill-rule="nonzero"></path>
363+
<path d="M15.9047884,5.96062957 C14.5945884,7.57782957 14.0214884,9.74892957 14.0215884,11.8284296 C14.0215884,13.9079296 14.5945884,16.0790296 15.9047884,17.6962296 C17.1691884,19.2570296 19.2513884,20.4684296 22.6616884,20.4684296 C26.2571884,20.4684296 28.0475884,18.8852296 28.9891884,17.3799296 C29.6516884,16.3208296 29.8890884,15.5468296 29.9740884,15.0254296 C30.0309884,14.6765296 30.3080884,14.3884296 30.6615884,14.3884296 L32.5815884,14.3884296 C32.9349884,14.3884296 33.2256884,14.6750296 33.1955884,15.0272296 C33.1161884,15.9538296 32.8098884,17.3061296 31.7020884,19.0769296 C30.2194884,21.4471296 27.4402884,23.6684296 22.6616884,23.6684296 C18.3918884,23.6684296 15.3538884,22.0998296 13.4183884,19.7106296 C11.5284884,17.3778296 10.8215884,14.4289296 10.8215884,11.8284296 C10.8215884,9.22792957 11.5284884,6.27902957 13.4182884,3.94622957 C15.2556884,1.67828957 18.0862884,0.149779575 22.0209884,0.000449574751 C22.3741884,-0.0129504252 22.6616884,0.274959575 22.6616884,0.628429575 L22.6616884,2.54842957 C22.6616884,2.90188957 22.3747884,3.18660957 22.0216884,3.20314957 C18.9875884,3.34525957 17.0880884,4.49992957 15.9047884,5.96062957 Z" id="Path" fill="#FFFFFF" fill-rule="evenodd"></path>
364+
<g id="Clipped" stroke-width="1" fill="none" fill-rule="evenodd" transform="translate(0.000123, 6.646041)">
365+
<mask id="mask-4" fill="white">
366+
<use xlink:href="#path-3"></use>
367+
</mask>
368+
<g id="Path"></g>
369+
<path d="M15.9046653,-0.685410994 C14.5944653,0.931789006 14.0213653,3.10288901 14.0214653,5.18238901 C14.0214653,7.26188901 14.5944653,9.43298901 15.9046653,11.050189 C17.1690653,12.610989 19.2512653,13.822389 22.6615653,13.822389 C26.2570653,13.822389 28.0474653,12.239189 28.9890653,10.733889 C30.0163653,9.09158901 30.0214653,8.13478901 30.0214653,7.74238901 L33.2213653,7.74238901 C33.2213653,8.62998901 33.0990653,10.197689 31.7019653,12.430889 C30.2193653,14.801089 27.4401653,17.022389 22.6615653,17.022389 C18.3917653,17.022389 15.3537653,15.453789 13.4182653,13.064589 C11.5283653,10.731789 10.8214653,7.78288901 10.8214653,5.18238901 C10.8214653,2.58188901 11.5283653,-0.367010994 13.4181653,-2.69981099 C15.3537653,-5.08901099 18.3917653,-6.65761099 22.6615653,-6.65761099 L22.6615653,-3.45761099 C19.2512653,-3.45761099 17.1690653,-2.24621099 15.9046653,-0.685410994 Z" id="Path" fill="#FFC5F6" mask="url(#mask-4)"></path>
370+
</g>
371+
<path d="M34.1814884,7.98842957 C34.1814884,9.40222957 33.0353884,10.5484296 31.6214884,10.5484296 C30.2076884,10.5484296 29.0614884,9.40222957 29.0614884,7.98842957 C29.0614884,6.57462957 30.2076884,5.42842957 31.6214884,5.42842957 C33.0353884,5.42842957 34.1814884,6.57462957 34.1814884,7.98842957 Z" id="Path" fill="#FFFFFF" fill-rule="nonzero"></path>
372+
</g>
373+
</g>
374+
</g>
375+
</g>
376+
</g>
377+
</svg>`;
367378
}
368379

369380
if (name === "arrowdown") {

src/css/index.css

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -479,7 +479,7 @@
479479

480480
.bb-feedback-type-description {
481481
font-family: "Inter", sans-serif;
482-
color: #000000;
482+
color: #59617d;
483483
font-size: 14px;
484484
line-height: 16px;
485485
}
@@ -1434,14 +1434,6 @@ textarea.bb-feedback-required {
14341434
background-color: #ed4337;
14351435
}
14361436

1437-
.bb-feedback-dialog--crashed .bb-feedback-dialog-infoitem {
1438-
border-top: 2px solid #ed433777;
1439-
}
1440-
1441-
.bb-feedback-dialog--crashed .bb-feedback-dialog-infoitem {
1442-
background-color: #ed433709;
1443-
}
1444-
14451437
.bb-feedback-dialog--crashed
14461438
.bb-feedback-inputgroup--privacy-policy
14471439
[type="checkbox"]:not(:checked)

0 commit comments

Comments
 (0)