Skip to content

Commit

Permalink
v12.1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
boehlerlukas committed Oct 20, 2023
1 parent 9dd7536 commit c1872ba
Show file tree
Hide file tree
Showing 7 changed files with 20 additions and 12 deletions.
2 changes: 1 addition & 1 deletion build/index.js

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions demo/main.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
const Gleap = window.Gleap;

Gleap.setFrameUrl("http://0.0.0.0:3001");
Gleap.setApiUrl("http://0.0.0.0:9000");
Gleap.setWSApiUrl("ws://0.0.0.0:8080");
//Gleap.setFrameUrl("http://0.0.0.0:3001");
//Gleap.setApiUrl("http://0.0.0.0:9000");
//Gleap.setWSApiUrl("ws://0.0.0.0:8080");

// Gleap.setLanguage("en");

Expand Down
3 changes: 3 additions & 0 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,9 @@ export namespace Gleap {
): void;
function getInstance(): any;
function open(): void;
function openChecklists(showBackButton?: boolean): void;
function openChecklist(checklistId: string, showBackButton?: boolean): void;
function startChecklist(outboundId: string, showBackButton?: boolean): void;
function openNews(showBackButton?: boolean): void;
function openNewsArticle(id: string, showBackButton?: boolean): void;
function openConversations(showBackButton?: boolean): void;
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "gleap",
"version": "12.1.0",
"version": "12.1.1",
"main": "build/index.js",
"scripts": {
"start": "webpack serve",
Expand Down
1 change: 1 addition & 0 deletions published/12.1.1/index.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion published/latest/index.js

Large diffs are not rendered by default.

16 changes: 10 additions & 6 deletions src/Gleap.js
Original file line number Diff line number Diff line change
Expand Up @@ -868,13 +868,15 @@ class Gleap {
/**
* Open the checklists overview.
*/
static openChecklists() {
static openChecklists(showBackButton = true) {
GleapFrameManager.getInstance().setAppMode("widget");

GleapFrameManager.getInstance().sendMessage(
{
name: "open-checklists",
data: {},
data: {
hideBackButton: !showBackButton,
},
},
true
);
Expand All @@ -885,7 +887,7 @@ class Gleap {
/**
* Starts a new checklist and opens it.
*/
static startChecklist(outboundId) {
static startChecklist(outboundId, showBackButton = true) {
if (!outboundId) {
return false;
}
Expand All @@ -897,6 +899,7 @@ class Gleap {
name: "start-checklist",
data: {
outboundId: outboundId,
hideBackButton: !showBackButton,
},
},
true
Expand All @@ -910,8 +913,8 @@ class Gleap {
/**
* Open an existing checklist.
*/
static openChecklist(id) {
if (!id) {
static openChecklist(checklistId, showBackButton = true) {
if (!checklistId) {
return;
}

Expand All @@ -921,7 +924,8 @@ class Gleap {
{
name: "open-checklist",
data: {
id,
id: checklistId,
hideBackButton: !showBackButton,
},
},
true
Expand Down

0 comments on commit c1872ba

Please sign in to comment.