Skip to content

Commit 3608b15

Browse files
Ugraded @livechat/developer-ui-react
1 parent 37a90d2 commit 3608b15

File tree

16 files changed

+500
-163
lines changed

16 files changed

+500
-163
lines changed

.eslintrc

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
11
{
2-
"extends": "next/core-web-vitals"
2+
"extends": ["next/core-web-vitals", "plugin:@typescript-eslint/recommended"],
3+
"plugins": ["@typescript-eslint"],
4+
"parser": "@typescript-eslint/parser",
5+
"parserOptions": {
6+
"project": "tsconfig.json"
7+
}
38
}

app/(products)/helpdesk/(widgets)/details/page.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ export default function Page() {
77
const { app } = useApp();
88
const { widget, ticketInfo } = useHelpDeskDetails();
99

10+
console.log(app, widget);
11+
1012
return (
1113
<div>
1214
<h1>Ticket Details widget</h1>

app/(products)/helpdesk/(widgets)/fullscreen/page.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,15 @@
11
"use client";
22

3+
import { useEffect, useState } from "react";
34
import { NumericInput } from "@livechat/design-system-react-components";
45
import { useApp, useHelpDeskFullscreen } from "@livechat/developer-ui-react";
5-
import { useEffect, useState } from "react";
66

77
export default function Page() {
88
const { app } = useApp();
99
const { widget } = useHelpDeskFullscreen();
1010

11+
console.log(app);
12+
1113
const [notificationsCount, setNotificationsCount] = useState(0);
1214

1315
useEffect(() => {

app/(products)/helpdesk/(widgets)/settings/page.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ import { useApp } from "@livechat/developer-ui-react";
55
export default function Page() {
66
const { app } = useApp();
77

8+
console.log(app);
9+
810
return (
911
<div>
1012
<h1>Fullscreen</h1>

app/(products)/livechat/(widgets)/details/page.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ export default function Page() {
77
const { app } = useApp();
88
const { widget, customerProfile } = useLiveChatDetails();
99

10+
console.log(app);
11+
1012
return (
1113
<div>
1214
<h1>Chat Details widget</h1>

app/(products)/livechat/(widgets)/fullscreen/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
"use client";
22

3+
import { useEffect, useState } from "react";
34
import { Card, NumericInput } from "@livechat/design-system-react-components";
45
import { useApp, useLiveChatFullscreen } from "@livechat/developer-ui-react";
5-
import { useEffect, useState } from "react";
66
import {
77
AgentConfigurationDto,
88
LiveChatConfigurationApiError,

app/(products)/livechat/(widgets)/message-box/page.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ const getRichMessage = (currentLocation: string): IRichMessage => ({
2525
user_ids: [],
2626
value: `${currentLocation}/livechat/moments/test`,
2727
webview_height: "full",
28+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
2829
} as any,
2930
],
3031
},
@@ -35,6 +36,8 @@ export default function Page() {
3536
const { app } = useApp();
3637
const { widget, customerProfile } = useLiveChatMessageBox();
3738

39+
console.log(app);
40+
3841
return (
3942
<div>
4043
<h1>Message box widget</h1>

app/(products)/livechat/(widgets)/settings/page.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ import { useApp } from "@livechat/developer-ui-react";
55
export default function Page() {
66
const { app } = useApp();
77

8+
console.log(app);
9+
810
return (
911
<div>
1012
<h1>Settings</h1>

app/(products)/livechat/moments/test/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
"use client";
22

3-
import createMomentsSDK, { MomentsSDK } from "@livechat/moments-sdk";
43
import { useEffect, useState } from "react";
4+
import createMomentsSDK, { MomentsSDK } from "@livechat/moments-sdk";
55

66
function LiveChatTestMoment() {
77
const [moment, setMoment] = useState<MomentsSDK>();

app/api/(products)/livechat/action/route.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
12
type ChatActionPayload = {
23
licence_id: string;
34
agent_id: string;
@@ -20,6 +21,8 @@ type ChatActionPayload = {
2021
};
2122

2223
export async function GET(req: Request) {
24+
console.log(req.url);
25+
2326
return new Response("OK!", {
2427
status: 200,
2528
});

0 commit comments

Comments
 (0)