Skip to content

Commit 9bfe9f6

Browse files
committed
v14.0.9
1 parent ab5e805 commit 9bfe9f6

File tree

9 files changed

+16
-8
lines changed

9 files changed

+16
-8
lines changed

build/cjs/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.

build/esm/index.mjs

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

demo/main.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,8 @@ Gleap.setFrameUrl("http://0.0.0.0:3001");
44
Gleap.setApiUrl("http://0.0.0.0:9000");
55
Gleap.setWSApiUrl("ws://0.0.0.0:9000");
66

7-
Gleap.initialize("gbMLfLgtayFd2PeNJrjbxl6eB2OboAfn");
7+
Gleap.initialize("nKT6erqDUjwqfVN2xRkOG4XOf8NEEJ52");
8+
9+
Gleap.registerCustomAction((customAction) => {
10+
console.log(customAction);
11+
});

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": "14.0.8",
3+
"version": "14.0.9",
44
"main": "build/cjs/index.js",
55
"module": "build/esm/index.mjs",
66
"exports": {

published/14.0.9/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/latest/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.

src/GleapCustomActionManager.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,15 @@ export default class GleapCustomActionManager {
2323
/**
2424
* Triggers a custom action
2525
*/
26-
static triggerCustomAction(name) {
26+
static triggerCustomAction(name, data) {
2727
const instance = this.getInstance();
2828
if (instance.customActionCallbacks) {
2929
for (var i = 0; i < instance.customActionCallbacks.length; i++) {
3030
var callback = instance.customActionCallbacks[i];
3131
if (callback) {
3232
callback({
3333
name,
34+
...(data ? data : {}),
3435
});
3536
}
3637
}

src/GleapFrameManager.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -561,7 +561,9 @@ export default class GleapFrameManager {
561561
}
562562

563563
if (data.name === "run-custom-action") {
564-
GleapCustomActionManager.triggerCustomAction(data.data);
564+
GleapCustomActionManager.triggerCustomAction(data.data, {
565+
shareToken: data.shareToken,
566+
});
565567
}
566568

567569
if (data.name === "close-widget") {

src/UI.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ export const injectStyledCSS = (
9898
right: ${buttonX}px;
9999
bottom: ${61 + buttonY}px;
100100
width: calc(100% - 40px);
101-
max-width: 400px;
101+
max-width: 410px;
102102
position: fixed;
103103
z-index: ${zIndexBase + 31};
104104
visibility: visible;

0 commit comments

Comments
 (0)